//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('m14016','m5','Events','http://wonderstock.co.nz/category/events.html','','189','21','','','menubg','menubg2');oCMenu.makeMenu('mm14016','m5','','','','189','1','/images/e.gif','','','');oCMenu.makeMenu('m14122','m14016','Official','http://wonderstock.co.nz/category/official.html','','170','21','','','','');oCMenu.makeMenu('m14123','m14122','Israeli Ambassador visit to Palmerston North July 2011','http://wonderstock.co.nz/category/israeli-ambassador-visit-to-palmerston-north-july-2011.html','','170','21','','','','');oCMenu.makeMenu('m14124','m14123','Welcome and hangi lunch at Rangiotu Marae','http://wonderstock.co.nz/category/welcome-and-hangi-lunch-at-rangiotu-marae.html','','170','21','','','','');oCMenu.makeMenu('m14125','m14123','Dinner at Bethany','http://wonderstock.co.nz/category/dinner-at-bethany.html','','170','21','','','','');oCMenu.makeMenu('m14024','m14016','Social','http://wonderstock.co.nz/category/social.html','','170','21','','','','');oCMenu.makeMenu('m14037','m14024','Christmas Parade 2010','http://wonderstock.co.nz/category/christmas-parade-2010.html','','170','21','','','','');oCMenu.makeMenu('m14017','m14024','Jillian Turns 50','http://wonderstock.co.nz/category/jillian-turns-50.html','','170','21','','','','');oCMenu.makeMenu('m14035','m14024','Marin\'s Birthday','http://wonderstock.co.nz/category/14035.html','','170','21','','','','');oCMenu.makeMenu('m14022','m14016','Sports','http://wonderstock.co.nz/category/sports.html','','170','21','','','','');oCMenu.makeMenu('m14323','m14022','Equestrian','http://wonderstock.co.nz/category/equestrian.html','','170','21','','','','');oCMenu.makeMenu('m14324','m14323','Manawatu Saddle Up Riding Club','http://wonderstock.co.nz/category/manawatu-saddle-up-riding-club.html','','170','21','','','','');oCMenu.makeMenu('m14325','m14324','Sunday 28th August 2011','http://wonderstock.co.nz/category/sunday-28th-august-2011.html','','170','21','','','','');oCMenu.makeMenu('m14630','m14325','Show Jumping','http://wonderstock.co.nz/category/show-jumping.html','','170','21','','','','');oCMenu.makeMenu('m14749','m14323','Tielcey Park','http://wonderstock.co.nz/category/tielcey-park.html','','170','21','','','','');oCMenu.makeMenu('m14750','m14749','Combined Training and Showjumping','http://wonderstock.co.nz/category/combined-training-and-showjumping.html','','170','21','','','','');oCMenu.makeMenu('m14751','m14750','September 18th 2011','http://wonderstock.co.nz/category/september-18th-2011.html','','170','21','','','','');oCMenu.makeMenu('m14753','m14751','Cafe Arena Showjumping','http://wonderstock.co.nz/category/cafe-arena-showjumping.html','','170','21','','','','');oCMenu.makeMenu('m14752','m14751','Indoor Arena Dressage','http://wonderstock.co.nz/category/indoor-arena-dressage.html','','170','21','','','','');oCMenu.makeMenu('m14020','m14022','Local High School Sports','http://wonderstock.co.nz/category/local-high-school-sports.html','','170','21','','','','');oCMenu.makeMenu('m14025','m14020','Freyberg vs Horowhenua','http://wonderstock.co.nz/category/freyberg-vs-horowhenua.html','','170','21','','','','');oCMenu.makeMenu('m14021','m14020','Freybreg vs PN Boys High','http://wonderstock.co.nz/category/freybreg-vs-pn-boys-high.html','','170','21','','','','');oCMenu.makeMenu('m14023','m14016','Weddings','http://wonderstock.co.nz/category/weddings.html','','170','21','','','','');oCMenu.makeMenu('m14034','m14023','Mike & Amilia','http://wonderstock.co.nz/category/14034.html','','170','21','','','','');oCMenu.makeMenu('m14018','m14023','Richard-Mae Wedding','http://wonderstock.co.nz/category/14018.html','','170','21','','','','');oCMenu.makeMenu('m14019','m14023','Jimmy-Marise Wedding','http://wonderstock.co.nz/category/14019.html','','170','21','','','','');oCMenu.makeMenu('m14287','m5','Nature','http://wonderstock.co.nz/category/nature.html','','189','21','','','menubg','menubg2');oCMenu.makeMenu('mm14287','m5','','','','189','1','/images/e.gif','','','');oCMenu.makeMenu('m14030','m14287','Fauna','http://wonderstock.co.nz/category/fauna.html','','170','21','','','','');oCMenu.makeMenu('m14031','m14287','Flora','http://wonderstock.co.nz/category/flora.html','','170','21','','','','');oCMenu.makeMenu('m8385','m5','New Zealand','http://wonderstock.co.nz/category/new-zealand.html','','189','21','','','menubg','menubg2');oCMenu.makeMenu('mm8385','m5','','','','189','1','/images/e.gif','','','');oCMenu.makeMenu('m13753','m8385','Cantebury','http://wonderstock.co.nz/category/cantebury.html','','170','21','','','','');oCMenu.makeMenu('m13306','m8385','Hawkes Bay','http://wonderstock.co.nz/category/hawkes-bay.html','','170','21','','','','');oCMenu.makeMenu('m8384','m8385','Manawatu-Wanganui','http://wonderstock.co.nz/category/8384.html','','170','21','','','','');oCMenu.makeMenu('m4370','m8384','Palmerston North','http://wonderstock.co.nz/category/palmerston-north.html','','170','21','','','','');oCMenu.makeMenu('m6000','m8384','Pohangina Valley','http://wonderstock.co.nz/category/pohangina-valley.html','','170','21','','','','');oCMenu.makeMenu('m13309','m8385','Taranaki','http://wonderstock.co.nz/category/taranaki.html','','170','21','','','','');oCMenu.makeMenu('m14288','m8385','Wairarapa','http://wonderstock.co.nz/category/wairarapa.html','','170','21','','','','');oCMenu.makeMenu('m14102','m5','Objects','http://wonderstock.co.nz/category/objects.html','','189','21','','','menubg','menubg2');oCMenu.makeMenu('mm14102','m5','','','','189','1','/images/e.gif','','','');oCMenu.makeMenu('m14104','m14102','Automobiles','http://wonderstock.co.nz/category/automobiles.html','','170','21','','','','');oCMenu.makeMenu('m8386','m5','Other Places','http://wonderstock.co.nz/category/other-places.html','','189','21','','','menubg','menubg2');oCMenu.makeMenu('mm8386','m5','','','','189','1','/images/e.gif','','','');oCMenu.makeMenu('m10306','m8386','Australia','http://wonderstock.co.nz/category/australia.html','','170','21','','','','');oCMenu.makeMenu('m13764','m8386','Czech Republic','http://wonderstock.co.nz/category/czech-republic.html','','170','21','','','','');oCMenu.makeMenu('m14106','m8386','Singapore','http://wonderstock.co.nz/category/singapore.html','','170','21','','','','');oCMenu.makeMenu('m13752','m8386','Greece','http://wonderstock.co.nz/category/greece.html','','170','21','','','','');oCMenu.makeMenu('m10858','m8386','Israel','http://wonderstock.co.nz/category/israel.html','','170','21','','','','');oCMenu.makeMenu('m13751','m8386','Italy','http://wonderstock.co.nz/category/italy.html','','170','21','','','','');oCMenu.makeMenu('m10307','m8386','Maldives','http://wonderstock.co.nz/category/maldives.html','','170','21','','','','');oCMenu.makeMenu('m12542','m8386','Okinawa','http://wonderstock.co.nz/category/okinawa.html','','170','21','','','','');oCMenu.makeMenu('m14119','m8386','Protugal','http://wonderstock.co.nz/category/protugal.html','','170','21','','','','');oCMenu.makeMenu('m14070','m8386','Thailand','http://wonderstock.co.nz/category/thailand.html','','170','21','','','','');oCMenu.makeMenu('m14305','m14070','Phuket','http://wonderstock.co.nz/category/phuket.html','','170','21','','','','');oCMenu.makeMenu('m14304','m14070','Bangkok','http://wonderstock.co.nz/category/bangkok.html','','170','21','','','','');oCMenu.makeMenu('m14087','m5','People','http://wonderstock.co.nz/category/people.html','','189','21','','','menubg','menubg2');oCMenu.makeMenu('mm14087','m5','','','','189','1','/images/e.gif','','','');oCMenu.makeMenu('m14056','m5','Textures','http://wonderstock.co.nz/category/textures.html','','189','21','','','menubg','menubg2');oCMenu.makeMenu('mm14056','m5','','','','189','1','/images/e.gif','','','');oCMenu.makeMenu('m14057','m14056','Water Textures','http://wonderstock.co.nz/category/water-textures.html','','170','21','','','',''); //Leave this line - it constructs the menu oCMenu.construct()