var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10031", "NEUHEITEN", "/neu/index.html", 1, "", 1, "");
addItem("10098", "Digitalisierungen", "/kostenstellen/index.html", 1, "", 1, "");
addItem("10099", "Papierscannen", "/proffix/optionen/rueckstaende-reservationen/index.html", 2, "", 1, "");
addItem("100100", "Microfilmscannen", "/proffix/optionen/seriennummern/index.html", 2, "", 1, "");
addItem("100120", "Scanner", "/scanner/index.html", 1, "", 1, "");
addItem("100121", "Buchscanner", "/scanner/buchscanner/index.html", 2, "kirtaslogo-small.jpg", 1, "");
addItem("100114", "Spracherkennung", "/spracherkennung/index.html", 1, "", 1, "");
addItem("100118", "Software", "/software/spracherkennung/index.html", 2, "", 1, "");
addItem("100111", "Diktierger_C3_A4te", "/spracherkennung/diktiergeraete/index.html", 2, "", 1, "");
addItem("1001", "Software", "/software/index.html", 1, "", 1, "");
addItem("100122", "Kirtas", "/software/kirtas/index.html", 2, "kirtaslogo-small.jpg", 1, "");
addItem("10022", "ELO", "/software/elo/index.html", 2, "", 1, "");
addItem("10023", "ELOoffice", "/software/elo/elooffice/index.html", 3, "", 1, "");
addItem("10020", "Spracherkennung", "/software/spracherkennung/index.html", 2, "", 1, "");
addItem("10071", "NUANCE_20Dragon_20NaturallySpeaking", "/software/spracherkennung/nuance-dragon-naturallyspeaking/index.html", 3, "nuance-web-logo-small.gif", 1, "");
addItem("10074", "Dragon_20NaturallySpeaking_20Professional", "/software/spracherkennung/nuance-dragon-naturallyspeaking/dragon-naturallyspeaking-professional/index.html", 4, "nuance-web-logo-small.gif", 1, "");
addItem("10076", "Dragon_20NaturallySpeaking_20Legal", "/software/spracherkennung/nuance-dragon-naturallyspeaking/dragon-naturallyspeaking-legal/index.html", 4, "nuance-web-logo-small.gif", 1, "");
addItem("10075", "Dragon_20NaturallySpeaking_20Prof_X4Legal_20_X2_20Lizenzen", "/software/spracherkennung/nuance-dragon-naturallyspeaking/dragon-naturallyspeaking-lizenzen/index.html", 4, "nuance-web-logo-small.gif", 1, "");
addItem("10073", "Dragon_20NaturallySpeaking_20Preferred", "/software/spracherkennung/nuance-dragon-naturallyspeaking/dragon-naturally-speaking-preffered/index.html", 4, "nuance-web-logo-small.gif", 1, "");
addItem("10072", "Dragon_20NaturallySpeaking_20Standard", "/software/spracherkennung/nuance-dragon-naturallyspeaking/dragon-naturally-speaking-standard/index.html", 4, "nuance-web-logo-small.gif", 1, "");
addItem("10070", "Mevotec_20Basisvokabulare_20Medizin", "/software/spracherkennung/mevotec-basisvokabulare/index.html", 3, "p_mevotec-small.jpg", 1, "");
addItem("10077", "NetOp", "/software/netop/index.html", 2, "", 1, "");
addItem("10078", "NetOp_20Remote_20Control", "/software/netop/netop-remote-control/index.html", 3, "", 1, "");
addItem("10079", "NetOp_20School", "/software/netop/netop-school/index.html", 3, "", 1, "");
addItem("10037", "pcvisit", "/software/pcvisit/index.html", 2, "logo-small.jpg", 1, "");
addItem("10039", "pcvisit_204_20Remote", "/software/pcvisit/pcvisit-4-remote/index.html", 3, "logo-small.jpg", 1, "");
addItem("1002", "Microsoft", "/software/software-microsoft/index.html", 2, "", 1, "");
addItem("10030", "Office_202007", "/software/software-microsoft/office-2007/index.html", 3, "", 1, "");
addItem("10014", "Word_202007", "/software/software-microsoft/word/index.html", 3, "", 1, "");
addItem("10017", "Visio_202007", "/software/software-microsoft/visio-2007/index.html", 3, "", 1, "");
addItem("10018", "Access_202007", "/software/software-microsoft/access-2007/index.html", 3, "", 1, "");
addItem("10043", "Sprachen_20_X4_20W_C3_B6rterb_C3_BCcher", "/software/sprachen/index.html", 2, "", 1, "");
addItem("10044", "Langenscheidt", "/software/sprachen/langenscheidt/index.html", 3, "", 1, "");
addItem("100112", "Software_20Download", "/software-download2/index.html", 1, "", 1, "");
addItem("100113", "Software_20(englisch)", "/software-download2/software-englisch/index.html", 2, "", 1, "_self");
addItem("100117", "Internet", "/software-download2/internet/index.html", 2, "", 1, "_self");
addItem("100116", "E_X2Mail", "/software-download2/internet/e-mail/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;
		
	};
};