var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("1001", "Jazz", "/jazz/index.html", 1, "", 1, "");
addItem("100209", "Pablo_20Records", "/pablo-records/index.html", 2, "", 1, "");
addItem("100171", "Armstrong,_20Louis", "/louis-armstrong/index.html", 2, "", 1, "");
addItem("100414", "Barber,_20Chris", "/jazz/barber-chris/index.html", 2, "", 1, "");
addItem("100173", "Benson,_20George", "/george-benson/index.html", 2, "", 1, "");
addItem("100149", "Chick_20Corea", "/chick-corea/index.html", 2, "", 1, "");
addItem("100147", "Clarke,_20Stanley", "/stanley-clarke/index.html", 2, "", 1, "");
addItem("100145", "Cobham,_20Billy", "/billy-cobham/index.html", 2, "", 1, "");
addItem("100384", "Count_20Basie", "/count-basie/index.html", 2, "", 1, "");
addItem("100203", "Deodato", "/deodato/index.html", 2, "", 1, "");
addItem("100169", "Di_20Meola,_20Al", "/al-di-meola/index.html", 2, "", 1, "");
addItem("100385", "Duke_20Ellington", "/ellington-duke/index.html", 2, "", 1, "");
addItem("100146", "Duke,_20George", "/george-duke/index.html", 2, "", 1, "");
addItem("100255", "Fitzgerald,_20Ella", "/ella-fitzgerald/index.html", 2, "", 1, "");
addItem("100211", "Gillespie,_20Dizzy", "/dizzy-gillespie/index.html", 2, "", 1, "");
addItem("100240", "Goodman,_20Benny", "/benny-goodman/index.html", 2, "", 1, "");
addItem("100212", "Hampton,_20Lionel", "/lional-hampton/index.html", 2, "", 1, "");
addItem("100213", "Hancock,_20Herbie", "/herbie-hancock/index.html", 2, "", 1, "");
addItem("100386", "Handy,_20John", "/handy-john/index.html", 2, "", 1, "");
addItem("100210", "Hines,_20Earl", "/earl-hines/index.html", 2, "", 1, "");
addItem("100241", "Hinze,_20Chris", "/chris-hinze/index.html", 2, "", 1, "");
addItem("100397", "Hubbard,_20Freddie", "/hubbard-freddie/index.html", 2, "", 1, "");
addItem("100388", "Jackson,_20Mahalia", "/jackson-mahalia/index.html", 2, "", 1, "");
addItem("100143", "Jarreau,_20Al", "/al-jarreau/index.html", 2, "", 1, "");
addItem("100398", "Jones,_20Jonah", "/jones-jonah/index.html", 2, "", 1, "");
addItem("100278", "Mangione,_20Chuck", "/chuck-mangione/index.html", 2, "", 1, "");
addItem("100413", "Mann,_20Herbie", "/jazz/mann-herbie/index.html", 2, "", 1, "");
addItem("100168", "Massada", "/massada/index.html", 2, "", 1, "");
addItem("100387", "Mezzoforte", "/mezzoforte/index.html", 2, "", 1, "");
addItem("100144", "Mouzon,_20Alphonse", "/alphonse-mouson/index.html", 2, "", 1, "");
addItem("100208", "Parker,_20Charlie", "/charlie-parker/index.html", 2, "", 1, "");
addItem("100242", "Powell,_20Bud", "/bud-powell/index.html", 2, "", 1, "");
addItem("100363", "Purim,_20Flora", "/flora-purim/index.html", 2, "", 1, "");
addItem("100277", "Waller,_20Fats", "/fats-waller/index.html", 2, "", 1, "");
addItem("100279", "White,_20Lenny", "/lenny-white/index.html", 2, "", 1, "");
addItem("100433", "Wilson,_20Teddy", "/jazz/wilson-teddy/index.html", 2, "", 1, "");
addItem("100280", "Winston,_20George", "/george-winston/index.html", 2, "", 1, "");
addItem("100172", "Santana", "/santana/index.html", 2, "", 1, "");
addItem("100389", "Short,_20Bobby", "/short-bobby/index.html", 2, "", 1, "");
addItem("100148", "The_20Crusaders", "/the-crusaders/index.html", 2, "", 1, "");
addItem("1007", "Soul", "/soul/index.html", 1, "", 1, "");
addItem("100158", "Motown", "/motown/index.html", 2, "", 1, "");
addItem("100244", "The_20Four_20Tops", "/the-four-tops/index.html", 3, "", 1, "");
addItem("100245", "Thelma_20Houston", "/thelma-houston/index.html", 3, "", 1, "");
addItem("100159", "Salsoul", "/salsoul/index.html", 2, "", 1, "");
addItem("100246", "Instant_20Funk", "/instant-funk/index.html", 3, "", 1, "");
addItem("100247", "Skyy", "/skyy/index.html", 3, "", 1, "");
addItem("100216", "Burke,_20Solomon", "/solomon-burke/index.html", 2, "", 1, "");
addItem("100295", "Chi_20Lites", "/chi-lites/index.html", 2, "", 1, "");
addItem("100364", "Crawford,_20Hank", "/hank-crawford/index.html", 2, "", 1, "");
addItem("100156", "Dells", "/dells/index.html", 2, "", 1, "");
addItem("100507", "Gaye,_20Marvin", "/soul/gaye-marvin/index.html", 2, "", 1, "");
addItem("100435", "Havens,_20Richie", "/soul/havens-richie/index.html", 2, "", 1, "");
addItem("100314", "Hayes,_20Isaac", "/isaac-hayes/index.html", 2, "", 1, "");
addItem("100170", "Hot_20Chocolate", "/hot-chocolate/index.html", 2, "", 1, "");
addItem("100154", "Knight,_20Gladys", "/gladys-knight/index.html", 2, "", 1, "");
addItem("100421", "Mayfield,_20Curtis", "/soul/mayfield-curtis/index.html", 2, "", 1, "");
addItem("100418", "Mc_20Coy,_20Van", "/soul/mc-coy-van/index.html", 2, "", 1, "");
addItem("100356", "Phillips,_20Ester", "/ester-phillips/index.html", 2, "", 1, "");
addItem("100296", "Pickett,_20Wilson", "/wilson-pickett/index.html", 2, "", 1, "");
addItem("100214", "Preston,_20Billy", "/billy-preston/index.html", 2, "", 1, "");
addItem("100359", "Rare_20Earth", "/rare-earth/index.html", 2, "", 1, "");
addItem("100157", "Robinson,_20Smokey", "/smokey-robinson/index.html", 2, "", 1, "");
addItem("100415", "Ross,_20Diana", "/soul/ross-diana/index.html", 2, "", 1, "");
addItem("100366", "Sade", "/sade/index.html", 2, "", 1, "");
addItem("100217", "Spinners", "/spinners/index.html", 2, "", 1, "");
addItem("100220", "Temptations", "/temptations/index.html", 2, "", 1, "");
addItem("10015", "The_20Manhattans", "/the-manhattans/index.html", 2, "", 1, "");
addItem("100218", "The_20Stylistics", "/the-stylistics/index.html", 2, "", 1, "");
addItem("100219", "Turner,_20Tina", "/tina-turner/index.html", 2, "", 1, "");
addItem("100166", "White,_20Barry", "/barry-white/index.html", 2, "", 1, "");
addItem("100365", "Wilson,_20Al", "/al-wilson/index.html", 2, "", 1, "");
addItem("100362", "Withers,_20Bill", "/bill-withers/index.html", 2, "", 1, "");
addItem("100215", "Wonder,_20Stevie", "/stevie-wonder/index.html", 2, "", 1, "");
addItem("1004", "Rock_20_X7_20Pop", "/rock/index.html", 1, "", 1, "");
addItem("10014", "10_20cc", "/10-cc/index.html", 2, "", 1, "");
addItem("100391", "Barclay_20James_20Harvest", "/barclay-james-harvest/index.html", 2, "", 1, "");
addItem("100323", "Beatles", "/beatles/index.html", 2, "", 1, "");
addItem("100318", "Bee_20Gees", "/bee-gees/index.html", 2, "", 1, "");
addItem("100229", "Belle_20Epoque", "/belle-epoque/index.html", 2, "", 1, "");
addItem("100270", "Bon_20Jovi", "/bon-jovi/index.html", 2, "", 1, "");
addItem("100399", "Birthcontrol", "/birthcontrol/index.html", 2, "", 1, "");
addItem("100327", "Celentano,_20Adriano", "/adriano-celentano/index.html", 2, "", 1, "");
addItem("100224", "Cocker,_20Joe", "/joe-cocker/index.html", 2, "", 1, "");
addItem("100228", "Creedence_20Clearwater_20Revival", "/creedence-clearwater-revival/index.html", 2, "", 1, "");
addItem("100275", "Diamond,_20Neil", "/neil-diamond/index.html", 2, "", 1, "");
addItem("10012", "Dire_20Straits", "/dire-straits/index.html", 2, "", 1, "");
addItem("100138", "Dylan,_20Bob", "/rock/bob-dylan/index.html", 2, "", 1, "");
addItem("100400", "E_X3L_X3O_X3", "/elo/index.html", 2, "", 1, "");
addItem("100155", "Gaynor,_20Gloria", "/gloria-gaynor/index.html", 2, "", 1, "");
addItem("100273", "Helloween", "/helloween/index.html", 2, "", 1, "");
addItem("100315", "Jackson,_20Michael", "/michael-jackson/index.html", 2, "", 1, "");
addItem("100222", "Jethro_20Tull", "/jethro-tull/index.html", 2, "", 1, "");
addItem("100221", "Kristofferson,_20Kriss", "/kriss-kristofferson/index.html", 2, "", 1, "");
addItem("10025", "Madonna", "/madonna/index.html", 2, "", 1, "");
addItem("100234", "Mother_C2_B4s_20Finest", "/mothers-finest/index.html", 2, "", 1, "");
addItem("100274", "Reed,_20Lou", "/loo-reed/index.html", 2, "", 1, "");
addItem("100223", "Rondo_20Veneziano", "/rondo-veneziano/index.html", 2, "", 1, "");
addItem("100226", "Rush,_20Jennifer", "/jennifer-rush/index.html", 2, "", 1, "");
addItem("100239", "Sinatra,_20Frank", "/frank-sinatra/index.html", 2, "", 1, "");
addItem("100325", "Status_20Quo", "/status-quo/index.html", 2, "", 1, "");
addItem("100271", "Stevens,_20Cat", "/cat-stevens/index.html", 2, "", 1, "");
addItem("100324", "Steward,_20Rod", "/rod-steward/index.html", 2, "", 1, "");
addItem("100152", "Summer,_20Donna", "/donna-summer/index.html", 2, "", 1, "");
addItem("100227", "The_20Richie_20Family", "/the-richie-family/index.html", 2, "", 1, "");
addItem("100233", "The_20Spotnicks", "/the-spotnicks/index.html", 2, "", 1, "");
addItem("100326", "Uriah_20Heep", "/uriah-heep/index.html", 2, "", 1, "");
addItem("100272", "Wader,_20Hannes", "/hannes-wader/index.html", 2, "", 1, "");
addItem("100276", "Zappa,_20Frank", "/frank-zappa/index.html", 2, "", 1, "");
addItem("1002", "HipHop", "/hiphop/index.html", 1, "", 1, "");
addItem("100265", "Afrika_20Bambata", "/afrika-bambata/index.html", 2, "", 1, "");
addItem("100316", "Beastie_20Boys", "/beastie-boys/index.html", 2, "", 1, "");
addItem("100263", "De_20La_20Soul", "/de-la-soul/index.html", 2, "", 1, "");
addItem("100396", "Dead_20Prez", "/dead-prez/index.html", 2, "", 1, "");
addItem("100264", "Fat_20Boys", "/fat-boys/index.html", 2, "", 1, "");
addItem("100337", "Grandmaster_20Flash", "/grandmaster-flash/index.html", 2, "", 1, "");
addItem("100137", "Heavy_20D", "/heavy-d/index.html", 2, "", 1, "");
addItem("100311", "Ice_20T", "/ice-t/index.html", 2, "", 1, "");
addItem("100409", "Ja_20Rule", "/hiphop/ja-rule/index.html", 2, "", 1, "");
addItem("100395", "Jazzy_20Jeff_20_X7_20Fresh_20Prince", "/jazzy-jeff-fresh-prince/index.html", 2, "", 1, "");
addItem("100412", "K9_20Posse", "/hiphop/k9-posse/index.html", 2, "", 1, "");
addItem("100367", "Kurtis_20Blow", "/kurtis-blow/index.html", 2, "", 1, "");
addItem("100408", "Kwame", "/kwame/index.html", 2, "", 1, "");
addItem("100374", "Kweli,_20Talib", "/talib-kweli/index.html", 2, "", 1, "");
addItem("100312", "Public_20Enemy", "/public-enemy/index.html", 2, "", 1, "");
addItem("100393", "Professor_20Griff", "/professor-griff/index.html", 2, "", 1, "");
addItem("100266", "Run_20DMC", "/hiphop/run-dmc/index.html", 2, "", 1, "");
addItem("100394", "Slick_20Rick", "/slick-rick/index.html", 2, "", 1, "");
addItem("10010", "Sugarhill", "/sugarhill/index.html", 2, "", 1, "");
addItem("100392", "Sampler", "/sampler/index.html", 2, "", 1, "");
addItem("1003", "Reggae", "/reggae/index.html", 1, "", 1, "");
addItem("100436", "Assassin", "/reggae/assassin/index.html", 2, "", 1, "");
addItem("100283", "Black_20Uhuru", "/black-uhuru/index.html", 2, "", 1, "");
addItem("100284", "Bob_20Marley", "/bob-marley/index.html", 2, "", 1, "");
addItem("100285", "Gregory_20Isaacs", "/gregory-isaacs/index.html", 2, "", 1, "");
addItem("100286", "Macka_20B", "/macka-b/index.html", 2, "", 1, "");
addItem("100287", "Mad_20Professor", "/mad-professor/index.html", 2, "", 1, "");
addItem("100354", "Peter_20Tosh", "/peter-tosh/index.html", 2, "", 1, "");
addItem("100288", "Steel_20Pulse", "/steel-pulse/index.html", 2, "", 1, "");
addItem("100289", "Third_20World", "/third-world/index.html", 2, "", 1, "");
addItem("100422", "U_X2Roy", "/reggae/u-roy/index.html", 2, "", 1, "");
addItem("100290", "UB_2040", "/ub-40/index.html", 2, "", 1, "");
addItem("100291", "Yellowman", "/yellowman/index.html", 2, "", 1, "");
addItem("1005", "Blues", "/blues/index.html", 1, "", 1, "");
addItem("100230", "Blues_20Brothers", "/blues-brothers/index.html", 2, "", 1, "");
addItem("100139", "Eric_20Clapton", "/eric-clapton/index.html", 2, "", 1, "");
addItem("100267", "Janis_20Joplin", "/janis-joplin/index.html", 2, "", 1, "");
addItem("100153", "Joan_20Armatrading", "/joan-armatrading/index.html", 2, "", 1, "");
addItem("100269", "Robert_20Cray", "/robert-cray/index.html", 2, "", 1, "");
addItem("100231", "The_20Blues_20Band", "/the-blues-band/index.html", 2, "", 1, "");
addItem("100268", "Tom_20Waits", "/blues/tom-waits/index.html", 2, "", 1, "");
addItem("100232", "Van_20Morrison", "/van-morrison/index.html", 2, "", 1, "");
addItem("10021", "Funk", "/funk/index.html", 1, "", 1, "");
addItem("100348", "P_X2Funk", "/p-funk/index.html", 2, "", 1, "");
addItem("100349", "Bootsy_20Collins", "/bootsy-collins/index.html", 3, "", 1, "");
addItem("100350", "George_20Clinton", "/george-clinton/index.html", 3, "", 1, "");
addItem("100351", "Parliament", "/parliament/index.html", 3, "", 1, "");
addItem("100352", "Funkadelic", "/funkadelic/index.html", 3, "", 1, "");
addItem("100243", "Bar_X2Kays", "/bar-kays/index.html", 2, "", 1, "");
addItem("100298", "Bohannon", "/bohannon/index.html", 2, "", 1, "");
addItem("100299", "B_X3T_X3_20Express", "/bt-express/index.html", 2, "", 1, "");
addItem("100281", "Chaka_20Khan", "/chaka-khan/index.html", 2, "", 1, "");
addItem("100510", "12_22", "/chaka-khan/12/index.html", 3, "", 1, "");
addItem("100300", "Chic", "/chic/index.html", 2, "", 1, "");
addItem("100225", "Earth_20Wind_20_X7_20Fire", "/earth-wind-fire/index.html", 2, "", 1, "");
addItem("100328", "James_20Brown", "/james-brown/index.html", 2, "", 1, "");
addItem("100368", "Johnny_20Guitar_20Watson", "/johnny-guitar-watson/index.html", 2, "", 1, "");
addItem("100491", "Rick_20James", "/funk/rick-james/index.html", 2, "", 1, "");
addItem("100320", "Shalamar", "/shalamar/index.html", 2, "", 1, "");
addItem("100430", "Sly_20_X7_20The_20Family_20Stone", "/funk/sly-the-family-stone/index.html", 2, "", 1, "");
addItem("100431", "12_22", "/funk/sly-the-family-stone/12/index.html", 3, "", 1, "");
addItem("100425", "T_X2Connection", "/funk/t-connection/index.html", 2, "", 1, "");
addItem("100297", "The_20Gap_20Band", "/the-gap-band/index.html", 2, "", 1, "");
addItem("100429", "The_20Jimmy_20Castor_20Bunch", "/funk/the-jimmy-castor-bunch/index.html", 2, "", 1, "");
addItem("100151", "Tom_20Browne", "/tom-browne/index.html", 2, "", 1, "");
addItem("100424", "War", "/funk/war/index.html", 2, "", 1, "");
addItem("100509", "Zapp", "/funk/zapp/index.html", 2, "", 1, "");
addItem("10023", "Sonstiges", "/sonstiges/index.html", 1, "", 1, "");
addItem("10011", "Comedy", "/comedy/index.html", 2, "", 1, "");
addItem("100508", "Richard_20Pryor", "/comedy/richard-pryor/index.html", 3, "", 1, "");
addItem("1008", "H_C3_B6rspiele", "/hoerspiele/index.html", 2, "", 1, "");
addItem("1009", "Soundtracks", "/soundtracks/index.html", 2, "", 1, "");
addItem("100317", "Weltmusik", "/weltmusik/index.html", 2, "", 1, "");
addItem("100319", "Klassik", "/klassik/index.html", 2, "", 1, "");
addItem("100417", "Punk", "/sonstiges/punk/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;
		
	};
};