function menu(idioma,ruta) 
{
	
/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/


//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=10
oCMenu.fromLeft=0 
oCMenu.fromTop=50  
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth=890
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0
oCMenu.barY=50
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=120
oCMenu.level[0].height=25 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel()
oCMenu.level[1].width=180
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].arrow='http://es.geocities.com/alcazarcervantino/scripts/menu_arrow.gif'
oCMenu.level[1].arrowWidth=10
oCMenu.level[1].arrowHeight=10


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"

//EXAMPLE SUB LEVEL[3] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[3]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[3].width=200
oCMenu.level[3].height=20
oCMenu.level[3].offsetX=0
oCMenu.level[3].offsetY=0
oCMenu.level[3].regClass="clLevel2"
oCMenu.level[3].overClass="clLevel2over"
oCMenu.level[3].borderClass="clLevel2border"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

if (idioma=='esp')
{
  oCMenu.makeMenu('top','',"&nbsp;Principal",ruta+'index_esp.htm')
  
  oCMenu.makeMenu('top0','',"&nbsp;Introducción",ruta+'introduccion/introduccion.htm')
  	oCMenu.makeMenu('sub00','top0',"Motivación",ruta+'introduccion/motivacion.htm')    
	oCMenu.makeMenu('sub01','top0',"Bautismo de Cervantes",ruta+'introduccion/partidabautismo.htm')      	
	oCMenu.makeMenu('sub02','top0',"III Centenario (1905)",ruta+'introduccion/tercercentenario.htm')      	
	oCMenu.makeMenu('sub03','top0',"Reflexión bibliográfica",ruta+'introduccion/reflexion.htm')      	
  	
  oCMenu.makeMenu('top1','','&nbsp;Alcázar de San Juan',ruta+'alcazardesanjuan/alcazardesanjuan_esp.htm')
  	oCMenu.makeMenu('sub10','top1',"Situación",ruta+'alcazardesanjuan/situacion.htm')
  	oCMenu.makeMenu('sub11','top1',"Historia",ruta+'alcazardesanjuan/historia.htm')
  	oCMenu.makeMenu('sub12','top1',"Fiestas",ruta+'alcazardesanjuan/fiestas.htm')
  	oCMenu.makeMenu('sub13','top1',"Monumentos",ruta+'alcazardesanjuan/monumentos/monumentos.htm')  	
  	  oCMenu.makeMenu('sub131','sub13',"Casa del Hidalgo",ruta+'alcazardesanjuan/monumentos/casadelhidalgo.htm') 
  	  oCMenu.makeMenu('sub132','sub13',"Más información",ruta+'alcazardesanjuan/monumentos/masinformacion.htm') 
  	oCMenu.makeMenu('sub14','top1',"Gastronomía",ruta+'alcazardesanjuan/gastronomia/gastronomia.htm') 
  	  oCMenu.makeMenu('sub141','sub14',"Bizcochá",ruta+'alcazardesanjuan/gastronomia/bizcocha.htm') 
  	  oCMenu.makeMenu('sub142','sub14',"Duelos y quebrantos",ruta+'alcazardesanjuan/gastronomia/duelosyquebrantos.htm') 
  	  oCMenu.makeMenu('sub143','sub14',"Caldereta de cordero",ruta+'alcazardesanjuan/gastronomia/calderetadecordero.htm') 
  	  oCMenu.makeMenu('sub144','sub14',"Gachas manchegas",ruta+'alcazardesanjuan/gastronomia/gachas.htm') 
  	  oCMenu.makeMenu('sub145','sub14',"Migas de pastor",ruta+'alcazardesanjuan/gastronomia/migas.htm') 
  	  oCMenu.makeMenu('sub146','sub14',"Tortas de Alcázar",ruta+'alcazardesanjuan/gastronomia/tortasdealcazar.htm') 
  	  oCMenu.makeMenu('sub147','sub14',"Mantecados y pastas",'') 
  	  oCMenu.makeMenu('sub148','sub14',"Quesos",ruta+'alcazardesanjuan/gastronomia/quesos.htm') 
  	oCMenu.makeMenu('sub15','top1',"Fotos",ruta+'alcazardesanjuan/fotos/fotos.htm') 
  	  oCMenu.makeMenu('sub151','sub15',"Molinos de viento",ruta+'alcazardesanjuan/fotos/molinos.htm') 
  	  oCMenu.makeMenu('sub152','sub15',"Museo Municipal",ruta+'alcazardesanjuan/fotos/museomunicipal.htm') 
  	  oCMenu.makeMenu('sub153','sub15',"Monumentos a Cervantes",ruta+'alcazardesanjuan/fotos/monumentosacervantes.htm') 
  	  oCMenu.makeMenu('sub154','sub15',"Parques",ruta+'alcazardesanjuan/fotos/parques.htm') 
  	  oCMenu.makeMenu('sub155','sub15',"Iglesias y Conventos",ruta+'alcazardesanjuan/fotos/iglesiasyconventos.htm') 
  	  oCMenu.makeMenu('sub156','sub15',"Monumentos y Edificios",ruta+'alcazardesanjuan/fotos/monumentos.htm') 
  	  oCMenu.makeMenu('sub157','sub15',"Cervantismo Alcazareño",ruta+'alcazardesanjuan/fotos/cervantismoalcazareno.htm') 
  	  oCMenu.makeMenu('sub158','sub15',"Calles y plazas",ruta+'alcazardesanjuan/fotos/callesyplazas.htm') 
  	  oCMenu.makeMenu('sub159','sub15',"Fiestas",ruta+'alcazardesanjuan/fotos/fiestas.htm') 
  	  oCMenu.makeMenu('sub1510','sub15',"Alameda de Cervera",ruta+'alcazardesanjuan/fotos/alamedadecervera.htm') 
  	  oCMenu.makeMenu('sub1511','sub15',"Venta de las Motillas",ruta+'alcazardesanjuan/fotos/ventadelasmotillas.htm') 
  	  oCMenu.makeMenu('sub1512','sub15',"Otras fotos",ruta+'alcazardesanjuan/fotos/otras.htm') 
  	oCMenu.makeMenu('sub16','top1',"Plano de la ciudad",'') 
  	oCMenu.makeMenu('sub161','sub16',"Plano en Google Maps",'http://maps.google.com/maps?f=q&hl=es&ie=UTF8&z=14&ll=39.392561,-3.205776&spn=0.026798,0.085831&om=1','_blank')   	  	
  	oCMenu.makeMenu('sub162','sub16',"Plano de Páginas Amarillas",'http://callejero.paginasamarillas.es/flash/mapa.asp?ciudad=ALCAZASJ&x=5762&y=4310&l1=13600,%20ALCAZAR%20DE%20SAN%20JUAN&l2=Plaza%20Espa%F1a,%201&t_act=&radio=0&Ops=Vacio&idCalle=103&idioma=spa','_blank') 
  	oCMenu.makeMenu('sub17','top1',"El tiempo en Alcázar",'')   	
  	oCMenu.makeMenu('sub171','sub17',"Según Yahoo!",'http://es.weather.yahoo.com/SPXX/SPXX0003/index_c.html','_blank')   	
  	
  	
  oCMenu.makeMenu('top2','','&nbsp;Cervantistas',ruta+'cervantistas/cervantistas.htm')
  	oCMenu.makeMenu('sub21','top2','Manuel Rubio Herguido',ruta+'cervantistas/manuelrubioherguido/manuelrubioherguido.htm')  	
  	oCMenu.makeMenu('sub211','sub21','Desagravio a Cervantes',ruta+'cervantistas/manuelrubioherguido/desagravio.htm')  	
  	oCMenu.makeMenu('sub22','top2','Ángel Ligero Móstoles',ruta+'cervantistas/angelligeromostoles/angelligeromostoles.htm')  	
  	oCMenu.makeMenu('sub221','sub22','«La Mancha de Don Quijote»',ruta+'cervantistas/angelligeromostoles/manchadedonquijote.htm')  	
  	oCMenu.makeMenu('sub222','sub22','Sobre la Ruta del Quijote',ruta+'cervantistas/angelligeromostoles/rutadelquijote.htm')  	
  	  oCMenu.makeMenu('sub2221','sub222','La primera salida',ruta+'cervantistas/angelligeromostoles/primerasalida.htm')  	
  	  oCMenu.makeMenu('sub2222','sub222','Campos de Montiel',ruta+'cervantistas/angelligeromostoles/camposdemontiel.htm')  	
  	  oCMenu.makeMenu('sub2223','sub222','Las Ventas',ruta+'cervantistas/angelligeromostoles/ventas.htm')  	
  	  oCMenu.makeMenu('sub2224','sub222','Reflexión sobre la Venta de las Motillas',ruta+'cervantistas/angelligeromostoles/ventas-reflexion.htm')  	
  	oCMenu.makeMenu('sub223','sub22','Personajes Cervantinos (1)',ruta+'cervantistas/angelligeromostoles/personajescervantinos.htm')  	
  	oCMenu.makeMenu('sub224','sub22','Personajes Cervantinos (2)',ruta+'cervantistas/angelligeromostoles/personajescervantinos2.htm')  	
  	oCMenu.makeMenu('sub225','sub22','Personajes Cervantinos (3)',ruta+'cervantistas/angelligeromostoles/personajescervantinos3.htm')  	  	
  	oCMenu.makeMenu('sub226','sub22','Personas vinculadas',ruta+'cervantistas/angelligeromostoles/personasvinculadascervantes.htm')  	  	
  	oCMenu.makeMenu('sub23','top2','Fco. Saludador Merino',ruta+'cervantistas/franciscosaludadormerino/franciscosaludadormerino.htm')  	
  	  oCMenu.makeMenu('sub231','sub23','Verdadera cuna cervantina',ruta+'cervantistas/franciscosaludadormerino/verdaderacunadecervantes.htm')  	
  	    oCMenu.makeMenu('sub2311','sub231','Las dos partidas de bautismo',ruta+'cervantistas/franciscosaludadormerino/partidasdebautismo.htm')  	
  	    oCMenu.makeMenu('sub2312','sub231','¿En Madrid o en Italia?',ruta+'cervantistas/franciscosaludadormerino/madridoitalia.htm')  	
  	    oCMenu.makeMenu('sub2313','sub231','El Cardenal Acquaviva',ruta+'cervantistas/franciscosaludadormerino/cardenalacquaviva.htm')  	
  	    oCMenu.makeMenu('sub2314','sub231','Batalla de Lepanto',ruta+'cervantistas/franciscosaludadormerino/lepanto.htm')  	
  	    oCMenu.makeMenu('sub2315','sub231','Edad de Cervantes',ruta+'cervantistas/franciscosaludadormerino/edaddecervantes.htm')  	
  	    oCMenu.makeMenu('sub2316','sub231','Cronología comparada',ruta+'cervantistas/franciscosaludadormerino/cronologia.htm')  	
  	    oCMenu.makeMenu('sub2317','sub231','Tres alcazareños',ruta+'cervantistas/franciscosaludadormerino/tresalcazarenos.htm')  	
  	oCMenu.makeMenu('sub24','top2','Rafael Mazuecos Pérez-Pastor',ruta+'cervantistas/rafaelmazuecos/hombresylugaresdelamancha.htm')  	
  	  oCMenu.makeMenu('sub241','sub24','Mujeres representativas',ruta+'cervantistas/rafaelmazuecos/fasciculo1.htm')  	
 	  oCMenu.makeMenu('sub242','sub24','Azorín y Alcázar',ruta+'cervantistas/rafaelmazuecos/fasciculo12.htm')  	
	  oCMenu.makeMenu('sub243','sub24','La época cervantina',ruta+'cervantistas/rafaelmazuecos/fasciculo32.htm')  
	  oCMenu.makeMenu('sub244','sub24','Selección y casta',ruta+'cervantistas/rafaelmazuecos/fasciculo32BIS.htm')  	

  		
  oCMenu.makeMenu('top5','','&nbsp;Foro','http://boards.melodysoft.com/alcazarcervantino/');	
    	  
  oCMenu.makeMenu('top7','','&nbsp;Enlaces',ruta+'enlaces/enlaces.htm')
  
  oCMenu.makeMenu('top10','','&nbsp;English',ruta+'index_eng.htm')	
}
else if (idioma=='eng')
{
  oCMenu.makeMenu('top','',"&nbsp;Main",ruta+'index_eng.htm')
  
  oCMenu.makeMenu('top0','',"&nbsp;Introduction",ruta+'introduction/introduction.htm')
  	oCMenu.makeMenu('sub00','top0',"Motivation",ruta+'introduction/motivation.htm')  
  	oCMenu.makeMenu('sub01','top0',"Cervantes's baptism",ruta+'introduction/baptismalcertificate.htm')      	   	
  	oCMenu.makeMenu('sub02','top0',"300th Anniversary (1905)",ruta+'introduction/threehundredthanniversary.htm')      	
  	oCMenu.makeMenu('sub03','top0',"Bibliographic consideration",ruta+'introduction/bibliographicconsideration.htm')      	

  	
  oCMenu.makeMenu('top1','','&nbsp;Alcázar de San Juan',ruta+'alcazardesanjuan/alcazardesanjuan_eng.htm')
  	oCMenu.makeMenu('sub10','top1',"Situation",ruta+'alcazardesanjuan/situation.htm')
  	oCMenu.makeMenu('sub11','top1',"History",ruta+'alcazardesanjuan/history.htm')
  	oCMenu.makeMenu('sub12','top1',"Festivities",ruta+'alcazardesanjuan/festivities.htm')
  	oCMenu.makeMenu('sub13','top1',"Monuments",'')  	
  	oCMenu.makeMenu('sub14','top1',"Gastronomy",ruta+'alcazardesanjuan/gastronomy/gastronomy.htm')  
  	  oCMenu.makeMenu('sub141','sub14',"<i>Bizcochá</i>",ruta+'alcazardesanjuan/gastronomy/bizcocha.htm') 
  	  oCMenu.makeMenu('sub142','sub14',"<i>Duelos y quebrantos</i>",ruta+'alcazardesanjuan/gastronomy/duelosyquebrantos.htm') 
  	  oCMenu.makeMenu('sub143','sub14',"Lamb stew",ruta+'alcazardesanjuan/gastronomy/lambstew.htm') 
  	  oCMenu.makeMenu('sub144','sub14',"Porridge",ruta+'alcazardesanjuan/gastronomy/porridge.htm') 
  	  oCMenu.makeMenu('sub145','sub14',"Shepherd breadcrumbs",ruta+'alcazardesanjuan/gastronomy/shepherdbreadcrumbs.htm') 
	  oCMenu.makeMenu('sub146','sub14',"Alcázar Cakes",ruta+'alcazardesanjuan/gastronomy/alcazarcakes.htm')   	
	  oCMenu.makeMenu('sub147','sub14',"Shortcakes and pastries",'') 
  	  oCMenu.makeMenu('sub148','sub14',"Cheese",ruta+'alcazardesanjuan/gastronomy/cheese.htm') 
  	oCMenu.makeMenu('sub15','top1',"Pictures",ruta+'alcazardesanjuan/pictures.htm')  
  	oCMenu.makeMenu('sub16','top1',"Plan of the city",'')  
  	oCMenu.makeMenu('sub161','sub16',"Plan in Google Maps",'http://maps.google.com/maps?f=q&hl=es&ie=UTF8&z=14&ll=39.392561,-3.205776&spn=0.026798,0.085831&om=1','_blank')   	
  	oCMenu.makeMenu('sub162','sub16',"Yellow Pages plan",'http://engcallejero.paginasamarillas.es/flash/mapa.asp?ciudad=ALCAZASJ&x=5762&y=4310&l1=13600,%20ALCAZAR%20DE%20SAN%20JUAN&l2=Plaza%20Espa%F1a,%201&t_act=&radio=0&Ops=Vacio&idCalle=103&idioma=eng','_blank') 
  	oCMenu.makeMenu('sub17','top1',"The weather in Alcázar",'')   	
  	oCMenu.makeMenu('sub171','sub17',"According to Yahoo!",'http://es.weather.yahoo.com/SPXX/SPXX0003/index_c.html','_blank')   	

  	
  oCMenu.makeMenu('top2','','&nbsp;Cervantists',ruta+'cervantists/cervantists.htm')
  	oCMenu.makeMenu('sub21','top2','Manuel Rubio Herguido',ruta+'cervantists/manuelrubioherguido/manuelrubioherguido.htm')  
  	oCMenu.makeMenu('sub211','sub21','Tribute to Cervantes',ruta+'cervantists/manuelrubioherguido/tribute.htm')  		
  	oCMenu.makeMenu('sub22','top2','Ángel Ligero Móstoles',ruta+'cervantists/angelligeromostoles/angelligeromostoles.htm')  	
  	oCMenu.makeMenu('sub221','sub22','«La Mancha of Don Quixote»',ruta+'cervantists/angelligeromostoles/manchadedonquijote.htm')  		
  	oCMenu.makeMenu('sub222','sub22',"About Quixote's Route",ruta+'cervantists/angelligeromostoles/quixotesroute.htm')  	
  	oCMenu.makeMenu('sub23','top2','Fco. Saludador Merino',ruta+'cervantists/franciscosaludadormerino/franciscosaludadormerino.htm')  	
  	  oCMenu.makeMenu('sub231','sub23',"Cervantes' true birthplace",ruta+'cervantists/franciscosaludadormerino/truebirthplace.htm')  	

  	oCMenu.makeMenu('sub24','top2','Rafael Mazuecos Pérez-Pastor','')  	
  	  		
  oCMenu.makeMenu('top5','','&nbsp;Forum','http://boards.melodysoft.com/alcazarcervantino/');	
    	  
  oCMenu.makeMenu('top7','','&nbsp;Links',ruta+'links/links.htm')
  
  oCMenu.makeMenu('top10','','&nbsp;Español',ruta+'index_esp.htm')	
}
else
{
  alert("Function menu: Idioma = "+alert+ " no reconocido");	
}

//Leave this line - it constructs the menu
oCMenu.construct()		
}