var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10041", "Privatpost_20ab_2022_X312_X31997", "/pi41/index.html", 1, "ordner2-small.gif", 1, "");
addItem("1001", "01169:_20PostModern_20(Media_20Logistik)", "/pi41/pi1/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10021", "02960:_20City_X2Kurier_20SaBra", "/pi41/pi21/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10027", "03050:_20Regio_20Print_X2Vertrieb_20(RPV)", "/pi41/pi27/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10030", "04103:_20PIN_20Sachsen", "/pi41/pi30/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10032", "04828:_20Briefservice_20Muldetal", "/pi41/pi32/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10069", "06112:_20Mitteldeutsche_20Zeitung_20(MZZ)", "/pi41/pi69/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10034", "06366:_20Kurier_X2_20und_20Service_X2Station_20(KSS)", "/pi41/pi34/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10036", "06391:_20Gr_C3_BCne_20Post", "/pi41/pi36/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10038", "06391:_20Gr_C3_BCne_20Kurier_X2Post", "/pi41/pi38/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10040", "06391:_20Fred_20Eckelmann", "/pi41/pi40/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10042", "06431:_20RPD_20Hartkopp", "/pi41/pi42/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10044", "06510:_20Sangerh_C3_A4user_20Kurier", "/pi41/pi44/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10071", "06528:_20S_C3_BCdharzer_20Stadt_X2_20und_20Landkurier", "/pi41/pi71/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10081", "06917:_20Express_X2Schatztruhe_20(ESJ)", "/pi41/pi81/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10082", "07540:_20City_X2Kurier", "/pi41/pi82/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10083", "07540:_20Kurierunion", "/pi41/pi83/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10086", "07545:_20Kurier_X2_20und_20Paketdienst_20Gehrt", "/pi41/pi86/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100128", "07743:_20RBS", "/pi41/pi128/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10075", "08230:_20PostModern_20(ASD)", "/pi41/pi75/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10079", "09120:_20PostModern_20(WVD)", "/pi41/pi79/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10045", "12681:_20PIN_20AG", "/pi41/pi45/index.html", 2, "ordner2-small.gif", 1, "");
addItem("10049", "14482:_20DEBEX", "/pi41/pi49/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10047", "14482:_20Die_20Briefboten", "/pi41/pi47/index.html", 2, "ordner2-small.gif", 1, "");
addItem("10050", "14712:_20Blitz_X2Kurier", "/pi41/pi50/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100110", "15230:_20Pressezustellservice_20Oderland", "/pi41/pi110/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10080", "15569:_20speedy_X2express", "/pi41/pi80/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10051", "16265:_20Oderlandbrief", "/pi41/pi51/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10052", "16303:_20City_20Brief_20Bote_20(CBB)", "/pi41/pi52/index.html", 2, "ordner2-small.gif", 1, "");
addItem("10053", "16816:_20Turbo_20P_X3O_X3S_X3T_X3", "/pi41/pi53/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10084", "17034:_20Nordkurier_20(Kurierverlags_20GmbH)", "/pi41/pi84/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100115", "18001:_20OP_20Ostsee_X2Post", "/pi41/pi115/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10072", "18146:_20OLYMP_X2Post", "/pi41/pi72/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100116", "18311:_20RIDAS", "/pi41/pi116/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100113", "19053:_20RegionalBrief", "/pi41/pi113/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10054", "19061:_20Meckl_X3_20Zeitungsvertrieb_20(MZV)", "/pi41/pi54/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10085", "19348:_20Dittmer", "/pi41/pi85/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10056", "31655:_20Brief_X2Zustell_X2Service_20(BZS)", "/pi41/pi56/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10057", "39104:_20Biber_X2Post", "/pi41/pi57/index.html", 2, "ordner2-small.gif", 1, "");
addItem("10058", "39218:_20GO_X2Print", "/pi41/pi58/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10059", "50996:_20PIN_20NRW", "/pi41/pi59/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10077", "53113:_20Deutsche_20Post_20_X2_20Privatausgabe", "/pi41/pi77/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100114", "68167:_20Morgenpost_X2Briefservice", "/pi41/pi114/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10062", "72762:_20s_E2_80_A6mail", "/pi41/pi62/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100127", "76135:_20Per_20Rad_20(Stadtbrief)", "/pi41/pi127/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100126", "99084:_20Mailcats", "/pi41/pi126/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100112", "99423:_202RD", "/pi41/pi112/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100129", "99734:_20DAZ", "/pi41/pi129/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10070", "99817:_20CC_X2Courier_20Postzustelldienst", "/pi41/pi70/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10078", "Ausland:_20PIN_20Group_20(PIN_20Mail)", "/pi41/pi78/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100119", "Altdeutschland", "/pi119/index.html", 1, "ordner1-small.gif", 1, "");
addItem("100120", "Bayern", "/pi119/pi120/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100121", "Ganzsachen", "/pi119/pi120/pi121/index.html", 3, "ordner1-small.gif", 1, "");
addItem("100140", "Thurn_20_X7_20Taxis", "/pi119/pi140/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100141", "Ganzsachen", "/pi119/pi140/pi141/index.html", 3, "ordner1-small.gif", 1, "");
addItem("100108", "Deutsches_20Reich", "/pi108/index.html", 1, "ordner1-small.gif", 1, "");
addItem("100130", "Generalgouvernement", "/pi108/pi130/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100109", "Steuermarken", "/pi108/pi109/index.html", 2, "ordner1-small.gif", 1, "");
addItem("1007", "DDR", "/pi7/index.html", 1, "ordner1-small.gif", 1, "");
addItem("10028", "Briefmarken_201949_20_X2_201959", "/pi7/pi28/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100107", "Briefmarken_201960_20_X2_201989", "/pi7/pi107/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100118", "Ersttagsbl_C3_A4tter_20(ETB)", "/pi7/pi118/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10031", "Ersttagsbriefe_20(FDC)", "/pi7/pi31/index.html", 2, "ordner1-small.gif", 1, "");
addItem("1006", "Ganzsachen", "/pi7/pi6/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100104", "Ganzst_C3_BCcke", "/pi7/pi104/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100122", "Markenheftchen", "/pi7/pi122/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10097", "Maximumkarten", "/pi7/pi97/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10095", "Schwarzdrucke", "/pi7/pi95/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10076", "Spendenmarken", "/pi7/pi76/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100100", "Telegrammbl_C3_A4tter", "/pi7/pi100/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10037", "Weiteres", "/pi7/pi37/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10012", "Berlin_20(West)", "/pi12/index.html", 1, "ordner1-small.gif", 1, "");
addItem("10090", "Vignetten", "/pi12/pi90/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10015", "Bundesrepublik_20Deutschland", "/pi15/index.html", 1, "ordner2-small.gif", 1, "");
addItem("10089", "Automatenmarken", "/pi15/pi89/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10092", "Erinnerungskarten", "/pi15/pi92/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10023", "Ersttagsbriefe_20(FDC)", "/pi15/pi23/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10033", "Ganzsachen", "/pi15/pi33/index.html", 2, "ordner2-small.gif", 1, "");
addItem("10035", "Ganzst_C3_BCcke", "/pi15/pi35/index.html", 2, "ordner2-small.gif", 1, "");
addItem("10066", "Jahresgabe_20des_20BDPh_20e_X3_20V_X3", "/pi15/pi66/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10087", "Messebelege", "/pi15/pi87/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10067", "Ministerkarten", "/pi15/pi67/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100117", "Ministermappe_20_22Wei_C3_9Fe_20Mappe_22", "/pi15/pi117/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100106", "Postwerbegeschenke", "/pi15/pi106/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100123", "Weiteres", "/pi15/pi123/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10048", "Wir_20suchen", "/pi15/pi48/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100105", "Europa", "/pi105/index.html", 1, "ordner2-small.gif", 1, "");
addItem("100134", "Belgien", "/pi105/pi134/index.html", 2, "ordner2-small.gif", 1, "");
addItem("100135", "Markenheftchen", "/pi105/pi134/pi135/index.html", 3, "ordner2-small.gif", 1, "");
addItem("100138", "D_C3_A4nemark_20_X2_20Gr_C3_B6nland", "/pi105/pi138/index.html", 2, "ordner2-small.gif", 1, "");
addItem("100139", "Markenheftchen", "/pi105/pi138/pi139/index.html", 3, "ordner2-small.gif", 1, "");
addItem("100131", "Finnland_20_X2_20Aland", "/pi105/pi131/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100132", "Briefmarken", "/pi105/pi131/pi132/index.html", 3, "ordner1-small.gif", 1, "");
addItem("100133", "Markenheftchen", "/pi105/pi131/pi133/index.html", 3, "ordner1-small.gif", 1, "");
addItem("100136", "Island", "/pi105/pi136/index.html", 2, "ordner2-small.gif", 1, "");
addItem("100137", "Markenheftchen", "/pi105/pi136/pi137/index.html", 3, "ordner2-small.gif", 1, "");
addItem("100124", "_C3_96sterreich", "/pi105/pi124/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100125", "Jahresgabe_20des_20V_C3_96Ph_20e_X3_20V_X3", "/pi105/pi124/pi125/index.html", 3, "ordner1-small.gif", 1, "");
addItem("10026", "Schweiz", "/pi105/pi26/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100103", "Briefmarken", "/pi105/pi26/pi103/index.html", 3, "ordner1-small.gif", 1, "");
addItem("10029", "Vereinte_20Nationen_20(UNO)_20_X2_20_20Wien", "/pi105/pi29/index.html", 2, "ordner2-small.gif", 1, "");
addItem("100102", "Ersttagsbriefe_20(FDC)", "/pi105/pi29/pi102/index.html", 3, "ordner2-small.gif", 1, "");
addItem("10068", "Literatur", "/pi68/index.html", 1, "ordner1-small.gif", 1, "");
addItem("10043", "Chronik", "/pi68/pi43/index.html", 2, "ordner1-small.gif", 1, "");
addItem("1003", "BDPh_20Landesverband_20Brandenburg", "/pi68/pi43/pi3/index.html", 3, "ordner1-small.gif", 1, "");
addItem("10013", "BSV_20Brandenburgia", "/pi68/pi43/pi13/index.html", 3, "ordner1-small.gif", 1, "");
addItem("10010", "Kataloge", "/pi68/pi10/index.html", 2, "ordner2-small.gif", 1, "");
addItem("10073", "Schriftenreihe", "/pi68/pi73/index.html", 2, "ordner1-small.gif", 1, "");
addItem("100142", "B_C3_BCcher", "/pi68/pi142/index.html", 2, "ordner2-small.gif", 1, "");
addItem("10046", "Zubeh_C3_B6r", "/pi46/index.html", 1, "ordner1-small.gif", 1, "");
addItem("10022", "Briefmarkenalben", "/pi46/pi22/index.html", 2, "ordner1-small.gif", 1, "");
addItem("10018", "Pr_C3_BCfhilfe_20(Inflation)", "/pi46/pi18/index.html", 2, "ordner1-small.gif", 1, "");
addItem("1002", "Angebotslisten", "/pg58.php", 1, "ordner2-small.gif", 1, "_self");
};

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;
		
	};
};