var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100270", "Architektur_20_X7_20Geb_C3_A4ude", "/architektur/index.html", 1, "", 1, "");
addItem("100269", "Br_C3_BCcken", "/architektur/bruecken-in-europa/index.html", 2, "", 1, "");
addItem("100303", "Geb_C3_A4ude", "/architektur/gebaeude/index.html", 2, "", 1, "");
addItem("100375", "Moscheen", "/architektur/moscheen/index.html", 2, "", 1, "");
addItem("100376", "Architektur_20_X7_20Geb_C3_A4ude", "/architektur/architektur-gebaeude/index.html", 2, "", 1, "");
addItem("100304", "eCally", "/ecally/index.html", 1, "", 1, "");
addItem("100279", "Food", "/food/index.html", 1, "", 1, "");
addItem("100372", "Eingemachtes", "/food/eingemachtes/index.html", 2, "", 1, "");
addItem("100280", "Gem_C3_BCse", "/food/obst-gemuese/index.html", 2, "", 1, "");
addItem("100281", "Obst", "/food/fruechte/index.html", 2, "", 1, "");
addItem("100282", "Gegenst_C3_A4nde", "/gegenstaende/index.html", 1, "", 1, "");
addItem("100373", "Bars_20_X7_20Restaurants", "/gegenstaende/bars-restaurants/index.html", 2, "", 1, "");
addItem("100374", "Flaschen", "/gegenstaende/flaschen/index.html", 2, "", 1, "");
addItem("100283", "Gl_C3_A4ser", "/gegenstaende/glaeser/index.html", 2, "", 1, "");
addItem("100285", "Stilleben", "/gegenstaende/stilleben-allgemein/index.html", 2, "", 1, "");
addItem("100318", "Musikinstrumente", "/gegenstaende/musikinstrumente/index.html", 2, "", 1, "");
addItem("100276", "Grafik_20_X7_20Design", "/grafik-design/index.html", 1, "", 1, "");
addItem("100322", "Business_20Werbung", "/grafik-design/fuer-den-handel/index.html", 2, "", 1, "");
addItem("100359", "Herzen", "/grafik-design/herzen/index.html", 2, "", 1, "");
addItem("100321", "Symbole", "/grafik-design/symbole-global/index.html", 2, "", 1, "");
addItem("100305", "Kindermotive", "/kindermotive/index.html", 1, "", 1, "");
addItem("100331", "Puppen", "/kindermotive/puppen/index.html", 2, "", 1, "");
addItem("100332", "Spielzeug", "/kindermotive/spielzeug/index.html", 2, "", 1, "");
addItem("100333", "Teddy_X9s", "/kindermotive/teddys/index.html", 2, "", 1, "");
addItem("100334", "Tiere", "/kindermotive/tiere/index.html", 2, "", 1, "");
addItem("100335", "Kinderbilder_20global", "/kindermotive/kinderbilder/index.html", 2, "", 1, "");
addItem("100159", "Landschaften", "/speditionen/index.html", 1, "", 1, "");
addItem("100188", "Deutschland", "/speditionen/ups/index.html", 2, "", 1, "");
addItem("100363", "Helgoland", "/speditionen/ups/helgoland/index.html", 3, "", 1, "");
addItem("100362", "L_C3_BCneburger_20Heide", "/speditionen/ups/lueneburger-heide/index.html", 3, "", 1, "");
addItem("100371", "Nord_X2_20_X7_20Ostsee", "/speditionen/ups/nord-ostsee/index.html", 3, "", 1, "");
addItem("100361", "Schleswig_X2Holstein", "/speditionen/ups/schleswig-holstein/index.html", 3, "", 1, "");
addItem("100365", "Italia", "/speditionen/italia/index.html", 2, "", 1, "");
addItem("100185", "Gardasee", "/speditionen/italia/dhl/index.html", 3, "", 1, "");
addItem("100211", "Toskana", "/speditionen/italia/toskana/index.html", 3, "", 1, "");
addItem("100366", "Spanien", "/speditionen/spanien/index.html", 2, "", 1, "");
addItem("100319", "USA", "/speditionen/usa/index.html", 2, "", 1, "");
addItem("100221", "Landschaften_20global", "/speditionen/allgemein/index.html", 2, "", 1, "");
addItem("100291", "Lifestyle", "/lifestyle/index.html", 1, "", 1, "");
addItem("100294", "Wellness_20_X7_20Beauty", "/lifestyle/wellness-beauty/index.html", 2, "", 1, "");
addItem("100295", "Wohnen", "/lifestyle/wohnen/index.html", 2, "", 1, "");
addItem("100317", "Lifestyle_20global", "/lifestyle/lifestyle-global/index.html", 2, "", 1, "");
addItem("100160", "Menschen", "/sportvereine/index.html", 1, "", 1, "");
addItem("100337", "Erotik", "/sportvereine/erotik/index.html", 2, "", 1, "");
addItem("100338", "Aktfotografie", "/sportvereine/erotik/aktfotografie/index.html", 3, "", 1, "");
addItem("100339", "Frauen", "/sportvereine/erotik/frauen/index.html", 3, "", 1, "");
addItem("100340", "M_C3_A4nner", "/sportvereine/erotik/maenner/index.html", 3, "", 1, "");
addItem("100358", "Herzen", "/sportvereine/herzen/index.html", 2, "", 1, "");
addItem("100190", "Karneval_20in_20Venedig", "/sportvereine/bvb/index.html", 2, "", 1, "");
addItem("100236", "Menschen", "/sportvereine/menschen-allgemein/index.html", 2, "", 1, "");
addItem("100357", "Business_20Bilder", "/sportvereine/business-bilder/index.html", 2, "", 1, "");
addItem("100278", "Natur_20_X7_20Umwelt", "/natur-umwelt/index.html", 1, "", 1, "");
addItem("100286", "Blumen", "/natur-umwelt/blumen/index.html", 2, "", 1, "");
addItem("100380", "Rosen", "/natur-umwelt/blumen/rosen/index.html", 3, "", 1, "");
addItem("100381", "Sonnenblumen", "/natur-umwelt/blumen/sonnenblumen/index.html", 3, "", 1, "");
addItem("100382", "Blumen_20global", "/natur-umwelt/blumen/blumen/index.html", 3, "", 1, "");
addItem("100315", "Gew_C3_A4chse", "/natur-umwelt/gewaechse/index.html", 2, "", 1, "");
addItem("100301", "Landschaften", "/natur-umwelt/landschaften/index.html", 2, "", 1, "");
addItem("100367", "Deutschland", "/natur-umwelt/landschaften/deutschland/index.html", 3, "", 1, "");
addItem("100368", "Italia", "/natur-umwelt/landschaften/italia/index.html", 3, "", 1, "");
addItem("100369", "Spanien", "/natur-umwelt/landschaften/spanien/index.html", 3, "", 1, "");
addItem("100370", "USA", "/natur-umwelt/landschaften/usa/index.html", 3, "", 1, "");
addItem("100377", "Zum_20Essen", "/natur-umwelt/zum-essen/index.html", 2, "", 1, "");
addItem("100252", "Sport_20_X7_20Action", "/sport/index.html", 1, "", 1, "");
addItem("100312", "Fu_C3_9Fball", "/sport/fussball/index.html", 2, "", 1, "");
addItem("100253", "Golf", "/sport/golf/index.html", 2, "", 1, "");
addItem("100314", "Pferdesport", "/sport/pferdesport/index.html", 2, "", 1, "");
addItem("100254", "Segeln", "/sport/segeln/index.html", 2, "", 1, "");
addItem("100256", "Sport_20allgemein", "/sport/sport-allgemein/index.html", 2, "", 1, "");
addItem("100158", "St_C3_A4dte", "/telekommunikation/index.html", 1, "", 1, "");
addItem("100192", "Hamburg", "/telekommunikation/e-plus/index.html", 2, "", 1, "");
addItem("100323", "Alster", "/telekommunikation/e-plus/alster/index.html", 3, "", 1, "");
addItem("100324", "Containerhafen", "/telekommunikation/e-plus/containerhafen/index.html", 3, "", 1, "");
addItem("100325", "Elbe", "/telekommunikation/e-plus/elbe/index.html", 3, "", 1, "");
addItem("100326", "Hafen", "/telekommunikation/e-plus/hafen/index.html", 3, "", 1, "");
addItem("100327", "Hafen_X2City", "/telekommunikation/e-plus/hafen-city/index.html", 3, "", 1, "");
addItem("100329", "Innenstadt", "/telekommunikation/e-plus/innenstadt/index.html", 3, "", 1, "");
addItem("100328", "Kr_C3_A4ne", "/telekommunikation/e-plus/kraene/index.html", 3, "", 1, "");
addItem("100336", "Collagen", "/telekommunikation/e-plus/hamburg-collagen/index.html", 3, "", 1, "");
addItem("100383", "Panoramen", "/telekommunikation/e-plus/panoramen/index.html", 3, "", 1, "");
addItem("100193", "London", "/telekommunikation/o2/index.html", 2, "", 1, "");
addItem("100210", "Moskau", "/telekommunikation/moskau/index.html", 2, "", 1, "");
addItem("100195", "Paris", "/telekommunikation/vodafon/index.html", 2, "", 1, "");
addItem("100208", "Venedig", "/telekommunikation/venedig/index.html", 2, "", 1, "");
addItem("100251", "St_C3_A4dte_20Europa", "/telekommunikation/staedte-allgemein/index.html", 2, "", 1, "");
addItem("100272", "Technik_20_X7_20Industrie", "/technik/index.html", 1, "", 1, "");
addItem("100288", "Kraftfahrzeuge", "/technik/autos/index.html", 2, "", 1, "");
addItem("100289", "Schiffe", "/technik/schiffe/index.html", 2, "", 1, "");
addItem("100290", "Kr_C3_A4ne", "/technik/kraene/index.html", 2, "", 1, "");
addItem("100161", "Tiere", "/tourismus/index.html", 1, "", 1, "");
addItem("100257", "Hunde", "/tourismus/hunde/index.html", 2, "", 1, "");
addItem("100311", "Katzen", "/tourismus/katzen/index.html", 2, "", 1, "");
addItem("100258", "Pferde", "/tourismus/pferde/index.html", 2, "", 1, "");
addItem("100197", "V_C3_B6gel", "/tourismus/tui/index.html", 2, "", 1, "");
addItem("100259", "Tiere_20allgemein", "/tourismus/tiere-allgemein/index.html", 2, "", 1, "");
addItem("100296", "Verkehr_20_X7_20Transport", "/transport-verkehr/index.html", 1, "", 1, "");
addItem("100313", "Oldtimer", "/transport-verkehr/oldtimer/index.html", 2, "", 1, "");
addItem("100299", "Schifffahrt", "/transport-verkehr/schifffahrt/index.html", 2, "", 1, "");
addItem("100300", "Stra_C3_9Fenverkehr", "/transport-verkehr/strassenverkehr/index.html", 2, "", 1, "");
addItem("100341", "Ihre_20Business_20Bilder", "/business-bilder/index.html", 1, "", 1, "");
addItem("100343", "Artchitektur_20_X7_20Geb_C3_A4ude", "/business-bilder/artchitektur-gebaeude/index.html", 2, "", 1, "");
addItem("100344", "Food", "/business-bilder/food/index.html", 2, "", 1, "");
addItem("100345", "Gegenst_C3_A4nde", "/business-bilder/gegenstaende/index.html", 2, "", 1, "");
addItem("100346", "Grafik_20_X7_20Design", "/business-bilder/grafik-design/index.html", 2, "", 1, "");
addItem("100347", "Kindermotive", "/business-bilder/kindermotive/index.html", 2, "", 1, "");
addItem("100348", "Landschaften", "/business-bilder/landschaften/index.html", 2, "", 1, "");
addItem("100349", "Lifestyle", "/business-bilder/lifestyle/index.html", 2, "", 1, "");
addItem("100350", "Natur_20_X7_20Umwelt", "/business-bilder/natur-umwelt/index.html", 2, "", 1, "");
addItem("100342", "People", "/business-bilder/people/index.html", 2, "", 1, "");
addItem("100360", "Herzen", "/business-bilder/people/herzen/index.html", 3, "", 1, "");
addItem("100351", "Sport_20_X7_20Action", "/business-bilder/sport-action/index.html", 2, "", 1, "");
addItem("100352", "St_C3_A4dte", "/business-bilder/staedte/index.html", 2, "", 1, "");
addItem("100353", "Symbole_20_X7_20Icons", "/business-bilder/symbole-icons/index.html", 2, "", 1, "");
addItem("100354", "Technik_20_X7_20Industrie", "/business-bilder/technik-industrie/index.html", 2, "", 1, "");
addItem("100355", "Tiere", "/business-bilder/tiere/index.html", 2, "", 1, "");
addItem("100356", "Transport_20_X7_20Verkehr", "/business-bilder/transport-verkehr/index.html", 2, "", 1, "");
addItem("100384", "Fotomontagen_20by_20Fantasy", "/fantasy/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;
		
	};
};