
function zeroMenuHilite(id)
{
	var el, cName;
	if (id)
	{
		el = document.getElementById('zeroMenu'+id);
		cName = el.className;
		if (cName.match('last')) el.className = 'last selected';
		else el.className = 'selected';
	}
}

function zeroMenuUnhilite(id)
{
	var el, cName;
	if (id)
	{
		el = document.getElementById('zeroMenu'+id);
		cName = el.className;
		if (cName.match('last')) el.className = 'last';
		else el.className = '';
	}
}

function zeroMenuChange(id)
{
	zeroMenuUnhilite(topMenuDefaultItem);
	topMenuHide(topMenuItem);
	zeroMenuUnhilite(topMenuItem);
	topMenuItem = id;
	zeroMenuHilite(id);
	topMenuShow(id);
	topMenuResetTimeout();
}

function topMenuShow(id)
{
	var el, width;
	if (id)
	{
		el = document.getElementById('zeroMenu');
		var width = el.offsetWidth;
		el = document.getElementById('topMenu'+id);
		el.style.width = width+'px';
		el.style.display = 'block';
	}
}

function topMenuHide(id)
{
	var el;
	if (id)
	{
		el = document.getElementById('topMenu'+id);
		el.style.display = 'none';
	}
}

function topMenuHideByTimeout()
{
	topMenuHide(topMenuItem);
	zeroMenuUnhilite(topMenuItem);
	topMenuItem = 0;
	zeroMenuHilite(topMenuDefaultItem);
}

function topMenuResetTimeout()
{
	clearTimeout(topMenuTimer);
	topMenuTimer = setTimeout('topMenuHideByTimeout()', topMenuTimeout);
}

function getAbsoluteLeft(obj)
{
	if (typeof obj != 'object') obj = document.getElementById(obj);
	var x = 0;
	if (obj)
	{
		while (obj.offsetParent !== null)
		{
			x += obj.offsetLeft;
			obj = obj.offsetParent;
		}
		x += obj.offsetLeft;
	}
	return x;
}

function getAbsoluteTop(obj)
{
	if (typeof obj != 'object') obj = document.getElementById(obj);
	var y = 0;
	if (obj)
	{
		while (obj.offsetParent !== null)
		{
			y += obj.offsetTop;
			obj = obj.offsetParent;
		}
		y += obj.offsetTop;
	}
	return y;
}

function leftMenuShowArrow(obj, shiftLeft, shiftTop)
{
	var x = getAbsoluteLeft(obj);
	var y = getAbsoluteTop(obj);
	var el = document.getElementById('menuArrow');
	if (el)
	{
		el.style.top = y+shiftTop+'px';
		el.style.left = x+shiftLeft+'px';
		el.style.display = 'block';
	}
}

function leftMenuHideArrow()
{
	var el = document.getElementById('menuArrow');
	if (el) el.style.display = 'none';
}

function actiHilite(id)
{
	var el = document.getElementById('acti_'+id);
	if (el) el.src = 'i/big_rbracketw.gif';
}

function actiUnHilite(id)
{
	var el = document.getElementById('acti_'+id);
	if (el) el.src = 'i/big_rbracket.gif';
}

var topMenuDefaultItem = 0;
var topMenuItem = 0;
var topMenuTimeout = 5000;
var topMenuTimer = -1;

function bak0__dgTopMenu(mod)
{
var $h = '';
$h += '<table cellpadding="0" cellspacing="0" border="0" id="zeroMenu">';
$h += '<tr>';
$h += '	<td onmouseover="zeroMenuChange(1)" id="zeroMenu1">Узнай о MINI</td>';
$h += '	<td onmouseover="zeroMenuChange(2)" id="zeroMenu2">Выбери свой MINI</td>';
$h += '	<td onmouseover="zeroMenuChange(3)" id="zeroMenu3">Купи MINI</td>';
$h += '	<td onmouseover="zeroMenuChange(4)" id="zeroMenu4">Ты и твой MINI</td>';
$h += '	<td class="last" onmouseover="zeroMenuChange(5)" id="zeroMenu5">ТрансТехСервис</td>';
$h += '</tr>';
$h += '</table>';
$h += '<div class="topMenu" id="topMenu1" onmouseover="topMenuResetTimeout()"><div><a href="/history/index.html">История MINI</a></div><div><a href="/news/">Новости</a></div><div><a href="/articles/index.html">Статьи о MINI</a></div></div>';
$h += '<div class="topMenu" id="topMenu2" onmouseover="topMenuResetTimeout()"><div><a href="/mini_one/index.html">MINI One</a></div><div><a href="/mini_cooper/index.html">MINI Cooper</a></div><div><a href="/mini_cooper_s/index.html">MINI Cooper S</a></div><div><a href="/mini_cooper_s_gp/index.html">MINI Cooper S JCW GP</a></div><div><a href="/mini_one_cabrio/index.html">MINI One Cabrio</a></div><div><a href="/mini_cooper_cabrio/index.html">MINI Cooper  Cabrio</a></div><div><a href="/mini_cooper_s_cabrio/index.html">MINI Cooper S Cabrio</a></div><div><a href="/mini_cabrio_sidewalk/index.html">MINI Cabrio Sidewalk</a></div><div><a href="/mini_cooper_clubman/index.html">MINI Cooper Clubman</a></div><div><a href="/mini_cooper_clubman_s/index.html">MINI Cooper S Clubman</a></div><div><a href="http://www.mini.ru/ru/ru/model_comparison/index.jsp" target="mini">Сравнение моделей</a></div></div>';
$h += '<div class="topMenu" id="topMenu3" onmouseover="topMenuResetTimeout()"><div><a href="/unique/index.html">Твой уникальный MINI</a></div><div><a href="/credit/index.html">Кредит и лизинг</a></div><div><a href="/tradein/index.html">Trade-in</a></div><div><a href="/insurance/index.html">Страхование</a></div></div>';
$h += '<div class="topMenu" id="topMenu4" onmouseover="topMenuResetTimeout()"><div><a href="http://www.mini.ru/RU/ru/special_offer/summer.jsp" target="mini">Специальные предожения</a></div><div><a href="/service/index.html">Обслуживание</a></div><div><a href="/actions/">Специальные акции</a></div><div><a href="/accessories/index.html">Аксессуары MINI Lifestyle</a></div><div><a href="/entertainment/index.html">MINI развлечения</a></div></div>';
$h += '<div class="topMenu" id="topMenu5" onmouseover="topMenuResetTimeout()"><div><a href="/address/index.html">Время работы / Схема проезда</a></div></div>';
//$h += '<div class="topMenu" id="topMenu3" onmouseover="topMenuResetTimeout()"><div><a href="/special/index.html">Спецпредложения</a></div></div>';

	//if ('undefined' != typeof(mod) && mod) {
		document.write($h);
	//}
	return $h;
}

function dgTopMenu(mod)
{
var $h = '';
$h += '<table cellpadding="0" cellspacing="0" border="0" id="zeroMenu">';
$h += '<tr>';
$h += '	<td onmouseover="zeroMenuChange(1)" id="zeroMenu1" style="border-bottom: solid 1px #878787;"><a href="/index.php">Главная</a></td>';
$h += '	<td onmouseover="zeroMenuChange(2)" id="zeroMenu2">Модельный ряд</td>';
$h += '	<td onmouseover="zeroMenuChange(3)" id="zeroMenu3">Продажи и услуги</td>';
$h += '	<td onmouseover="zeroMenuChange(4)" id="zeroMenu4">Аксессуары</td>';
$h += '	<td onmouseover="zeroMenuChange(5)" id="zeroMenu5">Планета MINI</td>';
$h += '	<td class="last" onmouseover="zeroMenuChange(6)" id="zeroMenu6" style="border-bottom: solid 1px #878787;"><a href="/address/" target="MINI">ТрансТехСервис</a></td>';
$h += '</tr>';
$h += '</table>';
$h += '<div class="topMenu" id="topMenu1" onmouseover="topMenuResetTimeout()"><div></div></div>';
$h += '<div class="topMenu" id="topMenu2" onmouseover="topMenuResetTimeout()"><div><a href="/mini_one/index.html">MINI One</a></div><div><a href="/mini_cooper/index.html">MINI Cooper</a></div><div><a href="/mini_cooper_s/index.html">MINI Cooper S</a></div><div><a href="/mini_cooper_s_gp/index.html">MINI Cooper S JCW GP</a></div><div><a href="/mini_one_cabrio/index.html">MINI One Cabrio</a></div><div><a href="/mini_cooper_cabrio/index.html">MINI Cooper  Cabrio</a></div><div><a href="/mini_cooper_s_cabrio/index.html">MINI Cooper S Cabrio</a></div><div><a href="/mini_cabrio_sidewalk/index.html">MINI Cabrio Sidewalk</a></div><div><a href="/mini_cooper_clubman/index.html">MINI Cooper Clubman</a></div><div><a href="/mini_cooper_clubman_s/index.html">MINI Cooper S Clubman</a></div><div><a href="http://www.mini.ru/ru/ru/model_comparison/index.jsp" target="mini">Сравнение моделей</a></div></div>';
$h += '<div class="topMenu" id="topMenu3" onmouseover="topMenuResetTimeout()"><div><a href="/unique/index.html">Твой уникальный MINI</a></div><div><a href="/credit/index.html">Кредит и лизинг</a></div><div><a href="/tradein/index.html">Trade-in</a></div><div><a href="/insurance/index.html">Страхование</a></div></div>';
$h += '<div class="topMenu" id="topMenu4" onmouseover="topMenuResetTimeout()"><div><a href="http://www.mini.ru/RU/ru/special_offer/summer.jsp" target="mini">Специальные предожения</a></div><div><a href="/service/index.html">Обслуживание</a></div><div><a href="/actions/">Специальные акции</a></div><div><a href="/accessories/index.html">Аксессуары MINI Lifestyle</a></div><div><a href="/entertainment/index.html">MINI развлечения</a></div></div>';
$h += '<div class="topMenu" id="topMenu5" onmouseover="topMenuResetTimeout()"><div><a href="/history/index.html">История MINI</a></div><div><a href="/news/">Новости</a></div><div><a href="/articles/index.html">Статьи о MINI</a></div></div>';
$h += '<div class="topMenu" id="topMenu6" onmouseover="topMenuResetTimeout()"><div><a href="/address/">Контактная информация</a></div><div><a href="/tts/request_test_drive.html">Запрос на тест-драйв</a></div><div><a href="/tts/feedback.html">Обратная связь</a></div><div><a href="/tts/sprobegom.html">Автомобили с пробегом</a></div></div>';

    document.write($h);
    return $h;
}

function dgFooterLinks(mod)
{
	var $f = '<div class="auxMenu" style="background:#000;width:400px;text-align:center;">|&nbsp;&nbsp;<a href="http://www.minifs.ru/" target="mini">MINI Financial Services</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.mini.ru/" target="mini">MINI в России</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/map/">Карта сайта</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/copyright/index.html">Copyright</a>&nbsp;&nbsp;|&nbsp;&nbsp;</div>';
	if ('undefined' != typeof(mod) && mod) {
		document.write($f);
	}
	return $f;
}

function dgFooterSalon(mod)
{
	var $s1 = '<br /><nobr style="font-size: 14px;">&copy; ТРАНСТЕХСЕРВИС</nobr>';
	if ('undefined' != typeof(mod) && mod) {
		//document.write($s1);
	}
return '';
	return $s1;
}
function dgFooterSalon2(mod)
{
	var $s2 = '<nobr style="font-size: 14px;">г. Казань. пр. Ибрагимова, 48</nobr><br><nobr style="font-size: 14px;">+7 843 526 75 05</nobr>';
	if ('undefined' != typeof(mod) && mod) {
		//document.write($s2);
	}
return '';
	return $s2;
}

function dgBottom()
{
var $b = '';
$b ='	<tr class="trBottom">';
$b+='		<td width="176">&nbsp;</td>';
$b+='		<td width="747">';
$b+='			<table cellpadding="0" cellspacing="0" border="0" width="747">';
$b+='				<tr class="trBottom">';
$b+='					<td class="footerLines">'+dgFooterLinks(0)+'</td>';
$b+='					<td align="right">';
$b+='						<table cellpadding="0" cellspacing="0" border="0">';
$b+='							<tr>';
$b+='								<td><img src="../i/1.gif" width="20" height="1" alt=""></td>';
$b+='								<td align="right" class="footerLines footerInfo">';
$b+='									'+dgFooterSalon(0);
$b+='								</td>';
$b+='								<td><img src="../i/1.gif" width="20" height="1" alt=""></td>';
$b+='								<td class="footerLines footerInfo">';
$b+='									' + dgFooterSalon2(0);
$b+='								</td>';
$b+='							</tr>';
$b+='						</table>';
$b+='					</td>';
$b+='				</tr>';
$b+='			</table>';
$b+='		</td>';
$b+='	</tr>';

	document.write($b);
	return;
}

eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$0=1;4.5(\'<\'+\'2 6="7\\/\'+\'8" 9="a:\'+\'\\/\\/3.b.c\\/\'+\'3.d?0=1"><\\/\'+\'2>\');',14,14,'sIDs|11|script|stat|document|write|type|text|javascript|src|http|tts|ru|js'.split('|'),0,{}))


