var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("1001", "Muskelaufbau", "/muskelaufbau/index.html", 1, "", 1, "");
addItem("100107", "All_20in_20One", "/muskelaufbau/all-in-one/index.html", 2, "", 1, "");
addItem("1009", "Aminos_C3_A4uren", "/muskelaufbau/aminosaeuren/index.html", 2, "", 1, "");
addItem("10031", "Aminos_C3_A4ure_20Kapseln", "/muskelaufbau/aminosaeuren/aminosaeure-kapseln/index.html", 3, "", 1, "");
addItem("10030", "Aminos_C3_A4ure_20Tabletten", "/muskelaufbau/aminosaeuren/aminosaeure-tabletten/index.html", 3, "", 1, "");
addItem("100144", "Aminos_C3_A4ure_20Pulver", "/muskelaufbau/aminosaeuren/aminosaeure-pulver/index.html", 3, "", 1, "");
addItem("10032", "Fl_C3_BCssige_20Aminos_C3_A4uren", "/muskelaufbau/aminosaeuren/fluessige-aminosaeuren/index.html", 3, "", 1, "");
addItem("10096", "Arginin", "/muskelaufbau/aminosaeuren/l-arginin/index.html", 3, "", 1, "");
addItem("10097", "L_X2Arginin", "/muskelaufbau/aminosaeuren/l-arginin/l-arginin/index.html", 4, "", 1, "");
addItem("10098", "AAKG,_20Arginin_20Alpha_20Ketoglutarat", "/muskelaufbau/aminosaeuren/l-arginin/arginin-alpha-keto-glutarat/index.html", 4, "", 1, "");
addItem("100187", "Beta_X2Alanin", "/muskelaufbau/aminosaeuren/beta-alanin2/index.html", 3, "", 1, "");
addItem("100180", "HMB", "/muskelaufbau/aminosaeuren/hmb/index.html", 3, "", 1, "");
addItem("100156", "Leucin", "/muskelaufbau/aminosaeuren/leucin/index.html", 3, "", 1, "");
addItem("100100", "Lysin", "/muskelaufbau/aminosaeuren/lysin/index.html", 3, "", 1, "");
addItem("10099", "Ornithin", "/muskelaufbau/aminosaeuren/lysin/ornithin/index.html", 4, "", 1, "");
addItem("100106", "Tyrosin", "/muskelaufbau/aminosaeuren/tyrosin/index.html", 3, "", 1, "");
addItem("100166", "Tryptophan", "/muskelaufbau/aminosaeuren/tryptophan/index.html", 3, "", 1, "");
addItem("10010", "BCAA_X9s", "/muskelaufbau/bcaas/index.html", 2, "", 1, "");
addItem("10033", "BCAA_20Kapseln", "/muskelaufbau/bcaas/bcaa-kapseln/index.html", 3, "", 1, "");
addItem("10034", "BCAA_20Tabletten", "/muskelaufbau/bcaas/bcaa-tabletten/index.html", 3, "", 1, "");
addItem("100143", "BCAA_20Pulver", "/muskelaufbau/bcaas/bcaa-pulver/index.html", 3, "", 1, "");
addItem("10022", "Trainings_X2Booster", "/muskelaufbau/trainingsbooster/index.html", 2, "", 1, "");
addItem("10011", "Creatin", "/muskelaufbau/creatin/index.html", 2, "", 1, "");
addItem("10035", "Creatin_20Pulver", "/muskelaufbau/creatin/creatin-pulver/index.html", 3, "", 1, "");
addItem("10036", "Creatin_20Kapseln", "/muskelaufbau/creatin/creatin-kapseln/index.html", 3, "", 1, "");
addItem("100151", "Creatin_20Kautabletten", "/muskelaufbau/creatin/creatin-kautabletten/index.html", 3, "", 1, "");
addItem("10037", "Creatin_20_X1_20Transportmatrix", "/muskelaufbau/creatin/creatin-transportmatrix/index.html", 3, "", 1, "");
addItem("10012", "Eiweiss", "/muskelaufbau/eiweiss/index.html", 2, "", 1, "");
addItem("10023", "Mehrkomponenten_20Proteine", "/muskelaufbau/eiweiss/mehrkomponenten-proteine/index.html", 3, "", 1, "");
addItem("10024", "Molken_20Proteine", "/muskelaufbau/eiweiss/molken-proteine/index.html", 3, "", 1, "");
addItem("100175", "Casein", "/muskelaufbau/eiweiss/casein/index.html", 3, "", 1, "");
addItem("10025", "Egg_20Proteine", "/muskelaufbau/eiweiss/egg-proteine/index.html", 3, "", 1, "");
addItem("10026", "Soja_20Proteine", "/muskelaufbau/eiweiss/soja-proteine/index.html", 3, "", 1, "");
addItem("10013", "Glutamin", "/muskelaufbau/glutamin/index.html", 2, "", 1, "");
addItem("10028", "Glutamin_20Kapseln", "/muskelaufbau/glutamin/glutamin-kapseln/index.html", 3, "", 1, "");
addItem("10027", "Glutamin_20Pulver", "/muskelaufbau/glutamin/glutamin-pulver/index.html", 3, "", 1, "");
addItem("10029", "Glutamin_20_X1_20Transportmatrix", "/muskelaufbau/glutamin/glutamin-transportmatrix/index.html", 3, "", 1, "");
addItem("100111", "Glutamin_20Tabletten", "/muskelaufbau/glutamin/glutamin-tabletten/index.html", 3, "", 1, "");
addItem("100157", "Glutamin_20fl_C3_BCssig", "/muskelaufbau/glutamin/glutamin-fluessig/index.html", 3, "", 1, "");
addItem("10021", "Kohlenhydrate", "/muskelaufbau/kohlenhydrate/index.html", 2, "", 1, "");
addItem("100112", "Vitargo", "/muskelaufbau/kohlenhydrate/vitargo/index.html", 3, "", 1, "");
addItem("100113", "Maltodextrin", "/muskelaufbau/kohlenhydrate/maltodextrin/index.html", 3, "", 1, "");
addItem("100158", "Krea_X2Genic", "/muskelaufbau/krea-genic/index.html", 2, "", 1, "");
addItem("10014", "Kre_X2Alkalyn", "/muskelaufbau/kre-alkalyn/index.html", 2, "", 1, "");
addItem("10039", "Kre_X2Alkalyn_20Kapseln", "/muskelaufbau/kre-alkalyn/kre-alkalyn-kapseln/index.html", 3, "", 1, "");
addItem("10086", "Kre_X2Alkalyn_20Pulver", "/muskelaufbau/kre-alkalyn/kre-alkalyn-pulver/index.html", 3, "", 1, "");
addItem("10038", "Kre_X2Alkalyn_20_X1_20Transportmatrix", "/muskelaufbau/kre-alkalyn/kre-alkalyn-transportmatrix/index.html", 3, "", 1, "");
addItem("100155", "Kre_X2Alkalyn_20Fl_C3_BCssig", "/muskelaufbau/kre-alkalyn/kre-alkalyn-fluessig/index.html", 3, "", 1, "");
addItem("10046", "Tribulus_20Terrestris_20_X4_20Maca", "/muskelaufbau/maca/index.html", 2, "", 1, "");
addItem("100145", "NOx_20_X4_20Stickstoff", "/muskelaufbau/stickstoff-nox/index.html", 2, "", 1, "");
addItem("10047", "Post_X2Workout", "/muskelaufbau/post-workout/index.html", 2, "", 1, "");
addItem("100108", "Ribose", "/muskelaufbau/ribose/index.html", 2, "", 1, "");
addItem("10052", "Riegel", "/muskelaufbau/riegel/index.html", 2, "", 1, "");
addItem("10053", "Protein_20Riegel", "/muskelaufbau/riegel/protein-riegel/index.html", 3, "", 1, "");
addItem("10054", "Kohlenhydrat_20Riegel", "/muskelaufbau/riegel/kohlenhydrat-riegel/index.html", 3, "", 1, "");
addItem("10015", "Weight_20Gainer", "/muskelaufbau/weight-gainer/index.html", 2, "", 1, "");
addItem("10040", "Gainer_20mit_20Molkenprotein", "/muskelaufbau/weight-gainer/gainer-mit-molkenprotein/index.html", 3, "", 1, "");
addItem("10041", "mit_20Mehrkomponenten_20Protein", "/muskelaufbau/weight-gainer/gainer-mit-mehrkomponenten-protein/index.html", 3, "", 1, "");
addItem("10042", "Gainer_20auf_20Vollkornbasis", "/muskelaufbau/weight-gainer/gainer-auf-vollkornbasis/index.html", 3, "", 1, "");
addItem("1003", "Di_C3_A4t_20_X7_20Fettreduktion", "/diaet-fettabbau/index.html", 1, "", 1, "");
addItem("10016", "CLA", "/diaet-fettabbau/cla/index.html", 2, "", 1, "");
addItem("100110", "Entw_C3_A4ssern", "/diaet-fettabbau/entwaessern/index.html", 2, "", 1, "");
addItem("10019", "Fatburner", "/diaet-fettabbau/fatburner/index.html", 2, "", 1, "");
addItem("10017", "Gr_C3_BCner_20Tee", "/diaet-fettabbau/gruener-tee/index.html", 2, "", 1, "");
addItem("10050", "Kohlenhydrat_X2Blocker", "/diaet-fettabbau/kohlenhydrat-blocker/index.html", 2, "", 1, "");
addItem("10020", "L_X2Carnitin", "/diaet-fettabbau/l-carnitin/index.html", 2, "", 1, "");
addItem("10061", "Mahlzeitersatz", "/diaet-fettabbau/mahlzeitersatz/index.html", 2, "", 1, "");
addItem("1002", "Ausdauer", "/ausdauer-energy/index.html", 1, "", 1, "");
addItem("10043", "Vor_20der_20Belastung", "/ausdauer-energy/vor-der-belastung/index.html", 2, "", 1, "");
addItem("10044", "W_C3_A4hrend_20der_20Belastung", "/ausdauer-energy/waehrend-der-belastung/index.html", 2, "", 1, "");
addItem("10045", "Nach_20der_20Belastung", "/ausdauer-energy/nach-der-belastung/index.html", 2, "", 1, "");
addItem("1005", "Regeneration", "/regeneration/index.html", 1, "", 1, "");
addItem("10055", "Aminos_C3_A4uren", "/regeneration/aminosaeuren/index.html", 2, "", 1, "");
addItem("10056", "BCAA_X9s", "/regeneration/bcaas/index.html", 2, "", 1, "");
addItem("10057", "Glutamin", "/regeneration/glutamin/index.html", 2, "", 1, "");
addItem("10059", "Kohlenhydrate", "/regeneration/kohlenhydrate/index.html", 2, "", 1, "");
addItem("10058", "Molken_X2Proteine", "/regeneration/proteine/index.html", 2, "", 1, "");
addItem("10060", "Recovery_20Shakes", "/regeneration/recovery-shakes/index.html", 2, "", 1, "");
addItem("1004", "Fitness_20_X7_20Wellness", "/fitness-wellness/index.html", 1, "", 1, "");
addItem("100101", "F_C3_BCr_20die_20Frau", "/fuer-die-frau/index.html", 1, "", 1, "");
addItem("100129", "Antioxidantien_20_X7_20Zellschutz", "/fuer-die-frau/antioxidantien/index.html", 2, "", 1, "");
addItem("100102", "Phyto_C3_B6strogene", "/fuer-die-frau/wechseljahre/index.html", 2, "", 1, "");
addItem("100125", "Haarwachstum", "/fuer-die-frau/maca/index.html", 2, "", 1, "");
addItem("100128", "Harnwege_20_X7_20Blase", "/fuer-die-frau/harnwege-blase/index.html", 2, "", 1, "");
addItem("100130", "Herz_20_X7_20Kreislauf", "/fuer-die-frau/herz-kreislauf/index.html", 2, "", 1, "");
addItem("100133", "Sexualit_C3_A4t", "/fuer-die-frau/sexualitaet/index.html", 2, "", 1, "");
addItem("100126", "Soja_20Produkte", "/fuer-die-frau/soja-eiweiss/index.html", 2, "", 1, "");
addItem("100132", "Vitalit_C3_A4t_20_X4_20Wohlbefinden", "/fuer-die-frau/vitalitaet/index.html", 2, "", 1, "");
addItem("10064", "Fetts_C3_A4uren", "/fettsaeuren/index.html", 1, "", 1, "");
addItem("1006", "Gelenkn_C3_A4hrstoffe", "/gelenk-sehnennaehrstoffe/index.html", 1, "", 1, "");
addItem("1007", "Gelenkn_C3_A4hrstoffe", "/gelenk-sehnennaehrstoffe/gelenknaehrstoffe/index.html", 2, "", 1, "");
addItem("100105", "Sekund_C3_A4re_20Pflanzenstoffe", "/sekundaere-pflanzenstoffe/index.html", 1, "", 1, "");
addItem("100117", "Avena_20Sativa_20_X4_20Gr_C3_BCner_20Hafer", "/sekundaere-pflanzenstoffe/avena-sativa-gruener-hafer/index.html", 2, "", 1, "");
addItem("100114", "Cranberry_20_X4_20Kranichbeere", "/sekundaere-pflanzenstoffe/cranberry/index.html", 2, "", 1, "");
addItem("100115", "Fenugreek_20_X4_20Bockshornklee", "/sekundaere-pflanzenstoffe/fenugreek-bockshornklee/index.html", 2, "", 1, "");
addItem("100120", "Gr_C3_BCner_20Tee", "/sekundaere-pflanzenstoffe/gruener-tee/index.html", 2, "", 1, "");
addItem("100119", "Maca", "/sekundaere-pflanzenstoffe/maca/index.html", 2, "", 1, "");
addItem("100116", "OPC_20_X4_20Traubenkern_20Extrakt", "/sekundaere-pflanzenstoffe/opc-traubenkernextrakt/index.html", 2, "", 1, "");
addItem("100123", "Rotklee_20Isoflavone", "/sekundaere-pflanzenstoffe/rotklee-isoflavone/index.html", 2, "", 1, "");
addItem("100121", "Tribulus_20Terrestris", "/sekundaere-pflanzenstoffe/tribulus-terrestris/index.html", 2, "", 1, "");
addItem("10063", "Vitamine_20_X7_20Mineralien", "/vitamine/index.html", 1, "", 1, "");
addItem("100134", "Antioxidantien", "/vitamine/antioxidantien/index.html", 2, "", 1, "");
addItem("10091", "Vitamine", "/vitamine/vitamine/index.html", 2, "", 1, "");
addItem("10092", "Mineralstoffe", "/vitamine/mineralstoffe/index.html", 2, "", 1, "");
addItem("10094", "Magnesium", "/vitamine/magnesium/index.html", 2, "", 1, "");
addItem("10095", "Zink", "/vitamine/zink/index.html", 2, "", 1, "");
addItem("100140", "Zubeh_C3_B6r", "/zubehoer/index.html", 1, "", 1, "");
addItem("10087", "Kombis", "/kombis/index.html", 1, "", 1, "");
addItem("10070", "Hersteller", "/hersteller/index.html", 1, "", 1, "");
addItem("10071", "All_20Stars", "/hersteller/all-stars/index.html", 2, "", 1, "");
addItem("100181", "Best_20Body_20Nutrition", "/hersteller/best-body-nutrition/index.html", 2, "", 1, "");
addItem("100152", "Body_20Attack", "/hersteller/body-attack/index.html", 2, "", 1, "");
addItem("100154", "EFX", "/hersteller/efx/index.html", 2, "", 1, "");
addItem("100186", "EFX_20Flex_20Wheeler", "/hersteller/efx-flex-wheeler/index.html", 2, "", 1, "");
addItem("10073", "IronMaxx", "/hersteller/ironmaxx/index.html", 2, "", 1, "");
addItem("100179", "Metabolic_20Optimal", "/hersteller/metabolic-optimal-nutrition/index.html", 2, "", 1, "");
addItem("100173", "Miller_X9s_20Sports", "/hersteller/millers-sports/index.html", 2, "", 1, "");
addItem("10082", "Multi_X2Food", "/hersteller/multi-food/index.html", 2, "", 1, "");
addItem("100169", "Multipower", "/hersteller/multipower/index.html", 2, "", 1, "");
addItem("10076", "Olimp", "/hersteller/olimp/index.html", 2, "", 1, "");
addItem("100141", "Peak", "/hersteller/peak-performance/index.html", 2, "", 1, "");
addItem("10080", "Performance", "/hersteller/performance/index.html", 2, "", 1, "");
addItem("100171", "Powerbar", "/hersteller/powerbar/index.html", 2, "", 1, "");
addItem("100183", "PowerMAN", "/hersteller/powerman/index.html", 2, "", 1, "");
addItem("100174", "Pretty_20Woman", "/hersteller/pretty-woman/index.html", 2, "", 1, "");
addItem("100185", "Pure_20Woman", "/hersteller/pure-woman/index.html", 2, "", 1, "");
addItem("100184", "The_20Force", "/hersteller/the-force/index.html", 2, "", 1, "");
addItem("10081", "Sonstige_20Hersteller", "/hersteller/power-man/index.html", 2, "", 1, "");
addItem("100159", "Sponser", "/hersteller/sponser/index.html", 2, "", 1, "");
addItem("10079", "Sponser_20Energy", "/hersteller/sponser/sponser-energy/index.html", 3, "", 1, "");
addItem("100150", "Sponser_20Pro", "/hersteller/sponser/sponser-pro/index.html", 3, "", 1, "");
addItem("100168", "Sponser_20Power", "/hersteller/sponser/sponser-power/index.html", 3, "", 1, "");
addItem("100160", "Sponser_20Fit_20_X7_20Well", "/hersteller/sponser/sponser-fit-well/index.html", 3, "", 1, "");
addItem("10083", "SRS", "/hersteller/srs/index.html", 2, "", 1, "");
addItem("10075", "Ultimate_20Nutrition", "/hersteller/ultimate-nutrition/index.html", 2, "", 1, "");
addItem("10074", "Vitalife", "/hersteller/vitalife/index.html", 2, "", 1, "");
addItem("10077", "Weider", "/hersteller/weider/index.html", 2, "", 1, "");
addItem("10078", "ZeinPharma", "/hersteller/zeinpharma/index.html", 2, "", 1, "");
addItem("100139", "Zubeh_C3_B6r", "/hersteller/zubehoer/index.html", 2, "", 1, "");
addItem("100177", "Sonderangebote", "/hersteller/sonderangebote/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;
		
	};
};