var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100481", "VITASMOKE_20_X2_20_20die_20elektrische_20Zigarette_20(19)", "/vitasmoke/index.html", 1, "", 1, "");
addItem("100482", "Vitarette_20X10_20(1)", "/vitasmoke/vitarette-x10/index.html", 2, "", 1, "");
addItem("100483", "Aroma_X2Depots_20X10_20(4)", "/vitasmoke/aroma-depots-x10/index.html", 2, "", 1, "");
addItem("100487", "Aroma_X2Fluids_20(7)", "/vitasmoke/aroma-fluids/index.html", 2, "", 1, "");
addItem("100484", "Zubeh_C3_B6r_20X10_20(7)", "/vitasmoke/zubehoer-x10/index.html", 2, "", 1, "");
addItem("100485", "Einleitung_20Vitasmoke", "/vitasmoke/einleitung-vitasmoke/index.html", 2, "", 1, "");
addItem("100488", "Vorteile_20X10", "/vitasmoke/vorteile/index.html", 2, "", 1, "");
addItem("100489", "Echte_20Alternative", "/vitasmoke/echte-alternative/index.html", 2, "", 1, "");
addItem("100490", "Funktion", "/vitasmoke/funktion/index.html", 2, "", 1, "");
addItem("100442", "Zippo_X2Feuerzeuge_20(1010)", "/katalog-2010/index.html", 1, "", 1, "");
addItem("100448", "Alle_20Katalogseiten_20als_20PDF_20ansehen", "/katalog-2010/katalogseiten-katalog-2010/index.html", 2, "", 1, "");
addItem("100462", "Auslaufmodelle_202009_20(103)", "/katalog-2010/auslaufmodelle2/index.html", 2, "", 1, "");
addItem("1008", "Armor_20Case_20(6)", "/katalog-2010/armor-case-specials/index.html", 2, "", 1, "");
addItem("100431", "Asian_20Spirit_20(16)", "/katalog-2010/asian-spirit-2009/index.html", 2, "", 1, "");
addItem("100404", "BLU_20Gas_20Lighter_20(17)", "/katalog-2010/the-new-zippo-gas-lighter-collection/index.html", 2, "", 1, "");
addItem("100425", "Born_202b_20(5)", "/katalog-2010/born-2b-2009/index.html", 2, "", 1, "");
addItem("100471", "Bottomz_20Up_20(2)", "/katalog-2010/bottomz-up/index.html", 2, "", 1, "");
addItem("100102", "Classic_20Regular_20(44)", "/katalog-2010/classics-regular/index.html", 2, "", 1, "");
addItem("100480", "Collector_20Themes_20(53)", "/katalog-2010/collector-themes/index.html", 2, "", 1, "");
addItem("100433", "Competition_20(45)", "/katalog-2010/competition-2009/index.html", 2, "", 1, "");
addItem("100478", "Dark_20Side_20(72)", "/katalog-2010/dark-side/index.html", 2, "", 1, "");
addItem("100476", "Gentleman_20(16)", "/katalog-2010/gentleman/index.html", 2, "", 1, "");
addItem("100444", "Girls_20Ladys_20(11)", "/katalog-2010/nackte-tatsachen/index.html", 2, "", 1, "");
addItem("100474", "Girls_20Life_20(62)", "/katalog-2010/girls-life/index.html", 2, "", 1, "");
addItem("100445", "Harley_20Davidson_20(34)", "/katalog-2010/on-the-road/index.html", 2, "", 1, "");
addItem("100473", "Hefele_20Toons_20(6)", "/katalog-2010/hefele-toons/index.html", 2, "", 1, "");
addItem("100154", "J_C3_A4germeister_20(3)", "/katalog-2010/jaegermeister-red-ribbon/index.html", 2, "", 1, "");
addItem("100151", "Jack_20Daniels_20(18)", "/katalog-2010/jack-daniels/index.html", 2, "", 1, "");
addItem("100157", "Jim_20Beam_20(10)", "/katalog-2010/jim-beam-krombacher/index.html", 2, "", 1, "");
addItem("100465", "Love_20_X2_20Herzen", "/katalog-2010/love-herzen/index.html", 2, "", 1, "");
addItem("100443", "Lifestyle_20(6)", "/katalog-2010/lifestyle/index.html", 2, "", 1, "");
addItem("100468", "Musiker_20(14)", "/katalog-2010/musiker/index.html", 2, "", 1, "");
addItem("100446", "Mpl_20und_20Mini_20Mpl_X3_20(2)", "/katalog-2010/seite-101/index.html", 2, "", 1, "");
addItem("100472", "Natur_20Tiere_20Outdoor_20(108)", "/katalog-2010/natur-tiere/index.html", 2, "", 1, "");
addItem("100460", "On_20the_20Road_20(20)", "/katalog-2010/on-the-road2/index.html", 2, "", 1, "");
addItem("100459", "Partner_20Sets", "/katalog-2010/partner-sets/index.html", 2, "", 1, "");
addItem("100469", "Outdoor_20Lighter_20(1)", "/katalog-2010/outdoor-lighter/index.html", 2, "", 1, "");
addItem("100477", "Playboy_20(22)", "/katalog-2010/playboy/index.html", 2, "", 1, "");
addItem("10053", "Preferred_20Collection_20(17)", "/katalog-2010/collection-preferred-zippo-depots/index.html", 2, "", 1, "");
addItem("100470", "Replica_20(7)", "/katalog-2010/replica/index.html", 2, "", 1, "");
addItem("100113", "Restposten_20(35)", "/katalog-2010/zippo-restposten-i/index.html", 2, "", 1, "");
addItem("100466", "Sinalco", "/katalog-2010/sinalco/index.html", 2, "", 1, "");
addItem("100475", "Slim_20(26)", "/katalog-2010/slim/index.html", 2, "", 1, "");
addItem("10088", "Sondermodelle_20(36)", "/katalog-2010/zippo-sondermodelle/index.html", 2, "", 1, "");
addItem("100188", "Sterling_20Silver_20_X7_20Gold_20(5)", "/katalog-2010/sterling-silver-solid-gold/index.html", 2, "", 1, "");
addItem("100467", "Spiele_20_X2_20Poker_20usw_X3_20(17)", "/katalog-2010/spiele-poker-usw/index.html", 2, "", 1, "");
addItem("100479", "Sport_20(4)", "/katalog-2010/sport/index.html", 2, "", 1, "");
addItem("100461", "Urban_20Cowboy_20(56)", "/katalog-2010/urban-cowboy/index.html", 2, "", 1, "");
addItem("100263", "Vitrinen_20(4)", "/katalog-2010/zippo-vitrinen/index.html", 2, "", 1, "");
addItem("100437", "Watch_20Collection_20(11)", "/katalog-2010/watch-collection-2009/index.html", 2, "", 1, "");
addItem("100447", "Writing_20Instruments_20(7)", "/katalog-2010/writing-instruments/index.html", 2, "", 1, "");
addItem("100195", "Werner_20(6)", "/katalog-2010/werner-john-deere-stomp/index.html", 2, "", 1, "");
addItem("100441", "Taschenascher_X2_20Grinder_20(4)", "/katalog-2010/gutscheine/index.html", 2, "", 1, "");
addItem("100463", "Zippo_20Icons_20(60)", "/katalog-2010/with-zippo-logo/index.html", 2, "", 1, "");
addItem("100137", "Zip_20Wissenswertes", "/katalog-2010/zippo-feuerzeug-forum/index.html", 2, "", 1, "");
addItem("10098", "Zippo_X2Zubeh_C3_B6r_20(19)", "/katalog-2010/zippo-zubehoer/index.html", 2, "", 1, "");
addItem("100423", "_X3_X3_X3", "/katalog-2010/auslaufmodelle/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;
		
	};
};