var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10010", "AMT_20Gastroguss_20Induktionsgeschirr_20_X2_20Induktionspfannen_20_X7_20Induktionst_C3_B6pfe", "/pi10/index.html", 1, "", 1, "");
addItem("10040", "Pfannen_20Induktion_20AMT_20Gastroguss", "/pi10/pi40/index.html", 2, "", 1, "");
addItem("10041", "T_C3_B6pfe_20_X2_20Kocht_C3_B6pfe_20Induktion_20AMT_20Gastroguss", "/pi10/pi41/index.html", 2, "", 1, "");
addItem("10052", "AMT_20Gastroguss_20Br_C3_A4ter_20Induktion", "/pi10/pi52/index.html", 2, "", 1, "");
addItem("1007", "AMT_20Gastroguss_20Kocht_C3_B6pfe_20_X7_20Kasserollen", "/pi7/index.html", 1, "", 1, "");
addItem("10034", "AMT_20Gastroguss_20Topf_20Sets", "/pi7/pi34/index.html", 2, "", 1, "");
addItem("1003", "AMT_20Gastroguss_20Pfannen_20_X4_20Bratpfannen", "/pi3/index.html", 1, "", 1, "");
addItem("10047", "AMT_20Pfannen_20flach_20_X7_20rund", "/pi3/pi47/index.html", 2, "", 1, "");
addItem("10050", "AMT_20Bratpfannen_20rund_20_X7_20hoch", "/pi3/pi50/index.html", 2, "", 1, "");
addItem("10048", "Eckpfannen_20flach_20von_20AMT", "/pi3/pi48/index.html", 2, "", 1, "");
addItem("10049", "Eckige_20Pfannen_20hoch_20von_20AMT", "/pi3/pi49/index.html", 2, "", 1, "");
addItem("10051", "Pfannen_20ovale_20Form", "/pi3/pi51/index.html", 2, "", 1, "");
addItem("10032", "Pfannen_20Sets", "/pi3/pi32/index.html", 2, "", 1, "");
addItem("10028", "Eckpfannen_20_X4_20Steakpfannen", "/pi28/index.html", 1, "", 1, "");
addItem("1004", "AMT_20Gastroguss_20Schmorpfannen", "/pi4/index.html", 1, "", 1, "");
addItem("1005", "AMT_20Gastroguss_20Schmort_C3_B6pfe", "/pi5/index.html", 1, "", 1, "");
addItem("1006", "AMT_20Gastroguss_20Bratent_C3_B6pfe", "/pi6/index.html", 1, "", 1, "");
addItem("1009", "Asia_20Wok_20_X4_20Fischpfanne_20_X4_20Lyoner_20Pfanne_20u_X3_20Co_X3", "/pi9/index.html", 1, "", 1, "");
addItem("1008", "Br_C3_A4ter_20_X7_20G_C3_A4nsebr_C3_A4ter_20_X7_20Bratenbleche", "/pi8/index.html", 1, "", 1, "");
addItem("10029", "AMT_20Gastroguss_20Ovale_20Pfannen", "/pi29/index.html", 1, "", 1, "");
addItem("10011", "AMT_20Gastroguss_20Glasdeckel", "/pi11/index.html", 1, "", 1, "");
addItem("10012", "AMT_20Gastroguss_20Kochzubeh_C3_B6r_20_X7_20K_C3_BCchenhelfer", "/pi12/index.html", 1, "", 1, "");
addItem("10019", "AMT_20Gastroguss_20Gro_C3_9Fraumpfannen_20_X4_20Gastronomiepfannen_20_X4_20Gastronomie_20Br_C3_A4ter", "/pi19/index.html", 1, "", 1, "");
addItem("10013", "Kyocera_20Keramikmesser", "/pi13/index.html", 1, "", 1, "");
addItem("10054", "Kyocera_20Keramikmesser_20Kyotop_20Sandgarden", "/pi53/index.html", 2, "", 1, "");
addItem("10030", "Keramikmesser_20White_20_X7_20Color_20Line", "/pi13/pi30/index.html", 2, "", 1, "");
addItem("10031", "Keramikmesser_20Black_20Line", "/pi13/pi31/index.html", 2, "", 1, "");
addItem("10053", "Kyocera_20Keramik_20Messer_20Kyotop_20Sandgarden", "/pi53/index.html", 1, "", 1, "");
addItem("10046", "G_C3_9CDE_20K_C3_BCchenmesser_20Kappa", "/pi46/index.html", 1, "", 1, "");
addItem("10055", "G_C3_BCde_20Kochmesser_20Serie_20Franz_20G_C3_BCde", "/pi55/index.html", 1, "", 1, "");
addItem("10056", "G_C3_BCde_20Kochmesser_20Alpha", "/pi56/index.html", 1, "", 1, "");
addItem("10057", "G_C3_BCde_20Tafelbesteck_20Alpha", "/pi57/index.html", 1, "", 1, "");
addItem("10058", "Japanische_20u_X3_20Chinesische_20Messer_20G_C3_BCde_20Alpha", "/pi58/index.html", 1, "", 1, "");
addItem("10024", "CS_20Solingen_20_X2_20Essen_20_X7_20Kochen", "/pi24/index.html", 1, "", 1, "");
addItem("10026", "Bestecksets_20_X7_20K_C3_BCchenmesser", "/pi24/pi26/index.html", 2, "", 1, "");
addItem("10027", "K_C3_BCchenhelfer,_20Kochzubeh_C3_B6r_20_X7_20Kochutensilien", "/pi24/pi27/pi27.html", 2, "", 1, "");
addItem("10014", "T_C3_B6pfe_20Sets_20_X7_20Pfannen_20SSW", "/pi14/index.html", 1, "", 1, "");
addItem("10016", "Nano_20Versiegelungen_20Heim", "/pi16/index.html", 1, "", 1, "");
addItem("10037", "Bodenversiegelungen_20_X7_20Bodenreiniger", "/pi16/pi37/index.html", 2, "", 1, "");
addItem("10038", "Glas_X2Versiegelungen_20_X2_20Glas_X2Reiniger", "/pi16/pi38/index.html", 2, "", 1, "");
addItem("10039", "Kunststoff_20Versiegelungen_20_X2_20Kunststoff_20Reiniger", "/pi16/pi39/index.html", 2, "", 1, "");
addItem("10015", "Nano_20Reiniger_20Heim", "/pi15/index.html", 1, "", 1, "");
addItem("10018", "Nano_20Auto_X2Versiegelungen", "/pi18/index.html", 1, "", 1, "");
addItem("10017", "Nano_20Auto_X2Reiniger", "/pi17/index.html", 1, "", 1, "");
addItem("10033", "Nano_20Zubeh_C3_B6r_20Percenta", "/pi33/index.html", 1, "", 1, "");
addItem("10035", "Kunst_X2_20u_X3_20Naturstein_20Reinigung_20_X4_20Impr_C3_A4gnierung_20_X4_20Versiegelung", "/pi35/index.html", 1, "", 1, "");
addItem("10020", "Haushaltswaren", "/pi20/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;
		
	};
};