var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("1002953", "Schraubenset", "/schraubenset/index.php", 1, "", 1, "");
addItem("1002954", "Motorola", "/schraubenset/motorola/index.php", 2, "", 1, "");
addItem("1002955", "Nokia", "/schraubenset/nokia/index.php", 2, "", 1, "");
addItem("1002956", "Samsung", "/schraubenset/samsung/index.php", 2, "", 1, "");
addItem("1002957", "Sony_20Ericsson", "/schraubenset/sony-ericsson/index.php", 2, "", 1, "");
addItem("1002958", "LG", "/schraubenset/lg/index.php", 2, "", 1, "");
addItem("1002959", "Gummi_20Tastenkappe_20ON,OFF", "/gummi-tastenkappe-onoff/index.php", 1, "", 1, "");
addItem("1002960", "Nokia", "/gummi-tastenkappe-onoff/nokia/index.php", 2, "", 1, "");
addItem("1002975", "Sony_20Ericsson", "/gummi-tastenkappe-onoff/sony-ericsson/index.php", 2, "", 1, "");
addItem("1002961", "Taster_20Power", "/taster-power/index.php", 1, "", 1, "");
addItem("1002962", "Nokia", "/taster-power/nokia/index.php", 2, "", 1, "");
addItem("1002965", "Sony_20Ericsson", "/taster-power/sony-ericsson/index.php", 2, "", 1, "");
addItem("1002963", "Mikrofon", "/mikrofon/index.php", 1, "", 1, "");
addItem("1002964", "Nokia", "/mikrofon/nokia/index.php", 2, "", 1, "");
addItem("1002968", "Samsung", "/mikrofon/samsung/index.php", 2, "", 1, "");
addItem("1002969", "Motorola", "/mikrofon/motorola/index.php", 2, "", 1, "");
addItem("1002988", "Siemens", "/mikrofon/siemens/index.php", 2, "", 1, "");
addItem("1002989", "Sony_20Ericsson", "/mikrofon/sony-ericsson/index.php", 2, "", 1, "");
addItem("1002966", "Display", "/display/index.php", 1, "", 1, "");
addItem("1002967", "Samsung", "/display/samsung/index.php", 2, "", 1, "");
addItem("1003054", "Nokia", "/display/nokia/index.php", 2, "", 1, "");
addItem("1003058", "Siemens", "/display/siemens/index.php", 2, "", 1, "");
addItem("1003065", "Motorola", "/display/motorola/index.php", 2, "", 1, "");
addItem("1003067", "LG", "/display/lg/index.php", 2, "", 1, "");
addItem("1003068", "Sony_20Ericsson", "/display/sony-ericsson/index.php", 2, "", 1, "");
addItem("1003072", "Sagem", "/display/sagem/index.php", 2, "", 1, "");
addItem("1002970", "Tastaturkontaktmatte", "/tastaturkontaktmatte/index.php", 1, "", 1, "");
addItem("1002971", "Nokia", "/tastaturkontaktmatte/nokia/index.php", 2, "", 1, "");
addItem("1002992", "Motorola", "/tastaturkontaktmatte/motorola/index.php", 2, "", 1, "");
addItem("1002993", "Sony_20Ericsson", "/tastaturkontaktmatte/sony-ericsson/index.php", 2, "", 1, "");
addItem("1002972", "Aufsatz_20_X2_20Joystick", "/aufsatz-joystick/index.php", 1, "", 1, "");
addItem("1002973", "Sony_20Ericsson", "/aufsatz-joystick/sony-ericsson/index.php", 2, "", 1, "");
addItem("1002974", "Nokia", "/aufsatz-joystick/nokia/index.php", 2, "", 1, "");
addItem("1003007", "Siemens", "/aufsatz-joystick/siemens/index.php", 2, "", 1, "");
addItem("1002976", "Buzzer_20Summer", "/buzzer-summer/index.php", 1, "", 1, "");
addItem("1002977", "Motorola", "/buzzer-summer/motorola/index.php", 2, "", 1, "");
addItem("1002978", "Nokia", "/buzzer-summer/nokia/index.php", 2, "", 1, "");
addItem("1002979", "Sony_20Ericsson", "/buzzer-summer/sony-ericsson/index.php", 2, "", 1, "");
addItem("1002984", "Samsung", "/buzzer-summer/samsung/index.php", 2, "", 1, "");
addItem("1002985", "Siemens", "/buzzer-summer/siemens/index.php", 2, "", 1, "");
addItem("1003005", "LG", "/buzzer-summer/lg/index.php", 2, "", 1, "");
addItem("1003008", "Sagem", "/buzzer-summer/sagem/index.php", 2, "", 1, "");
addItem("1002980", "Lautsprecher", "/lautsprecher/index2.php", 1, "", 1, "");
addItem("1002981", "Sony_20Ericsson", "/lautsprecher/sony-ericsson/index.php", 2, "", 1, "");
addItem("1002982", "Siemens", "/lautsprecher/siemens/index.php", 2, "", 1, "");
addItem("1002983", "Nokia", "/lautsprecher/nokia/index.php", 2, "", 1, "");
addItem("1002986", "Motorola", "/lautsprecher/motorola/index.php", 2, "", 1, "");
addItem("1002987", "Samsung", "/lautsprecher/samsung/index.php", 2, "", 1, "");
addItem("1003011", "LG", "/lautsprecher/lg/index.php", 2, "", 1, "");
addItem("1002990", "Displayscheibe", "/displayscheibe/index.php", 1, "", 1, "");
addItem("1002991", "Motorola", "/displayscheibe/motorola/index.php", 2, "", 1, "");
addItem("1003016", "Nokia", "/displayscheibe/nokia/index.php", 2, "", 1, "");
addItem("1003042", "Samsung", "/displayscheibe/samsung/index.php", 2, "", 1, "");
addItem("1003045", "LG", "/displayscheibe/lg/index.php", 2, "", 1, "");
addItem("1002994", "Anschlussbuchse", "/anschlussbuchse/index.php", 1, "", 1, "");
addItem("1002995", "Motorola", "/anschlussbuchse/motorola/index.php", 2, "", 1, "");
addItem("1002998", "Sony_20Ericsson", "/anschlussbuchse/sony-ericsson/index.php", 2, "", 1, "");
addItem("1003006", "Samsung", "/anschlussbuchse/samsung/index.php", 2, "", 1, "");
addItem("1003009", "Nokia", "/anschlussbuchse/nokia/index.php", 2, "", 1, "");
addItem("1003024", "LG", "/anschlussbuchse/lg/index.php", 2, "", 1, "");
addItem("1002996", "Ladebuchse", "/ladebuchse/index.php", 1, "", 1, "");
addItem("1002997", "Motorola", "/ladebuchse/motorola/index.php", 2, "", 1, "");
addItem("1003001", "Samsung", "/ladebuchse/samsung/index.php", 2, "", 1, "");
addItem("1003019", "LG", "/ladebuchse/lg/index.php", 2, "", 1, "");
addItem("1002999", "Buzzer_20_X1_20Speaker", "/buzzer-speaker/index.php", 1, "", 1, "");
addItem("1003000", "Samsung", "/buzzer-speaker/samsung/index.php", 2, "", 1, "");
addItem("1003013", "Nokia", "/buzzer-speaker/nokia/index.php", 2, "", 1, "");
addItem("1003020", "Siemens", "/buzzer-speaker/siemens/index.php", 2, "", 1, "");
addItem("1003021", "Sony_20Ericsson", "/buzzer-speaker/sony-ericsson/index.php", 2, "", 1, "");
addItem("1003002", "JOYSTICK", "/joystick/index.php", 1, "", 1, "");
addItem("1003003", "Siemens", "/joystick/siemens/index.php", 2, "", 1, "");
addItem("1003004", "Motorola", "/joystick/motorola/index.php", 2, "", 1, "");
addItem("1003010", "Nokia", "/joystick/nokia/index.php", 2, "", 1, "");
addItem("1003012", "Sony_20Ericsson", "/joystick/sony-ericsson/index.php", 2, "", 1, "");
addItem("1003014", "KORPUS_20Nokia", "/korpus-nokia/index.php", 1, "", 1, "");
addItem("1003015", "6100", "/korpus-nokia/6100/index.php", 2, "", 1, "");
addItem("1003017", "Werkzeug", "/werkzeug/index.php", 1, "", 1, "");
addItem("1003018", "Schraubendreher", "/werkzeug/schraubendreher/index.php", 2, "", 1, "");
addItem("1003056", "Pinzette_20straight", "/werkzeug/pinzette-straight/index.php", 2, "", 1, "");
addItem("1003057", "Pinzette_20curve", "/werkzeug/pinzette-curve/index.php", 2, "", 1, "");
addItem("1003022", "Flexkabel", "/flexkabel/index.php", 1, "", 1, "");
addItem("1003023", "Siemens", "/flexkabel/siemens/index.php", 2, "", 1, "");
addItem("1003025", "Samsung", "/flexkabel/samsung/index.php", 2, "", 1, "");
addItem("1003026", "Nokia", "/flexkabel/nokia/index.php", 2, "", 1, "");
addItem("1003046", "Motorola", "/flexkabel/motorola/index.php", 2, "", 1, "");
addItem("1003051", "Sony_20Ericsson", "/flexkabel/sony-ericsson/index.php", 2, "", 1, "");
addItem("1003053", "LG", "/flexkabel/lg/index.php", 2, "", 1, "");
addItem("1003027", "Eingabestift", "/eingabestift/index.php", 1, "", 1, "");
addItem("1003028", "PDA_20(_208_20cm)", "/eingabestift/pda-8-cm/index.php", 2, "", 1, "");
addItem("1003029", "PDA_20P1", "/eingabestift/pda-p1/index.php", 2, "", 1, "");
addItem("1003035", "PDA_20(10_20cm)", "/eingabestift/pda-10-cm/index.php", 2, "", 1, "");
addItem("1003041", "PDA_20HTC_20DIAMOND_20B", "/eingabestift/pda-htc-diamond-b/index.php", 2, "", 1, "");
addItem("1003047", "PDA_20LG_20KU990_20BLACK", "/eingabestift/pda-lg-ku990-black/index.php", 2, "", 1, "");
addItem("1003048", "PDA_20I900", "/eingabestift/pda-i900/index.php", 2, "", 1, "");
addItem("1003049", "LG", "/eingabestift/lg/index.php", 2, "", 1, "");
addItem("1003052", "PDA_20HTC_20DIAMOND_20A", "/eingabestift/pda-htc-diamond-a/index.php", 2, "", 1, "");
addItem("1003030", "Antenne", "/antenne/index.php", 1, "", 1, "");
addItem("1003031", "Sony_20Ericsson", "/antenne/sony-ericsson/index.php", 2, "", 1, "");
addItem("1003032", "Platine_20unter_20Tastatur", "/platine-unter-tastatur/index.php", 1, "", 1, "");
addItem("1003033", "Sony_20Ericsson", "/platine-unter-tastatur/sony-ericsson/index.php", 2, "", 1, "");
addItem("1003034", "Nokia", "/platine-unter-tastatur/nokia/index.php", 2, "", 1, "");
addItem("1003055", "Samsung", "/platine-unter-tastatur/samsung/index.php", 2, "", 1, "");
addItem("1003066", "Motorola", "/platine-unter-tastatur/motorola/index.php", 2, "", 1, "");
addItem("1003043", "SLIDER", "/slider/index.php", 1, "", 1, "");
addItem("1003044", "Samsung", "/slider/samsung/index.php", 2, "", 1, "");
addItem("1003050", "Nokia", "/slider/nokia/index.php", 2, "", 1, "");
addItem("1003059", "Kameramodul", "/kameramodul/index.php", 1, "", 1, "");
addItem("1003060", "Motorola", "/kameramodul/motorola/index.php", 2, "", 1, "");
addItem("1003061", "Samsung", "/kameramodul/samsung/index.php", 2, "", 1, "");
addItem("1003064", "Nokia", "/kameramodul/nokia/index.php", 2, "", 1, "");
addItem("1003071", "Sony_20Ericsson", "/kameramodul/sony-ericsson/index.php", 2, "", 1, "");
addItem("1003062", "Simadapter", "/simadapter/index.php", 1, "", 1, "");
addItem("1003063", "SIM_20EXTRA_20300G", "/simadapter/sim-extra-300g/index.php", 2, "", 1, "");
addItem("1003069", "SIM_20SUPER_20X", "/simadapter/sim-super-x/index.php", 2, "", 1, "");
addItem("1003070", "SIM_20ALPHA_20X", "/simadapter/sim-alpha-x/index.php", 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;
		
	};
};