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

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=317 
oCMenu.fromTop=66   
oCMenu.rows=1 
oCMenu.menuPlacement="left"
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=0 
//oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=1



//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=82
oCMenu.level[0].height=22 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
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-2
oCMenu.level[1].height=14
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0                    
oCMenu.level[1].borderY=4
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
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','','who <span class="txtopnav01">we are</span>','who.php','','88')
	oCMenu.makeMenu('sub00','top0','key facts','who_key01.php','','88')
	oCMenu.makeMenu('sub01','top0','members','who_memb01.php','','88')

oCMenu.makeMenu('top1','','why <span class="txtopnav01">you need us</span>','why.php','','120')
	oCMenu.makeMenu('sub10','top1','construction','why_construct01.php','','120')
	oCMenu.makeMenu('sub11','top1','coastal protection','why_protect01.php','','120')
	oCMenu.makeMenu('sub12','top1','other uses','why_other01.php','','120')
	
oCMenu.makeMenu('top2','','what <span class="txtopnav01">we do</span>','what.php','','90')
	oCMenu.makeMenu('sub20','top2','origins & geology','what_origins01.php','','170')
	oCMenu.makeMenu('sub21','top2','tendering & prospecting','what_tender01.php','','170')
	oCMenu.makeMenu('sub22','top2','licensing & regulation','what_licence01.php','','170')
	oCMenu.makeMenu('sub23','top2','&nbsp;&nbsp;&gt;&nbsp;&nbsp;government policy','what_govt01.php','','170')
	oCMenu.makeMenu('sub24','top2','management & control','what_manage01.php','','170')
	oCMenu.makeMenu('sub25','top2','dredging','what_dredge01.php','','170')
	oCMenu.makeMenu('sub26','top2','processing','what_process01.php','','170')
		
oCMenu.makeMenu('top3','','where <span class="txtopnav01">we work</span>','where_licence01.php','','112')
	
oCMenu.makeMenu('top4','','what <span class="txtopnav01">are the issues?</span>','issues.php','','138')
	oCMenu.makeMenu('sub401','top4','sustainability','issues_sustain01.php','','138')
	oCMenu.makeMenu('sub402','top4','marine bill','issues_marine01.php','','138')
	oCMenu.makeMenu('sub403','top4','area dredged','issues_area01.php','','138')
	oCMenu.makeMenu('sub404','top4','aggregates levy','issues_levy01.php','','138')
	oCMenu.makeMenu('sub405','top4','coastal erosion','issues_coastal01.php','','138')
	oCMenu.makeMenu('sub406','top4','marine life','issues_marinelife01.php','','138')
	oCMenu.makeMenu('sub407','top4','other sea users','issues_other01.php','','138')
	oCMenu.makeMenu('sub408','top4','archaeology','issues_arch01.php','','138')
	oCMenu.makeMenu('sub409','top4','renewable energy','issues_renew01.php','','138')
	
	
oCMenu.makeMenu('top5','','want <span class="txtopnav01">to know more?</span>','want.php','','138')
	oCMenu.makeMenu('sub50','top5','photos','want_photos01.php','','138')
	oCMenu.makeMenu('sub51','top5','reference','want_reference01.php','','138')
	oCMenu.makeMenu('sub52','top5','videos','want_videos01.php','','138')

//Leave this line - it constructs the menu
oCMenu.construct()	