var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100717", "Boost_20Cooler_E2_84_A2_20_X2_20Car_C2_A0Navigator!", "/boost-cooler-navigator/index.html", 1, "", 1, "_self");
addItem("100654", "Boost_20Cooler_E2_84_A2_20_X2_20Complete_20Kits_C2_A0_C2_A0", "/boost-cooler-wassereinspritzung/index.html", 1, "", 1, "");
addItem("100659", "Boost_20Cooler_E2_84_A2_20_X2_20Gasoline_20(Turbo_X4SC)", "/boost-cooler-wassereinspritzung/boost-cooler-wassereinspritzung-benziner/index2.html", 2, "", 1, "");
addItem("100658", "Boost_20Cooler_E2_84_A2_20_X2_20Turbodiesel", "/boost-cooler-wassereinspritzung/boost-cooler-wassereinspritzung-turbodiesel/index.html", 2, "", 1, "");
addItem("100660", "Boost_20Cooler_E2_84_A2_20_X2_20Gasoline_20(n_X4a)", "/boost-cooler-wassereinspritzung/boost-cooler-benziner-sauger/index.html", 2, "", 1, "");
addItem("100657", "Boost_20Cooler_E2_84_A2_20_X2_20Equipment", "/boost-cooler-zubehoer/index.html", 1, "", 1, "");
addItem("100716", "Nozzles", "/boost-cooler-zubehoer/einspritzduesen/index.html", 2, "", 1, "");
addItem("100846", "Reservoirs", "/boost-cooler-zubehoer/fluessigkeitstanks/index.html", 2, "", 1, "");
addItem("100968", "Adapters", "/boost-cooler-zubehoer/adapter-sonstiges-zubehoer/index.html", 2, "", 1, "");
addItem("1001074", "Tubings", "/boost-cooler-zubehoer/druckleitungen/index.html", 2, "", 1, "");
addItem("1001153", "Other_20Equipment", "/boost-cooler-zubehoer/sonstiges-zubehoer/index.html", 2, "", 1, "");
addItem("1001219", "Methanol", "/boost-cooler-zubehoer/methanol/index.html", 2, "", 1, "");
addItem("100682", "Safeinjection_E2_84_A2", "/boost-cooler-safeinjection/index.html", 1, "", 1, "");
addItem("100709", "SRE_20Performance_20Clutches_C2_A0_C2_A0", "/http://www.sachsperformance.com/EU/index.htm", 1, "", 1, "_blank");
};

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;
		
	};
};