var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("1001", "Liebespuppen", "/liebespuppen/index.html", 1, "", 1, "");
addItem("1003", "Basics", "/liebespuppen/basics/index.html", 2, "", 1, "");
addItem("1004", "Mid_X2Class", "/liebespuppen/mid-class/index.html", 2, "", 1, "");
addItem("1005", "High_20End", "/liebespuppen/high-end/index.html", 2, "", 1, "");
addItem("1006", "M_C3_A4nner", "/liebespuppen/maenner/index.html", 2, "", 1, "");
addItem("1007", "Lustmuschis", "/lustmuschis/index.html", 1, "", 1, "");
addItem("1008", "Basics", "/lustmuschis/basics/index.html", 2, "", 1, "");
addItem("1009", "Mid_20Class", "/lustmuschis/mid-class/index.html", 2, "", 1, "");
addItem("10010", "High_20End", "/lustmuschis/high-end/index.html", 2, "", 1, "");
addItem("10013", "Br_C3_BCste", "/lustmuschis/brueste/index.html", 2, "", 1, "");
addItem("10012", "M_C3_BCnder_20und_20Lippen", "/lustmuschis/muender-und-lippen/index.html", 2, "", 1, "");
addItem("10011", "M_C3_A4nner", "/lustmuschis/maenner/index.html", 2, "", 1, "");
addItem("10045", "Fleshlight_20Original", "/lustmuschis/original-fleshlight/index.html", 2, "", 1, "");
addItem("10052", "Fleshlight", "/lustmuschis/original-fleshlight/fleshlight/index.html", 3, "", 1, "");
addItem("10053", "Fleshjack", "/lustmuschis/original-fleshlight/fleshjack/index.html", 3, "", 1, "");
addItem("10049", "Rends_20Japan", "/lustmuschis/rends-japan/index.html", 2, "", 1, "");
addItem("10035", "Tenga", "/lustmuschis/tenga2/index.html", 2, "", 1, "");
addItem("10028", "Dildos_20und_20Plugs", "/dildos-und-plugs/index.html", 1, "", 1, "");
addItem("10023", "Dildos_20und_20Dongs", "/dildos-und-plugs/dildos-und-dongs/index.html", 2, "", 1, "");
addItem("10026", "Doppeldildos", "/dildos-und-plugs/doppeldildos/index.html", 2, "", 1, "");
addItem("10027", "Butt_20Plugs", "/dildos-und-plugs/butt-plugs/index.html", 2, "", 1, "");
addItem("10056", "Nexus", "/dildos-und-plugs/nexus/index.html", 2, "", 1, "");
addItem("10017", "Vibratoren", "/vibratoren/index.html", 1, "", 1, "");
addItem("10018", "Power_X2Vibs", "/vibratoren/power-vibs/index.html", 2, "", 1, "");
addItem("10038", "Standard_X2Vibs", "/vibratoren/standardvibis/index.html", 2, "", 1, "");
addItem("10036", "Vibi_X2Sets", "/vibratoren/vibi-sets-und-kits/index.html", 2, "", 1, "");
addItem("10029", "Atelier_20Wilhelm_20Latex", "/vibratoren/atelier-wilhelm-latex/index.html", 2, "", 1, "");
addItem("10050", "JimmyJane", "/vibratoren/jimmyjane/index.html", 2, "", 1, "");
addItem("10021", "Mantric", "/vibratoren/mantric-siena2/index.html", 2, "", 1, "");
addItem("10037", "Vibe_20Therapy", "/vibratoren/vibe-therapy/index.html", 2, "", 1, "");
addItem("10034", "Wanachi", "/vibratoren/wanachi/index.html", 2, "", 1, "");
addItem("10019", "We_20Vibe", "/vibratoren/we-vibe/index.html", 2, "", 1, "");
addItem("10057", "Zini", "/vibratoren/zini/index.html", 2, "", 1, "");
addItem("10016", "Pumpen", "/pumpen/index.html", 1, "", 1, "");
addItem("10015", "Umschnaller", "/umschnaller/index.html", 1, "", 1, "");
addItem("10024", "Doc_20Johnson", "/umschnaller/doc-johnson/index.html", 2, "", 1, "");
addItem("10025", "Diverse", "/umschnaller/diverse/index.html", 2, "", 1, "");
addItem("10039", "Diverse_20Toys", "/diverse-toys/index.html", 1, "", 1, "");
addItem("10043", "Fetish_20_X4_20Fesseln", "/diverse-toys/fetish/index.html", 2, "", 1, "");
addItem("10047", "Original_20Fetish_20Fantasy", "/diverse-toys/fetish/fetish-fantasy-serie/index.html", 3, "", 1, "");
addItem("10048", "Diverse", "/diverse-toys/fetish/diverse/index.html", 3, "", 1, "");
addItem("10041", "Massager_20f_C3_BCr_20Sie", "/diverse-toys/massager-fuer-sie/index.html", 2, "", 1, "");
addItem("10046", "Partnertoys", "/diverse-toys/partnertoys/index.html", 2, "", 1, "");
addItem("10054", "Penis_X2Enlarger", "/diverse-toys/penis-enlarger/index.html", 2, "", 1, "");
addItem("10040", "Penisringe", "/diverse-toys/penisringe/index.html", 2, "", 1, "");
addItem("10032", "Drogerie", "/drogerie/index.html", 1, "", 1, "");
addItem("10014", "Gleitmittel", "/drogerie/gleitmittel/index.html", 2, "", 1, "");
addItem("10031", "Kondome", "/drogerie/kondome/index.html", 2, "", 1, "");
addItem("10033", "Toy_X2Cleaner", "/drogerie/toy-cleaner/index.html", 2, "", 1, "");
addItem("10044", "Soft_X2Tampons", "/drogerie/soft-tampons/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;
		
	};
};