//Menu object creation oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 //Using the cm_page object to place the menu ---- //There are some differences between the browsers that I try to fix here. //oCMenu.fromLeft=!bw.ns4?cmpage.x2 - 160:cmpage.x2 - 176 //We also need to "replace" the menu on resize. So: //oCMenu.onresize="oCMenu.fromLeft=cmpage.x2 - 160" oCMenu.fromLeft=13 oCMenu.fromTop=200 oCMenu.rows=0 oCMenu.menuPlacement=0 oCMenu.offlineRoot="" oCMenu.onlineRoot="" oCMenu.resizeCheck=0 oCMenu.wait=1000 oCMenu.fillImg="" oCMenu.zIndex=0 //Background bar properties oCMenu.useBar=0 oCMenu.barWidth="menu" oCMenu.barHeight="menu" oCMenu.barClass="clBar" oCMenu.barX="menu" oCMenu.barY="menu" 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=244 oCMenu.level[0].height=21 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=1 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="right" //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=170 oCMenu.level[1].height=21 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=0 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=170 oCMenu.level[2].height=21 oCMenu.level[2].offsetX=0 oCMenu.level[2].offsetY=0 oCMenu.level[2].regClass="clLevel1" oCMenu.level[2].overClass="clLevel1over" oCMenu.level[2].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('m5995','m5','westward ho!','http://www.3waves.co.uk/category/5995.html','','190','21','','','menubg','menubg2');oCMenu.makeMenu('mm5995','m5','','','','190','1','/images/e.gif','','','');oCMenu.makeMenu('m6021','m5995','12-08-2008','http://www.3waves.co.uk/category/6021.html','','170','21','','','','');oCMenu.makeMenu('m6045','m5995','14-09-2008','http://www.3waves.co.uk/category/6045.html','','170','21','','','','');oCMenu.makeMenu('m6017','m5995','11-10-2008','http://www.3waves.co.uk/category/6017.html','','170','21','','','','');oCMenu.makeMenu('m6031','m5995','05-04-2009','http://www.3waves.co.uk/category/6031.html','','170','21','','','','');oCMenu.makeMenu('m6066','m5995','23-04-2009','http://www.3waves.co.uk/category/6066.html','','170','21','','','','');oCMenu.makeMenu('m6074','m5995','24-04-2009','http://www.3waves.co.uk/category/6074.html','','170','21','','','','');oCMenu.makeMenu('m6173','m5995','30-05-2009','http://www.3waves.co.uk/category/6173.html','','170','21','','','','');oCMenu.makeMenu('m6259','m5995','14-06-2009','http://www.3waves.co.uk/category/6259.html','','170','21','','','','');oCMenu.makeMenu('m6482','m5995','21-10-2009','http://www.3waves.co.uk/category/6482.html','','170','21','','','','');oCMenu.makeMenu('m6551','m5995','29-10-2009','http://www.3waves.co.uk/category/6551.html','','170','21','','','','');oCMenu.makeMenu('m6585','m5995','12-12-2009','http://www.3waves.co.uk/category/6585.html','','170','21','','','','');oCMenu.makeMenu('m6594','m5995','08-02-2010','http://www.3waves.co.uk/category/6594.html','','170','21','','','','');oCMenu.makeMenu('m6618','m5995','24-02-2010','http://www.3waves.co.uk/category/6618.html','','170','21','','','','');oCMenu.makeMenu('m6632','m5995','23-03-2010','http://www.3waves.co.uk/category/6632.html','','170','21','','','','');oCMenu.makeMenu('m6639','m5995','24-03-2010','http://www.3waves.co.uk/category/6639.html','','170','21','','','','');oCMenu.makeMenu('m6645','m5995','06-04-2010','http://www.3waves.co.uk/category/6645.html','','170','21','','','','');oCMenu.makeMenu('m6655','m5995','22-05-2010','http://www.3waves.co.uk/category/6655.html','','170','21','','','','');oCMenu.makeMenu('m6766','m5995','02-06-2010','http://www.3waves.co.uk/category/6766.html','','170','21','','','','');oCMenu.makeMenu('m6746','m5995','03-06-2010','http://www.3waves.co.uk/category/6746.html','','170','21','','','','');oCMenu.makeMenu('m6833','m5995','03-07-2010','http://www.3waves.co.uk/category/6833.html','','170','21','','','','');oCMenu.makeMenu('m6858','m5995','19-07-2010','http://www.3waves.co.uk/category/6858.html','','170','21','','','','');oCMenu.makeMenu('m6859','m5995','20-07-2010','http://www.3waves.co.uk/category/6859.html','','170','21','','','','');oCMenu.makeMenu('m6316','m5','Saunton','http://www.3waves.co.uk/category/saunton.html','','190','21','','','menubg','menubg2');oCMenu.makeMenu('mm6316','m5','','','','190','1','/images/e.gif','','','');oCMenu.makeMenu('m6483','m6316','12-10-2009','http://www.3waves.co.uk/category/6483.html','','170','21','','','','');oCMenu.makeMenu('m6784','m6316','27-06-2010','http://www.3waves.co.uk/category/6784.html','','170','21','','','','');oCMenu.makeMenu('m6317','m5','Croyde','http://www.3waves.co.uk/category/croyde.html','','190','21','','','menubg','menubg2');oCMenu.makeMenu('mm6317','m5','','','','190','1','/images/e.gif','','','');oCMenu.makeMenu('m6602','m6317','08-02-2010','http://www.3waves.co.uk/category/6602.html','','170','21','','','','');oCMenu.makeMenu('m6315','m5','Putsborough','http://www.3waves.co.uk/category/putsborough.html','','190','21','','','menubg','menubg2');oCMenu.makeMenu('mm6315','m5','','','','190','1','/images/e.gif','','','');oCMenu.makeMenu('m6331','m6315','28-07-09','http://www.3waves.co.uk/category/6331.html','','170','21','','','','');oCMenu.makeMenu('m6460','m6331','Part 1','http://www.3waves.co.uk/category/part-1.html','','170','21','','','','');oCMenu.makeMenu('m6461','m6331','Part 2','http://www.3waves.co.uk/category/part-2.html','','170','21','','','','');oCMenu.makeMenu('m6318','m5','Woolacombe','http://www.3waves.co.uk/category/woolacombe.html','','190','21','','','menubg','menubg2');oCMenu.makeMenu('mm6318','m5','','','','190','1','/images/e.gif','','',''); //Leave this line - it constructs the menu oCMenu.construct()