var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100100", "Offer_20of_20the_20Month", "/offer-of-the-month/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10092", "New_20Items", "/new-items/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100118", "Sets_20_X7_20Starter_X2Kits", "/sets-and-starter-kits/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("1005", "Irish_20Dance_20Shoes:", "/irish-dance-shoes/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10013", "Dance_20Pumps_20_X7_20Boys_20Reel", "/irish-dance-shoes/irish-soft-shoes/index.html", 2, "bullet-link.gif", 1, "");
addItem("10093", "Heavy_20Shoes_20_X7_20Jig_20Shoes", "/irish-dance-shoes/irish-hard-shoes/index.html", 2, "bullet-link.gif", 1, "");
addItem("10044", "Set_20Dance_20_X7_20Line_20Dance_20Shoes", "/irish-dance-shoes/set-dance-shoes/index.html", 2, "bullet-link.gif", 1, "");
addItem("100124", "Scottish_20Dance_20Shoes", "/http://www.hullachan.com", 1, "bullet_warengruppen_1stlevel.gif", 1, "_blank");
addItem("10055", "Sneakers_20_X7_20Dance_20Trainer", "/sneakers-dance-trainer/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100117", "Accessories:", "/accessories/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10095", "Buckles_20_X7_20Shoe_20Accessories", "/accessories/hard-shoe-buckles/index.html", 2, "bullet-link.gif", 1, "");
addItem("10036", "Socks,_20Tights_20_X7_20Legwarmers", "/accessories/legwarmers-tights-socks/index.html", 2, "bullet-link.gif", 1, "");
addItem("10059", "Cases,_20Bags_20_X7_20Covers", "/accessories/cases-bags-covers/index.html", 2, "bullet-link.gif", 1, "");
addItem("10040", "Dance_20Wear_20_X7_20Clothing:", "/irish-dance-wear-irish-dresses/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100107", "For_20Ladies", "/irish-dance-wear-irish-dresses/4-ladies/index.html", 2, "bullet-link.gif", 1, "");
addItem("100108", "For_20Girls", "/irish-dance-wear-irish-dresses/4-girls/index.html", 2, "bullet-link.gif", 1, "");
addItem("10098", "For_20Guys_20_X7_20Boys", "/irish-dance-wear-irish-dresses/guys/index.html", 2, "bullet-link.gif", 1, "");
addItem("100123", "For_20Future_20Irish_20Dancers", "/irish-dance-wear-irish-dresses/for-future-irish-dancers/index.html", 2, "bullet-link.gif", 1, "");
addItem("10028", "Wigs,_20Hairpieces_20_X7_20Tiaras", "/dance-wigs/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10067", "Cushioning_20_X7_20Footcare", "/protection-shoecare/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10097", "Irish_20Gift_20Ideas_20_X7_20Jewellery:", "/irish-gifts/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100116", "Irish_20Gifts", "/irish-gifts/irish-gifts/index.html", 2, "bullet-link.gif", 1, "");
addItem("10076", "Irish_20_X7_20Celtic_20Jewellery", "/irish-gifts/irish-celtic-jewellery/index.html", 2, "bullet-link.gif", 1, "");
addItem("100112", "Irish_20Fragrances_20_X7_20Soaps", "/irish-gifts/irish-fragrances-soaps/index.html", 2, "bullet-link.gif", 1, "");
addItem("100109", "For_20Irish_X2Dancer_X2Babies", "/irish-gifts/4-babies/index.html", 2, "bullet-link.gif", 1, "");
addItem("10023", "Gift_20Certificates", "/irish-gifts/gift-certificates/index.html", 2, "bullet-link.gif", 1, "");
addItem("10031", "CDs,_20DVDs_20_X7_20Books:", "/cd-dancing-practicing/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10096", "Dance_20Music_20CDs", "/cd-dancing-practicing/cds/index.html", 2, "bullet-link.gif", 1, "");
addItem("10010", "Instructional_20DVDs", "/cd-dancing-practicing/irish-dvd/index.html", 2, "bullet-link.gif", 1, "");
addItem("10039", "Irish_20Music_20_X7_20Irish_20Dance_20Shows", "/cd-dancing-practicing/cd-music-shows/index.html", 2, "bullet-link.gif", 1, "");
addItem("100119", "Books_20_X7_20Guides", "/cd-dancing-practicing/books-guides/index.html", 2, "bullet-link.gif", 1, "");
addItem("100114", "Medals_20_X7_20Ribbons", "/trophies-medals/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("10071", "Dance_20Floorings", "/dance-floors/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100120", "Light_20_X7_20Sound:", "/light-sound/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100121", "CD_X2_20_X7_20MP3_X2Player", "/light-sound/cd-mp3-player/index.html", 2, "bullet-link.gif", 1, "");
addItem("100122", "Irish_20Dancing_20Costumes", "/http://www.elevationdesign.ie", 1, "bullet_warengruppen_1stlevel.gif", 1, "_blank");
addItem("10020", "Clearance_20_X7_20Bargains", "/special-offers/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100115", "2nd_X2Hand_20Shoes_20_X7_20Dresses:", "/second-hand/index.html", 1, "bullet_warengruppen_1stlevel.gif", 1, "");
addItem("100104", "2nd_X2Hand_20Irish_20Dance_20Shoes", "/second-hand/second-hand-shoes/index.html", 2, "bullet-link.gif", 1, "");
addItem("100105", "2nd_X2Hand_20Irish_20Dresses", "/second-hand/second-hand-dress/index.html", 2, "bullet-link.gif", 1, "");
addItem("10083", "Catalogues", "/catalogues/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;
		
	};
};