var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("1002", "Speisekartenmappen", "/pi2/index.html", 1, "", 1, "");
addItem("1007", "Motivkarten", "/pi2/pi7/index.html", 2, "", 1, "");
addItem("10010", "Kunstleder", "/pi2/pi10/index.html", 2, "", 1, "");
addItem("10012", "Echt_20Leder", "/pi2/pi12/index.html", 2, "", 1, "");
addItem("10013", "Klemm_X2Mappen", "/pi2/pi13/index.html", 2, "", 1, "");
addItem("1009", "Systemkarten", "/pi2/pi9/index.html", 2, "", 1, "");
addItem("10014", "Moderne_20Hartfolienkarten", "/pi2/pi14/index.html", 2, "", 1, "");
addItem("10015", "Amerikanische_20Karten", "/pi2/pi15/index.html", 2, "", 1, "");
addItem("10016", "Kunststoff_X2Karten", "/pi2/pi16/index.html", 2, "", 1, "");
addItem("10018", "Ausgefallene_20Karten", "/pi2/pi18/index.html", 2, "", 1, "");
addItem("1008", "Zubeh_C3_B6r", "/pi2/pi8/index.html", 2, "", 1, "");
addItem("10038", "Logopr_C3_A4gung", "/pi2/pi38/index.html", 2, "", 1, "");
addItem("1001", "Speisekartenpapier", "/pi1/index.html", 1, "", 1, "");
addItem("1003", "Verl_C3_A4ufe_20und_20Strukturen", "/pi1/pi3/index.html", 2, "", 1, "");
addItem("1005", "Motivpapier", "/pi1/pi5/index.html", 2, "", 1, "");
addItem("1006", "Wintermotive", "/pi1/pi5/pi6/index.html", 3, "", 1, "");
addItem("10035", "Weinmotive", "/pi1/pi5/pi35/index.html", 3, "", 1, "");
addItem("1004", "Internationale_20Motive", "/pi1/pi4/index.html", 2, "", 1, "");
addItem("10022", "Andere_20Gr_C3_B6_C3_9Fen", "/pi1/pi22/index.html", 2, "", 1, "");
addItem("10026", "Einfarbiges_20Papier", "/pi1/pi26/index.html", 2, "", 1, "");
addItem("10036", "Zimmermappen", "/pi36/index.html", 1, "", 1, "");
addItem("10054", "Servietten_20_X7_20mehr", "/pi54/index.html", 1, "", 1, "");
addItem("10055", "_X3_X3_X3_20mit_20Ihrem_20Werbedruck", "/pi54/pi55/index.html", 2, "", 1, "");
addItem("10062", "Kleinpackungen", "/pi54/pi62/index.html", 2, "", 1, "");
addItem("100114", "Servietten", "/pi54/pi62/pi114/index.html", 3, "", 1, "");
addItem("100113", "Untersetzer_20Coaster", "/pi54/pi62/pi113/index.html", 3, "", 1, "");
addItem("10061", "Tissue_20Servietten", "/pi54/pi61/index.html", 2, "", 1, "");
addItem("10087", "Tissue_20de_20Luxe", "/pi54/pi87/index.html", 2, "", 1, "");
addItem("10060", "Airlaid_20Servietten", "/pi54/pi60/index.html", 2, "", 1, "");
addItem("10063", "Besteck_20Servietten", "/pi54/pi63/index.html", 2, "", 1, "");
addItem("10071", "Tischl_C3_A4ufer", "/pi54/pi71/index.html", 2, "", 1, "");
addItem("10066", "Tischsets", "/pi54/pi66/index.html", 2, "", 1, "");
addItem("10064", "Airlaid_20Tischdecken", "/pi54/pi64/index.html", 2, "", 1, "");
addItem("10065", "Tischtuch_20Rollenware", "/pi54/pi65/index.html", 2, "", 1, "");
addItem("10048", "Untersetzer_20Coaster", "/pi54/pi48/index.html", 2, "", 1, "");
addItem("10078", "Paper_20Caps", "/pi54/pi78/index.html", 2, "", 1, "");
addItem("10025", "Rund_20um_20den_20Wein", "/pi25/index.html", 1, "", 1, "");
addItem("10032", "Weinkarten", "/pi25/pi32/index.html", 2, "", 1, "");
addItem("10033", "Motivpapier_20Wein", "/pi25/pi33/index.html", 2, "", 1, "");
addItem("10049", "Untersetzer_20_X7_20Caps", "/pi25/pi49/index.html", 2, "", 1, "");
addItem("10080", "Hotelzimmer", "/pi80/index.html", 1, "", 1, "");
addItem("10082", "Seife_20_X7_20Shampoo", "/pi80/pi82/index.html", 2, "", 1, "");
addItem("10084", "F_C3_BCr_20die_20Dame", "/pi80/pi84/index.html", 2, "", 1, "");
addItem("10085", "Zahnpflege", "/pi80/pi85/index.html", 2, "", 1, "");
addItem("10083", "N_C3_BCtzliches", "/pi80/pi83/index.html", 2, "", 1, "");
addItem("10086", "Nach_20Themen_20", "/pi86/index.html", 1, "", 1, "");
addItem("10074", "Italienisches_20Flair", "/pi86/pi74/index.html", 2, "", 1, "");
addItem("10088", "Herbst_202010", "/pi86/pi88/index.html", 2, "", 1, "");
addItem("10089", "Marseille", "/pi86/pi88/pi89/index.html", 3, "", 1, "");
addItem("10090", "Lyon", "/pi86/pi88/pi90/index.html", 3, "", 1, "");
addItem("10091", "Henry", "/pi86/pi88/pi91/index.html", 3, "", 1, "");
addItem("10092", "La_20Cara", "/pi86/pi88/pi92/index.html", 3, "", 1, "");
addItem("10093", "Maren", "/pi86/pi88/pi93/index.html", 3, "", 1, "");
addItem("10094", "Pumpkin", "/pi86/pi88/pi94/index.html", 3, "", 1, "");
addItem("10095", "John", "/pi86/pi88/pi95/index.html", 3, "", 1, "");
addItem("10096", "William", "/pi86/pi88/pi96/index.html", 3, "", 1, "");
addItem("10097", "Bambus", "/pi86/pi88/pi97/index.html", 3, "", 1, "");
addItem("10098", "Leona", "/pi86/pi88/pi98/index.html", 3, "", 1, "");
addItem("10099", "Ben", "/pi86/pi88/pi99/index.html", 3, "", 1, "");
addItem("100100", "Randy", "/pi86/pi88/pi100/index.html", 3, "", 1, "");
addItem("100101", "Lampion", "/pi86/pi88/pi101/index.html", 3, "", 1, "");
addItem("100102", "Amadeus", "/pi86/pi88/pi102/index.html", 3, "", 1, "");
addItem("100103", "Schiller", "/pi86/pi88/pi103/index.html", 3, "", 1, "");
addItem("100104", "Louise", "/pi86/pi88/pi104/index.html", 3, "", 1, "");
addItem("100105", "Kastanie", "/pi86/pi88/pi105/index.html", 3, "", 1, "");
addItem("100106", "Antik", "/pi86/pi88/pi106/index.html", 3, "", 1, "");
addItem("100107", "Vino", "/pi86/pi88/pi107/index.html", 3, "", 1, "");
addItem("100108", "Sonja", "/pi86/pi88/pi108/index.html", 3, "", 1, "");
addItem("100109", "Romana", "/pi86/pi88/pi109/index.html", 3, "", 1, "");
addItem("100110", "Toscana", "/pi86/pi88/pi110/index.html", 3, "", 1, "");
addItem("100111", "Mohn", "/pi86/pi88/pi111/index.html", 3, "", 1, "");
addItem("100115", "Weihnachten", "/pi86/pi115/index.html", 2, "", 1, "");
addItem("100116", "Candle", "/pi86/pi115/pi116/index.html", 3, "", 1, "");
addItem("100117", "Sammy", "/pi86/pi115/pi117/index.html", 3, "", 1, "");
addItem("100118", "Natale", "/pi86/pi115/pi118/index.html", 3, "", 1, "");
addItem("100126", "Silence", "/pi86/pi115/pi126/index.html", 3, "", 1, "");
addItem("100119", "Melissa", "/pi86/pi115/pi119/index.html", 3, "", 1, "");
addItem("100127", "Tiffany", "/pi86/pi115/pi127/index.html", 3, "", 1, "");
addItem("100120", "Chantal", "/pi86/pi115/pi120/index.html", 3, "", 1, "");
addItem("100128", "Gloria", "/pi86/pi115/pi128/index.html", 3, "", 1, "");
addItem("100129", "Engel", "/pi86/pi115/pi129/index.html", 3, "", 1, "");
addItem("100130", "Nostalgie", "/pi86/pi115/pi130/index.html", 3, "", 1, "");
addItem("100121", "Harmony", "/pi86/pi115/pi121/index.html", 3, "", 1, "");
addItem("100131", "Chrismas_20Dreams", "/pi86/pi115/pi131/index.html", 3, "", 1, "");
addItem("100132", "Xmas_20Twirl", "/pi86/pi115/pi132/index.html", 3, "", 1, "");
addItem("100122", "My_20Melody", "/pi86/pi115/pi122/index.html", 3, "", 1, "");
addItem("100133", "Magic_20Dream", "/pi86/pi115/pi133/index.html", 3, "", 1, "");
addItem("100123", "Gold_20Silber", "/pi86/pi115/pi123/index.html", 3, "", 1, "");
addItem("100134", "Pomp", "/pi86/pi115/pi134/index.html", 3, "", 1, "");
addItem("100124", "Glitter", "/pi86/pi115/pi124/index.html", 3, "", 1, "");
addItem("100135", "Randy", "/pi86/pi115/pi135/index.html", 3, "", 1, "");
addItem("100125", "Motive", "/pi86/pi115/pi125/index.html", 3, "", 1, "");
addItem("10077", "Fu_C3_9Fball", "/pi86/pi77/index.html", 2, "", 1, "");
addItem("10073", "Glas_20_E2_80_A2_20Porzellan", "/pi73/index.html", 1, "", 1, "");
addItem("10075", "Doppelwandiges", "/pi73/pi75/index.html", 2, "", 1, "");
addItem("10076", "Serie_20Klaro", "/pi73/pi76/index.html", 2, "", 1, "");
addItem("10079", "Exklusives_20aus_20Glas", "/pi73/pi79/index.html", 2, "", 1, "");
addItem("10057", "Service_20_E2_80_A2_20_20Bar", "/pi57/index.html", 1, "", 1, "");
addItem("10058", "Bar_X2_20Getr_C3_A4nkekarten", "/pi57/pi58/index.html", 2, "", 1, "");
addItem("10070", "Kellner_20u_X3_20Service", "/pi57/pi70/index.html", 2, "", 1, "");
addItem("10034", "Rechnungsmappen", "/pi57/pi34/index.html", 2, "", 1, "");
addItem("10020", "Geschenk_X2Gutscheine", "/pi57/pi20/index.html", 2, "", 1, "");
addItem("10059", "Cocktaildecor", "/pi57/pi59/index.html", 2, "", 1, "");
addItem("10067", "Eis_20und_20Dessert", "/pi67/index.html", 1, "", 1, "");
addItem("10027", "Eis_X2_20und_20Dessertkarten", "/pi67/pi27/index.html", 2, "", 1, "");
addItem("10072", "Becher_20und_20Schalen", "/pi67/pi72/index.html", 2, "", 1, "");
addItem("10068", "Eisdecor", "/pi67/pi68/index.html", 2, "", 1, "");
addItem("10069", "Trinkhalme", "/pi67/pi69/index.html", 2, "", 1, "");
addItem("10056", "Aus_20der_20Druckerei", "/pi56/index.html", 1, "", 1, "");
addItem("10046", "Hotelprospekte", "/pi46/index.html", 1, "", 1, "");
addItem("10047", "Drucknebenarbeiten", "/pi46/pi47/index.html", 2, "", 1, "");
addItem("10053", "Gastro_20Ambiente", "/pi53/index.html", 1, "", 1, "");
addItem("10039", "Tischleuchter", "/pi53/pi39/index.html", 2, "", 1, "");
addItem("100112", "Kerzenleuchter", "/pi53/pi39/pi112/index.html", 3, "", 1, "");
addItem("10041", "Leuchten", "/pi53/pi39/pi41/index.html", 3, "", 1, "");
addItem("10043", "Zubeh_C3_B6r", "/pi53/pi39/pi43/index.html", 3, "", 1, "");
addItem("10040", "Austauschflaschen", "/pi53/pi39/pi43/pi40/index.html", 4, "", 1, "");
addItem("10045", "Ersatzgl_C3_A4ser", "/pi53/pi39/pi43/pi45/index.html", 4, "", 1, "");
addItem("10044", "Zierh_C3_BCllen", "/pi53/pi39/pi43/pi44/index.html", 4, "", 1, "");
addItem("10051", "Tischw_C3_A4sche", "/pi53/pi51/index.html", 2, "", 1, "");
addItem("10052", "Capris", "/pi53/pi51/pi52/index.html", 3, "", 1, "");
addItem("10021", "Tischaufsteller", "/pi21/index.html", 1, "", 1, "");
addItem("10023", "Tischst_C3_A4nder", "/pi21/pi23/index.html", 2, "", 1, "");
addItem("10024", "Tischkarten", "/pi21/pi24/index.html", 2, "", 1, "");
addItem("10028", "Kleine_20G_C3_A4ste", "/pi28/index.html", 1, "", 1, "");
addItem("10031", "Kinder_X2Artikel", "/pi28/pi31/index.html", 2, "", 1, "");
addItem("10029", "Kinderbeigaben", "/pi28/pi29/index.html", 2, "", 1, "");
addItem("10037", "Sonderposten", "/pi37/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;
		
	};
};