/*** 
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=230
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=82
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=5
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=-1
oM.level[1].arrow=""
oM.level[1].arrowWidth=10
oM.level[1].arrowHeight=10
oM.level[1].align="right"

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('top1','','','../procedes/index.html','',82,20,'../../images/menu_procedes_off.gif','../../images/menu_procedes_on.gif','','',"bottom")
	oM.makeMenu('1sub11','top1',' proc&eacute;d&eacute;<br>r&eacute;treint','../procedes/retreint.html','',82,34,'','','','','')
		oM.makeMenu('1sub110','1sub11','le r&eacute;treint<br>rotatif','../procedes/retreint_rotatif.html','',95,34,'','','','','')
		oM.makeMenu('1sub111','1sub11','le r&eacute;treint<br>&agrave; axe fixe','../procedes/retreint_fixe.html','',95,34,'','','','','')
		oM.makeMenu('1sub112','1sub11','le r&eacute;treint<br>en plong&eacute;e','../procedes/retreint_plongee.html','',95,34,'','','','','')
	oM.makeMenu('1sub12','top1','fa&ccedil;onnage','../procedes/faconnage.html','',82,20,'','','','','')
	oM.makeMenu('1sub13','top1','proc&eacute;d&eacute;<br>push-pull','../procedes/procedes_push_pull.html','',82,34,'','','','','')
	
oM.makeMenu('top2','','','../applications_fr/index.html','',82,20,'../../images/menu_applications_on.gif','../../images/menu_applications_on.gif','','',"bottom")
	oM.makeMenu('2sub10','top2','automobile','../applications_fr/automobile.html','',82,20,'','','','','')
	oM.makeMenu('2sub11','top2','m&eacute;dical,<br>dentisterie','../applications_fr/medical_dentisterie.html','',82,34,'','','','','')
	oM.makeMenu('2sub12','top2','chauffage,<br>air climatis&eacute;,<br>plomberie','../applications_fr/chauffage.html','',82,48,'','','','','')
	oM.makeMenu('2sub13','top2','aviation','../applications_fr/aviation.html','',82,20,'','','','','')
	oM.makeMenu('2sub14','top2','divers','../applications_fr/autres.html','',82,20,'','','','','')	

oM.makeMenu('top3','','','../machines/index.html','',82,20,'../../images/menu_machines_off.gif','../../images/menu_machines_on.gif','','',"bottom")
	oM.makeMenu('3sub11','top3','r&eacute;treint','../machines/retreint.html','',82,20,'','','','','')
		oM.makeMenu('3sub110','3sub11','r&eacute;treint rotatif','../machines/retreint_rotatif.html','',95,20,'','','','','')
		oM.makeMenu('3sub111','3sub11','r&eacute;treint<br>&agrave; axe fixe','../machines/retreint_fixe.html','',95,34,'','','','','')
		oM.makeMenu('3sub112','3sub11','r&eacute;treint<br>en plong&eacute;e','../machines/retreint_plongee.html','',95,34,'','','','','')		
	oM.makeMenu('3sub12','top3','fa&ccedil;onnage','../machines/faconnage.html','',82,20,'','','','','')
		oM.makeMenu('3sub120','3sub12','tableau de <br>s&eacute;lection','../machines/faconnage_tab.html','',95,34,'','','','','')
	oM.makeMenu('3sub13','top3','lignes<br>modulaires<br>automatis&eacute;es','../machines/lignes_automatisees.html','',82,48,'','','','','')
	oM.makeMenu('3sub14','top3','&eacute;quipement<br>optionnel','../machines/equipement_optionnel.html','',82,34,'','','','','right')

oM.makeMenu('top4','','','../automatisation/index.html','',82,20,'../../images/menu_automatisation_off.gif','../../images/menu_automatisation_on.gif','','','bottom')
	oM.makeMenu('4sub11','top4','alimentation','../automatisation/alimentation.html','',82,20,'','','','','')
	oM.makeMenu('4sub12','top4','transfert','../automatisation/transfert.html','',82,20,'','','','','')
	oM.makeMenu('4sub13','top4','&eacute;jection','../automatisation/ejection.html','',82,20,'','','','','')

oM.makeMenu('top5','','','../outillage/index.html','',82,20,'../../images/menu_outillage_off.gif','../../images/menu_outillage_on.gif','','','bottom')
	oM.makeMenu('5sub11','top5','r&eacute;treint','../outillage/outillage_retreint.html','',81,20,'','','','','')
	oM.makeMenu('5sub12','top5','fa&ccedil;onnage','../outillage/outillage_faconnage.html','',81,20,'','','','','')	

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;