var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100104", "Angebot_20des_20Monats", "/angebot-des-monats/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("1007", "Neuheiten", "/neuheiten/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100126", "Sets_20_X7_20Starter_X2Kits", "/komplett-sets/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10096", "Irische_20Tanzschuhe:", "/tanzschuhe/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10013", "Soft_20Shoes_20_X7_20Boys_20Reel_20Shoes", "/tanzschuhe/irish-soft-shoes/index.html", 2, "bullet-link.gif", 1, "");
addItem("1006", "Hard_20Shoes_20_X7_20irische_20Steppschuhe", "/tanzschuhe/irish-hard-shoes/index.html", 2, "bullet-link.gif", 1, "");
addItem("10043", "Set_20Dance_20_X7_20Line_20Dance_20Shoes", "/tanzschuhe/set-dance-shoes/index.html", 2, "bullet-link.gif", 1, "");
addItem("100130", "Schottische_20Tanzschuhe", "/schottische-tanzschuhe/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "_blank");
addItem("10053", "Sneakers_20_X7_20Dance_20Trainer", "/sneakers-dance-trainer/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100120", "Zubeh_C3_B6r:", "/zubehoer/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100100", "Buckles_20_X7_20Schuh_X2Accessoires", "/zubehoer/schuhschnallen-buckles/index.html", 2, "bullet-link.gif", 1, "");
addItem("10037", "Socken_20_X7_20Tanzstrumpfhosen", "/zubehoer/legwarmer-socken-strumpfhosen/index.html", 2, "bullet-link.gif", 1, "");
addItem("10015", "Koffer,_20Taschen_20_X7_20Beutel", "/zubehoer/koffer-taschen-beutel/index.html", 2, "bullet-link.gif", 1, "");
addItem("100131", "Irish_20Dance_20Kleidung:", "/irish-dance-kleidung/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100112", "Damenbekleidung", "/irish-dance-kleidung/damen-irish-dance-kleidung/index.html", 2, "bullet-link.gif", 1, "");
addItem("100111", "M_C3_A4dchenbekleidung", "/irish-dance-kleidung/maechen-irish-dance-kleidung/index.html", 2, "bullet-link.gif", 1, "");
addItem("100102", "Herren_X2_20_X7_20Jungenbekleidung", "/irish-dance-kleidung/4-guys/index.html", 2, "bullet-link.gif", 1, "");
addItem("100129", "F_C3_BCr_20den_20Irish_X2Dance_X2Nachwuchs", "/irish-dance-kleidung/babies-irish-dance-kleidung/index.html", 2, "bullet-link.gif", 1, "");
addItem("10068", "Sch_C3_BCtzen,_20Polstern_20_X7_20Pflegen", "/schutz-gesundheit/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10028", "Wigs,_20Haarteile_20_X7_20Tiaras", "/dance-wigs-tiaras/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10097", "CDs,_20DVDs_20_X7_20B_C3_BCcher:", "/cds-dvds-buecher/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10036", "CDs_20mit_20irischer_20Tanzmusik", "/cds-dvds-buecher/cd-tanzen-lernen/index.html", 2, "bullet-link.gif", 1, "");
addItem("10011", "DVD_X2Anleitungen_20_X7_20Lernvideos", "/cds-dvds-buecher/dvd-lernen-training/index.html", 2, "bullet-link.gif", 1, "");
addItem("10041", "Irish_20Bands_20_X7_20Irish_20Dance_20Shows", "/cds-dvds-buecher/irish-folk-music-cds/index.html", 2, "bullet-link.gif", 1, "");
addItem("10055", "B_C3_BCcher_20_X7_20Dance_20Guides", "/cds-dvds-buecher/buecher/index.html", 2, "bullet-link.gif", 1, "");
addItem("1005", "Geschenkideen_20_X7_20Schmuck:", "/irish-gifts/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100122", "Irish_20Gifts_20_X7_20Geschenkideen", "/irish-gifts/irish-gifts-geschenkideen/index.html", 2, "bullet-link.gif", 1, "");
addItem("10061", "Irischer_20_X7_20Keltischer_20Schmuck", "/irish-gifts/keltischer-schmuck/index.html", 2, "bullet-link.gif", 1, "");
addItem("100116", "Irische_20Seifen_20_X7_20Parfums", "/irish-gifts/irische-seifen-und-parfums/index.html", 2, "bullet-link.gif", 1, "");
addItem("100109", "F_C3_BCr_20den_20Irish_X2Dance_X2Nachwuchs", "/irish-gifts/4-babies/index.html", 2, "bullet-link.gif", 1, "");
addItem("10023", "Geschenkgutscheine", "/irish-gifts/geschenkgutscheine/index.html", 2, "bullet-link.gif", 1, "");
addItem("100119", "Medaillen_20_X7_20Medaillenb_C3_A4nder", "/trophaeen-medaillen/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10070", "Tanzb_C3_B6den_20_X7_20Tanzteppiche", "/tanzboeden-tanzteppiche/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10087", "Light_20_X7_20Sound:", "/buehnenelektronik-und-studioequipment/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10071", "CD_X2_20_X7_20MP3_X2Player", "/buehnenelektronik-und-studioequipment/cd-mp3-player/index.html", 2, "bullet-link.gif", 1, "");
addItem("1009", "Mobile_20PA_X2Systeme", "/buehnenelektronik-und-studioequipment/portable-komplettsysteme/index.html", 2, "bullet-link.gif", 1, "");
addItem("100128", "Irish_20Dance_20Kost_C3_BCme", "/irish-dance-kostueme/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "_blank");
addItem("10021", "Good_20Bye_20_X2_20das_20muss_20raus!", "/ausverkauf/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100121", "2nd_X2Hand_20Schuhe_20_X7_20Kost_C3_BCme:", "/2nd-hand/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100106", "Irish_20Dance_20Schuhe_202nd_X2Hand", "/2nd-hand/gebrauchte-jig-shoes/index.html", 2, "bullet-link.gif", 1, "");
addItem("100105", "Irish_20Dance_20Kost_C3_BCme_202nd_X2Hand", "/2nd-hand/gebrauchte-kostueme/index.html", 2, "bullet-link.gif", 1, "");
addItem("10085", "Kataloge", "/kataloge/index.html", 1, "bullet_warengruppen_1stlevel.gif", 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;
		
	};
};