//***************************************************
// Tree Menu Copyright Net Explorers Ltd 2001 - 2003
// All rights reserved
//***************************************************
// 'linka' use this if part of the URL is the same in ALL the links
// In this example all the files are in a subfolder called 'pages'
linka='';

// the filename of the page the menu appears in eg 'menu.html'
thisPage='music.html';

// Do you want to use images for the category bullets?
// If so then specify the path to your images folder from the menu page
imgPath='images/';

// give image names and dimensions
lev1OpName='music_open.gif';			// open image name
lev1OpHeight='10';				// image height
lev1OpWidth='10';				// image width

lev1ClosName='music_closed.gif';		// closed image name
lev1ClosHeight='10';			// image height
lev1ClosWidth='10';				// image width

// give image names and dimensions
lev2Name='music_bullet.gif';			// image name
lev2Height='10';				// image height
lev2Width='16';					// image width

// *****************************************************************************
// **                             END OF SETTINGS                             **
// *****************************************************************************

// pulls 'page' variable out of URL - do not alter
var x = 0
page = location.search.substr(1).split("?")
	for (x=0;x<=page.length;x++) {
		eval(page)
	}
page = escape(page);
page = page.slice(7);

// do not alter this bit
function subMenu(name,linkb) {
	this.name = name;
	this.linkb = linkb;
}

// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************

// Classical Menu
if (page=='classic') {
	thisMenu = new Array();
	thisMenu[0] = new subMenu('Johannes Sebastian Bach','http://www.amazon.com/exec/obidos/classical-artist-search/Johannes%20Sebastian%20Bach');
	thisMenu[1] = new subMenu('Manuel de Falla','http://www.amazon.com/exec/obidos/classical-artist-search/Manuel%20de%20Falla');
	thisMenu[2] = new subMenu('Giuseppe Verdi','http://www.amazon.com/exec/obidos/classical-artist-search/Giuseppe%20Verdi');
	thisMenu[3] = new subMenu('Antonio Vivaldi','http://www.amazon.com/exec/obidos/classical-artist-search/Antonio%20Vivaldi');
	thisMenu[4] = new subMenu('Wolgang Amadeus Mozart','http://www.amazon.com/exec/obidos/classical-artist-search/Mozart%2C%20Wolfgang%20Amadeus');
}

// Hispanic Menu
if (page=='hispanic') {
	thisMenu = new Array();
	thisMenu[0] = new subMenu('Aventura', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/240586');
	thisMenu[1] = new subMenu('Buena Vista Social Club', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/193459');
	thisMenu[2] = new subMenu('Cesaria Évora', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/105333');
	thisMenu[3] = new subMenu('Juan Luis Guerra', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/87554');
	thisMenu[4] = new subMenu('Juanes', 'http://www.amazon.com/exec/obidos/search-handle-url/index=music-artist&field-artist=Juanes');
	thisMenu[5] = new subMenu('Los Reyes Gitanos', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/47159');
}

// Oldies Menu
if (page=='oldies') {
	thisMenu = new Array();
	thisMenu[0] = new subMenu('Beach Boys', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/34096');
	thisMenu[1] = new subMenu('Bob Marley', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/26397');
	thisMenu[2] = new subMenu('Jimi Hendrix', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/12907');
	thisMenu[3] = new subMenu('Louis Amstrong', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/34420');
	thisMenu[4] = new subMenu('Nina Simone', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/145775');
	thisMenu[5] = new subMenu('Santana', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/124372');
	thisMenu[6] = new subMenu('The Doors', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/15393');
	thisMenu[7] = new subMenu('The Mamas &amp; The Papas', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/50923');
	thisMenu[8] = new subMenu('and many many others...', '_NONE_');
}

// Pop Menu
if (page=='pop') {
	thisMenu = new Array();
	thisMenu[0] = new subMenu('Barry White', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/38101');
	thisMenu[1] = new subMenu('Coldplay', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/207300');
	thisMenu[2] = new subMenu('Enya', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/26429');
	thisMenu[3] = new subMenu('Mary J. Blige', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/74645');
	thisMenu[4] = new subMenu('Norah Jones', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/230637');
	thisMenu[5] = new subMenu('Queen', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/40612');
	thisMenu[6] = new subMenu('Radiohead', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/125129');
	thisMenu[7] = new subMenu('Robbie Williams', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/89139');
	thisMenu[8] = new subMenu('Soundtrack - Le Fabuleux Destin d\'Amélie Poulain', 'http://www.amazon.com/exec/obidos/ASIN/B00005O6PA');
	thisMenu[9] = new subMenu('Will Young', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/233598');
	thisMenu[10] = new subMenu('and many many others...', '_NONE_');
}

// Jazz Menu
if (page=='jazz') {
	thisMenu = new Array();
	thisMenu[0] = new subMenu('Billie Holiday', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/34416');
	thisMenu[1] = new subMenu('Ella Fitzgerald', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/26379');
	thisMenu[2] = new subMenu('Erykah Badu', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/26568');
	thisMenu[3] = new subMenu('India Arie', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/214277');
	thisMenu[4] = new subMenu('Macy Gray', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/183508');
	thisMenu[5] = new subMenu('Miles Davis', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/22296');
}

// Ambient Menu
if (page=='ambient') {
	thisMenu = new Array();
	thisMenu[0] = new subMenu('Bonobo', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/230147');
	thisMenu[1] = new subMenu('Buddha Bar', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/196297');
	thisMenu[2] = new subMenu('Café del Mar', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/90472');
	thisMenu[3] = new subMenu('Chicane', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/108862');
	thisMenu[4] = new subMenu('Gare du Nord', 'http://www.amazon.com/exec/obidos/search-handle-url/index=music-artist&field-artist=Gare%20du%20Nord');
	thisMenu[5] = new subMenu('Hôtel Costes', 'http://www.amazon.com/exec/obidos/search-handle-url/index=music-artist&field-artist=St%E9phane%20Pompougnac');
	thisMenu[6] = new subMenu('Kruder &amp; Dorfmeister', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/134469');
	thisMenu[7] = new subMenu('Moby', 'http://www.amazon.com/exec/obidos/tg/artist/glance/-/42352');
	thisMenu[8] = new subMenu('Supper Club', 'http://www.supperclub.nl/');
	thisMenu[9] = new subMenu('Yonderboi', 'http://www.amazon.com/exec/obidos/search-handle-url/index=music-artist&field-artist=Yonderboi');
}

// opens menu section - do not alter
function openMenu(cat) {
	this.cat = cat;
	document.write('<a href = "' + thisPage + '?page=null" target="_self">');
	document.write('<img src="' + imgPath + lev1OpName +'" width="' + lev1OpWidth + '" height="' + lev1OpHeight + '"border="0">');
	document.write(cat + '</a><span><br>');
	for (x=0;x<thisMenu.length;x++){
		document.write('<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');

		if (thisMenu[x].linkb=='_NONE_')
		{
			document.write(thisMenu[x].name + '<span><br>');
		}
		else
		{
			document.write('<a href="' + linka + thisMenu[x].linkb + '">' + thisMenu[x].name + '</a><span><br>');
		}
	}
}

// closes menu section - do not alter
function closeMenu(cat,pass) {
	this.cat = cat;
	this.pass = pass;
	document.write('<a href = "' + thisPage + '?page='+pass+'" target="_self">');
	document.write('<img src="' + imgPath + lev1ClosName +'" width="' + lev1ClosWidth + '" height="' + lev1ClosHeight + '"border="0">');
	document.write(cat + '</a><span><br>');
}
