var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("100211", "Schn_C3_A4ppchen", "/schnaeppchen/index.html", 1, "", 1, "");
addItem("100201", "Schneideplotter", "/schneideplotter/index.html", 1, "", 1, "");
addItem("100200", "3M", "/3m-scotchcal/index.html", 1, "", 1, "");
addItem("100159", "Aslan", "/farbfolien/index.html", 1, "", 1, "");
addItem("100217", "Emblem", "/emblem/index.html", 1, "", 1, "");
addItem("10024", "Grafityp", "/grafityp-folien/index.html", 1, "", 1, "");
addItem("10042", "MACtac", "/mactac/index.html", 1, "", 1, "");
addItem("10061", "Multifix", "/multifix-folien/index.html", 1, "", 1, "");
addItem("100190", "Orafol", "/orafol/index.html", 1, "", 1, "");
addItem("100198", "X_X2Film", "/x-film/index.html", 1, "", 1, "");
addItem("10083", "Adh_C3_A4sionsfolien", "/adhaesionsfolien/index.html", 1, "", 1, "");
addItem("100162", "Airbrushfolie", "/airbrush-arbeiten/index.html", 1, "", 1, "");
addItem("1001", "Applikations_X2Tapes", "/applikationsfolie/index.html", 1, "", 1, "");
addItem("100157", "Banner", "/werbebanner/index.html", 1, "", 1, "");
addItem("100188", "Blockoutfolie", "/block-out-folie/index.html", 1, "", 1, "");
addItem("100218", "Buchschutzfolie", "/bucheinbandfolie/index.html", 1, "", 1, "");
addItem("100216", "Carbonfolie", "/carbonfolie/index.html", 1, "", 1, "");
addItem("100202", "Designfolie", "/designfolie/index.html", 1, "", 1, "");
addItem("100187", "Diffusionsfolie", "/diffusionsfolie/index.html", 1, "", 1, "");
addItem("100174", "Digitaldruckfolie_20L_C3_B6semittel_X2_20ECO_20solvent", "/digitaldruck/index.html", 1, "", 1, "");
addItem("100214", "Digitaldruckfolie_20wasserbasierend", "/digitaldruckfolie-wasserbasierend/index.html", 1, "", 1, "");
addItem("100173", "Doppelklebefolien", "/doppelklebefolien/index.html", 1, "", 1, "");
addItem("100197", "Fassadenfolie", "/fassadenfolie/index.html", 1, "", 1, "");
addItem("100178", "Ferrofolie", "/ferrofolie/index.html", 1, "", 1, "");
addItem("10011", "Flexfolie_20f_C3_BCr_20Textildruck", "/plotterflex-fuer-textildruck/index.html", 1, "", 1, "");
addItem("10033", "Flockfolie_20f_C3_BCr_20Textildruck", "/plotterflock-fuer-textildruck/index.html", 1, "", 1, "");
addItem("10047", "Flockfolie_20f_C3_BCr_20Siebdruck", "/plotterflock-fuer-siebdruck/index.html", 1, "", 1, "");
addItem("100169", "Glasdekorfolie", "/glasdekorfolie/index.html", 1, "", 1, "");
addItem("100176", "Grafiken_20_X4_20Cliparts", "/grafiken/index.html", 1, "", 1, "");
addItem("100194", "Hart_X2PVC_X2Folien", "/hart-pvc-folien/index.html", 1, "", 1, "");
addItem("100208", "Klebeb_C3_A4nder", "/klebebaender/index.html", 1, "", 1, "");
addItem("100209", "Klebefolien_20Buch_X4B_C3_BCro", "/klebefolien-fuer-buch-und-buero/index.html", 1, "", 1, "");
addItem("100206", "Lampenschirmfolie", "/lampenschirmfolie/index.html", 1, "", 1, "");
addItem("100203", "Landkartenfolie", "/landkartenfolie/index.html", 1, "", 1, "");
addItem("100172", "Laserdrucker_X2_X4_20Kopierfolien", "/folien-laserdruckerkopiergeraete/index.html", 1, "", 1, "");
addItem("100186", "Leuchtfolien", "/leuchtfolien/index.html", 1, "", 1, "");
addItem("100196", "Lochfolie_20(one_20way_20vision)", "/lochfolie/index.html", 1, "", 1, "");
addItem("10080", "Magnetfolie", "/magnetfolie/index.html", 1, "", 1, "");
addItem("100213", "Maskierfilm", "/maskierfilm/index.html", 1, "", 1, "");
addItem("100165", "Metalleffektfolie", "/metall-effekt-folien/index.html", 1, "", 1, "");
addItem("100193", "Montagefolien", "/montagefolien/index.html", 1, "", 1, "");
addItem("100219", "Mountingfolie", "/mountingfolie/index.html", 1, "", 1, "");
addItem("10048", "Plottermesser", "/plottermesser/index.html", 1, "", 1, "");
addItem("1003", "Aristo", "/plottermesser/aristo/index.html", 2, "", 1, "");
addItem("10023", "GCC", "/plottermesser/gcc/index.html", 2, "", 1, "");
addItem("10040", "Graphtec", "/plottermesser/graphtec/index.html", 2, "", 1, "");
addItem("10058", "Houston", "/plottermesser/houston/index.html", 2, "", 1, "");
addItem("10071", "Ioline", "/plottermesser/ioline/index.html", 2, "", 1, "");
addItem("10081", "Mimaki", "/plottermesser/mimaki/index.html", 2, "", 1, "");
addItem("10086", "Mutoh", "/plottermesser/mutoh/index.html", 2, "", 1, "");
addItem("10089", "Roland", "/plottermesser/roland/index.html", 2, "", 1, "");
addItem("10092", "Summagraphic", "/plottermesser/summagraphic/index.html", 2, "", 1, "");
addItem("10072", "Retroreflektierende_20Folie", "/reflektierende-folien/index.html", 1, "", 1, "");
addItem("100163", "Sandstrahlfolie", "/sandstrahlarbeiten/index.html", 1, "", 1, "");
addItem("100161", "Schablonenfolien", "/schablonenfolien-fuer-airbrush/index.html", 1, "", 1, "");
addItem("100191", "Schablonenpapier", "/schablonierpapier/index.html", 1, "", 1, "");
addItem("100195", "Schutzfolien", "/schutzfolien/index.html", 1, "", 1, "");
addItem("100212", "Selbstklebeecken_20_X7_20taschen", "/selbstklebeecken-taschen/index.html", 1, "", 1, "");
addItem("100175", "Sichtschutzfolien", "/sichtschutzfolien/index.html", 1, "", 1, "");
addItem("100210", "Silikon_X2Glasgewebe", "/silikonbeschichtete-glasgewebe/index.html", 1, "", 1, "");
addItem("100160", "Tafelfolien", "/tafelfolien/index.html", 1, "", 1, "");
addItem("100189", "Teflonfolie,_20Teflon_X2Klebeband", "/teflonfolie/index.html", 1, "", 1, "");
addItem("100192", "Thermofixierband", "/thermofixierband/index.html", 1, "", 1, "");
addItem("100205", "Wandtattoo_X2Folien", "/wandtattoofolie/index.html", 1, "", 1, "");
addItem("100102", "Werkzeug", "/werkzeuge-zubehoer/index.html", 1, "", 1, "");
addItem("100164", "Whiteboard_X2Folie", "/whiteboard-folie/index.html", 1, "", 1, "");
addItem("100199", "Doming_20Convex", "/doming-convex/index.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;
		
	};
};