var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("1003", "Back_20to_20iontophoresis_X2device_X3com", "/http://iontophoresis-device.com", 1, "", 1, "");
addItem("1002", "Iontophoresis", "/iontophoresis/index.html", 1, "", 1, "");
addItem("10018", "Idromed_20PC", "/against-perspiration/index.html", 2, "", 1, "");
addItem("10029", "Idromed", "/against-perspiration/idromed/index.html", 3, "", 1, "");
addItem("10019", "Idromed_20DC", "/stop-transpiration/index.html", 2, "", 1, "");
addItem("10026", "Hidrex_20PC", "/excessive-sweating/index.html", 2, "", 1, "");
addItem("10027", "Hidrex", "/hidrex/index.html", 3, "", 1, "");
addItem("10025", "Hidrex_20DC", "/excessive-sweating/index2.html", 2, "", 1, "");
addItem("10030", "Add_X2ons_X4Spare_20Parts", "/iontophoresis/spare_parts.html", 1, "", 1, "");
addItem("1004", "FAQ", "/information/index.html", 1, "", 1, "");
addItem("10028", "Add_X2ons_X4Spare_20Parts", "/iontophoresis/spare-parts_2.html", 2, "", 1, "");
addItem("10016", "Custom_20dutys_20and_20fees", "/information/custom-dutys-fees/index.html", 2, "", 1, "");
addItem("1005", "Delivery", "/information/delivery/index.html", 2, "", 1, "");
addItem("10024", "Discrete_20Shipping", "/information/discrete-shipping/index.html", 2, "", 1, "");
addItem("10011", "Guarantee", "/information/guarantee/index.html", 2, "", 1, "");
addItem("1006", "Money_20back", "/information/money-back/index.html", 2, "", 1, "");
addItem("10022", "Trusted_20Shops", "/information/trusted-shops-verified/index.html", 2, "", 1, "");
addItem("1007", "Iontophoresis_20Therapy", "/http://iontophoresis-device.com/iontophoresis.htm#Iontophoresis Therapy", 2, "", 1, "");
addItem("10017", "Shipping_20time", "/information/success-rate/index2.html", 2, "", 1, "");
addItem("10015", "Success_20rate", "/information/success-rate/index.html", 2, "", 1, "");
addItem("10012", "What_20is_20the_20best_20device_20for_20the_20best_20results?", "/http://iontophoresis-device.com/iontophoresis.htm#Best iontophoresis device", 2, "", 1, "");
addItem("10020", "Iontophoresis_20forum", "/information/iontophoresis-forum/index.html", 2, "", 1, "");
addItem("10013", "Psoriasis", "/psoriasis/dermalight-80.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;
		
	};
};