function menu(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=88  
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=500
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth=1200
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0
oCMenu.barY=88
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=110
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=235
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://www.frav.es/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=235
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=225
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) 
*************************************/


  oCMenu.makeMenu('top','',"Principal",ruta+'index.html')
  
  oCMenu.makeMenu('top0','',"Nosotros",ruta+'quienessomos/index.html')
  	oCMenu.makeMenu('sub00','top0',"Profesores",ruta+'quienessomos/profesores/index.html')    
  	  oCMenu.makeMenu('sub001','sub00',"Ángel Serrano Sánchez de León",ruta+'quienessomos/profesores/angelserrano/index.html')    
  	  oCMenu.makeMenu('sub002','sub00',"Dr. Jacobo Aguirre Araujo",ruta+'quienessomos/profesores/jacoboaguirre/index.html')    
  	  oCMenu.makeMenu('sub003','sub00',"Mª Magdalena Hernán Obispo",ruta+'quienessomos/profesores/malenihernan/index.html')    
  	    oCMenu.makeMenu('sub0031','sub003',"Planeta extrasolar BD+20 1790 b",ruta+'quienessomos/profesores/malenihernan/planetaextrasolar/index.html')    
  	  oCMenu.makeMenu('sub004','sub00',"Patxi San Martín Úriz",ruta+'quienessomos/profesores/patxisanmartin/index.html')    
  	  oCMenu.makeMenu('sub005','sub00',"Víctor Villasante Marcos",ruta+'quienessomos/profesores/victorvillasante/index.html')    
  	oCMenu.makeMenu('sub01','top0',"Ubicación",ruta+'quienessomos/ubicacion/index.html')    
  	oCMenu.makeMenu('sub02','top0',"Material astronómico",ruta+'quienessomos/material/index.html')    
  	
  	
  oCMenu.makeMenu('top1','','Taller Astro',ruta+'universidaddemayores/index.html')
  	oCMenu.makeMenu('sub101','top1',"Presentación",ruta+'universidaddemayores/presentacion/index.html')
  	oCMenu.makeMenu('sub102','top1',"Temario",ruta+'universidaddemayores/temario/index.html')
  	oCMenu.makeMenu('sub103','top1',"Metodología",ruta+'universidaddemayores/metodologia/index.html')
  	oCMenu.makeMenu('sub104','top1',"Transparencias",ruta+'universidaddemayores/transparencias/index.html')
  	oCMenu.makeMenu('sub105','top1',"Calendario",ruta+'universidaddemayores/calendario/index.html')
  	oCMenu.makeMenu('sub106','top1',"Galería de fotos",ruta+'universidaddemayores/fotos/index.html')
  	  oCMenu.makeMenu('sub1061','sub106',"2005",ruta+'universidaddemayores/fotos/2005/index.html')
  	  oCMenu.makeMenu('sub10611','sub1061',"Observación Astronómica 2005",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCObservacionAstronomica2005#')
  	  oCMenu.makeMenu('sub10612','sub1061',"Graduación 2005",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCGraduacion2005#')
  	  oCMenu.makeMenu('sub1062','sub106',"2006",ruta+'universidaddemayores/fotos/2006/index.html')
  	  oCMenu.makeMenu('sub10621','sub1062',"Observación Astronómica 2006 (Móst.)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCObservacionAstronomicaMostoles2006#')
  	  oCMenu.makeMenu('sub10622','sub1062',"Taller de Cráteres 2006 (Móst.)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCTallerDeCrateresMostoles2006#')
  	  oCMenu.makeMenu('sub10623','sub1062',"Graduación 2006 (Vicálv.)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCGraduacionVicalvaro2006#')
  	  oCMenu.makeMenu('sub1063','sub106',"2007",ruta+'universidaddemayores/fotos/2007/index.html')
  	  oCMenu.makeMenu('sub10631','sub1063',"Observación Astronómica 2007",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCObservacionAstronomica2007#')
  	  oCMenu.makeMenu('sub10632','sub1063',"Observación del Sol 2007",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCObservacionSolar2007#')
  	  oCMenu.makeMenu('sub10633','sub1063',"Taller de Cráteres 2007",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCTallerDeCrateres2007#')
  	  oCMenu.makeMenu('sub10634','sub1063',"Astronomía e Internet 2007",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCAstronomiaEInternet2007#')
  	  oCMenu.makeMenu('sub10635','sub1063',"Graduación 2007",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCGraduacion2007#')
  	  oCMenu.makeMenu('sub1064','sub106',"2008",ruta+'universidaddemayores/fotos/2008/index.html')
  	  oCMenu.makeMenu('sub10641','sub1064',"Taller de Cráteres 2008 (Móst.)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCTallerDeCrateresMostoles2008#')
  	  oCMenu.makeMenu('sub10642','sub1064',"Taller de Cráteres 2008 (Vicálv.)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCTallerDeCrateresVicalvaro2008#')
  	  oCMenu.makeMenu('sub10643','sub1064',"Planetario de Madrid 2008 (Móstoles)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaPlanetario2008#')
  	  oCMenu.makeMenu('sub10644','sub1064',"Astronomía e Informática 2008 (Móstoles)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCAstronomiaEInternet2008#')
  	  oCMenu.makeMenu('sub10645','sub1064',"Graduación 2008",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCGraduacion2008#')
          oCMenu.makeMenu('sub1065','sub106',"2009",ruta+'universidaddemayores/fotos/2009/index.html')
          oCMenu.makeMenu('sub10651','sub1065',"Observación Astronómica 2009 (Móstoles)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCObservacion2009#')
          oCMenu.makeMenu('sub10652','sub1065',"Taller de Cráteres 2009 (Móst.)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCTallerDeCrateresMostoles2009#')
          oCMenu.makeMenu('sub10653','sub1065',"Planetario de Madrid 2009 (Móstoles)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCPlanetario2009#')
          oCMenu.makeMenu('sub10654','sub1065',"Astronomía e Informática 2009 (Móstoles)",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCAstronomiaEInternet2009#')
  	oCMenu.makeMenu('sub107','top1',"Bibliografía",ruta+'universidaddemayores/bibliografia/index.html')
  	oCMenu.makeMenu('sub108','top1',"Medios de comunicación",'http://www.youtube.com/arangusitan')
  	
  oCMenu.makeMenu('top2','','Actividades',ruta+'actividades/index.html')
        oCMenu.makeMenu('sub21','top2','2004',ruta+'actividades/index.html')    	
          oCMenu.makeMenu('sub211','sub21','Tránsito de Venus 2004',ruta+'actividades/transitovenus2004/index.html')    	
            oCMenu.makeMenu('sub2111','sub211',"Presentación",ruta+'actividades/transitovenus2004/presentacion/index.html')
  	    oCMenu.makeMenu('sub2112','sub211',"Galería de fotos",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCTransitoDeVenus2004#')
  	    
  	  oCMenu.makeMenu('sub212','sub21',"Semana de la Juventud 2004",ruta+'actividades/semanajuventud2004/index.html')
  	    oCMenu.makeMenu('sub2121','sub212',"Presentación",ruta+'actividades/semanajuventud2004/presentacion/index.html')
  	    oCMenu.makeMenu('sub2122','sub212',"Temario",ruta+'actividades/semanajuventud2004/temario/index.html')
  	    oCMenu.makeMenu('sub2123','sub212',"Galería de fotos",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCSemanaDeLaJuventud2004#')
  	    oCMenu.makeMenu('sub2124','sub212',"Medios de comunicación",ruta+'actividades/semanajuventud2004/medios/index.html')
            	    
  	oCMenu.makeMenu('sub22','top2','2005',ruta+'actividades/index.html')    	    	  
          oCMenu.makeMenu('sub221','sub22','III Semana Cultural URJC 2005',ruta+'actividades/semanacultural2005/index.html')
            oCMenu.makeMenu('sub2211','sub221',"Presentación",ruta+'actividades/semanacultural2005/presentacion/index.html')
  	    oCMenu.makeMenu('sub2212','sub221',"Temario",ruta+'actividades/semanacultural2005/temario/index.html')
  	    oCMenu.makeMenu('sub2213','sub221',"Galería de fotos",'http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCIIISemanaCulturalURJC2005#')
  	    oCMenu.makeMenu('sub2214','sub221',"Medios de comunicación",ruta+'actividades/semanacultural2005/medios/index.html')
  	    
  	  oCMenu.makeMenu('sub222','sub22','Feria del Libro Madrid 2005',ruta+'actividades/ferialibro2005/index.html')  	    	  
  	    oCMenu.makeMenu('sub2221','sub222','Presentación',ruta+'actividades/ferialibro2005/presentacion/index.html')  	    	  
  	    oCMenu.makeMenu('sub2222','sub222','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCFeriaDelLibroDeMadrid2005#')  	    	  
  	    
          oCMenu.makeMenu('sub223','sub22','Eclipse Solar Anular 2005',ruta+'actividades/eclipseanular2005/index.html')  	    	  
            oCMenu.makeMenu('sub2231','sub223','Presentación',ruta+'actividades/eclipseanular2005/presentacion/index.html')  	    	  
            oCMenu.makeMenu('sub2232','sub223','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCEclipseSolarAnular2005#')  	    	  
            oCMenu.makeMenu('sub2233','sub223','Medios de comunicación',ruta+'actividades/eclipseanular2005/medios/index.html')  	    	  
                    
        oCMenu.makeMenu('sub23','top2','2006',ruta+'actividades/index.html')    	 
        
          oCMenu.makeMenu('sub231','sub23','Eclipse Solar Parcial 2006',ruta+'actividades/eclipseparcial2006/index.html')  	    	  
            oCMenu.makeMenu('sub2311','sub231','Presentación',ruta+'actividades/eclipseparcial2006/presentacion/index.html')  	    	  
            oCMenu.makeMenu('sub2312','sub231','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCEclipseSolarParcial2006#')  	    	  
            
          oCMenu.makeMenu('sub232','sub23',"Jornadas Astronómicas'06",ruta+'actividades/astromad2006/index.html')  	    	            
          
        oCMenu.makeMenu('sub24','top2','2007',ruta+'actividades/index.html')    	 


        oCMenu.makeMenu('sub241','sub24','Eclipse Total de Luna 2007',ruta+'actividades/eclipselunar2007/index.html')  	    	  
          oCMenu.makeMenu('sub2411','sub241','Presentación',ruta+'actividades/eclipselunar2007/presentacion/index.html')  	    	  
          oCMenu.makeMenu('sub2412','sub241','Galería de fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCEclipseLunarTotal2007#')  	    	  
          
        oCMenu.makeMenu('sub25','top2','2008',ruta+'actividades/index.html')              
                 
        oCMenu.makeMenu('sub251','sub25','FesTICval 2008',ruta+'actividades/festicval2008/index.html')  	    	 
  	  oCMenu.makeMenu('sub2511','sub251','Presentación',ruta+'actividades/festicval2008/presentacion/index.html')  
  	  oCMenu.makeMenu('sub2512','sub251','Material',ruta+'actividades/festicval2008/material/index.html')  
  	  oCMenu.makeMenu('sub2513','sub251','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCFesTICval2008#')  
  	  
  	oCMenu.makeMenu('sub252','sub25','SEA (Santander, 2008)',ruta+'actividades/sea2008/index.html')  	  
  	
  	oCMenu.makeMenu('sub26','top2','2009 (Año de la  Astronomía)',ruta+'actividades/index.html') 
  	  	   
  	oCMenu.makeMenu('sub261','sub26','Año Internacional Astronomía 2009',ruta+'actividades/aia-iya2009/index.html')  
	  oCMenu.makeMenu('sub2611','sub261','Presentación',ruta+'actividades/aia-iya2009/presentacion/index.html')  
  	  oCMenu.makeMenu('sub2612','sub261','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCCharlasDelAnoInternacionalDeLaAstronomia2009#')    	  	  	
  	oCMenu.makeMenu('sub262','sub26','Exposición libros de Astronomía',ruta+'actividades/aia-iya2009-exposicion/index.html')    	  
  	oCMenu.makeMenu('sub263','sub26','FesTICval 2009',ruta+'actividades/festicval2009/index.html')  	    	  
  	  oCMenu.makeMenu('sub2631','sub263','Presentación',ruta+'actividades/festicval2009/presentacion/index.html')  
  	  oCMenu.makeMenu('sub2632','sub263','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCFesTICval2009#')    	    	  
  	oCMenu.makeMenu('sub264','sub26','Charla en el Café El Despertar (Madrid) 2009',ruta+'actividades/cafeeldespertar2009/index.html')  	    	  
  	  oCMenu.makeMenu('sub2641','sub264','Presentación',ruta+'actividades/cafeeldespertar2009/presentacion/index.html')  
  	  oCMenu.makeMenu('sub2642','sub264','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCCharlaEnElCafeElDespertar2009#')    	    	  
  	
  	oCMenu.makeMenu('sub265','sub26','Semana Ciencia Madrid 2009',ruta+'actividades/semanadelacienciamadrid2009/index.html')  	    	  
  	  oCMenu.makeMenu('sub2651','sub265','Presentación',ruta+'actividades/semanadelacienciamadrid2009/presentacion/index.html')  
  	  oCMenu.makeMenu('sub2652','sub265','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCSemanaDeLaCienciaMadrid2009#')    	    	
  	oCMenu.makeMenu('sub266','sub26','Semana Ciencia Navarra 2009',ruta+'actividades/semanadelaciencianavarra2009/index.html')  	    	  
  	  oCMenu.makeMenu('sub2661','sub266','Presentación',ruta+'actividades/semanadelaciencianavarra2009/presentacion/index.html')  
  	  oCMenu.makeMenu('sub2662','sub266','Galería de Fotos','http://picasaweb.google.com/eltiogelo/TallerDeAstronomiaURJCSemanaDeLaCienciaNavarra2009#')  

  	oCMenu.makeMenu('sub27','top2','Próximas actividades',ruta+'actividades/proximas/index.html')  	 

  	                	  
  oCMenu.makeMenu('top3','','Astroutilidades',ruta+'astroutilidades/index.html')
  	oCMenu.makeMenu('sub31','top3',"Información meteorológica",ruta+'astroutilidades/meteorologia/index.html')
  	oCMenu.makeMenu('sub32','top3',"Efemérides",ruta+'astroutilidades/efemerides/index.html')
  	oCMenu.makeMenu('sub33','top3',"Planisferio de papel",ruta+'astroutilidades/planisferio/index.html')
  	oCMenu.makeMenu('sub34','top3',"Proyector Solar",ruta+'astroutilidades/proyeccionsol/index.html')
  	oCMenu.makeMenu('sub35','top3',"Espectroscopio",ruta+'astroutilidades/espectroscopio/index.html')
  	oCMenu.makeMenu('sub36','top3',"Cuadrante",ruta+'astroutilidades/cuadrante/index.html')
  	oCMenu.makeMenu('sub37','top3',"Juegos",ruta+'astroutilidades/juegos/index.html')
  	  oCMenu.makeMenu('sub371','sub37',"Crucigrama: Sistema Solar",ruta+'astroutilidades/juegos/crucigrama1.html')
  	  oCMenu.makeMenu('sub372','sub37',"Crucigrama: Estrellas brillantes",ruta+'astroutilidades/juegos/crucigrama2.html')
  	  oCMenu.makeMenu('sub373','sub37',"Puzzle",ruta+'astroutilidades/juegos/puzzle/index.html')
  	
  	  
  oCMenu.makeMenu('top4','','Astroblog','http://tallerdeastronomia.blogspot.com/')
  
  oCMenu.makeMenu('top5','','Vídeos','http://www.youtube.com/arangusitan')
  	    	                	  
  oCMenu.makeMenu('top6','','Enlaces',ruta+'enlaces/index.html')
  
  oCMenu.makeMenu('top7','','Mapa del sitio',ruta+'/mapadelsitio/index.html')
  
  oCMenu.makeMenu('top8','','Contacta',ruta+'contacta/index.html')
   
  

//Leave this line - it constructs the menu
oCMenu.construct()		
}