var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100323", "HIROBO", "/hirobo/index.html", 1, "", 1, "");
addItem("1001", "Indoor", "/hirobo/indoor2/index.html", 2, "", 1, "");
addItem("1007", "XRB_20SkyRobo_20Lama", "/hirobo/indoor2/xrb-lama/index.html", 3, "", 1, "");
addItem("100124", "XRB_20SkyRobo_20Bell_20222", "/hirobo/indoor2/xrb-skyrobo-bell-222/index.html", 3, "", 1, "");
addItem("1006", "SRB_20Quark", "/hirobo/indoor2/quark/index.html", 3, "", 1, "");
addItem("100365", "SRB_20Quark_20SG", "/hirobo/indoor2/srb-quark-sg/index.html", 3, "", 1, "");
addItem("100375", "SRB_20Quark_20SG_202,4GHz", "/hirobo/indoor2/srb-quark-sg-24ghz/index.html", 3, "", 1, "");
addItem("1002", "Lepton", "/hirobo/lepton2/index.html", 2, "", 1, "");
addItem("10021", "Shuttle_2030_20Plus2", "/hirobo/shuttle-30-plus2/index.html", 2, "", 1, "");
addItem("100294", "SDX_2050", "/hirobo/50-sdx/index.html", 2, "", 1, "");
addItem("100354", "SDX_2050_20Challenge", "/hirobo/50-sdx/sdx-50-challenge/index.html", 3, "", 1, "");
addItem("100373", "TMRF_20SDX_20Specials", "/hirobo/50-sdx/tmrf-sdx-specials/index.html", 3, "", 1, "");
addItem("1004", "Freya_20_X4_20Freya_20EX", "/hirobo/90er-modelle/index.html", 2, "", 1, "");
addItem("10027", "Freya_20Evolution", "/hirobo/90er-modelle/freya-evolution2/index.html", 3, "", 1, "");
addItem("100253", "Freya_20Evolution_20OP_20II", "/hirobo/90er-modelle/freya-evolution-op-ii/index.html", 3, "", 1, "");
addItem("100315", "Freya_20Evolution_20OP_20III", "/hirobo/90er-modelle/freya-evo-op-swm-f3c/index.html", 3, "", 1, "");
addItem("100237", "Freya_20EX", "/hirobo/90er-modelle/freya-ex-3-swm/index.html", 3, "", 1, "");
addItem("10026", "EAGLE_203", "/hirobo/eagle-3/index.html", 2, "", 1, "");
addItem("10023", "Turbulence_20D3", "/hirobo/turbulence-d3/index.html", 2, "", 1, "");
addItem("10020", "NOVA_204", "/hirobo/nova-4/index.html", 2, "", 1, "");
addItem("1005", "Scale", "/hirobo/scale/index.html", 2, "", 1, "");
addItem("10017", "30er_20Scale", "/hirobo/scale/30er-scale/index.html", 3, "", 1, "");
addItem("10030", "Long_20Ranger_20f_X3_20Shuttle", "/hirobo/scale/30er-scale/bell-long-ranger-30er/index.html", 4, "", 1, "");
addItem("10031", "Jet_20Ranger_20f_X3_20Shuttle", "/hirobo/scale/30er-scale/bell-jet-ranger-30er/index.html", 4, "", 1, "");
addItem("10034", "Bell_20222_20f_X3_20Shuttle", "/hirobo/scale/30er-scale/bell-222/index.html", 4, "", 1, "");
addItem("10033", "Lama_20SA_20315B", "/hirobo/scale/30er-scale/lama-sa-315b/index.html", 4, "", 1, "");
addItem("10045", "Schweizer_20300", "/hirobo/scale/30er-scale/schweizer-300/index.html", 4, "", 1, "");
addItem("10036", "50er_20Scale", "/hirobo/scale/50er-scale/index.html", 3, "", 1, "");
addItem("10040", "Agusta_20A109_20f_X3_20Sceadu", "/hirobo/scale/50er-scale/agusta-a109-fuer-sceadu/index.html", 4, "", 1, "");
addItem("10042", "Jet_20Ranger_20f_X3_20Sceadu", "/hirobo/scale/50er-scale/bell-jet-ranger-fuer-sceadu/index.html", 4, "", 1, "");
addItem("10039", "Long_20Ranger_20f_X3_20Sceadu", "/hirobo/scale/50er-scale/long-ranger-fuer-sceadu/index.html", 4, "", 1, "");
addItem("10041", "Bell_20222_20f_C3_BCr_20Sceadu", "/hirobo/scale/50er-scale/bell-222-fuer-sceadu/index.html", 4, "", 1, "");
addItem("10043", "Hughes_20500D_20f_X3_20Sceadu", "/hirobo/scale/50er-scale/hughes-500d-fuer-sceadu/index.html", 4, "", 1, "");
addItem("10044", "Hughes_20500E_20f_C3_BCr_20Sceadu", "/hirobo/scale/50er-scale/hughes-md-500e-fuer-sceadu/index.html", 4, "", 1, "");
addItem("100236", "Hughes_20500_20MD_20_20Defender", "/hirobo/scale/50er-scale/hughes-500-md/index.html", 4, "", 1, "");
addItem("10037", "Vertol_20CH_2046", "/hirobo/scale/50er-scale/ch-46-vertol/index.html", 4, "", 1, "");
addItem("10038", "Vertol_20CH_2047_20Chinook", "/hirobo/scale/50er-scale/ch-47-chinook/index.html", 4, "", 1, "");
addItem("100356", "Jet_20Ranger_20f_C3_BCr_20SDX", "/hirobo/scale/50er-scale/jet-ranger-fuer-sdx/index.html", 4, "", 1, "");
addItem("100357", "Long_20Ranger_20f_C3_BCr_20SDX", "/hirobo/scale/50er-scale/long-ranger-fuer-sdx/index.html", 4, "", 1, "");
addItem("100358", "Bell_20222_20f_C3_BCr_20SDX", "/hirobo/scale/50er-scale/bell-222-fuer-sdx/index.html", 4, "", 1, "");
addItem("10018", "60er_20_X2_2090er_20Scale", "/hirobo/scale/60er-90er-scale/index.html", 3, "", 1, "");
addItem("10054", "Bell_20222_20f_C3_BCr_20Freya", "/hirobo/scale/60er-90er-scale/bell-222-fuer-freya/index.html", 4, "", 1, "");
addItem("10049", "Jet_20Ranger_20f_C3_BCr_20Freya", "/hirobo/scale/60er-90er-scale/jet-ranger-fuer-freya/index.html", 4, "", 1, "");
addItem("10052", "AH_X21W_20Super_20Cobra", "/hirobo/scale/60er-90er-scale/ah-1w-super-cobra/index.html", 4, "", 1, "");
addItem("10053", "AH_X21S_20Tow_20Cobra", "/hirobo/scale/60er-90er-scale/ah-1s-tow-cobra/index.html", 4, "", 1, "");
addItem("10046", "Eurocopter_20Tiger", "/hirobo/scale/60er-90er-scale/eurocopter-tiger/index.html", 4, "", 1, "");
addItem("10047", "AS_20365_20Dauphin", "/hirobo/scale/60er-90er-scale/as-365-dauphin/index.html", 4, "", 1, "");
addItem("10048", "AS_20565_20Panther", "/hirobo/scale/60er-90er-scale/as-565-panther/index.html", 4, "", 1, "");
addItem("10050", "Eurocopter_20EC_20135", "/hirobo/scale/60er-90er-scale/eurocopter-ec-135/index.html", 4, "", 1, "");
addItem("10051", "Eurocopter_20EC_20120", "/hirobo/scale/60er-90er-scale/eurocopter-ec-120-colibri/index.html", 4, "", 1, "");
addItem("10019", "Big_20Scale", "/hirobo/scale/big-scale/index.html", 3, "", 1, "");
addItem("10055", "Bell_2047G", "/hirobo/scale/big-scale/bell-47g/index.html", 4, "", 1, "");
addItem("10056", "SA_20315B_20Lama", "/hirobo/scale/big-scale/sa-315b-lama/index.html", 4, "", 1, "");
addItem("10057", "Bell_20430", "/hirobo/scale/big-scale/bell-222/index.html", 4, "", 1, "");
addItem("100121", "Silent_20Power", "/hirobo/elektro-conversion-kits/index.html", 2, "", 1, "");
addItem("100123", "Shuttle_2030_20Plus2", "/hirobo/elektro-conversion-kits/shuttle-30-plus2/index.html", 3, "", 1, "");
addItem("100278", "SDX_2050", "/hirobo/elektro-conversion-kits/sceadu-evo-e-conversion/index.html", 3, "", 1, "");
addItem("100276", "Freya_20Evo", "/hirobo/elektro-conversion-kits/freya-evo-e-conversion/index.html", 3, "", 1, "");
addItem("100277", "Freya_20EX_20_X4_20EAGLE_203", "/hirobo/elektro-conversion-kits/freya-ex-eagle-3-e-conversion/index.html", 3, "", 1, "");
addItem("100122", "S30_20Scale_X2Mechanik", "/hirobo/elektro-conversion-kits/lama-30/index.html", 3, "", 1, "");
addItem("100238", "S_X260_20Scale_X2Mechanik", "/hirobo/elektro-conversion-kits/s-60-scale-mechanik/index.html", 3, "", 1, "");
addItem("100304", "Zubeh_C3_B6r", "/hirobo/elektro-conversion-kits/zubehoer/index.html", 3, "", 1, "");
addItem("100359", "Direct_20Control", "/hirobo/direct-control/index.html", 2, "", 1, "");
addItem("100360", "SDX_20DC", "/hirobo/direct-control/sdx-conversion-kit/index.html", 3, "", 1, "");
addItem("100361", "Freya_20Evo_20DC", "/hirobo/direct-control/freya-evo-dc/index.html", 3, "", 1, "");
addItem("100362", "Turbulence_20_X4_20Eagle_203_20DC", "/hirobo/direct-control/turbulence-eagle-3-dc/index.html", 3, "", 1, "");
addItem("100364", "SSR_207_20_X4_20SSR_X28_20Umbausatz", "/hirobo/direct-control/ssr-7-ssr-8-umbausatz/index.html", 3, "", 1, "");
addItem("100363", "SSR_20Speed_20Head", "/hirobo/direct-control/ssr-speed-head/index.html", 3, "", 1, "");
addItem("100105", "Tuning_X2_20und_20Zubeh_C3_B6rteile", "/hirobo/tuningteile/index.html", 2, "", 1, "");
addItem("100196", "XRB_20SR_20Lama", "/hirobo/tuningteile/xrb-sr-lama/index.html", 3, "", 1, "");
addItem("100296", "SRB_20Quark", "/hirobo/tuningteile/srb-quark/index.html", 3, "", 1, "");
addItem("100109", "Lepton", "/hirobo/tuningteile/lepton/index.html", 3, "", 1, "");
addItem("100106", "Shuttle_2030_20Plus2", "/hirobo/tuningteile/shuttle-30-plus2/index.html", 3, "", 1, "");
addItem("100107", "Sceadu_20Evo", "/hirobo/tuningteile/sceadu-evolution-50/index.html", 3, "", 1, "");
addItem("100314", "SDX_2050", "/hirobo/tuningteile/sdx-50/index.html", 3, "", 1, "");
addItem("100108", "Freya_20Evo_20_X4_20Eagle_203", "/hirobo/tuningteile/freya-evolution/index.html", 3, "", 1, "");
addItem("100255", "Turbulence_20D3", "/hirobo/tuningteile/turbulence-d3/index.html", 3, "", 1, "");
addItem("100114", "Scale_X2Zubeh_C3_B6r", "/hirobo/tuningteile/scale-zubehoer/index.html", 3, "", 1, "");
addItem("100115", "Zubeh_C3_B6r_20und_20Accessoirs", "/hirobo/tuningteile/rc-einbau-spritversorgung/index.html", 3, "", 1, "");
addItem("100113", "Werkzeuge", "/hirobo/tuningteile/werkzeuge/index.html", 3, "", 1, "");
addItem("100330", "TMRF_20Zubeh_C3_B6r", "/tmrf/index.html", 1, "", 1, "");
addItem("100331", "Universal_X2Senderpult", "/tmrf/universal-senderpult/index.html", 2, "", 1, "");
addItem("100332", "Kufenlandegestelle", "/tmrf/kufenlandegestelle/index.html", 2, "", 1, "");
addItem("100333", "Freya_20_X4_20Eagle_203_20Tuning", "/tmrf/freya-eagle-3-tuning/index.html", 2, "", 1, "");
addItem("100327", "Yamada_20Motoren", "/yamada-motoren/index.html", 1, "", 1, "");
addItem("100334", "Yamada_20YS_X256SR", "/yamada-motoren/yamada-ys-56sr/index.html", 2, "", 1, "");
addItem("100367", "Yamada_20YS_X256SR_X2RR", "/yamada-motoren/yamada-ys-56sr-rr/index.html", 2, "", 1, "");
addItem("100335", "Yamada_20YS_X291ST", "/yamada-motoren/yamada-ys-91st/index.html", 2, "", 1, "");
addItem("100336", "Yamada_20YS_X291ST_X2RR", "/yamada-motoren/yamada-ys-91st-rr/index.html", 2, "", 1, "");
addItem("100337", "Yamada_20YS_X291SR", "/yamada-motoren/yamada-ys-91sr/index.html", 2, "", 1, "");
addItem("100338", "Yamada_20YS_X291SR_X2RR", "/yamada-motoren/yamada-ys-91sr-rr/index.html", 2, "", 1, "");
addItem("100339", "Yamada_20YS_X291SR_203C_X2RR", "/yamada-motoren/yamada-ys-91sr-3c-rr/index.html", 2, "", 1, "");
addItem("100369", "Yamada_20YS_X291SRS_X2RR", "/yamada-motoren/yamada-ys-91srs-rr/index.html", 2, "", 1, "");
addItem("100340", "Yamada_20_X2_20Service", "/yamada-motoren/yamada-service/index.html", 2, "", 1, "");
addItem("100341", "YS_X2Ersatzteile", "/yamada-motoren/ys-ersatzteile/index.html", 2, "", 1, "");
addItem("100328", "Hatori", "/hatori2/index.html", 1, "", 1, "");
addItem("100342", "30er_20D_C3_A4mpfer", "/hatori2/30er-daempfer/index.html", 2, "", 1, "");
addItem("100343", "50er_20_X4_2055er_20D_C3_A4mpfer", "/hatori2/50er-55er-daempfer/index.html", 2, "", 1, "");
addItem("100344", "90er_20D_C3_A4mpfer", "/hatori2/90er-daempfer/index.html", 2, "", 1, "");
addItem("100345", "90er_20Resorohr", "/hatori2/90er-resorohr/index.html", 2, "", 1, "");
addItem("100346", "Hatori_20_X2_20Ersatzteile", "/hatori2/hatori-ersatzteile/index.html", 2, "", 1, "");
addItem("100329", "FunTech", "/fun-tech2/index.html", 1, "", 1, "");
addItem("100347", "50er_20D_C3_A4mpfer", "/fun-tech2/50er-daempfer/index.html", 2, "", 1, "");
addItem("100348", "90er_20D_C3_A4mpfer", "/fun-tech2/90er-daempfer/index.html", 2, "", 1, "");
addItem("100349", "Rotorbl_C3_A4tter_20und_20Paddel", "/fun-tech2/rotorblaetter-und-paddel/index.html", 2, "", 1, "");
addItem("100350", "Staysee_20II", "/fun-tech2/staysee-ii/index.html", 2, "", 1, "");
addItem("100352", "Kufenlandegestell", "/fun-tech2/kufenlandegestell/index.html", 2, "", 1, "");
addItem("100351", "FunTech_20Ersatzteile", "/fun-tech2/funtech-ersatzteile/index.html", 2, "", 1, "");
addItem("100372", "Rapicon_20_X2_20Sprit", "/rapicon-sprit/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;
		
	};
};