/*** 
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.
**/

var oM=new makeCM("oM")
oM.pxBetween =0
oM.fromTop=80
oM.fromLeft=135
oM.menuPlacement="left"
oM.wait=600
oM.zIndex=100 
oM.resizeCheck=1
oM.zIndex=100  

oM.onlineRoot=""
oM.offlineRoot=""

oM.rows=1

//Background bar properties
oM.useBar=0
oM.barWidth="100%" 
oM.barHeight="menu"
oM.barX=0
oM.barY="menu"
oM.barClass="clBar" 
oM.barBorderX=0
oM.barBorderY=2
oM.barBorderClass="clB3"


//Level properties
//Syntax for fast creation (advanced users only)
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)

oM.level[0]=new cm_makeLevel()
oM.level[0].width=120
oM.level[0].height=20
oM.level[0].regClass="clT" 
oM.level[0].overClass="clTover"  
oM.level[0].borderX=0
oM.level[0].borderY=0
oM.level[0].borderClass="clB2" 
oM.level[0].rows=0
oM.level[0].align="bottom"
oM.level[0].offsetX=0
oM.level[0].offsetY=20
oM.level[0].arrow=0
oM.level[0].arrowWidth=0
oM.level[0].arrowHeight=0
oM.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"


oM.level[1]=new cm_makeLevel()
oM.level[1].width=120
oM.level[1].height=null
oM.level[1].regClass="clS" 
oM.level[1].overClass="clSover" 
oM.level[1].borderX=0
oM.level[1].borderY=1
oM.level[1].borderClass="clB1"
oM.level[1].rows=0
oM.level[1].offsetX=1
oM.level[1].offsetY=0
oM.level[1].arrow=""
oM.level[1].arrowWidth=10
oM.level[1].arrowHeight=10

oM.level[2]=new cm_makeLevel()
oM.level[2].width=60
oM.level[2].height=22
oM.level[2].borderClass="clB3"
oM.level[2].regClass="clS2" 
oM.level[2].borderX=0
oM.level[2].borderY=1
oM.level[2].rows=0
oM.level[2].offsetX=0
oM.level[2].offsetY=0
oM.level[2].overClass="clS2over" 
oM.level[2].align="right"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

oM.makeMenu('top0','','','publicacion/index.html','',90,20,'images/menu_publicacion_off.gif','images/menu_publicacion_on.gif','','',"bottom")
	oM.makeMenu('1sub01','top0','El libro','publicacion/index.html','',90,20,'','','','','')
	oM.makeMenu('1sub02','top0','Comprar','publicacion/comprar.html','',90,20,'','','','','')
	oM.makeMenu('1sub03','top0','Eventos<br>y firmas ','publicacion/eventosyfirmas.html','',90,34,'','','','','')
	oM.makeMenu('1sub06','top0','Rese&ntilde;as','publicacion/prensa.html','',90,20,'','','','','')
	oM.makeMenu('1sub07','top0','Dossier<br>de prensa ','publicacion/dossierprensa.html','',90,34,'','','','','')
	oM.makeMenu('1sub08','top0','Cont&agrave;ctenos','publicacion/contacto.html','',90,20,'','','','','')

oM.makeMenu('top1','','','conferencia/index.html','',90,20,'images/menu_conferencia_off.gif','images/menu_conferencia_on.gif','','',"bottom")
	oM.makeMenu('1sub11','top1','Paso a paso<br>hacia su<br>cima','conferencia/index.html','',90,48,'','','','','')
	oM.makeMenu('1sub12','top1','Corporativo','conferencia/conferencia_corporativo.html','',90,20,'','','','','')
	oM.makeMenu('1sub13','top1','Testimonios','conferencia/conferencia_testimonios.html','',90,20,'','','','','')
	oM.makeMenu('1sub14','top1','Educaci&oacute;n','conferencia/conferencia_educativo.html','',90,20,'','','','','')
	oM.makeMenu('1sub15','top1','El explorador','conferencia/conferencia_explorador.html','',90,20,'','','','','')

oM.makeMenu('top2','','','vuelta/index.html','',90,20,'images/menu_vuelta_off.gif','images/menu_vuelta_on.gif','','',"bottom")
	oM.makeMenu('2sub10','top2','El reto Vinson<br>en la Ant&agrave;rtida','vuelta/index.html','',90,34,'','','','','')
	oM.makeMenu('2sub11','top2','Expediciones','vuelta/vuelta_expediciones.html','',90,20,'','','','','')
	oM.makeMenu('2sub12','top2','Pico Vinson','vuelta/vuelta_vinson.html','',90,20,'','','','','')

oM.makeMenu('top3','','','everest_esp/index.html','',90,20,'images/menu_everest_off.gif','images/menu_everest_on.gif','','',"bottom")
			oM.makeMenu('3sub11','top3','La expedici&oacute;n','everest_esp/index.html','',90,20,'','','','','')
	oM.makeMenu('3sub12','top3','Diario','everest_esp/everest_diario.html','',90,20,'','','','','')
	oM.makeMenu('3sub13','top3','Calendario','everest_esp/everest_calendario.html','',90,20,'','','','','')
	oM.makeMenu('3sub14','top3','Galer&iacute;a de<br>fotograf&iacute;as','','',90,34,'','','','','right')
		oM.makeMenu('3sub140','3sub14','La caminata en<br>monta&ntilde;a','everest_esp/everest_galeria1.html','',90,34,'','','','','')
		oM.makeMenu('3sub141','3sub14','La ascensi&oacute;n','everest_esp/everest_galeria2.html','',90,20,'','','','','')
	oM.makeMenu('3sub16','top3','Datos sobre<br>el Everest','everest_esp/everest_datos.html','',90,34,'','','','','')
	oM.makeMenu('3sub17','top3','1953 - 2003<br>Everest-Hillary','everest_esp/everest_50eme.html','',90,34,'','','','','')
	oM.makeMenu('3sub19','top3','El Everest<br>vistodes de<br>el espacio','everest_esp/everest_espacio.html','',90,48,'','','','','')

oM.makeMenu('top4','','','polo_sur/index.html','',90,20,'images/menu_polosur_off.gif','images/menu_polosur_on.gif','','','bottom')
	oM.makeMenu('4sub11','top4','La expedici&oacute;n','polo_sur/index.html','',90,20,'','','','','')
	oM.makeMenu('4sub12','top4','La Antartida','polo_sur/polo_sur_antartico.html','',90,20,'','','','','')
	oM.makeMenu('4sub16','top4','Los<br>exploradores','polo_sur/polo_sur_exploradores.html','',90,34,'','','','','')
	oM.makeMenu('4sub17','top4','Galer&iacute;a de<br>fotograf&iacute;as','polo_sur/polo_sur_galeria.html','',90,34,'','','','','')

oM.makeMenu('top5','','','biografia/index.html','',90,20,'images/menu_biografia_off.gif','images/menu_biografia_on.gif','','','bottom')
	oM.makeMenu('5sub11','top5','Expediciones','biografia/index.html','',90,20,'','','','','')
	oM.makeMenu('5sub12','top5','Paso a paso','biografia/biografia_pasoapaso.html','',90,20,'','','','','')
	oM.makeMenu('5sub13','top5','Un largo<br>camino','biografia/biografia_camino.html','',90,34,'','','','','')
	oM.makeMenu('5sub15','top5','Premios y<br>distinciones','biografia/biografia_premios.html','',90,34,'','','','','')
	
oM.makeMenu('top6','','','','',100,20,'images/menu_right.gif','','','',"bottom",'',1)

oM.construct()


//Extra test code to customize the CoolMenus.
var xx,yy
//oM.m["top0"].b.hideIt() //Hiding the first item.

function getCoords(e){
	xx=(bw.ns4 || bw.ns6)?e.pageX:event.x||event.clientX
  yy=(bw.ns4 || bw.ns6)?e.pageY:event.y||event.clientY
}

//Capturing onmousemove event
if(bw.ns4) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=getCoords;
