var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("1001", "Mitglieder_20(25)", "/mitglieder/index.html", 1, "", 1, "");
addItem("1002", "Vorstand", "/der-vorstand/index.html", 1, "", 1, "");
addItem("10029", "Vereinsanschriften", "/vereinsanschriften/index.html", 1, "", 1, "");
addItem("10015", "Gutscheine_20(4)", "/gutscheine/index.html", 1, "", 1, "");
addItem("1008", "Umbau_20Aachener_20Str_X3", "/bauarbeiten-aachener-str/index.html", 1, "", 1, "");
addItem("10040", "Umleitungspl_C3_A4ne", "/bauarbeiten-aachener-str/umleitungsplaene/index.html", 2, "", 1, "");
addItem("10041", "Bilder_20Ausbau", "/bauarbeiten-aachener-str/bilder-ausbau/index.html", 2, "", 1, "");
addItem("10037", "Lokales", "/rp-onlinede/index.html", 1, "", 1, "");
addItem("1005", "Informationen", "/informationen/index.html", 1, "", 1, "");
addItem("10019", "Bilder_20Holt_X2hats", "/informationen/bilder-holt-hats/index.html", 2, "", 1, "");
addItem("10020", "Nikolausmarkt_202001", "/informationen/bilder-holt-hats/nikolausmarkt-2001/index.html", 3, "", 1, "");
addItem("10021", "Nikolausmarkt_202002", "/informationen/bilder-holt-hats/nikolausmarkt-2002/index.html", 3, "", 1, "");
addItem("10022", "Nikolausmarkt_202003", "/informationen/bilder-holt-hats/nikolausmarkt-2003/index.html", 3, "", 1, "");
addItem("10023", "Nikolausmarkt_202004", "/informationen/bilder-holt-hats/nikolausmarkt-2004/index.html", 3, "", 1, "");
addItem("10024", "Nikolausmarkt_202005", "/informationen/bilder-holt-hats/nikolausmarkt-2005/index.html", 3, "", 1, "");
addItem("10025", "Nikolausmarkt_202006", "/informationen/bilder-holt-hats/nikolausmarkt-2006/index.html", 3, "", 1, "");
addItem("10028", "Nikolausmarkt_202007", "/informationen/bilder-holt-hats/nikolausmarkt-2007/index.html", 3, "", 1, "");
addItem("10036", "Nikolausmarkt_202008", "/informationen/bilder-holt-hats/nikolausmarkt-2008/index.html", 3, "", 1, "");
addItem("10043", "Nikolaumarkt_202009_20und_20die_20folgenden_X3_X3_X3", "/http://picasaweb.google.de/106279419147410103902", 3, "", 1, "_blank");
addItem("10014", "Caritas_20Altenheim_20Holt", "/informationen/caritas-altenheim-holt/index.html", 2, "", 1, "");
addItem("1007", "Flughafen_20Holt", "/informationen/flughafen-holt/index.html", 2, "", 1, "");
addItem("10032", "GEM_20MG", "/informationen/gem-moenchengladbach/index.html", 2, "", 1, "");
addItem("10016", "Jugendfreizeitst_C3_A4tte", "/informationen/jugendfreizeitstaette/index.html", 2, "", 1, "");
addItem("1006", "Kirche_20St_X3Michael", "/informationen/unsere-kirche/index.html", 2, "", 1, "");
addItem("10013", "KG_20Immer_20Lustig", "/informationen/kg-immer-lustig/index.html", 2, "", 1, "");
addItem("10034", "VRR_20MG", "/informationen/vrr-mg/index.html", 2, "", 1, "");
addItem("10033", "wichtige_20Adressen", "/informationen/wichtige-adressen/index.html", 2, "", 1, "");
addItem("10018", "weitere_20Adressen", "/informationen/wichtige-adressen/adressen/index.html", 3, "", 1, "");
addItem("10035", "Presse", "/informationen/presse/index.html", 2, "", 1, "");
addItem("10026", "G_C3_A4stebuch", "/informationen/gaestebuch/index.html", 2, "", 1, "");
addItem("10031", "Kontakt", "/kontakt.html", 1, "", 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;
		
	};
};