// *****************************************************************************
// **                                SETTINGS                                 **
// *****************************************************************************

// '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='pags/';

// the filename of the page the menu appears in eg 'menu.html'
thisPage='menu.htm';

// 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/';

// do you want to use images for the category bullets?
lev1img='yes';					// insert yes or no

// give image names and dimensions
lev1OpName='open.gif';			// open image name
lev1OpHeight='25';				// image height
lev1OpWidth='20';				// image width

lev1ClosName='closed.gif';		// closed image name
lev1ClosHeight='25';			// image height
lev1ClosWidth='20';				// image width

// do you want to use images for the sub-category bullets?
lev2img='yes';		// insert yes or no

// give image names and dimensions
lev2Name='bullet.gif';			// image name
lev2Height='16';				// image height
lev2Width='22';					// image width

// do you want to use a text character for the sub-category bullets?
lev2Char='no';		// insert yes or no

// set bullet character for level 2 bullets
bullet = '&#155; ';

// base target - the frame that the links are targetting
base = 'main';

// *****************************************************************************
// **                             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;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


document.write('<BASE target="' + base + '">');

// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************

// Ajuntament
if (page=='aju') {
thisMenu = new Array();
thisMenu[0] = new subMenu('<span class=level2>Benvinguda</span>','benvinguda.htm');
thisMenu[1] = new subMenu('<span class=level2>Horaris Atenciķ Ciutadā</span>','atencio.htm');
thisMenu[2] = new subMenu('<span class=level2>Calendari del Contribuent</span>','calendari.htm');
thisMenu[3] = new subMenu('<span class=level2>Solˇlicituts</span>','solicituts.htm');
thisMenu[4] = new subMenu('<span class=level2>Corporaciķ i Delegacions</span>','corporacio.htm');
thisMenu[5] = new subMenu('<span class=level2>Bans</span>','bans.php');
thisMenu[6] = new subMenu('<span class=level2>Instalˇlacions</span>','instalmuni.htm');
thisMenu[7] = new subMenu('<span class=level2>Contacte</span>','contacte.htm');
thisMenu[8] = new subMenu('<span class=level2>Opiniķ</span>','opinio.htm');
thisMenu[9] = new subMenu('<span class=level2>Bulletí Informaciķ Munic.<br></span>','bim.php');
}

// Clothing Menu
if (page=='cult') {
thisMenu = new Array();
thisMenu[0] = new subMenu('<span class=level2>Programaciķ</span>','programacio.htm');
thisMenu[1] = new subMenu('<span class=level2>Festes</span>','festes.htm');
thisMenu[2] = new subMenu('<span class=level2>Gastronomia</span>','gastronomia.htm');
thisMenu[3] = new subMenu('<span class=level2>Histōria</span>','historia.htm');
thisMenu[4] = new subMenu('<span class=level2>Casa Cultura i Biblioteca</span><br>','biblio.htm');
}

// Decorating Menu
if (page=='serv') {
thisMenu = new Array();
thisMenu[0] = new subMenu('<span class=level2>Instalˇlacions</span>','instalacions.htm');
thisMenu[1] = new subMenu('<span class=level2>Guia Comercial</span>','comercial.htm');
thisMenu[2] = new subMenu('<span class=level2>Telčfons</span>','telefons.htm');
thisMenu[3] = new subMenu('<span class=level2>Recollida Fem i Deixalles</span>','recollida.htm');
thisMenu[4] = new subMenu('<span class=level2>Horaris</span><br>','horaris.htm');
}




// Decorating Menu
if (page=='mir') {
thisMenu = new Array();
thisMenu[0] = new subMenu('<span class=level2>Localitzaciķ</span>','localitzacio.htm');
thisMenu[1] = new subMenu('<span class=level2>Plānols</span>','carrers.htm');
thisMenu[2] = new subMenu('<span class=level2>Galeria Fotogrāfica</span>','galeria.htm');
thisMenu[3] = new subMenu('<span class=level2>Visita Virtual</span>','virtual.htm');
thisMenu[4] = new subMenu('<span class=level2>Miramar</span>','miramar.htm');
thisMenu[5] = new subMenu('<span class=level2>Platja</span>','platja.htm');
thisMenu[6] = new subMenu('<span class=level2>Noticies</span><br>','noticies.php');

}