var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10042", "Neuheiten", "/pi42/index.html", 1, "", 1, "");
addItem("10082", "Styling", "/pi82/index.html", 1, "", 1, "");
addItem("10083", "Monokini", "/pi82/pi83/index.html", 2, "", 1, "");
addItem("10084", "Monokini_20weiss_20_X4_20silber", "/pi82/pi83/pi84/index.html", 3, "", 1, "");
addItem("1001", "K_C3_B6rperschmuck", "/pi1/index.html", 1, "", 1, "");
addItem("10051", "Diva", "/pi1/pi51/index.html", 2, "", 1, "");
addItem("10035", "Timeless_20Classic", "/pi1/pi35/index.html", 2, "", 1, "");
addItem("10036", "Glamorous_20Classic", "/pi1/pi36/index.html", 2, "", 1, "");
addItem("10037", "Look_20at_20Me", "/pi1/pi37/index.html", 2, "", 1, "");
addItem("10038", "Look_20at_20Me_20Right_20Now", "/pi1/pi38/index.html", 2, "", 1, "");
addItem("10039", "Ohrringe", "/pi39/index.html", 1, "", 1, "");
addItem("10040", "Be_20Seductive_20Earrings", "/pi39/pi40/index.html", 2, "", 1, "");
addItem("10041", "Be_20Seductive_20Special_20Earrings", "/pi39/pi41/index.html", 2, "", 1, "");
addItem("10055", "Be_20Seductive_20Glamorous_20Earrings", "/pi39/pi55/index.html", 2, "", 1, "");
addItem("10053", "Collier", "/pi53/index.html", 1, "", 1, "");
addItem("10058", "Pink_20Flavour", "/pi53/pi58/index.html", 2, "", 1, "");
addItem("10059", "Seduction", "/pi53/pi59/index.html", 2, "", 1, "");
addItem("10062", "Bordello_20Shoes", "/pi62/index.html", 1, "", 1, "");
addItem("10063", "Teeze", "/pi62/pi63/index.html", 2, "", 1, "");
addItem("10080", "Teeze_202", "/pi62/pi80/index.html", 2, "", 1, "");
addItem("10081", "Teeze_203", "/pi62/pi81/index.html", 2, "", 1, "");
addItem("10066", "Marylin", "/pi62/pi66/index.html", 2, "", 1, "");
addItem("10068", "Siren", "/pi62/pi68/index.html", 2, "", 1, "");
addItem("10077", "Storm", "/pi62/pi77/index.html", 2, "", 1, "");
addItem("10078", "Kitten", "/pi62/pi78/index.html", 2, "", 1, "");
addItem("10079", "Genie", "/pi62/pi79/index.html", 2, "", 1, "");
addItem("10067", "Violette", "/pi62/pi67/index.html", 2, "", 1, "");
addItem("10076", "Tempt", "/pi62/pi76/index.html", 2, "", 1, "");
addItem("10075", "Leg_20Avenue_20Shoes", "/pi75/index.html", 1, "", 1, "");
addItem("10070", "Str_C3_BCmpfe", "/pi70/index.html", 1, "", 1, "");
addItem("10071", "Netzstrumpfhosen", "/pi70/pi71/index.html", 2, "", 1, "");
addItem("10073", "Strumpfhosen", "/pi70/pi73/index.html", 2, "", 1, "");
addItem("10044", "Geschenkgutscheine", "/pi44/index.html", 1, "", 1, "");
addItem("10045", "Geschenkgutscheine", "/pi44/pi45/index.html", 2, "", 1, "");
addItem("10060", "Spezialanfertigung", "/pi60/index.html", 1, "", 1, "");
addItem("10046", "Partner", "/pi46/index.html", 1, "", 1, "");
addItem("10049", "VIP", "/pi49/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;
		
	};
};