/*** 
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','','','publications/index.html','',90,20,'images/menu_publications1_off.gif','images/menu_publications1_on.gif','','',"bottom")
	oM.makeMenu('1sub01','top0','Book','publications/index.html','',90,20,'','','','','')
	oM.makeMenu('1sub02','top0','Orders','publications/buy_online.html','',90,20,'','','','','')
	oM.makeMenu('1sub03','top0','Events &amp;<br>Signing<br>sessions','publications/events.html','',90,48,'','','','','')
	oM.makeMenu('1sub04','top0','Points of sale','http://www.alq.qc.ca/_librairies','_blank',90,20,'','','','','')
	oM.makeMenu('1sub06','top0','Press review','publications/press_review.html','',90,20,'','','','','')
	oM.makeMenu('1sub07','top0','Media centre','publications/medias.html','',90,20,'','','','','')
	oM.makeMenu('1sub08','top0','Contact us','publications/contactus.html','',90,20,'','','','','')

oM.makeMenu('top1','','','presentations/index.html','',90,20,'images/menu_lectures_off.gif','images/menu_lectures_on.gif','','','bottom')
	oM.makeMenu('1sub11','top1','Step by step<br>to the summit','presentations/index.html','',90,34,'','','','','')
	oM.makeMenu('1sub12','top1','Corporate','presentations/presentations_corporate.html','',90,20,'','','','','')
	oM.makeMenu('1sub13','top1','Testimonials','presentations/presentations_testimonials.html','',90,20,'','','','','')
	oM.makeMenu('1sub14','top1','The explorer','presentations/presentations_explorer.html','',90,20,'','','','','')
	oM.makeMenu('1sub15','top1','The exploit','worldtour/index.html','',90,20,'','','','','')

oM.makeMenu('top2','','','worldtour/index.html','',90,20,'images/menu_worldtour_off.gif','images/menu_worldtour_on.gif','','',"bottom")
	oM.makeMenu('2sub10','top2','The challenge','worldtour/index.html','',90,20,'','','','','')
	oM.makeMenu('2sub11','top2','Expeditions','worldtour/worldtour_expeditions.html','',90,20,'','','','','')
	oM.makeMenu('2sub12','top2','Mount Vinson','worldtour/worldtour_vinson.html','',90,20,'','','','','')
	oM.makeMenu('2sub13','top2','Day by day...','worldtour/worldtour_daybyday.html','',90,20,'','','','','')
	oM.makeMenu('2sub14','top2','Antarctic info','worldtour/worldtour_antarctic.html','',90,20,'','','','','')
	oM.makeMenu('2sub15','top2','Southern<br>skies','worldtour/worldtour_skies.html','',90,34,'','','','','')
	oM.makeMenu('2sub16','top2','Partners','worldtour/worldtour_partners.html','',90,20,'','','','','')	

oM.makeMenu('top3','','','mount_everest/index.html','',90,20,'images/menu_everest_off.gif','images/menu_everest_on.gif','','',"bottom")
	oM.makeMenu('3sub11','top3','Expedition','mount_everest/index.html','',90,20,'','','','','')
	oM.makeMenu('3sub12','top3','Logbook','mount_everest/mount_everest_logbook.html','',90,20,'','','','','')
	oM.makeMenu('3sub13','top3','Chronology','mount_everest/mount_everest_chronology.html','',90,20,'','','','','')
	oM.makeMenu('3sub14','top3','Photos gallery','','',90,20,'','','','','right')
		oM.makeMenu('3sub140','3sub14','The trek','mount_everest/mount_everest_gallery1.html','',90,20,'','','','','')
		oM.makeMenu('3sub141','3sub14','The climb','mount_everest/mount_everest_gallery2.html','',90,20,'','','','','')
	oM.makeMenu('3sub15','top3','Facts and<br>figures','mount_everest/mount_everest_facts.html','',90,34,'','','','','')
	oM.makeMenu('3sub16','top3','1953 - 2003<br>Everest-Hillary','mount_everest/mount_everest_50th.html','',90,34,'','','','','')
	oM.makeMenu('3sub17','top3','Weather','mount_everest/mount_everest_weather.html','',90,20,'','','','','')
	oM.makeMenu('3sub18','top3','Everest from<br>space','mount_everest/mount_everest_space.html','',90,34,'','','','','')
	oM.makeMenu('3sub19','top3','Partners','mount_everest/mount_everest_partners.html','',90,20,'','','','','')

oM.makeMenu('top4','','','south_pole/index.html','',90,20,'images/menu_southpole_off.gif','images/menu_southpole_on.gif','','','bottom')
	oM.makeMenu('4sub11','top4','Expedition','south_pole/index.html','',90,20,'','','','','')
	oM.makeMenu('4sub12','top4','Antarctic','south_pole/southpole_antarctica.html','',90,20,'','','','','')
	oM.makeMenu('4sub13','top4','Logbook','south_pole/southpole_logbook.html','',90,20,'','','','','')
	oM.makeMenu('4sub14','top4','Facts and<br>figures','south_pole/southpole_facts.html','',90,34,'','','','','')
	oM.makeMenu('4sub15','top4','Photos gallery','south_pole/southpole_gallery.html','',90,20,'','','','','')
	oM.makeMenu('4sub16','top4','Partners','south_pole/southpole_partners.html','',90,20,'','','','','')

oM.makeMenu('top5','','','itinerary/index.html','',90,20,'images/menu_itinerary_off.gif','images/menu_itinerary_on.gif','','','bottom')
	oM.makeMenu('5sub11','top5','Expeditions','itinerary/index.html','',90,20,'','','','','')
	oM.makeMenu('5sub12','top5','Step by step...','itinerary/itinerary_stepbystep.html','',90,20,'','','','','')
	oM.makeMenu('5sub13','top5','A long way','itinerary/itinerary_longway.html','',90,20,'','','','','')
	oM.makeMenu('5sub14','top5','Yesterday<br>to today','itinerary/itinerary_yesterday.html','',90,34,'','','','','')
	oM.makeMenu('5sub15','top5','Honours','itinerary/itinerary_honours.html','',90,20,'','','','','')
	
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;
