var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10015", "Baby_X2_20und_20Kinderpflege", "/baby-und-kinderpflege/index.html", 1, "", 1, "");
addItem("1001", "Nahrungserg_C3_A4nzung_20_X7_20S_C3_A4fte", "/nahrungsergaenzung/index.html", 1, "", 1, "");
addItem("10022", "Gewichtsmanagement", "/gewichtsmanagement/index.html", 1, "", 1, "");
addItem("1004", "Fit_20und_20Vital", "/fit-und-vital/index.html", 1, "", 1, "");
addItem("10023", "K_C3_B6rperpflege", "/koerperpflege/index.html", 1, "", 1, "");
addItem("10016", "Sonnenpflege", "/sonnenpflege/index.html", 1, "", 1, "");
addItem("10017", "Zahnpflege", "/zahnpflege/index.html", 1, "", 1, "");
addItem("10011", "Haarpflege", "/haarpflege/index.html", 1, "", 1, "");
addItem("1003", "Shampoo", "/haarpflege/shampoo/index.html", 2, "", 1, "");
addItem("1005", "Pflege", "/haarpflege/pflege/index.html", 2, "", 1, "");
addItem("1009", "Repair", "/haarpflege/repair/index.html", 2, "", 1, "");
addItem("10026", "Keratonics_20Haarpflege", "/keratonics-haarpflege/index.html", 1, "", 1, "");
addItem("10027", "Shampoo", "/keratonics-haarpflege/waschen/index.html", 2, "", 1, "");
addItem("10028", "Pflege_20_X7_20Regeneration", "/keratonics-haarpflege/pflege-repair/index.html", 2, "", 1, "");
addItem("10029", "Styling", "/keratonics-haarpflege/styling/index.html", 2, "", 1, "");
addItem("10018", "Packs", "/packs/index.html", 1, "", 1, "");
addItem("10020", "Haushalt", "/haushalt/index.html", 1, "", 1, "");
addItem("10021", "Aromatherapie", "/aromaoele/index.html", 1, "", 1, "");
addItem("10030", "Dekorative_20Kosmetik", "/dekorative-kosmetik2/index.html", 1, "", 1, "");
addItem("10031", "Feuchtigkeitsspendende_20Grundierung", "/dekorative-kosmetik2/feuchtigkeitsspendende-grundierung/index.html", 2, "", 1, "");
addItem("10034", "Abdeckstift", "/dekorative-kosmetik2/abdeckstift/index.html", 2, "", 1, "");
addItem("10033", "Make_X2Up_20Primer", "/dekorative-kosmetik2/makeup-zur-korrektur/index.html", 2, "", 1, "");
addItem("10032", "Mineralpuder", "/dekorative-kosmetik2/mineralpuder/index.html", 2, "", 1, "");
addItem("10036", "Kompaktpuder", "/dekorative-kosmetik2/kompaktpuder/index.html", 2, "", 1, "");
addItem("10037", "2_20in_201_20_X2_20Makeup_20und_20Puder_20in_20Einem", "/dekorative-kosmetik2/2-in-1-makeup-und-puder-in-einem/index.html", 2, "", 1, "");
addItem("10038", "Loser_20Puder", "/dekorative-kosmetik2/loser-puder/index.html", 2, "", 1, "");
addItem("10047", "Rouge", "/dekorative-kosmetik2/rouge2/index.html", 2, "", 1, "");
addItem("10039", "Lidschatten", "/dekorative-kosmetik2/lidschatten/index.html", 2, "", 1, "");
addItem("10042", "Eye_20Liner", "/dekorative-kosmetik2/eye-liner/index.html", 2, "", 1, "");
addItem("10040", "Mascara", "/dekorative-kosmetik2/mascara/index.html", 2, "", 1, "");
addItem("10041", "Augenbrauenstift", "/dekorative-kosmetik2/augenbrauenstift/index.html", 2, "", 1, "");
addItem("10045", "Lippenkonturenstift", "/dekorative-kosmetik2/lippenkonturenstift/index.html", 2, "", 1, "");
addItem("10043", "Lip_20Gloss", "/dekorative-kosmetik2/lip-gloss/index.html", 2, "", 1, "");
addItem("10044", "Lippenstift", "/dekorative-kosmetik2/lippenstift/index.html", 2, "", 1, "");
addItem("10049", "Umweltschutz", "/umweltschutz/index.html", 1, "", 1, "");
addItem("10050", "True_20Touch_20Skin_20Care", "/true-touch-skin-care/index.html", 1, "", 1, "");
addItem("10051", "Reinigung", "/true-touch-skin-care/reinigung/index.html", 2, "", 1, "");
addItem("10052", "Belebung", "/true-touch-skin-care/belebung/index.html", 2, "", 1, "");
addItem("10053", "spezifische_20Pflege", "/true-touch-skin-care/spezifische-pflege/index.html", 2, "", 1, "");
addItem("10054", "Feuchtigkeit", "/true-touch-skin-care/feuchtigkeit/index.html", 2, "", 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;
		
	};
};