/*** 
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

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=100
oCMenu.rows=1 
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="../"
oCMenu.resizeCheck=1
oCMenu.wait=100
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0
oCMenu.checkselect=1

//Netscape 4 and Opera form work-around !! !! !! !! !!
if(bw.ns4 || bw.op5 || bw.op6){
  oCMenu.onshow="document.layers?document.layers.formLayer.visibility='hidden':document.getElementById('formDiv').style.visibility='hidden';"
  oCMenu.onhide="document.layers?document.layers.formLayer.visibility='visible':document.getElementById('formDiv').style.visibility='visible';"
}

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="100%"
oCMenu.barHeight="menu"-3
oCMenu.barClass="clBar"
oCMenu.barX=0
oCMenu.barY=123
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=150
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=150
oCMenu.level[1].height=20
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)/30
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"


/******************************************
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','','&nbsp;Home','http://www.cibikub.com','',100)
	oCMenu.makeMenu('sub00','top0','&nbsp;Liste des posts','http://www.cibikub.com/index_liste.html','',150)
	oCMenu.makeMenu('sub01','top0','&nbsp;Plan du site','http://www.cibikub.com/plan du site.html','',150)

oCMenu.makeMenu('top1','','&nbsp;Le Havre','http://www.cibikub.com/rubrique_le_havre.html','',100)
	oCMenu.makeMenu('sub10','top1','&nbsp;Galeries','http://www.cibikub.com/le_havre_1.html','',150)
		oCMenu.makeMenu('subsub10','sub10','&nbsp;1','http://www.cibikub.com/le_havre_1.html','',100)
		oCMenu.makeMenu('subsub11','sub10','&nbsp;2','http://www.cibikub.com/le_havre_2.html','',100)
		oCMenu.makeMenu('subsub12','sub10','&nbsp;3','http://www.cibikub.com/le_havre_3.html','',100)
		oCMenu.makeMenu('subsub13','sub10','&nbsp;4','http://www.cibikub.com/le_havre_4.html','',100)
	oCMenu.makeMenu('sub11','top1','&nbsp;A la carte','http://www.cibikub.com/le_havre_photo_carte.html','',150)	
	oCMenu.makeMenu('sub12','top1','&nbsp;Panoramas','http://www.cibikub.com/le_havre_panoramas.html','',150)
	oCMenu.makeMenu('sub13','top1','&nbsp;Vu sur le web','http://www.cibikub.com/vusurleweb.html','',150)
	
oCMenu.makeMenu('top3','','&nbsp;Ballades','http://www.cibikub.com/rubrique_ballades.html','',100)
	oCMenu.makeMenu('sub30','top3','&nbsp;Touristiques','http://www.cibikub.com/en_construction.html','',150)
	oCMenu.makeMenu('sub31','top3','&nbsp;Culinaires','http://www.cibikub.com/en_construction.html','',150)
		
oCMenu.makeMenu('top4','','&nbsp;Pixels','http://www.cibikub.com/rubrique_pixels.html','',100)
	oCMenu.makeMenu('sub40','top4','&nbsp;Wallpapers','http://www.cibikub.com/wallpapers_1.html','',150)
		oCMenu.makeMenu('subsub40','sub40','&nbsp;1','http://www.cibikub.com/wallpapers_1.html','',100)
		oCMenu.makeMenu('subsub41','sub40','&nbsp;2','http://www.cibikub.com/wallpapers_2.html','',100)		
	oCMenu.makeMenu('sub41','top4','&nbsp;Images fractales','http://www.cibikub.com/fractales_1.html','',150)
		oCMenu.makeMenu('subsub42','sub41','&nbsp;1','http://www.cibikub.com/fractales_1.html','',100)
		oCMenu.makeMenu('subsub43','sub41','&nbsp;2','http://www.cibikub.com/fractales_2.html','',100)
		oCMenu.makeMenu('subsub44','sub41','&nbsp;3','http://www.cibikub.com/fractales_3.html','',100)
		oCMenu.makeMenu('subsub45','sub41','&nbsp;4','http://www.cibikub.com/fractales_4.html','',100)
		oCMenu.makeMenu('subsub46','sub41','&nbsp;5','http://www.cibikub.com/fractales_5.html','',100)
		oCMenu.makeMenu('subsub47','sub41','&nbsp;6','http://www.cibikub.com/fractales_6.html','',100)
	oCMenu.makeMenu('sub42','top4','&nbsp;Economiseur','http://www.cibikub.com/fractales_economiseur.html','',150)
		
oCMenu.makeMenu('top5','','&nbsp;Alors ?','http://www.cibikub.com/rubrique_alors.html','',100)
	oCMenu.makeMenu('sub50','top5','&nbsp;Madame Irma','http://www.cibikub.com/madameirma.html#pile','',160)
	oCMenu.makeMenu('sub51','top5','&nbsp;Un clic, une idée','http://www.cibikub.com/unclicuneidee.html','',160)
		
oCMenu.makeMenu('top6','','&nbsp;Liens','http://www.cibikub.com/rubrique_liens.html','',100)
	oCMenu.makeMenu('sub60','top6','&nbsp;Favoris','http://www.cibikub.com/favoris.php5','',160)
	oCMenu.makeMenu('sub61','top6','&nbsp;Une brouette de liens','http://www.cibikub.com/en_vrac.html','',160)
	oCMenu.makeMenu('sub62','top6','&nbsp;Randomatic overdrive','http://www.cibikub.com/rdm_link.html','',160)


//Leave this line - it constructs the menu
oCMenu.construct()

