var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100133", "Zur_20TP_20Homepage", "/http://www.tp-technoplan.de/technik/index.htm", 1, "", 1, "");
addItem("10039", "Hardware_X2CNC_X2PLC", "/hardware/index.htm", 1, "", 1, "");
addItem("10042", "Siemens", "/hardware/siemens/index.htm", 2, "", 1, "");
addItem("10057", "CNC_20System_203_20(2)", "/hardware/siemens/cnc-system-3/index.htm", 3, "", 1, "");
addItem("10056", "CNC_20System_20810_20_X4_20820_20(3)", "/hardware/siemens/cnc-810/index.htm", 3, "", 1, "");
addItem("10046", "CNC_20System_20850_20_X4_20880_20(3)", "/hardware/siemens/cnc/index.htm", 3, "", 1, "");
addItem("10058", "CNC_20System_20840C_20(4)", "/hardware/siemens/cnc-system-840c/index.htm", 3, "", 1, "");
addItem("10059", "CNC_20System_20810D_20_X4_20840D_20pl_20(3)", "/hardware/siemens/cnc-system-840d-pl/index.htm", 3, "", 1, "");
addItem("10060", "CNC_20System_20840D_20sl", "/hardware/siemens/cnc-system-840d-sl/index.htm", 3, "", 1, "");
addItem("10047", "Step_205_20(1)", "/hardware/siemens/s5/index.htm", 3, "", 1, "");
addItem("10048", "Step_207_20(18)", "/hardware/siemens/s7/index.htm", 3, "", 1, "");
addItem("10074", "Mess_X2Systeme_20(2)", "/hardware/siemens/mess-systeme/index.htm", 3, "", 1, "");
addItem("10044", "Heidenhain", "/hardware/heidenhain/index.htm", 2, "", 1, "");
addItem("10054", "CNC_20(2)", "/hardware/heidenhain/cnc/index.htm", 3, "", 1, "");
addItem("10055", "PLC", "/hardware/heidenhain/plc/index.htm", 3, "", 1, "");
addItem("10051", "L_C3_A4ngenmessger_C3_A4te_20(2)", "/hardware/heidenhain/laengenmessgeraete/index.htm", 3, "", 1, "");
addItem("10052", "Drehgeber_20_X1_20Winkelmessger_C3_A4te_20(2)", "/hardware/heidenhain/drehgeber/index.htm", 3, "", 1, "");
addItem("10053", "Mess_X2Taster", "/hardware/heidenhain/taster/index.htm", 3, "", 1, "");
addItem("10075", "Systemkabel_20(4)", "/hardware/heidenhain/systemkabel/index.htm", 3, "", 1, "");
addItem("10043", "Philips", "/hardware/philips/index.htm", 2, "", 1, "");
addItem("10049", "CNC_20System_20NC6600_20(2)", "/hardware/philips/cnc/index.htm", 3, "", 1, "");
addItem("10073", "CNC_20System_203000_20(3)", "/hardware/philips/cnc-system-3000/index.htm", 3, "", 1, "");
addItem("10050", "IPLC", "/hardware/philips/iplc/index.htm", 3, "", 1, "");
addItem("10076", "Rexroth_20Indramat", "/hardware/rexroth-indramat/index.htm", 2, "", 1, "");
addItem("10089", "CNC_20System", "/hardware/rexroth-indramat/cnc-system/index.htm", 3, "", 1, "");
addItem("10090", "Mess_X2Systeme", "/hardware/rexroth-indramat/mess-systeme/index.htm", 3, "", 1, "");
addItem("10068", "FIDIA", "/hardware/fidia/index.htm", 2, "", 1, "");
addItem("10069", "CNC", "/hardware/fidia/cnc/index.htm", 3, "", 1, "");
addItem("10070", "PLC_20(1)", "/hardware/fidia/plc/index.htm", 3, "", 1, "");
addItem("10041", "Software", "/software/index.htm", 1, "", 1, "");
addItem("100124", "Siemens", "/software/siemens/index.htm", 2, "", 1, "");
addItem("10062", "Motoren_X1Umrichter", "/motoren/index.htm", 1, "", 1, "");
addItem("10063", "Servo_20_X2_20Motoren", "/motoren/servo-motoren/index.htm", 2, "", 1, "");
addItem("10071", "Siemens_20(5)", "/motoren/servo-motoren/siemens/index.htm", 3, "", 1, "");
addItem("10072", "Indramat_20(1)", "/motoren/servo-motoren/indramat/index.htm", 3, "", 1, "");
addItem("100129", "Umrichter_X1Zubeh_C3_B6r", "/motoren/umrichterzubehoer/index.htm", 2, "", 1, "");
addItem("100130", "Siemens_20(3)", "/motoren/umrichterzubehoer/siemens/index.htm", 3, "", 1, "");
addItem("100131", "Rexroth_20Indramat_20(3)", "/motoren/umrichterzubehoer/rexroth-indramat/index.htm", 3, "", 1, "");
addItem("10064", "Drehstrom_20_X2_20Motoren_20(1)", "/motoren/drehstrom-motoren/index.htm", 2, "", 1, "");
addItem("10061", "Mechanik", "/mechanik/index.htm", 1, "", 1, "");
addItem("100115", "Forkardt_20(3)", "/mechanik/forkardt/index.htm", 2, "", 1, "");
addItem("100116", "HSW_20Schmid_20(1)", "/mechanik/hsw-schmid/index.htm", 2, "", 1, "");
addItem("100109", "Kabelschlepp_20(5)", "/mechanik/kabelschlepp/index.htm", 2, "", 1, "");
addItem("100112", "Komet_20(1)", "/mechanik/komet/index.htm", 2, "", 1, "");
addItem("100111", "Neidlein_20(1)", "/mechanik/neidlein/index.htm", 2, "", 1, "");
addItem("100114", "Parker_20Hannifin_20(3)", "/mechanik/parker-hannifin/index.htm", 2, "", 1, "");
addItem("100107", "Roehm_20(9)", "/mechanik/roehm/index.htm", 2, "", 1, "");
addItem("100106", "Sauter_20(2)", "/mechanik/sauter/index.htm", 2, "", 1, "");
addItem("100113", "Schomburg_20_X7_20Ludwig_20(2)", "/mechanik/schomburg-ludwig/index.htm", 2, "", 1, "");
addItem("100110", "SMW_X2Autoblock_20(3)", "/mechanik/smw-autoblock/index.htm", 2, "", 1, "");
addItem("100108", "Weiss_20(1)", "/mechanik/weiss/index.htm", 2, "", 1, "");
addItem("100117", "Sonstige_20(4)", "/mechanik/sonstige/index.htm", 2, "", 1, "");
addItem("10065", "Aggregate", "/aggregate/index.htm", 1, "", 1, "");
addItem("10097", "Brinkmann_20(1)", "/aggregate/brinkmann/index.htm", 2, "", 1, "");
addItem("10093", "Eurocold_20(1)", "/aggregate/eurocold/index.htm", 2, "", 1, "");
addItem("10077", "Hyfra", "/aggregate/index3.htm", 2, "", 1, "");
addItem("10099", "Lubrix_20Areo_20Tec_20(1)", "/aggregate/lubrix-areo-tec/index.htm", 2, "", 1, "");
addItem("10098", "Parker_20(1)", "/aggregate/parker/index.htm", 2, "", 1, "");
addItem("10066", "Vogel_20(4)", "/aggregate/vogel/index.htm", 2, "", 1, "");
addItem("10067", "Hydraulik", "/hydraulik/index.htm", 1, "", 1, "");
addItem("10096", "Druckspeicher_20(2)", "/hydraulik/druckspeicher/index.htm", 2, "", 1, "");
addItem("10083", "Ventile_20(37)", "/hydraulik/ventile/index.htm", 2, "", 1, "");
addItem("10084", "Zylinder_20(11)", "/hydraulik/zylinder/index.htm", 2, "", 1, "");
addItem("10085", "Pneumatik", "/pneumatik/index.htm", 1, "", 1, "");
addItem("10086", "Ventile_20(1)", "/pneumatik/ventile/index.htm", 2, "", 1, "");
addItem("10087", "Zylinder", "/pneumatik/zylinder/index.htm", 2, "", 1, "");
addItem("100118", "Elektrik", "/elektronik/index.htm", 1, "", 1, "");
addItem("100103", "Balluff_20(1)", "/elektronik/balluff/index.htm", 2, "", 1, "");
addItem("100123", "Baumer_20electric_20(1)", "/elektronik/baumer-electric/index.htm", 2, "", 1, "");
addItem("100102", "Euchner_20(9)", "/elektronik/euchner/index.htm", 2, "", 1, "");
addItem("100120", "Festo_20(2)", "/elektronik/festo/index.htm", 2, "", 1, "");
addItem("100119", "ifm_20electronic_20(11)", "/elektronik/ifm-elektronik/index.htm", 2, "", 1, "");
addItem("100122", "Klaschka_20GmbH_20_X7_20Co_20(1)", "/elektronik/klaschka-gmbh-co/index.htm", 2, "", 1, "");
addItem("100126", "Lapp_20Kabel_20(1)", "/elektronik/lapp-kabel/index.htm", 2, "", 1, "");
addItem("100105", "Lumberg_20(50)", "/elektronik/lumberg/index.htm", 2, "", 1, "");
addItem("100104", "Murr_20Elektronik_20(6)", "/elektronik/murr-elektronik/index.htm", 2, "", 1, "");
addItem("100125", "NovoTechnik_20(1)", "/elektronik/novotechnik/index.htm", 2, "", 1, "");
addItem("100121", "Pepperl_20_X7_20Fuchs_20(1)", "/elektronik/pepperl-fuchs/index.htm", 2, "", 1, "");
addItem("100127", "Riedel_20(2)", "/elektronik/riedel/index.htm", 2, "", 1, "");
addItem("10095", "WZ_X2_C3_9Cberwachung_20(3)", "/elektronik/wz-ueberwachung/index.htm", 2, "", 1, "");
addItem("10031", "Zubeh_C3_B6r", "/zubehoer/index.htm", 1, "", 1, "");
addItem("10091", "Elektrik", "/zubehoer/elektrik/index.htm", 2, "", 1, "");
addItem("10092", "Mechanik_20(3)", "/zubehoer/mechanik/index.htm", 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;
		
	};
};