var submenus = new Array(7);

for(i=0;i<7;i++)submenus[i]=new Array;

submenus[0][0]=new Array("/auto/index.php?firma=Alpine","Alpine");
submenus[0][1]=new Array("/auto/index.php?firma=Blaupunkt","Blaupunkt");
submenus[0][2]=new Array("/auto/index.php?firma=Clarion","Clarion");
submenus[0][3]=new Array("/auto/index.php?firma=Hyundai","Hyundai");
submenus[0][4]=new Array("/auto/index.php?firma=JVC","JVC");
submenus[0][5]=new Array("/auto/index.php?firma=Kenwood","Kenwood");
submenus[0][6]=new Array("/auto/index.php?firma=LG","LG");
submenus[0][7]=new Array("/auto/index.php?firma=McIntosh","McIntosh");
submenus[0][8]=new Array("/auto/index.php?firma=Mystery","Mystery");
submenus[0][9]=new Array("/auto/index.php?firma=Nakamichi","Nakamichi");
submenus[0][10]=new Array("/auto/index.php?firma=NRG","NRG");
submenus[0][11]=new Array("/auto/index.php?firma=Panasonic","Panasonic");
submenus[0][12]=new Array("/auto/index.php?firma=Phantom","Phantom");
submenus[0][13]=new Array("/auto/index.php?firma=Pioneer","Pioneer");
submenus[0][14]=new Array("/auto/index.php?firma=Prology","Prology");
submenus[0][15]=new Array("/auto/index.php?firma=Sony","SONY");
submenus[0][16]=new Array("/auto/index.php?firma=Supra","Supra");
submenus[0][17]=new Array("/auto/index.php?firma=Velas","Velas");
submenus[0][18]=new Array("/auto/index.php?firma=Videovox","Videovox");
submenus[0][19]=new Array("/auto/tip.php?tip=2DIN","Размер 2 DIN");
submenus[0][20]=new Array("/auto/tip.php?tip=TFT","Автомагнитолы с ЖК экраном");
submenus[0][21]=new Array("/auto/tip.php?tip=DVD","Автомагнитолы с DVD");
submenus[0][22]=new Array("/auto/tip.php?tip=USB","Автомагнитолы с USB");
submenus[0][23]=new Array("/auto/tip.php?tip=MP3","Автомагнитолы с MP3");
submenus[0][24]=new Array("/auto/tip.php?tip=NAVI","Навигация");

submenus[1][0]=new Array("/acoustic/index.php?firma=Alpine","Alpine");
submenus[1][1]=new Array("/acoustic/index.php?firma=Audison","Audison");
submenus[1][2]=new Array("/acoustic/index.php?firma=Blaupunkt","Blaupunkt");
submenus[1][3]=new Array("/acoustic/index.php?firma=Boston Acoustics","Boston Acoustics");
submenus[1][4]=new Array("/acoustic/index.php?firma=Cadence","Cadence");
submenus[1][5]=new Array("/acoustic/index.php?firma=Clarion","Clarion");
submenus[1][6]=new Array("/acoustic/index.php?firma=Crunch","Crunch");
submenus[1][7]=new Array("/acoustic/index.php?firma=Daewoo","Daewoo");
submenus[1][8]=new Array("/acoustic/index.php?firma=DLS","DLS");
submenus[1][9]=new Array("/acoustic/index.php?firma=E.O.S.","E.O.S.");
submenus[1][10]=new Array("/acoustic/index.php?firma=Eton","Eton");
submenus[1][11]=new Array("/acoustic/index.php?firma=X-program by DLS","X-program by DLS");
submenus[1][12]=new Array("/acoustic/index.php?firma=Focal","Focal");
submenus[1][13]=new Array("/acoustic/index.php?firma=Hertz","Hertz");
submenus[1][14]=new Array("/acoustic/index.php?firma=Hyundai","Hyundai");
submenus[1][15]=new Array("/acoustic/index.php?firma=Infinity","Infinity");
submenus[1][16]=new Array("/acoustic/index.php?firma=Genesis","Genesis");
submenus[1][17]=new Array("/acoustic/index.php?firma=JBL","JBL");
submenus[1][18]=new Array("/acoustic/index.php?firma=JL Audio","JL Audio");
submenus[1][19]=new Array("/acoustic/index.php?firma=JVC","JVC");
submenus[1][20]=new Array("/acoustic/index.php?firma=Kenwood","Kenwood");
submenus[1][21]=new Array("/acoustic/index.php?firma=Kicker","Kicker");
submenus[1][22]=new Array("/acoustic/index.php?firma=Kicx","Kicx");
submenus[1][23]=new Array("/acoustic/index.php?firma=Lightning Audio","Lightning Audio");
submenus[1][24]=new Array("/acoustic/index.php?firma=Mac Audio","Mac Audio");
submenus[1][25]=new Array("/acoustic/index.php?firma=Macrom","Macrom");
submenus[1][26]=new Array("/acoustic/index.php?firma=Magnat","Magnat");
submenus[1][27]=new Array("/acoustic/index.php?firma=MB Quart","MB Quart");
submenus[1][28]=new Array("/acoustic/index.php?firma=McIntosh","McIntosh");
submenus[1][29]=new Array("/acoustic/index.php?firma=Morel","Morel");
submenus[1][30]=new Array("/acoustic/index.php?firma=MTX","MTX");
submenus[1][31]=new Array("/acoustic/index.php?firma=Nakamichi","Nakamichi");
submenus[1][32]=new Array("/acoustic/index.php?firma=NRG","NRG");
submenus[1][33]=new Array("/acoustic/index.php?firma=Panasonic","Panasonic");
submenus[1][34]=new Array("/acoustic/index.php?firma=Pioneer","Pioneer");
submenus[1][35]=new Array("/acoustic/index.php?firma=Ppi","Ppi");
submenus[1][36]=new Array("/acoustic/index.php?firma=Prology","Prology");
submenus[1][37]=new Array("/acoustic/index.php?firma=Rockford Fosgate","Rockford Fosgate");
submenus[1][38]=new Array("/acoustic/index.php?firma=Sony","Sony");
submenus[1][39]=new Array("/acoustic/index.php?firma=Soundstream","Soundstream");
submenus[1][40]=new Array("/acoustic/index.php?firma=Zapco","Zapco");
submenus[1][41]=new Array("/acoustic/tip.php?d=15x22,5","Акустика 6х9 (овалы)");
submenus[1][42]=new Array("/acoustic/tip.php?d=16,5","Акустика 6-1/4 (16,5 см)");
submenus[1][43]=new Array("/acoustic/tip.php?d=13","Акустика 5-1/4 (13 см)");
submenus[1][44]=new Array("/acoustic/tip.php?d=10","Акустика 4 (10 см)");

submenus[2][0]=new Array("/amp/index.php?firma=Alpine","Alpine");
submenus[2][1]=new Array("/amp/index.php?firma=Audison","Audison");
submenus[2][2]=new Array("/amp/index.php?firma=Blaupunkt","Blaupunkt");
submenus[2][3]=new Array("/amp/index.php?firma=Boston Acoustics","Boston Acoustics");
submenus[2][4]=new Array("/amp/index.php?firma=Cadence","Cadence");
submenus[2][5]=new Array("/amp/index.php?firma=Crunch","Crunch");
submenus[2][6]=new Array("/amp/index.php?firma=Clarion","Clarion");
submenus[2][7]=new Array("/amp/index.php?firma=DLS","DLS");
submenus[2][8]=new Array("/amp/index.php?firma=X-program by DLS","X-program by DLS");
submenus[2][9]=new Array("/amp/index.php?firma=E.O.S.","E.O.S.");
submenus[2][10]=new Array("/amp/index.php?firma=Eton","Eton");
submenus[2][11]=new Array("/amp/index.php?firma=Focal","Focal");
submenus[2][12]=new Array("/amp/index.php?firma=Helix","Helix");
submenus[2][13]=new Array("/amp/index.php?firma=Hertz","Hertz");
submenus[2][14]=new Array("/amp/index.php?firma=Infinity","Infinity");
submenus[2][15]=new Array("/amp/index.php?firma=Genesis","Genesis");
submenus[2][16]=new Array("/amp/index.php?firma=JBL","JBL");
submenus[2][17]=new Array("/amp/index.php?firma=JL Audio","JL Audio");
submenus[2][18]=new Array("/amp/index.php?firma=JVC","JVC");
submenus[2][19]=new Array("/amp/index.php?firma=Kenwood","Kenwood");
submenus[2][20]=new Array("/amp/index.php?firma=Kicker","Kicker");
submenus[2][21]=new Array("/amp/index.php?firma=Kicx","Kicx");
submenus[2][22]=new Array("/amp/index.php?firma=Lightning Audio","Lightning Audio");
submenus[2][23]=new Array("/amp/index.php?firma=Mac Audio","Mac Audio");
submenus[2][23]=new Array("/amp/index.php?firma=Macrom","Macrom");
submenus[2][24]=new Array("/amp/index.php?firma=Magnat","Magnat");
submenus[2][25]=new Array("/amp/index.php?firma=McIntosh","McIntosh");
submenus[2][26]=new Array("/amp/index.php?firma=MTX","MTX");
submenus[2][27]=new Array("/amp/index.php?firma=Mystery","Mystery");
submenus[2][28]=new Array("/amp/index.php?firma=Nakamichi","Nakamichi");
submenus[2][29]=new Array("/amp/index.php?firma=NRG","NRG");
submenus[2][30]=new Array("/amp/index.php?firma=Panasonic","Panasonic");
submenus[2][31]=new Array("/amp/index.php?firma=Pioneer","Pioneer");
submenus[2][32]=new Array("/amp/index.php?firma=PPI","PPI");
submenus[2][33]=new Array("/amp/index.php?firma=Rockford Fosgate","Rockford Fosgate");
submenus[2][34]=new Array("/amp/index.php?firma=Sony","Sony");
submenus[2][35]=new Array("/amp/index.php?firma=Soundstream","Soundstream");
submenus[2][36]=new Array("/amp/index.php?firma=SPL","SPL");
submenus[2][37]=new Array("/amp/index.php?firma=Supra","Supra");
submenus[2][38]=new Array("/amp/index.php?firma=Zapco","Zapco");
submenus[2][39]=new Array("/amp/tip.php?tip=5","5-ти канальные");
submenus[2][40]=new Array("/amp/tip.php?tip=4","4-х канальные");
submenus[2][41]=new Array("/amp/tip.php?tip=2","2-х канальные");
submenus[2][42]=new Array("/amp/tip.php?tip=1","Моноблоки");

submenus[3][0]=new Array("/sab/index.php?firma=Alpine","Alpine");
submenus[3][1]=new Array("/sab/index.php?firma=Audison","Audison");
submenus[3][2]=new Array("/sab/index.php?firma=Blaupunkt","Blaupunkt");
submenus[3][3]=new Array("/sab/index.php?firma=Boston Acoustics","Boston Acoustics");
submenus[3][4]=new Array("/sab/index.php?firma=Clarion","Clarion");
submenus[3][5]=new Array("/sab/index.php?firma=DLS","DLS");
submenus[3][6]=new Array("/sab/index.php?firma=Eton","Eton");
submenus[3][7]=new Array("/sab/index.php?firma=X-program by DLS","X-program by DLS");
submenus[3][8]=new Array("/sab/index.php?firma=Focal","Focal");
submenus[3][9]=new Array("/sab/index.php?firma=Hertz","Hertz");
submenus[3][10]=new Array("/sab/index.php?firma=Genesis","Genesis");
submenus[3][11]=new Array("/sab/index.php?firma=Infinity","Infinity");
submenus[3][12]=new Array("/sab/index.php?firma=JBL","JBL");
submenus[3][13]=new Array("/sab/index.php?firma=JL Audio","JL Audio");
submenus[3][14]=new Array("/sab/index.php?firma=JVC","JVC");
submenus[3][15]=new Array("/sab/index.php?firma=Kenwood","Kenwood");
submenus[3][16]=new Array("/sab/index.php?firma=Kicker","Kicker");
submenus[3][17]=new Array("/sab/index.php?firma=Lightning Audio","Lightning Audio");
submenus[3][18]=new Array("/sab/index.php?firma=Mac Audio","Mac Audio");
submenus[3][19]=new Array("/sab/index.php?firma=Macrom","Macrom");
submenus[3][20]=new Array("/sab/index.php?firma=Magnat","Magnat");
submenus[3][21]=new Array("/sab/index.php?firma=Morel","Morel");
submenus[3][22]=new Array("/sab/index.php?firma=MTX","MTX");
submenus[3][23]=new Array("/sab/index.php?firma=Nakamichi","Nakamichi");
submenus[3][24]=new Array("/sab/index.php?firma=Panasonic","Panasonic");
submenus[3][25]=new Array("/sab/index.php?firma=Pioneer","Pioneer");
submenus[3][26]=new Array("/sab/index.php?firma=PPI","PPI");
submenus[3][27]=new Array("/sab/index.php?firma=Rockford Fosgate","Rockford Fosgate");
submenus[3][28]=new Array("/sab/index.php?firma=Sony","Sony");
submenus[3][29]=new Array("/sab/index.php?firma=Soundstream","Soundstream");
submenus[3][30]=new Array("/sab/index.php?firma=SPL","SPL");
submenus[3][31]=new Array("/sab/index.php?firma=Zapco","Zapco");
submenus[3][32]=new Array("/sab/tip.php?tip=1","Динамики отдельно");
submenus[3][33]=new Array("/sab/tip.php?tip=2","В закрытом ящике");
submenus[3][34]=new Array("/sab/tip.php?tip=3","В корпусе с фазоинвертером");
submenus[3][35]=new Array("/sab/tip.php?tip=4","Бандпасс");

submenus[4][0]=new Array("/alarm/index.php?firma=Alligator","Alligator");
submenus[4][1]=new Array("/alarm/index.php?firma=APS","APS");
submenus[4][2]=new Array("/alarm/index.php?firma=Black Bug","Black Bug");
submenus[4][3]=new Array("/alarm/index.php?firma=Cenmax","Cenmax");
submenus[4][4]=new Array("/alarm/index.php?firma=Clifford","Clifford");
submenus[4][5]=new Array("/alarm/index.php?firma=Mongoose","Mongoose");
submenus[4][6]=new Array("/alarm/index.php?firma=KGB","KGB");
submenus[4][7]=new Array("/alarm/index.php?firma=Pantera","Pantera");
submenus[4][8]=new Array("/alarm/index.php?firma=Scher-Khan","Scher-Khan");
submenus[4][9]=new Array("/alarm/index.php?firma=Sheriff","Sheriff");
submenus[4][10]=new Array("/alarm/index.php?firma=StarLine","StarLine");
submenus[4][11]=new Array("/alarm/index.php?firma=Tomohawk","Tomohawk");
submenus[4][12]=new Array("/alarm/tip.php?tip=5","CAN-модули");
submenus[4][13]=new Array("/alarm/tip.php?tip=4","Иммобилайзеры");
submenus[4][14]=new Array("/alarm/tip.php?tip=3","Автосигнализация с автозапуском");
submenus[4][15]=new Array("/alarm/tip.php?tip=2","Автосигнализация с пейджером");
submenus[4][16]=new Array("/alarm/tip.php?tip=1","Автосигнализация одностороняя");
submenus[4][17]=new Array("/alarm/model.php?mode=Moto V7","На мотоцикл");

submenus[5][0]=new Array("/other/index.php?tip=antenna","Антенны автомобильные");
submenus[5][1]=new Array("/interface/index.php?tip=bluetooth","Bluetooth-интерфейс");
submenus[5][2]=new Array("/other/index.php?tip=gril","Гриль");
submenus[5][3]=new Array("/crossover/index.php","Фильтры акустические");
submenus[5][4]=new Array("/tvdvd/index.php?tip=DVD","DVD в авто");
submenus[5][5]=new Array("/other/index.php?tip=fm-modulator","FM-модуляторы");
submenus[5][6]=new Array("/interface/index.php?tip=ipod","Интерфейсы для iPod");
submenus[5][7]=new Array("/ramka/index.php","Переходные рамки");
submenus[5][8]=new Array("/tvdvd/index.php?tip=camera","Камеры");
submenus[5][9]=new Array("/other/index.php?tip=xenon","Ксенон");
submenus[5][10]=new Array("/parkmaster/index.php","Парк-мастеры");
submenus[5][11]=new Array("/other/index.php?tip=box","Корпуса для динамиков");
submenus[5][12]=new Array("/navigation/index.php","Навигаторы");
submenus[5][13]=new Array("/other/index.php?tip=iso","Переходники на ISO");
submenus[5][14]=new Array("/interface/index.php?tip=du","Поддержка штатного ДУ");
submenus[5][15]=new Array("/other/index.php?tip=polka","Полки и подиумы");
submenus[5][16]=new Array("/other/index.php?tip=provoda","Провода для усилителей");
submenus[5][17]=new Array("/other/index.php?tip=remote","Пульты Д/У");
submenus[5][18]=new Array("/capasitor/index.php","Конденсаторы");
submenus[5][19]=new Array("/tvdvd/index.php?tip=tv-tuner","ТВ-тюнеры в авто");
submenus[5][20]=new Array("/tvdvd/index.php?tip=tv","TV в авто");
submenus[5][21]=new Array("/tvdvd/index.php?tip=overhead","Потолочный монитор");
submenus[5][22]=new Array("/tvdvd/index.php?tip=monitor","Монитор");
submenus[5][23]=new Array("/shumka/index.php","Шумоизоляция");
submenus[5][24]=new Array("/interface/index.php?tip=usb","USB-интерфейс");

submenus[6][0]=new Array("/radar/index.php?firma=Beltronics","Beltronics");
submenus[6][1]=new Array("/radar/index.php?firma=Cobra","Cobra");
submenus[6][2]=new Array("/radar/index.php?firma=Crunch","Crunch");
submenus[6][3]=new Array("/radar/index.php?firma=Escort","Escort");
submenus[6][4]=new Array("/radar/index.php?firma=JARON","JARON");
submenus[6][5]=new Array("/radar/index.php?firma=Sho-Me","Sho-Me");
submenus[6][6]=new Array("/radar/index.php?firma=Star","Star");
submenus[6][7]=new Array("/radar/index.php?firma=Stinger","Stinger");
submenus[6][8]=new Array("/radar/index.php?firma=Whistler","Whistler");

	var timeToHide;

	function getBounds(element)
	{
		var left = element.offsetLeft;
		var top = element.offsetTop;
		for (var parent = element.offsetParent; parent; parent = parent.offsetParent)
		{
			left += parent.offsetLeft;
			top += parent.offsetTop;
		}
		return {left: left, top: top, width: element.offsetWidth, height: element.offsetHeight};
	}

	function setHideTimer(t)
	{
		timeToHide=t;
	}

	function showSubmenu(myelement, menuid)
	{


		var bounds = getBounds(myelement);
		var x = bounds.left;
		var y = bounds.top;
		var xsize = bounds.width;
		var ysize = bounds.height;

		var submenu = document.getElementById('submenu');

		submenu.style.left=x+160;
		submenu.style.top=y-18;
		submenu.style.visibility='visible';
		submenu.style.display='block';

		var submenu_content = document.getElementById('submenu_content');

		submenu_content.innerHTML=' ';

		var i;

		for(i=0;i<100;i++)
		{
			if(!(submenus[menuid-1][i]))break;
			submenu_content.innerHTML = submenu_content.innerHTML + "<div class='submenu_item' onmouseover=\"this.className='submenu_item_over'\" onmouseout=\"this.className='submenu_item'\" onclick=\"window.location.href='"+submenus[menuid-1][i][0]+"'\">"+submenus[menuid-1][i][1] + "</div>";
		}

		setHideTimer(7);
	}

	setInterval("hideSubmenu()",700);

	function hideSubmenu()
	{
		timeToHide=timeToHide-1;
		if(timeToHide<1)
		{
			var submenu = document.getElementById('submenu');
			submenu.style.visibility = 'hidden';
			timeToHide=0;
		}
	}


