var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10068", "NEU_20Sm_C3_A5folk_20Herbst_202010", "/pi68/index.html", 1, "", 1, "");
addItem("10079", "holubolu_20DAS_20PERS_C3_96NLICHE_20SHIRT!", "/pi79/index.html", 1, "", 1, "");
addItem("10070", "BODYS", "/pi70/index.html", 1, "", 1, "");
addItem("10071", "BODYSUITS_20und_20SPIELER", "/pi71/index.html", 1, "", 1, "");
addItem("10073", "STRAMPLER_20_X4_20HOSEN_20bis_20Gr_X386", "/pi73/index.html", 1, "", 1, "");
addItem("10014", "BABY_20Decken_20_X4_20Schlafs_C3_A4cke", "/pi14/index.html", 1, "", 1, "");
addItem("10075", "BABY_20Handt_C3_BCcher", "/pi75/index.html", 1, "", 1, "");
addItem("10077", "BABY_20M_C3_BCtzen", "/pi77/index.html", 1, "", 1, "");
addItem("10069", "BABY_20Outdoor", "/pi69/index.html", 1, "", 1, "");
addItem("10078", "BABY_20Tops", "/pi78/index.html", 1, "", 1, "");
addItem("10076", "RAINCOVER_20f_C3_BCr_20Kinderwagen", "/pi76/index.html", 1, "", 1, "");
addItem("10010", "GUMMISTIEFEL_20Lauflernschuhe", "/pi10/index.html", 1, "", 1, "");
addItem("10017", "OUTDOOR_20und_20REGEN", "/pi17/index.html", 1, "", 1, "");
addItem("10011", "Accessories", "/pi11/index.html", 1, "", 1, "");
addItem("10052", "F_C3_9CR_20MAMA", "/pi52/index.html", 1, "", 1, "");
addItem("10029", "1_X22_20Jahre_20_20_20_20_20_2086_2092", "/pi29/index.html", 1, "", 1, "");
addItem("10030", "3_X24_20Jahre_20_20_20_20_20_2098_20104", "/pi30/index.html", 1, "", 1, "");
addItem("10031", "5_X26_20Jahre_20_20_20_20_20110_20116", "/pi31/index.html", 1, "", 1, "");
addItem("10032", "7_X28_20Jahre_20_20_20_20_20122_20128", "/pi32/index.html", 1, "", 1, "");
addItem("10050", "9_X210_20Jahre_20_20_20134_20140", "/pi50/index.html", 1, "", 1, "");
addItem("10051", "11_X212_20Jahre_20146_20152", "/pi51/index.html", 1, "", 1, "");
addItem("10072", "das_20FLENSBURG_20Shirt", "/pi72/index.html", 1, "", 1, "");
addItem("1007", "Bettw_C3_A4sche_20und_20Schlafs_C3_A4cke", "/pi7/index.html", 1, "", 1, "");
addItem("10066", "Bademode_20mit_20UV_X2Schutz", "/pi66/index.html", 1, "", 1, "");
addItem("10060", "_25_20REDUZIERT_20bis_2010,00_20_E2_82_AC", "/pi60/index.html", 1, "", 1, "");
addItem("10064", "_25_20REDUZIERT_20bis_2015,00_20_E2_82_AC", "/pi64/index.html", 1, "", 1, "");
addItem("10061", "_25_20REDUZIERT_20bis_2020,00_20_E2_82_AC", "/pi61/index.html", 1, "", 1, "");
addItem("10062", "_25_20REDUZIERT_20bis_2030,00_20_E2_82_AC", "/pi62/index.html", 1, "", 1, "");
addItem("10063", "_25_20REDUZIERT_20ab_2031,00_20_E2_82_AC", "/pi63/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;
		
	};
};