var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10015", "Neues", "/neues/index.html", 1, "", 1, "");
addItem("10020", "Gummipuppen", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/cyberskin-jelly-genitalien/index.html", 1, "", 1, "");
addItem("1007", "bis_2050_20Euro", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/billig-reduziert-guenstige-gummipuppen/index.html", 2, "", 1, "");
addItem("1009", "bis_20100_20Euro", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/guenstige-billige-sexpuppen-discount/index.html", 2, "", 1, "");
addItem("10016", "bis_20200_20Euro", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/guenstige-gummipuppen-luxus-latex/index.html", 2, "", 1, "");
addItem("10029", "_C3_BCber_20200_20Euro", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/luxus-liebespuppen-loveclone-latexsexpuppen/index.html", 2, "", 1, "");
addItem("10078", "SUPER_20REALISTIC", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/realdoll-mechadoll-vollkoerper-loveclones/index.html", 2, "", 1, "");
addItem("10070", "Big_20Girls", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/cyberskin-jelly-genitalien/fat-busen-gummipuppen/index.html", 2, "", 1, "");
addItem("10076", "Pornostar_20Dolls", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/liebespuppen-vip-pornostar/index.html", 2, "", 1, "");
addItem("10068", "Exotische_20Puppen", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/schwarze-afrikanische-asiatische-exotische-sexpuppen/index.html", 2, "", 1, "");
addItem("10073", "Knieend_X4Sitzend", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/liebespuppen-knieende-sitzsende/index.html", 2, "", 1, "");
addItem("10075", "M_C3_A4nnliche_20Gummipuppen", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/maledolls-maennliche-sexpuppen/index.html", 2, "", 1, "");
addItem("10080", "Zwitter_X2Gummipuppen", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/transen-transi-zwitter-gummipuppen/index.html", 2, "", 1, "");
addItem("10081", "Fun_X2Dolls", "/gummipuppen-liebespuppen-lovedolls-sexpuppen/fun-scherzpuppen-partypuppen/index.html", 2, "", 1, "");
addItem("10028", "Lovetoys", "/love-toys-sexspielzeug/index2.html", 1, "", 1, "");
addItem("1004", "Masturbatoren", "/love-toys-sexspielzeug/index.html", 2, "", 1, "");
addItem("10022", "Sauger_20_X7_20Pumpen", "/love-toys-sexspielzeug/sauger-lustpumpen-potenzpumpen/index.html", 2, "", 1, "");
addItem("10026", "Liebeskugeln", "/love-toys-sexspielzeug/liebeskugeln-lustperlen/index.html", 2, "", 1, "");
addItem("10034", "Vibratoren", "/love-toys-sexspielzeug/massager-vibratoren/index.html", 2, "", 1, "");
addItem("10035", "Dildos", "/love-toys-sexspielzeug/penis-clone-dildos/index.html", 2, "", 1, "");
addItem("10041", "Analsex", "/love-toys-sexspielzeug/plugs-podildos-analsex/index.html", 2, "", 1, "");
addItem("10047", "Penisringe", "/love-toys-sexspielzeug/potenz-penisringe/index.html", 2, "", 1, "");
addItem("10049", "Umschnaller", "/love-toys-sexspielzeug/umschnall-penis-strap-on/index.html", 2, "", 1, "");
addItem("10052", "Sex_X2M_C3_B6bel", "/love-toys-sexspielzeug/sex-haengematte-liebesschaukel/index.html", 2, "", 1, "");
addItem("10048", "Sex_X2Pakete", "/love-toys-sexspielzeug/sex-pakete-spar-sets/index.html", 2, "", 1, "");
addItem("10067", "Zubeh_C3_B6r", "/love-toys-sexspielzeug/zubehoer/index.html", 2, "", 1, "");
addItem("10053", "Drogerie", "/kondome-sex-drogerie-gleitmittel-sexbad/index.html", 1, "", 1, "");
addItem("10013", "Gleitmittel", "/kondome-sex-drogerie-gleitmittel-sexbad/gleit-gel-mittel-liebesoel/index.html", 2, "", 1, "");
addItem("10017", "Pheromone", "/kondome-sex-drogerie-gleitmittel-sexbad/aphrodisiaka-pheromon-parfueme-duefte/index.html", 2, "", 1, "");
addItem("10025", "Intim_X2Pflege", "/kondome-sex-drogerie-gleitmittel-sexbad/koerperpflege-intim-pflege-rasur/index.html", 2, "", 1, "");
addItem("10040", "Reinigung_20_X7_20Pflege", "/kondome-sex-drogerie-gleitmittel-sexbad/desinfektion-reinigung-pflege/index.html", 2, "", 1, "");
addItem("10055", "Kondomerie", "/kondome-sex-drogerie-gleitmittel-sexbad/kondome-kondomerie/index.html", 2, "", 1, "");
addItem("10043", "Potenz_X2Steigerung", "/kondome-sex-drogerie-gleitmittel-sexbad/potenz-steigerung-penis-vergroesserung-steifung/index.html", 2, "", 1, "");
addItem("10059", "Sch_C3_B6ner_20Busen", "/kondome-sex-drogerie-gleitmittel-sexbad/brust-busen-vergroesserung-straffung/index.html", 2, "", 1, "");
addItem("10030", "W_C3_A4sche_20_X7_20Nylon", "/waesche-dessous-struempfe/index.html", 1, "", 1, "");
addItem("10033", "Strumpf_20_X7_20Straps", "/waesche-dessous-struempfe/straps-strumpfhosen-nylons/index.html", 2, "", 1, "");
addItem("10039", "Erotische_20N_C3_A4chte", "/waesche-dessous-struempfe/schlaf-anzuege-waesche-nachthemden/index.html", 2, "", 1, "");
addItem("1008", "Dessous_X2Sets", "/waesche-dessous-struempfe/dessous-sets/index.html", 2, "", 1, "");
addItem("10018", "Catsuits", "/waesche-dessous-struempfe/catsuits-ouvert-offen/index.html", 2, "", 1, "");
addItem("10010", "Einteiler", "/waesche-dessous-struempfe/bodies/index.html", 2, "", 1, "");
addItem("10024", "Damen_20Slips", "/waesche-dessous-struempfe/damen-slips-unterhosen/index.html", 2, "", 1, "");
addItem("10050", "Herren_20Slips", "/waesche-dessous-struempfe/herren-slips-unterhosen/index.html", 2, "", 1, "");
addItem("10054", "Herren_20Shirts", "/waesche-dessous-struempfe/herren-shirts-unterhemden/index.html", 2, "", 1, "");
addItem("10086", "Scherz", "/waesche-dessous-struempfe/scherz-waesche-dessous/index.html", 2, "", 1, "");
addItem("10065", "Sexy_20Outfits", "/party-sex-verfuehr-outfits/index.html", 1, "", 1, "");
addItem("10083", "Per_C3_BCcken", "/party-sex-verfuehr-outfits/peruecken/index.html", 2, "", 1, "");
addItem("10056", "Kost_C3_BCme", "/party-sex-verfuehr-outfits/fetish-fetisch-sex-kostueme/index.html", 2, "", 1, "");
addItem("10044", "Sexy_20Mode", "/party-sex-verfuehr-outfits/party-verfuehr-outfits-kleider/index.html", 2, "", 1, "");
addItem("10045", "Accessoires", "/party-sex-verfuehr-outfits/accessoires/index.html", 2, "", 1, "");
addItem("10038", "Lack,_20Leder_20_X7_20Latex", "/lack-leder-latex/index.html", 1, "", 1, "");
addItem("1002", "Latex_20f_C3_BCr_20SIE", "/lack-leder-latex/latex-bekleidung-damen/index.html", 2, "", 1, "");
addItem("10014", "Latex_20f_C3_BCr_20IHN", "/lack-leder-latex/latex-bekleidung-herren/index.html", 2, "", 1, "");
addItem("10019", "Latex_20Dessous", "/lack-leder-latex/latex-dessous/index.html", 2, "", 1, "");
addItem("10023", "Lack_20f_C3_BCr_20SIE", "/lack-leder-latex/lack-bekleidung-damen/index.html", 2, "", 1, "");
addItem("10031", "Lack_20f_C3_BCr_20IHN", "/lack-leder-latex/lack-bekleidung-herren/index.html", 2, "", 1, "");
addItem("10037", "Lack_20Dessous", "/lack-leder-latex/lack-dessous/index.html", 2, "", 1, "");
addItem("10042", "Leder_20f_C3_BCr_20SIE", "/lack-leder-latex/leder-bekleidung-damen/index.html", 2, "", 1, "");
addItem("10046", "Leder_20f_C3_BCr_20IHN", "/lack-leder-latex/leder-bekleidung-herren/index.html", 2, "", 1, "");
addItem("10051", "Leder_20Dessous", "/lack-leder-latex/leder-dessous/index.html", 2, "", 1, "");
addItem("10060", "Specials", "/lack-leder-latex/lack-leder-latex-specials/index.html", 2, "", 1, "");
addItem("10061", "Fetish_20_X7_20SM", "/fetish-sado-maso/index.html", 1, "", 1, "");
addItem("10027", "Masken_20_X7_20Knebel", "/fetish-sado-maso/knebel-masken-sm/index.html", 2, "", 1, "");
addItem("10032", "Keuschhaltung", "/fetish-sado-maso/keuschheit-keuschhaltung/index.html", 2, "", 1, "");
addItem("10064", "Intim_X2Schmuck", "/fetish-sado-maso/intim-schmuck-nippel-ringe/index.html", 2, "", 1, "");
addItem("10012", "Elektrosex", "/fetish-sado-maso/elektro-sex/index.html", 2, "", 1, "");
addItem("1001", "Bondage", "/fetish-sado-maso/bondage-fessel-spiele/index.html", 2, "", 1, "");
addItem("10021", "SM_X2Toys", "/fetish-sado-maso/schmerz-folter-klammern-peitschen/index.html", 2, "", 1, "");
addItem("10057", "Dildo_X2Slips", "/fetish-sado-maso/dildo-penis-slips/index.html", 2, "", 1, "");
addItem("10036", "Specials", "/fetish-sado-maso/fetisch-fetish/index.html", 2, "", 1, "");
addItem("10063", "DVD_20_X7_20Literatur", "/erotik-literatur-filme-pornos/index.html", 1, "", 1, "");
addItem("1003", "Magazine", "/erotik-literatur-filme-pornos/sex-kontakt-magazine/index.html", 2, "", 1, "");
addItem("10011", "B_C3_BCcher", "/erotik-literatur-filme-pornos/erotik-sex-buecher-romane/index.html", 2, "", 1, "");
addItem("10062", "DVD_C2_B4s", "/erotik-literatur-filme-pornos/erotik-sex-filme-dvd/index.html", 2, "", 1, "");
addItem("10066", "Spiel_20_X7_20Fun", "/erotik-spiel-party-scherz-artikel/index.html", 1, "", 1, "");
addItem("10084", "P_C3_A4rchen_X2Spiele", "/erotik-spiel-party-scherz-artikel/paerchen-sex-spiele/index.html", 2, "", 1, "");
addItem("10085", "Scherzartikel", "/erotik-spiel-party-scherz-artikel/gag-scherz-fun-artikel-party/index.html", 2, "", 1, "");
addItem("10087", "Sexkatalog", "/erotik-sex-katalog-sexkatalog-bestellen/sexkatalog.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;
		
	};
};