var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10011", "Products_20sorted_20by_20properties", "/pi11/index.html", 1, "", 1, "");
addItem("10071", "Reinigung", "/pi11/pi71/index.html", 2, "", 1, "");
addItem("10070", "sauer", "/pi11/pi71/pi70/index.html", 3, "", 1, "");
addItem("100155", "nicht_20sch_C3_A4umend", "/pi11/pi71/pi70/pi155/index.html", 4, "", 1, "");
addItem("10080", "sch_C3_A4umend", "/pi11/pi71/pi70/pi80/index.html", 4, "", 1, "");
addItem("10069", "neutral", "/pi11/pi71/pi69/index.html", 3, "", 1, "");
addItem("10068", "alkalisch", "/pi11/pi71/pi68/index.html", 3, "", 1, "");
addItem("100156", "nicht_20sch_C3_A4umend", "/pi11/pi71/pi68/pi156/index.html", 4, "", 1, "");
addItem("10081", "sch_C3_A4umend", "/pi11/pi71/pi68/pi81/index.html", 4, "", 1, "");
addItem("10082", "chlorhaltig", "/pi11/pi71/pi68/pi82/index.html", 4, "", 1, "");
addItem("10034", "Additive", "/pi11/pi71/pi34/index.html", 3, "", 1, "");
addItem("10076", "Entsch_C3_A4umer", "/pi11/pi71/pi34/pi76/index.html", 4, "", 1, "");
addItem("10077", "Laugenadditiv", "/pi11/pi71/pi34/pi77/index.html", 4, "", 1, "");
addItem("10078", "Reinigungsverst_C3_A4rker", "/pi11/pi71/pi34/pi78/index.html", 4, "", 1, "");
addItem("10079", "H_C3_A4rtestabilisatoren", "/pi11/pi71/pi34/pi79/index.html", 4, "", 1, "");
addItem("10031", "Desinfektion", "/pi11/pi31/index.html", 2, "", 1, "");
addItem("10074", "sauer", "/pi11/pi31/pi74/index.html", 3, "", 1, "");
addItem("10073", "neutral", "/pi11/pi31/pi73/index.html", 3, "", 1, "");
addItem("10072", "alkalisch", "/pi11/pi31/pi72/index.html", 3, "", 1, "");
addItem("10014", "Etikettierklebstoffe", "/pi11/pi14/index.html", 2, "", 1, "");
addItem("10037", "Kettengleitmittel", "/pi11/pi37/index.html", 2, "", 1, "");
addItem("10083", "Trockenbandschmierung", "/pi11/pi37/pi83/index.html", 3, "", 1, "");
addItem("10015", "Dosiertechnik", "/pi11/pi15/index.html", 2, "", 1, "");
addItem("100119", "Sonstige", "/pi11/pi119/index.html", 2, "", 1, "");
addItem("10021", "Topics", "/pi21/index.html", 1, "", 1, "");
addItem("10025", "Double_20Function_20Adhesives", "/pi21/pi25/index.html", 2, "", 1, "");
addItem("100170", "Einleitung", "/pi21/pi25/pi170/index.html", 3, "", 1, "");
addItem("100171", "Bifunktionale_20Klebstoffe", "/pi21/pi25/pi171/index.html", 3, "", 1, "");
addItem("100172", "Vorteile_20durch_20Bifunktionalit_C3_A4t", "/pi21/pi25/pi172/index.html", 3, "", 1, "");
addItem("100173", "Auswirkungen_20in_20der_20Lauge", "/pi21/pi25/pi173/index.html", 3, "", 1, "");
addItem("100174", "Weitere_20Vorteile", "/pi21/pi25/pi174/index.html", 3, "", 1, "");
addItem("100175", "Zeitlicher_20Ablauf", "/pi21/pi25/pi175/index.html", 3, "", 1, "");
addItem("100176", "Allgemeine_20Aspekte", "/pi21/pi25/pi176/index.html", 3, "", 1, "");
addItem("10022", "Chlorine_20Dioxide", "/pi21/pi22/index.html", 2, "", 1, "");
addItem("100161", "Chain_20Lubricant_20Concentrates", "/pi21/pi161/index.html", 2, "", 1, "");
addItem("100157", "Gushing", "/pi21/pi157/index.html", 2, "", 1, "");
addItem("10050", "Certificates", "/pi50/index.html", 1, "", 1, "");
addItem("10017", "About_20us", "/pi17/index.html", 1, "", 1, "");
addItem("100163", "Mission_20Statement", "/pi17/pi163/index.html", 2, "", 1, "");
addItem("10016", "Contact", "/pi16/index.html", 1, "", 1, "");
addItem("10043", "Your_20contacts", "/pi16/pi43/index.html", 2, "", 1, "");
addItem("100130", "Company_20head_20office", "/pi16/pi43/pi130/index.html", 3, "", 1, "");
addItem("100131", "Sales_20team", "/pi16/pi43/pi131/index.html", 3, "", 1, "");
addItem("100132", "Partners", "/pi16/pi43/pi132/index.html", 3, "", 1, "");
addItem("10048", "Contact_20form", "/pg5.html", 2, "", 1, "");
addItem("10049", "Email", "/pi16/pi49/index.html", 2, "", 1, "");
addItem("10042", "Address", "/pi16/pi42/index.html", 2, "", 1, "");
addItem("10045", "How_20to_20find_20us", "/pi16/pi45/index.html", 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;
		
	};
};