var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100109", "Anlagen_C3_BCberwachung", "/pi109/index.html", 1, "", 1, "");
addItem("100110", "SolarLog", "/pi109/pi110/index.html", 2, "", 1, "");
addItem("100152", "SolarLog200", "/pi109/pi110/pi152/index.html", 3, "", 1, "");
addItem("100146", "SolarLog500", "/pi109/pi110/pi146/index.html", 3, "", 1, "");
addItem("100147", "SolarLog1000", "/pi109/pi110/pi147/index.html", 3, "", 1, "");
addItem("1003", "Zubeh_C3_B6r_20SolarLog", "/pi109/pi110/pi3/index.html", 3, "", 1, "");
addItem("10045", "Zubeh_C3_B6r_20f_C3_BCr_20den_20SolarLog100e", "/pi109/pi110/pi3/pi45/index.html", 4, "", 1, "");
addItem("10047", "Schnittstellen", "/pi109/pi110/pi3/pi45/pi47/index.html", 5, "", 1, "");
addItem("10048", "Kommunikation", "/pi109/pi110/pi3/pi45/pi48/index.html", 5, "", 1, "");
addItem("10044", "Zubeh_C3_B6r_20f_C3_BCr_20den_20SolarLog500_X41000", "/pi109/pi110/pi3/pi44/index.html", 4, "", 1, "");
addItem("10054", "Anschlusskabel", "/pi109/pi110/pi3/pi44/pi54/index.html", 5, "", 1, "");
addItem("10051", "Schnittstellen", "/pi109/pi110/pi3/pi44/pi51/index.html", 5, "", 1, "");
addItem("10052", "Kommunikation", "/pi109/pi110/pi3/pi44/pi52/index.html", 5, "", 1, "");
addItem("10053", "Sensortechnik", "/pi109/pi110/pi3/pi44/pi53/index.html", 5, "", 1, "");
addItem("10056", "Displays", "/pi109/pi110/pi3/pi44/pi56/index.html", 5, "", 1, "");
addItem("10057", "Vitrinen", "/pi109/pi110/pi3/pi44/pi57/index.html", 5, "", 1, "");
addItem("10027", "Schnittstellen", "/pi109/pi110/pi3/pi27/index.html", 4, "", 1, "");
addItem("10018", "Kommunikation", "/pi109/pi110/pi3/pi18/index.html", 4, "", 1, "");
addItem("10090", "Installation", "/pi109/pi110/pi3/pi90/index.html", 4, "", 1, "");
addItem("10043", "Hintergrundbilder", "/pi109/pi110/pi3/pi43/index.html", 4, "", 1, "");
addItem("10096", "SolarLog_20ServicePack", "/pi109/pi110/pi3/pi96/index.html", 4, "", 1, "");
addItem("100111", "SMA", "/pi109/pi111/index.html", 2, "", 1, "");
addItem("100112", "Sunny_20Beam", "/pi109/pi111/pi112/index.html", 3, "", 1, "");
addItem("100114", "Sunny_20WebBox", "/pi109/pi111/pi114/index.html", 3, "", 1, "");
addItem("100115", "Sunny_20SensorBox", "/pi109/pi111/pi115/index.html", 3, "", 1, "");
addItem("100117", "Zubeh_C3_B6r_20SMA", "/pi109/pi111/pi117/index.html", 3, "", 1, "");
addItem("100105", "Solarmodule", "/pi105/index.html", 1, "", 1, "");
addItem("100143", "Kyocera", "/pi105/pi143/index.html", 2, "", 1, "");
addItem("100142", "Sanyo", "/pi105/pi142/index.html", 2, "", 1, "");
addItem("100125", "Schott_20Solar", "/pi105/pi125/index.html", 2, "", 1, "");
addItem("100126", "Sovello", "/pi105/pi126/index.html", 2, "", 1, "");
addItem("100144", "Yingli_20Solar", "/pi105/pi144/index.html", 2, "", 1, "");
addItem("100153", "Solarfun", "/pi105/pi153/index.html", 2, "", 1, "");
addItem("100154", "Kioto", "/pi105/pi154/index.html", 2, "", 1, "");
addItem("100102", "Wechselrichter", "/pi102/index.html", 1, "", 1, "");
addItem("100103", "SMA", "/pi102/pi103/index.html", 2, "", 1, "");
addItem("100106", "Sunny_20Boy", "/pi102/pi103/pi106/index.html", 3, "", 1, "");
addItem("100107", "Sunny_20Mini_20Central", "/pi102/pi103/pi107/index.html", 3, "", 1, "");
addItem("100108", "Schnittstellen", "/pi102/pi103/pi108/index.html", 3, "", 1, "");
addItem("100104", "KACO", "/pi102/pi104/index.html", 2, "", 1, "");
addItem("100120", "SolarMax", "/pi102/pi120/index.html", 2, "", 1, "");
addItem("100124", "Fronius", "/pi102/pi124/index.html", 2, "", 1, "");
addItem("100121", "Kostal", "/pi102/pi121/index.html", 2, "", 1, "");
addItem("100122", "Danfoss", "/pi102/pi122/index.html", 2, "", 1, "");
addItem("100123", "Netzeinspeise_X2Anlagen", "/pi123/index.html", 1, "", 1, "");
addItem("100128", "Modulmontage", "/pi128/index.html", 1, "", 1, "");
addItem("100136", "Netzautarke_20Systeme", "/pi136/index.html", 1, "", 1, "");
addItem("100137", "Inselwechselrichter", "/pi136/pi137/index.html", 2, "", 1, "");
addItem("100118", "Zubeh_C3_B6r", "/pi118/index.html", 1, "", 1, "");
addItem("10055", "Stromz_C3_A4hler", "/pi118/pi55/index.html", 2, "", 1, "");
addItem("100119", "Kabel", "/pi118/pi119/index.html", 2, "", 1, "");
addItem("10033", "Aufkleber", "/pi118/pi33/index.html", 2, "", 1, "");
addItem("10071", "Info_20und_20Service", "/pi71/index.html", 1, "", 1, "");
addItem("10087", "Forum_20Sonne", "/http://www.forum-sonne.de", 2, "", 1, "_blank");
addItem("10076", "Stromkostenvergleich", "/http://ads.wechseln.de/misc/click.php?pid=52327&aid=48&product_id=1&mode=normal-online", 2, "", 1, "_blank");
addItem("10086", "Gaskostenvergleich", "/http://ads.wechseln.de/misc/click.php?pid=52327&aid=19&product_id=2", 2, "", 1, "_blank");
addItem("10032", "GRATIS", "/pi71/pi32/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;
		
	};
};