var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10069", "Stethoskop", "/stethoskop/index.html", 1, "", 1, "");
addItem("10015", "3M_20Littmann_20Stethoskop", "/stethoskop/littmann/index.html", 2, "", 1, "");
addItem("1008", "Littmann_20_X2_20Die_20Klassiker", "/stethoskop/littmann/klassiker/index.html", 3, "", 1, "");
addItem("1007", "Littmann_20_X2_20Black_20Edition", "/stethoskop/littmann/stethoskope-black-edition/index.html", 3, "", 1, "");
addItem("10018", "Littmann_20Kinder_X2_20und_20S_C3_A4uglingsstethoskop", "/stethoskop/littmann/kinder-und-saeuglingsstethoskope/index.html", 3, "", 1, "");
addItem("1002", "Littmann_20elektronisches_20Stethoskop", "/stethoskop/littmann/elektronische-stethoskope/index.html", 3, "", 1, "");
addItem("10042", "Software", "/stethoskop/littmann/software/index.html", 3, "", 1, "");
addItem("1003", "Stethoskop_X2Zubeh_C3_B6r", "/stethoskop/littmann/stethoskop-zubehoer/index.html", 3, "", 1, "");
addItem("10038", "Stethoskop_X2Ersatzteile", "/stethoskop/littmann/stethoskop-ersatzteile/index.html", 3, "", 1, "");
addItem("10039", "Ersatzschl_C3_A4uche_20mit_20Ohrb_C3_BCgel_20und_20Oliven", "/stethoskop/littmann/stethoskop-ersatzteile/ersatzschlaeuche-mit-ohrbuegel-und-oliven/index.html", 4, "", 1, "");
addItem("10040", "Membransets", "/stethoskop/littmann/stethoskop-ersatzteile/membransets/index.html", 4, "", 1, "");
addItem("10041", "Ohroliven", "/stethoskop/littmann/stethoskop-ersatzteile/oliven/index.html", 4, "", 1, "");
addItem("10064", "KaWe_20Stethoskop", "/stethoskop/kawe/index.html", 2, "", 1, "");
addItem("10065", "Doppelkopf_X2Stethoskope", "/stethoskop/kawe/doppelkopf-stethoskope/index.html", 3, "", 1, "");
addItem("10067", "Flachkopf_X2Stethoskope", "/stethoskop/kawe/flachkopf-stethoskope/index.html", 3, "", 1, "");
addItem("10068", "Lehrstethoskop", "/stethoskop/kawe/lehrstethoskop/index.html", 3, "", 1, "");
addItem("10053", "Otoskope", "/otoskope/index.html", 1, "", 1, "");
addItem("10054", "Piccolight", "/otoskope/piccolight/index.html", 2, "", 1, "");
addItem("10055", "Eurolight", "/otoskope/eurolight/index.html", 2, "", 1, "");
addItem("10056", "Zubeh_C3_B6r", "/otoskope/zubehoer/index.html", 2, "", 1, "");
addItem("10058", "Ophthalmoskope", "/ophthalmoskope/index.html", 1, "", 1, "");
addItem("10059", "Piccolight", "/ophthalmoskope/piccolight/index.html", 2, "", 1, "");
addItem("10060", "Eurolight", "/ophthalmoskope/eurolight/index.html", 2, "", 1, "");
addItem("10061", "Diagnostiksets", "/diagnostiksets/index.html", 1, "", 1, "");
addItem("10062", "Eurolight", "/diagnostiksets/eurolight/index.html", 2, "", 1, "");
addItem("10063", "Piccolight", "/diagnostiksets/piccolight/index.html", 2, "", 1, "");
addItem("10072", "Dermatoskope", "/dermatoskope/index.html", 1, "", 1, "");
addItem("10046", "Diagnostika", "/diagnostika/index.html", 1, "", 1, "");
addItem("1004", "Reflexhammer", "/diagnostika/reflexhammer/index.html", 2, "", 1, "");
addItem("10047", "Stimmgabeln", "/diagnostika/stimmgabeln/index.html", 2, "", 1, "");
addItem("10052", "Schmerzpr_C3_BCfer", "/diagnostika/schmerzpruefer/index.html", 2, "", 1, "");
addItem("10057", "Untersuchungsleuchte", "/diagnostika/untersuchungsleuchte/index.html", 2, "", 1, "");
addItem("10075", "Notfall_20und_20Hausbesuch", "/notfall-und-hausbesuch/index.html", 1, "", 1, "");
addItem("10010", "Bollmann_X2Arzttaschen", "/notfall-und-hausbesuch/traditionelle-arzttaschen/index.html", 2, "", 1, "");
addItem("10076", "Ampullarien", "/notfall-und-hausbesuch/ampullarien/index.html", 2, "", 1, "");
addItem("10077", "Formularmappen", "/notfall-und-hausbesuch/formularmappen/index.html", 2, "", 1, "");
addItem("1005", "Pulsoximeter", "/pulsoximeter/index.html", 1, "", 1, "");
addItem("10017", "Lungenfunktion", "/spirometrie/index.html", 1, "", 1, "");
addItem("10034", "Rauchentw_C3_B6hnung", "/spirometrie/rauchentwoehnung/index.html", 2, "", 1, "");
addItem("10035", "Messger_C3_A4te", "/spirometrie/messgeraete-fuer-jedermann/index.html", 2, "", 1, "");
addItem("10036", "Zubeh_C3_B6r", "/spirometrie/spezialgeraete-fuer-mediziner/index.html", 2, "", 1, "");
addItem("10043", "Vernebler", "/vernebler/index.html", 1, "", 1, "");
addItem("10011", "Blutdruckmessger_C3_A4te", "/blutdruckmessgeraete/index.html", 1, "", 1, "");
addItem("10016", "Thermometer", "/thermometer/index.html", 1, "", 1, "");
addItem("10079", "Hygiene_20und_20Desinfektion", "/hygiene-und-desinfektion/index.html", 1, "", 1, "");
addItem("10080", "Wund_X2_20und_20Hautdesinfektion", "/hygiene-und-desinfektion/desinfektionsmittel/index.html", 2, "", 1, "");
addItem("10081", "H_C3_A4ndedesinfektion", "/hygiene-und-desinfektion/pads/index.html", 2, "", 1, "");
addItem("10082", "Fl_C3_A4chendesinfektion", "/hygiene-und-desinfektion/spender/index.html", 2, "", 1, "");
addItem("1009", "Hand_X2EKG_X2Ger_C3_A4te", "/hand-ekg-geraete/index.html", 1, "", 1, "");
addItem("10044", "Laborbedarf", "/laborbedarf/index.html", 1, "", 1, "");
addItem("10048", "Praxiseinrichtung", "/praxiseinrichtung/index.html", 1, "", 1, "");
addItem("10049", "Drehhocker,_20St_C3_BChle", "/praxiseinrichtung/drehhocker-stuehle/index.html", 2, "", 1, "");
addItem("10050", "Universalliegen", "/praxiseinrichtung/universalliegen/index.html", 2, "", 1, "");
addItem("10026", "Laryngoskope", "/laryngoskope/index.html", 1, "", 1, "");
addItem("10020", "Notfallmedizin", "/notfallkoffer/index.html", 1, "", 1, "");
addItem("10021", "Notfallkoffer", "/notfallkoffer/notfallkoffer/index.html", 2, "", 1, "");
addItem("10024", "Serie_20Euromed", "/notfallkoffer/notfallkoffer/serie-euromed/index.html", 3, "", 1, "");
addItem("10025", "Serie_20Clinomed", "/notfallkoffer/notfallkoffer/serie-clinomed/index.html", 3, "", 1, "");
addItem("10022", "Notfallrucksack_20Number_20One", "/notfallkoffer/notfallrucksack/index.html", 2, "", 1, "");
addItem("10023", "Notfallkoffer_X2Serie_20Arzt_20_X7_20Praxis", "/notfallkoffer/notfallkoffer-serie-arzt-praxis/index.html", 2, "", 1, "");
addItem("10027", "Intubation_20_X7_20Beatmung", "/notfallkoffer/intubation-beatmung/index.html", 2, "", 1, "");
addItem("10028", "Laryngoskope", "/notfallkoffer/intubation-beatmung/laryngoskope/index.html", 3, "", 1, "");
addItem("10029", "Intubationsset", "/notfallkoffer/intubation-beatmung/intubationsset/index.html", 3, "", 1, "");
addItem("10030", "Endotracheltubus", "/notfallkoffer/intubation-beatmung/endotracheltuben/index.html", 3, "", 1, "");
addItem("10031", "Wendl_X2_20und_20Guedeltubus", "/notfallkoffer/intubation-beatmung/wendl-und-guedeltubus/index.html", 3, "", 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;
		
	};
};