// *****************************************************************************
// **                                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                             **
// *****************************************************************************

// Ayuntamiento
if (page=='aju') {
thisMenu = new Array();
thisMenu[0] = new subMenu('<span class=level2>Bienvenida</span>','bienvenida.htm');
thisMenu[1] = new subMenu('<span class=level2>Atención Ciudadano</span>','atencion.htm');
thisMenu[2] = new subMenu('<span class=level2>Calend. Contribuyente</span>','calendario.htm');
thisMenu[3] = new subMenu('<span class=level2>Solicitudes</span>','solicitud.htm');
thisMenu[4] = new subMenu('<span class=level2>Corp. y Delegaciones</span>','corporacion.htm');
thisMenu[5] = new subMenu('<span class=level2>Bandos</span>','bandos.php');
thisMenu[6] = new subMenu('<span class=level2>Instalaciones</span>','instalmuni.htm');
thisMenu[7] = new subMenu('<span class=level2>Contacto</span>','contacto.htm');
thisMenu[8] = new subMenu('<span class=level2>Opinión<br></span>','opinion.htm');
}

// cultura
if (page=='cult') {
thisMenu = new Array();
thisMenu[0] = new subMenu('<span class=level2>Programación</span>','programacion.htm');
thisMenu[1] = new subMenu('<span class=level2>Fiestas</span>','fiestas.htm');
thisMenu[2] = new subMenu('<span class=level2>Gastronomía</span>','gastronomia.htm');
thisMenu[3] = new subMenu('<span class=level2>Historia</span>','historia.htm');
thisMenu[4] = new subMenu('<span class=level2>Casa Cultura y Biblioteca</span><br>','biblio.htm');
}

// Decorating Menu
if (page=='serv') {
thisMenu = new Array();
thisMenu[0] = new subMenu('<span class=level2>Instalaciones</span>','instalaciones.htm');
thisMenu[1] = new subMenu('<span class=level2>Guía Comercial</span>','comercial.htm');
thisMenu[2] = new subMenu('<span class=level2>Teléfonos</span>','telefonos.htm');
thisMenu[3] = new subMenu('<span class=level2>Recogida de basuras</span>','recogida.htm');
thisMenu[4] = new subMenu('<span class=level2>Horarios</span><br>','horarios.htm');
}




// Decorating Menu
if (page=='mir') {
thisMenu = new Array();
thisMenu[0] = new subMenu('<span class=level2>Localización</span>','localizacion.htm');
thisMenu[1] = new subMenu('<span class=level2>Planos</span>','callejero.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>Playa</span>','playa.htm');
thisMenu[6] = new subMenu('<span class=level2>Noticias</span><br>','noticias.php');

}