/*** 
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

//Menu properties   
oCMenu.pxBetween=1
oCMenu.fromLeft=48
oCMenu.fromTop=120  
oCMenu.rows=0 
oCMenu.menuPlacement=0



oCMenu.offlineRoot="file:///C|/estructura/" 
oCMenu.onlineRoot="http://www.racab.es/" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
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=24
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0 
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].align="right" 


//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify 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() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=70
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].style=""
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=1 
oCMenu.level[1].borderY=1
oCMenu.level[1].rows=0


/******************************************
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('top0','','Organización','esp/orga.html')
		
	oCMenu.makeMenu('sub00','top0','Junta Directiva','esp/junta.html','',100,0)
		
	oCMenu.makeMenu('sub01','top0','Secciones','','',100,0)

oCMenu.makeMenu('sub011','sub01','Sección 1a','esp/seccio1.html','',100,0)
oCMenu.makeMenu('sub012','sub01','Sección 2a','esp/seccio2.html','',100,0)
oCMenu.makeMenu('sub013','sub01','Sección 3a','esp/seccio3.html','',100,0)
oCMenu.makeMenu('sub014','sub01','Sección 4a','esp/seccio4.html','',100,0)
oCMenu.makeMenu('sub015','sub01','Sección 5a','esp/seccio5.html','',100,0)
oCMenu.makeMenu('sub016','sub01','Sección 6a','esp/seccio6.html','',100,0)
oCMenu.makeMenu('sub017','sub01','Sección 7a','esp/seccio7.html','',100,0)

		

	
			







oCMenu.makeMenu('top1','','Académicos','')
oCMenu.makeMenu('sub11','top1','Galería de Presidentes','esp/presidents.html','',160,0)
oCMenu.makeMenu('sub12','top1','Numerarios','esp/numeraris.html','',160,0)
	
oCMenu.makeMenu('sub13','top1','Electos','esp/electes.html','',160,0)

	oCMenu.makeMenu('sub14','top1','Correspondientes nacionales','esp/cnacional.html','',160,0)
		
		oCMenu.makeMenu('sub15','top1','Correspondientes extranjeros','esp/cestranger.html','',160,0)

		oCMenu.makeMenu('sub16','top1','Académicos históricos','academics/historicsesp.html','',160,0)
	

oCMenu.makeMenu('top2','','Secretaría','esp/secretaria.html')
	
oCMenu.makeMenu('top3','','Biblioteca y Archivo','biblio/esp/index.html')

oCMenu.makeMenu('top4','','Observatorio Fabra','esp/fabra.html')
oCMenu.makeMenu('top5','','Telescopio Fabra-ROA','esp/fabra_roa.html','',0,40)
	
	
oCMenu.makeMenu('top6','','Publicaciones','')

	oCMenu.makeMenu('sub61','top6','Publicaciones periódicas','esp/periodiques.html','',160,0)

	oCMenu.makeMenu('sub62','top6','Monografías','esp/monografies.html','',160,0)
	
	oCMenu.makeMenu('sub63','top6','Documentos electrónicos','esp/doc_e.html','',160,0)

oCMenu.makeMenu('top7','','Actividades','esp/activitats.html')
oCMenu.makeMenu('top8','','Noticias','esp/noticies.html')
oCMenu.makeMenu('top9','','Galería de imágenes','imatges/esp/imatges.htm')	

//Leave this line - it constructs the menu
oCMenu.construct()		

