//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=122 oCMenu.rows=1 oCMenu.menuPlacement="center" oCMenu.offlineRoot="" oCMenu.onlineRoot="" oCMenu.resizeCheck=1 oCMenu.wait=1000 oCMenu.fillImg="cm_fill.gif" oCMenu.zIndex=999999 //Background bar properties oCMenu.useBar=1 oCMenu.barWidth="770" oCMenu.barHeight="menu" oCMenu.barClass="clBar" oCMenu.barX=0 oCMenu.barY=0 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=10 oCMenu.level[0].height=28 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=140 oCMenu.level[1].height=18 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)/2+3 oCMenu.level[1].offsetY=0 oCMenu.level[1].borderClass="clLevel1border" oCMenu.level[1].arrow="http://www.cape-epic.com/images/menu1_arrow.gif" oCMenu.level[1].arrowWidth=10 oCMenu.level[1].arrowHeight=10 oCMenu.makeMenu('top0','','','index.php','',58,'') oCMenu.makeMenu('top2','','','http://www.cape-epic.com/content.php?page_id=23&title=/About_the_Race/','',77,'') oCMenu.makeMenu('sub20','top2','About the Race', 'http://www.cape-epic.com/content.php?page_id=23&title=/About_the_Race/') oCMenu.makeMenu('sub21','top2','2010 Race Register', 'http://www.cape-epic.com/content.php?page_id=177&title=/2010_Race_Register/') oCMenu.makeMenu('sub22','top2','2010 Route', 'http://www.cape-epic.com/content.php?page_id=164&title=/2010_Route/') oCMenu.makeMenu('sub23','top2','2010 Towns', 'http://www.cape-epic.com/content.php?page_id=176&title=/2010_Towns/') oCMenu.makeMenu('sub24','top2','2010 Results', 'http://www.cape-epic.com/live/results2010.php') oCMenu.makeMenu('sub25','top2','Hall of Fame', 'http://www.cape-epic.com/content.php?page_id=184&title=/Who_to_Watch_in_2010/') oCMenu.makeMenu('sub250','sub25','Who to Watch in 2010', 'http://www.cape-epic.com/content.php?page_id=184&title=/Who_to_Watch_in_2010/') oCMenu.makeMenu('sub251','sub25','Amabubesi', 'http://www.cape-epic.com/content.php?page_id=29&title=/Amabubesi/') oCMenu.makeMenu('top3','','','http://www.cape-epic.com/content.php?page_id=151&title=/How_to_Register/','',65,'') oCMenu.makeMenu('sub30','top3','Registration', 'http://www.cape-epic.com/content.php?page_id=151&title=/How_to_Register/') oCMenu.makeMenu('sub300','sub30','How to Register', 'http://www.cape-epic.com/content.php?page_id=151&title=/How_to_Register/') oCMenu.makeMenu('sub301','sub30','Entry Package', 'http://www.cape-epic.com/content.php?page_id=119&title=/Entry_Package/') oCMenu.makeMenu('sub302','sub30','Withdrawal Policy', 'http://www.cape-epic.com/content.php?page_id=145&title=/Withdrawal_Policy/') oCMenu.makeMenu('sub31','top3','Preparation', 'http://www.cape-epic.com/content.php?page_id=53&title=/Information_Evenings/') oCMenu.makeMenu('sub310','sub31','Information Evenings', 'http://www.cape-epic.com/content.php?page_id=53&title=/Information_Evenings/') oCMenu.makeMenu('sub311','sub31','4-Day Training Camp', 'http://www.cape-epic.com/content.php?page_id=115&title=/4-Day_Training_Camp/') oCMenu.makeMenu('sub312','sub31','What to Bring', 'http://www.cape-epic.com/content.php?page_id=142&title=/What_to_Bring/') oCMenu.makeMenu('sub313','sub31','Travel and Directions', 'http://www.cape-epic.com/content.php?page_id=55&title=/Travel_and_Directions/') oCMenu.makeMenu('sub314','sub31','Rider Blogs', '/riderblogs.php') oCMenu.makeMenu('sub315','sub31','Rider zone', 'http://www.cape-epic.com/content.php?page_id=196&title=/Rider_zone/') oCMenu.makeMenu('sub32','top3','At the Race', 'http://www.cape-epic.com/content.php?page_id=99&title=/Day_Zero/') oCMenu.makeMenu('sub320','sub32','Day Zero', 'http://www.cape-epic.com/content.php?page_id=99&title=/Day_Zero/') oCMenu.makeMenu('sub321','sub32','Race Village', 'http://www.cape-epic.com/content.php?page_id=141&title=/Race_Village/') oCMenu.makeMenu('sub33','top3','Upgrade Options', 'http://www.cape-epic.com/content.php?page_id=51&title=/Optional_Extras/') oCMenu.makeMenu('sub330','sub33','Optional Extras', 'http://www.cape-epic.com/content.php?page_id=51&title=/Optional_Extras/') oCMenu.makeMenu('sub331','sub33','Avis Premium Upgrade', 'http://www.cape-epic.com/content.php?page_id=48&title=/Avis_Premium_Upgrade/') oCMenu.makeMenu('sub332','sub33','Mobile Homes', 'http://www.cape-epic.com/content.php?page_id=49&title=/Mobile_Homes/') oCMenu.makeMenu('sub333','sub33','Accommodation', 'http://www.cape-epic.com/content.php?page_id=112&title=/Accommodation/') oCMenu.makeMenu('sub34','top3','Prize Money', 'http://www.cape-epic.com/content.php?page_id=57&title=/Prize_Money/') oCMenu.makeMenu('sub35','top3','Rules', 'http://www.cape-epic.com/content.php?page_id=31&title=/Rules/') oCMenu.makeMenu('top184','','','http://www.cape-epic.com/content.php?page_id=41&title=/Supporter_Village/','',95,'') oCMenu.makeMenu('sub1840','top184','Supporter Village', 'http://www.cape-epic.com/content.php?page_id=41&title=/Supporter_Village/') oCMenu.makeMenu('sub1841','top184','Volunteers', 'http://www.cape-epic.com/content.php?page_id=175&t') oCMenu.makeMenu('sub18410','sub1841','Be a Part of the Action', 'http://www.cape-epic.com/content.php?page_id=175&title=/Be_a_Part_of_the_Action/') oCMenu.makeMenu('sub18411','sub1841','Guidelines', 'http://www.cape-epic.com/content.php?page_id=168&title=/Guidelines/') oCMenu.makeMenu('sub18412','sub1841','FAQs', 'http://www.cape-epic.com/content.php?page_id=169&title=/FAQs/') oCMenu.makeMenu('sub18413','sub1841','Apply to Volunteer', 'http://capeepic.igroup.co.za/rider/signin/') oCMenu.makeMenu('sub1842','top184','Epic Trippers', 'http://www.cape-epic.com/content.php?page_id=33&title=/Epic_Trippers/') oCMenu.makeMenu('sub1843','top184','Trackside Hospitality', 'http://www.cape-epic.com/content.php?page_id=162&title=/Trackside_Hospitality/') oCMenu.makeMenu('sub1844','top184','1-Day Races', 'http://www.cape-epic.com/content.php?page_id=186&title=/1-Day_Races/') oCMenu.makeMenu('sub18440','sub1844','Vigne à Vigne', 'http://www.cape-epic.com/content.php?page_id=32&title=/Vigne_à_Vigne/') oCMenu.makeMenu('sub18441','sub1844','Vineyard Run', 'http://www.cape-epic.com/content.php?page_id=143&title=/Vineyard_Run/') oCMenu.makeMenu('sub18442','sub1844','Wilde Cellar to Cellar', 'http://www.cape-epic.com/content.php?page_id=187&title=/Wilde_Cellar_to_Cellar/') oCMenu.makeMenu('sub1845','top184','2010 Spectator Guide', 'http://www.cape-epic.com/content.php?page_id=189&title=/2010_Spectator_Guide/') oCMenu.makeMenu('top5','','','http://www.cape-epic.com/content.php?page_id=70&title=/Photo_Gallery/','',58,'') oCMenu.makeMenu('sub50','top5','Photo Gallery', 'http://www.cape-epic.com/content.php?page_id=70&title=/Photo_Gallery/') oCMenu.makeMenu('sub51','top5','Video Gallery', 'http://www.cape-epic.com/content.php?page_id=155&title=/Video_Gallery/') oCMenu.makeMenu('sub52','top5','2010 TV Schedules', 'http://www.cape-epic.com/content.php?page_id=188&title=/2010_TV_Schedules/') oCMenu.makeMenu('top198','','','http://www.cape-epic.com/content.php?page_id=117&title=/Title_Sponsors/','',73,'') oCMenu.makeMenu('sub1980','top198','Title Sponsors', 'http://www.cape-epic.com/content.php?page_id=117&title=/Title_Sponsors/') oCMenu.makeMenu('sub1981','top198','Headline Sponsors', 'http://www.cape-epic.com/content.php?page_id=100&title=/Headline_Sponsors/') oCMenu.makeMenu('sub1982','top198','Destination Partners', 'http://www.cape-epic.com/content.php?page_id=91&title=/Destination_Partners/') oCMenu.makeMenu('sub1983','top198','Sponsors', 'http://www.cape-epic.com/content.php?page_id=157&title=/Sponsors/') oCMenu.makeMenu('sub1984','top198','Supplier Partners', 'http://www.cape-epic.com/content.php?page_id=93&title=/Supplier_Partners/') oCMenu.makeMenu('top4','','','http://www.cape-epic.com/content.php?page_id=89&title=/The_Team/','',95,'') oCMenu.makeMenu('sub40','top4','The Team', 'http://www.cape-epic.com/content.php?page_id=89&title=/The_Team/') oCMenu.makeMenu('sub41','top4','Charities', 'http://www.cape-epic.com/content.php?page_id=171&title=/Charities/') oCMenu.makeMenu('sub410','sub41','Big Tree Foundation', 'http://www.cape-epic.com/content.php?page_id=173&title=/Big_Tree_Foundation/') oCMenu.makeMenu('sub411','sub41','JAG Foundation', 'http://www.cape-epic.com/content.php?page_id=174&title=/JAG_Foundation/') oCMenu.makeMenu('sub42','top4','Ethos', 'http://www.cape-epic.com/content.php?page_id=118&title=/Company_Ethos/') oCMenu.makeMenu('sub420','sub42','Company Ethos', 'http://www.cape-epic.com/content.php?page_id=118&title=/Company_Ethos/') oCMenu.makeMenu('sub421','sub42','Drugs in Sport', 'http://www.cape-epic.com/content.php?page_id=61&title=/Drugs_in_Sport/') oCMenu.makeMenu('sub43','top4','Contact us', 'http://www.cape-epic.com/content.php?page_id=69&title=/Contact_us/') oCMenu.makeMenu('top131','','','http://www.cape-epic.com/content.php?page_id=25&title=/Milestones/','',58,'') oCMenu.makeMenu('sub1310','top131','Milestones', 'http://www.cape-epic.com/content.php?page_id=25&title=/Milestones/') oCMenu.makeMenu('sub1311','top131','2009 Race', 'http://www.cape-epic.com/content.php?page_id=39&title=/Race_Register/') oCMenu.makeMenu('sub13110','sub1311','Race Register', 'http://www.cape-epic.com/content.php?page_id=39&title=/Race_Register/') oCMenu.makeMenu('sub13111','sub1311','Results', 'http://www.cape-epic.com/live/results.php') oCMenu.makeMenu('sub13112','sub1311','The Stages', 'http://www.cape-epic.com/content.php?page_id=36&title=/The_Stages/') oCMenu.makeMenu('sub13113','sub1311','The Towns', 'http://www.cape-epic.com/content.php?page_id=153&title=/The_Towns/') oCMenu.makeMenu('sub1312','top131','2008 Race', 'http://www.cape-epic.com/acelive08/results.php') oCMenu.makeMenu('sub13120','sub1312','Results', 'http://www.cape-epic.com/acelive08/results.php') oCMenu.makeMenu('sub13121','sub1312','The Stages', 'http://www.cape-epic.com/content.php?page_id=116&title=/The_Stages/') oCMenu.makeMenu('sub13122','sub1312','The Towns', 'http://www.cape-epic.com/content.php?page_id=37&title=/The_Towns/') oCMenu.makeMenu('sub13123','sub1312','2008 Video Gallery', 'http://www.cape-epic.com/content.php?page_id=137&title=/2008_Video_Gallery/') oCMenu.makeMenu('sub1313','top131','2007 Race', 'raceresults.php') oCMenu.makeMenu('sub13130','sub1313','Results', 'raceresults.php') oCMenu.makeMenu('sub13131','sub1313','The Stages', 'http://www.cape-epic.com/content.php?page_id=125&title=/The_Stages/') oCMenu.makeMenu('sub13132','sub1313','The Towns', 'http://www.cape-epic.com/content.php?page_id=124&title=/The_Towns/') oCMenu.makeMenu('sub1314','top131','2006 Race', 'http://capeepic.igroup.co.za/live/results.php') oCMenu.makeMenu('sub13140','sub1314','Results', 'http://capeepic.igroup.co.za/live/results.php') oCMenu.makeMenu('sub1315','top131','News Archive', 'http://www.cape-epic.com/content.php?page_id=85&title=/Newsletters/') oCMenu.makeMenu('sub13150','sub1315','Newsletters', 'http://www.cape-epic.com/content.php?page_id=85&title=/Newsletters/') oCMenu.makeMenu('sub13151','sub1315','News Stories', 'http://www.cape-epic.com/content.php?page_id=79&title=/News_Stories/') oCMenu.makeMenu('sub1316','top131','Polls', 'http://www.cape-epic.com/content.php?page_id=77&title=/Polls/') oCMenu.makeMenu('top6','','','#top','',120,'')