var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100543", "Eagle_20Brand", "/eagle-brand2/index.html", 1, "", 1, "");
addItem("100528", "Eagle_20M7_20", "/eagle-brand2/eagle-brand/index.html", 2, "", 1, "");
addItem("100530", "2in1", "/eagle-brand2/eagle-brand/2in1/index.html", 3, "", 1, "");
addItem("100532", "Dyna_20TC88_X4Evolution", "/eagle-brand2/eagle-brand/2in1/dyna-tc88evolution/index.html", 4, "", 1, "");
addItem("100544", "Dyna_20TC96", "/eagle-brand2/eagle-brand/2in1/dyna-tc96/index.html", 4, "", 1, "");
addItem("100531", "SLO", "/eagle-brand2/eagle-brand/slo/index.html", 3, "", 1, "");
addItem("100533", "Softail_20TC96_X4TC88", "/eagle-brand2/eagle-brand/slo/softail-tc88tc96/index.html", 4, "", 1, "");
addItem("100609", "Softtail_20TC_2088", "/eagle-brand2/eagle-brand/slo/softtail-tc-88/index.html", 4, "", 1, "");
addItem("100534", "Softail_20Evo", "/eagle-brand2/eagle-brand/slo/softail-evo/index.html", 4, "", 1, "");
addItem("100535", "Dyna", "/eagle-brand2/eagle-brand/slo/dyna-tc9688evolution/index.html", 4, "", 1, "");
addItem("100536", "Sportster", "/eagle-brand2/eagle-brand/slo/sportster/index.html", 4, "", 1, "");
addItem("100537", "FLH_20Touring", "/eagle-brand2/eagle-brand/slo/roadkingeglide/index.html", 4, "", 1, "");
addItem("100669", "V_X2ROD", "/eagle-brand2/eagle-brand/slo/v-rod/index.html", 4, "", 1, "");
addItem("100670", "Night_20Rod", "/eagle-brand2/eagle-brand/slo/v-rod/night-rod/index.html", 5, "", 1, "");
addItem("100675", "V_X2ROD", "/eagle-brand2/eagle-brand/slo/v-rod/v-rod/index.html", 5, "", 1, "");
addItem("100555", "2in2", "/eagle-brand2/eagle-brand/2in2/index.html", 3, "", 1, "");
addItem("100556", "Softail_20TC96_X4TC88_X4EVO", "/eagle-brand2/eagle-brand/2in2/softail-tc96tc88/index.html", 4, "", 1, "");
addItem("100558", "Dyna_20", "/eagle-brand2/eagle-brand/2in2/dyna/index.html", 4, "", 1, "");
addItem("100563", "Sportster", "/eagle-brand2/eagle-brand/2in2/sportster2/index.html", 4, "", 1, "");
addItem("100622", "Eagle_20Sidewinder", "/eagle-brand2/eagle-sidewinder/index.html", 2, "", 1, "");
addItem("100529", "Eagle_20Sidewinder_203Z_20SLO", "/eagle-brand2/eagle-sidewinder/eagle-sidewinder-brand/index.html", 3, "", 1, "");
addItem("100538", "Softail_20TC96", "/eagle-brand2/eagle-sidewinder/eagle-sidewinder-brand/softail-tc96/index.html", 4, "", 1, "");
addItem("100539", "Softail_20TC88", "/eagle-brand2/eagle-sidewinder/eagle-sidewinder-brand/softail-tc88/index.html", 4, "", 1, "");
addItem("100540", "Softail_20Evo", "/eagle-brand2/eagle-sidewinder/eagle-sidewinder-brand/softail-evo/index.html", 4, "", 1, "");
addItem("100541", "Dyna_20TC96_X4TC99_X4Evolution", "/eagle-brand2/eagle-sidewinder/eagle-sidewinder-brand/dyna-tc96tc99evolution/index.html", 4, "", 1, "");
addItem("100542", "Sportster", "/eagle-brand2/eagle-sidewinder/eagle-sidewinder-brand/sportster/index.html", 4, "", 1, "");
addItem("100624", "Eagle_20Sidewinder_202in2", "/eagle-brand2/eagle-sidewinder/eagle-sidewinder-2in2-longshots-slash-cut/index.html", 3, "", 1, "");
addItem("100660", "Eagle_20Sidewinder_202,5Z_20SLO", "/eagle-brand2/eagle-sidewinder/eagle-sidewinder-25z-slo/index.html", 3, "", 1, "");
addItem("100661", "FLH_20Touring", "/eagle-brand2/eagle-sidewinder/flh-touring/index.html", 3, "", 1, "");
addItem("100662", "Sidewinder_203Z", "/eagle-brand2/eagle-sidewinder/flh-touring/sidewinder-3z/index.html", 4, "", 1, "");
addItem("100673", "Kr_C3_BCmmer_20komplett", "/eagle-brand2/eagle-sidewinder/flh-touring/sidewinder-3z/kruemmer-komplett/index.html", 5, "", 1, "");
addItem("100674", "D_C3_A4mpfer", "/eagle-brand2/eagle-sidewinder/flh-touring/sidewinder-3z/daempfer/index.html", 5, "", 1, "");
addItem("100663", "Sidewinder_204Z_20Big", "/eagle-brand2/eagle-sidewinder/flh-touring/sidewinder-4z/index.html", 4, "", 1, "");
addItem("100671", "Kr_C3_BCmmer_20komplett", "/eagle-brand2/eagle-sidewinder/flh-touring/sidewinder-4z/kruemmer-komplett/index.html", 5, "", 1, "");
addItem("100672", "D_C3_A4mpfer", "/eagle-brand2/eagle-sidewinder/flh-touring/sidewinder-4z/daempfer/index.html", 5, "", 1, "");
addItem("100527", "Ersatzteile", "/eagle-brand2/ersatzteile/index.html", 2, "", 1, "");
addItem("100667", "DB_20Killer", "/eagle-brand2/ersatzteile/db-killer/index.html", 3, "", 1, "");
addItem("100668", "Sporteins_C3_A4tze", "/eagle-brand2/ersatzteile/sporteinsaetze/index.html", 3, "", 1, "");
addItem("100664", "Eagle_20Monster_20oval", "/eagle-brand2/eagle-monster-oval/index.html", 2, "", 1, "");
addItem("100665", "FLH_20Touring", "/eagle-brand2/eagle-monster-oval/flh-touring/index.html", 3, "", 1, "");
addItem("100666", "Dyna", "/eagle-brand2/eagle-monster-oval/dyna/index.html", 3, "", 1, "");
addItem("100510", "B7_20Brand", "/b7-brand/index.html", 1, "", 1, "");
addItem("100519", "SLO", "/b7-brand/slo/index.html", 2, "", 1, "");
addItem("100521", "Softail_20", "/b7-brand/slo/softail-tc96/index.html", 3, "", 1, "");
addItem("100653", "Softail", "/b7-brand/slo/softail-tc96/softail/index.html", 4, "", 1, "");
addItem("100615", "VHR", "/vance-hines/index.html", 1, "", 1, "");
addItem("100616", "Big_20Radius_202in1", "/vance-hines/big-radius-2in1/index.html", 2, "", 1, "");
addItem("100619", "Softtail", "/vance-hines/big-radius-2in1/softtail/index.html", 3, "", 1, "");
addItem("100620", "Dyna", "/vance-hines/big-radius-2in1/dyna/index.html", 3, "", 1, "");
addItem("100638", "Competition_20Series", "/vance-hines/competition-series/index.html", 2, "", 1, "");
addItem("100625", "VROD", "/vance-hines/competition-series/vrod/index.html", 3, "", 1, "");
addItem("100646", "Softail", "/vance-hines/competition-series/softail/index.html", 3, "", 1, "");
addItem("100647", "Dyna", "/vance-hines/competition-series/dyna/index.html", 3, "", 1, "");
addItem("100648", "Sportster", "/vance-hines/competition-series/sportster/index.html", 3, "", 1, "");
addItem("100645", "Monster_20ovals", "/vance-hines/monster-ovals/index.html", 2, "", 1, "");
addItem("100659", "Big_20Radius_202_X22", "/vance-hines/big-radius-2-2/index.html", 2, "", 1, "");
addItem("100637", "_C3_9Cbersicht_20nach_20Modellen", "/uebersicht-nach-modellen/index.html", 1, "", 1, "");
addItem("100642", "Softail", "/uebersicht-nach-modellen/softail/index.html", 2, "", 1, "");
addItem("100626", "Softtail_20TC_2096_20ab_202007", "/uebersicht-nach-modellen/softail/softtail-tc-96/index.html", 3, "", 1, "");
addItem("100627", "Softail", "/uebersicht-nach-modellen/softail/softtail-tc-96/softail/index.html", 4, "", 1, "");
addItem("100628", "Rocker", "/uebersicht-nach-modellen/softail/softtail-tc-96/rocker/index.html", 4, "", 1, "");
addItem("100629", "Fatboy_X2_20Deuce", "/uebersicht-nach-modellen/softail/softtail-tc-96/fatboy-deuce/index.html", 4, "", 1, "");
addItem("100630", "FLSTN_20Softail_C2_AE_20Deluxe_20_X1_20Cross_20Bones_20ab_202008_20(_20FLSTSB)", "/uebersicht-nach-modellen/softail/softtail-tc-96/flstn-softail-deluxe-cross-bones-2008-flstsb/index.html", 4, "", 1, "");
addItem("100631", "Softail_20TC88_202000_X22006", "/uebersicht-nach-modellen/softail/softail-tc88-2000-2006/index.html", 3, "", 1, "");
addItem("100632", "Softtail_20EVO_20bis_201999", "/uebersicht-nach-modellen/softail/softtail-evo-bis-1999/index.html", 3, "", 1, "");
addItem("100643", "Dyna", "/uebersicht-nach-modellen/dyna2/index.html", 2, "", 1, "");
addItem("100639", "Dyna_20TC_2096_20ab_202007", "/uebersicht-nach-modellen/dyna2/dyna-tc-96-ab-2007/index.html", 3, "", 1, "");
addItem("100640", "Dyna_20TC88_202000_20_X2_202006", "/uebersicht-nach-modellen/dyna2/dyna-tc88-2000-2006/index.html", 3, "", 1, "");
addItem("100641", "Dyna_20vor_202000", "/uebersicht-nach-modellen/dyna2/dyna/index.html", 3, "", 1, "");
addItem("100633", "Sportster", "/uebersicht-nach-modellen/sportster/index.html", 2, "", 1, "");
addItem("100634", "VROD", "/uebersicht-nach-modellen/vrod/index.html", 2, "", 1, "");
addItem("100635", "FLH_20_X2_20Road_20King_X2_20Eglide", "/uebersicht-nach-modellen/flh-road-king-eglide/index.html", 2, "", 1, "");
addItem("100658", "FI_202000_20Fuelmanagement", "/http://www.speedpro.de/store/zubehoer/fi2000/index.html", 1, "", 1, "");
};

var m_sSelectedOptionValue = '0';
function printCatnavDropdown(){
	document.write('<select id="catdropdown" style="width:100%"></select>');
	SMShop.base.addMember("CatnavDropdown");
};

function CatnavDropdown_windowOnLoad(args){
	var oItems = g_oPopupMenu.selectItems(0, true);
	var selCatDropDown = $('catdropdown'),oOption = null, sDepth = '';

	if(m_sSelectedOptionValue == '0'){
		oOption = selCatDropDown[selCatDropDown.length] = new Option();
		with(oOption){
			selected='selected';
			text='<Warengruppen>';
			value = '0';
		}
	};

	oItems.each(function(oItem) {
		sDepth = ''; for(var i=1;i<parseInt(oItem.depth);i++) sDepth += '-';
		oOption = selCatDropDown[selCatDropDown.length] = new Option();
		with(oOption){
			if(oItem.id == m_sSelectedOptionValue) selected = 'selected';
			text = sDepth + ' ' + oItem.caption;
			value = oItem.id;
		}}
	);

	selCatDropDown.onchange = function(){
		var oItem = g_oPopupMenu.selectSingleItem(this.value);
		
		location.href = SMOMAbsoluteRootURL + oItem.url;
		
	};
};