//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=30
oCMenu.fromLeft=20 
oCMenu.fromTop=115   
oCMenu.rows=1 
oCMenu.menuPlacement="0"
                                                             
oCMenu.offlineRoot="file:///d:/Gutmann2/" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=500 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=115
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=20 
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() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width+150
oCMenu.level[1].height=30
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=-(oCMenu.level[0].width-2)/2000
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"


//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=150
oCMenu.level[2].height=30
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"


/******************************************
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','','Produits','','')
  oCMenu.makeMenu('sub00','top0','Systèmes et meubles de bureaux','')
    oCMenu.makeMenu('sub001','sub00','- Modèles','Moebelprogramme_fr.htm','',220,0)
	oCMenu.makeMenu('sub002','sub00','- Cabinets','Schranksysteme_fr.htm','',220,0)
	oCMenu.makeMenu('sub003','sub00','- Systèmes a taille réglable','hoehenverstellbare Arbeitstische_fr.htm','',220,0)
	oCMenu.makeMenu('sub004','sub00','- Postes de travail DAO','CAD-Arbeitsplaetze_fr.htm','',220,0)
	oCMenu.makeMenu('sub005','sub00','- Bureaux d`accueil','Theken - Empfang_fr.htm','',220,0)
	oCMenu.makeMenu('sub006','sub00','- Chaises','Buerostuehle_fr.htm','',220,0)
	oCMenu.makeMenu('sub007','sub00','- Accessoires','Zubehoer_fr.htm','',220,0)
  oCMenu.makeMenu('sub01','top0','Meubles pour l`éducation','')
	oCMenu.makeMenu('sub011','sub01','- Tables d`ordinateur','PC-Tische_fr.htm','',220,0)
	oCMenu.makeMenu('sub012','sub01','- Chariots multimédia','mobile Multimediawagen_fr.htm','',220,0)
  oCMenu.makeMenu('sub02','top0','Meubles fait sur mesure','')
  	oCMenu.makeMenu('sub021','sub02','- Centres de commande','Leitwarten_fr.htm','',220,0)
	oCMenu.makeMenu('sub022','sub02','- Tables pour microscope','Mikroskoptische_fr.htm','',220,0)
  	oCMenu.makeMenu('sub023','sub02','- Postes de travail pour handicapé','Behindertenarbeitsplaetze_fr.htm','',220,0)
  oCMenu.makeMenu('sub03','top0','Laboratoires de langue & multimédia','')
	oCMenu.makeMenu('sub031','sub03','- Laboratoires de langue','Sprachlabore_fr.htm','',220,0)
	oCMenu.makeMenu('sub032','sub03','- Laboratoires de multimédia','didaktische Videonetze_fr.htm','',220,0)*/

oCMenu.makeMenu('top1','','Accueil','index_fr.htm')
	
oCMenu.makeMenu('top2','','Voie d`accès','Anfahrt_fr.htm')

oCMenu.makeMenu('top3','','Contact','Kontakt_fr.htm')

oCMenu.makeMenu('top5','','Mentions légales','Impressum_fr.htm')

//Leave this line - it constructs the menu
oCMenu.construct()		
/******************************************
CM_ADD-IN - hideselectboxes (last updated: 11/13/02)
IE5+ and NS6+ only - ignores the other browsers

Because of the selectbox bug in the browsers that makes 
selectboxes have the highest z-index whatever you do 
this script will check for selectboxes that interfear with
your menu items and then hide them. 

Just add this code to the coolmenus js file
or link the cm_addins.js file to your page as well.
*****************************************/
if(bw.dom&&!bw.op){
  makeCM.prototype.sel=0
  makeCM.prototype.onshow+=";this.hideselectboxes(pm,pm.subx,pm.suby,maxw,maxh,pm.lev)"
  makeCM.prototype.hideselectboxes=function(pm,x,y,w,h,l){
    var selx,sely,selw,selh,i
    if(!this.sel){
      this.sel=this.doc.getElementsByTagName("SELECT")
		  this.sel.level=0
    }
    var sel=this.sel
    for(i=0;i<sel.length;i++){
			selx=0; sely=0; var selp;
			if(sel[i].offsetParent){selp=sel[i]; while(selp.offsetParent){selp=selp.offsetParent; selx+=selp.offsetLeft; sely+=selp.offsetTop;}}
			selx+=sel[i].offsetLeft; sely+=sel[i].offsetTop
			selw=sel[i].offsetWidth; selh=sel[i].offsetHeight			
			if(selx+selw>x && selx<x+w && sely+selh>y && sely<y+h){
				if(sel[i].style.visibility!="hidden"){sel[i].level=l; sel[i].style.visibility="hidden"; if(pm){ if(!pm.mout) pm.mout=""; pm.mout+=this.name+".sel["+i+"].style.visibility='visible';"}}
      }else if(l<=sel[i].level && !(pm&&l==0)) sel[i].style.visibility="visible"
    }
  }
}
