function findPos(){ x=0; y=0; var el,temp; el = document.getElementById("divMenu"); if(el.offsetParent){ temp = el; while(temp.offsetParent){ //Looping parent elements to get the offset of them as well temp=temp.offsetParent; x+=temp.offsetLeft y+=temp.offsetTop; } } x+=el.offsetLeft; y+=el.offsetTop; return [x,y] } pos = findPos() // MENU 1 menu=new makeCM("menu") //Menu properties menu.pxBetween=0 menu.fromLeft=pos[0] menu.fromTop=pos[1] //re-place the menu on resize menu.onresize="pos = findPos(); menu.fromLeft = pos[0]; menu.fromTop = pos[1]" menu.rows=1 menu.menuPlacement=0 menu.offlineRoot="" menu.onlineRoot="" menu.resizeCheck=1 menu.wait=500 menu.fillImg="../images/spacer.gif" menu.zIndex=1 //Background bar properties menu.useBar=1 menu.barWidth="menu" menu.barHeight="menu" menu.barClass="bar" menu.barX="menu" menu.barY="menu" menu.barBorderX=0 menu.barBorderY=0 menu.barBorderClass="" menu.level[0]=new cm_makeLevel() menu.level[0].width= menu.level[0].height=30 menu.level[0].borderX=0 menu.level[0].borderY=0 menu.level[0].offsetX=0 menu.level[0].offsetY=0 menu.level[0].rows=0 menu.level[0].align="bottom" menu.level[0].regClass="L0" menu.level[0].overClass="L0o" menu.level[0].borderClass="L0bdr" menu.level[1]=new cm_makeLevel() menu.level[1].width=170 menu.level[1].height=19 menu.level[1].borderY=1 menu.level[1].offsetX=0 menu.level[1].offsetY=-1 menu.level[1].rows=0 menu.level[1].align="right" menu.level[1].arrow="../images/nav_arrow.gif" menu.level[1].arrowWidth=4 menu.level[1].arrowHeight=6 menu.level[1].regClass="L1" menu.level[1].overClass="L1o" menu.level[1].borderClass="L1bdr" menu.level[2]=new cm_makeLevel() menu.level[2].width=230 menu.level[2].regClass="L2" menu.level[2].overClass="L2o" menu.level[2].borderClass="L2bdr" //Menu item Properties //myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) menu.makeMenu('home','','','default.asp', '', '54','','../images/nav_home.gif','../images/nav_home-o.gif') menu.makeMenu('theClub','','','http://www.richmondClub.com.au/club_aboutUs.asp', '', '76','','../images/nav_theClub.gif','../images/nav_theClub-o.gif') menu.makeMenu('theClubMargin','theClub','','', '', '','25','../images/nav_subMargin.gif') menu.makeMenu('latestNews','theClub','Latest News','http://www.richmondClub.com.au/club_News.asp') menu.makeMenu('inTheNews','theClub','Richmond Club in the News','http://www.richmondClub.com.au/club_inTheNews.asp') menu.makeMenu('aboutUs','theClub','About Us','http://www.richmondClub.com.au/club_aboutUs.asp') menu.makeMenu('location','theClub','Location & Map','http://www.richmondClub.com.au/club_location.asp') menu.makeMenu('contact','theClub','Contact Details','http://www.richmondClub.com.au/club_contact.asp') menu.makeMenu('community','theClub','Community Development','http://www.richmondClub.com.au/club_community.asp') menu.makeMenu('innerCLubs','theClub','Inner Clubs','http://www.richmondClub.com.au/club_innerClubs.asp') menu.makeMenu('directors','theClub','Directors','http://www.richmondClub.com.au/club_directors.asp') menu.makeMenu('management','theClub','Management','http://www.richmondClub.com.au/club_management.asp') menu.makeMenu('employment','theClub','Employment                    >','http://www.richmondClub.com.au/employ_working.asp') menu.makeMenu('working','employment','Working at The Club','http://www.richmondClub.com.au/employ_working.asp') menu.makeMenu('positions','employment','Available Positions','http://www.richmondClub.com.au/employ_positions.asp') menu.makeMenu('application','employment','Application Form','http://www.richmondClub.com.au/employ_application.asp') menu.makeMenu('staffAwards','employment','Staff Awards','http://www.richmondClub.com.au/employ_awards.asp') menu.makeMenu('social','employment','Staff Social Activities','http://www.richmondClub.com.au/employ_social.asp') menu.makeMenu('dressCode','theClub','Dress Code','http://www.richmondClub.com.au/club_dressCode.asp') menu.makeMenu('history','theClub','History','http://www.richmondClub.com.au/club_history.asp') menu.makeMenu('policies','theClub','Policies                           >','http://www.richmondClub.com.au/policy_privacy.asp') menu.makeMenu('privacy','policies','Privacy Policy','http://www.richmondClub.com.au/policy_privacy.asp') menu.makeMenu('conditions','policies','Membership Conditions','http://www.richmondClub.com.au/policy_membership.asp') menu.makeMenu('rsoa','policies','Responsible Service of Alcohol Policy','http://www.richmondClub.com.au/policy_rsa.asp') menu.makeMenu('rcog','policies','Responsible Conduct of Gaming Policy','http://www.richmondClub.com.au/policy.rcog.asp') menu.makeMenu('disclaimer','policies','Website Disclaimer','http://www.richmondClub.com.au/policy_disclaimer.asp') menu.makeMenu('entertainment','','','http://www.richmondClub.com.au/ent_events.asp', '', '117','','../images/nav_entertainment.gif','../images/nav_entertainment-o.gif') menu.makeMenu('entMargin','entertainment','','', '', '','25','../images/nav_subMargin.gif') menu.makeMenu('comingShows','entertainment','Coming Shows & Events','http://www.richmondClub.com.au/ent_events.asp') menu.makeMenu('lounge','entertainment','Free In The Lounge','http://www.richmondClub.com.au/ent_lounge.asp') menu.makeMenu('crush','entertainment','Crush Under 18 Disco','http://www.richmondClub.com.au/ent_crush.asp') menu.makeMenu('promotions','','','http://www.richmondClub.com.au/promotions.asp', '', '99','','../images/nav_promotions.gif','../images/nav_promotions-o.gif') menu.makeMenu('dining','','','http://www.richmondClub.com.au/dine_brasserie.asp', '', '58','','../images/nav_dining.gif','../images/nav_dining-o.gif') menu.makeMenu('diningMargin','dining','','', '', '','25','../images/nav_subMargin.gif') menu.makeMenu('brasserie','dining','The Brasserie','http://www.richmondClub.com.au/dine_brasserie.asp') menu.makeMenu('coffeeShop','dining','Coffee Shop','http://www.richmondClub.com.au/dine_coffeeShop.asp') menu.makeMenu('functions','','','http://www.richmondClub.com.au/funct_weddings.asp', '', '86','','../images/nav_functions.gif','../images/nav_functions-o.gif') menu.makeMenu('functMargin','functions','','', '', '','25','../images/nav_subMargin.gif') menu.makeMenu('weddings','functions','Weddings','http://www.richmondClub.com.au/funct_weddings.asp') menu.makeMenu('corporate','functions','Corporate','http://www.richmondClub.com.au/funct_corporate.asp') menu.makeMenu('parties','functions','Parties','http://www.richmondClub.com.au/funct_parties.asp') menu.makeMenu('facilities','','','http://www.richmondClub.com.au/facil_bars.asp', '', '79','','../images/nav_facilities.gif','../images/nav_facilities-o.gif') menu.makeMenu('facilMargin','facilities','','', '', '','25','../images/nav_subMargin.gif') menu.makeMenu('fitness','facilities','Active8 Fitness Centre','http://www.richmondClub.com.au/facil_fitness.asp') menu.makeMenu('bars','facilities','Bars','http://www.richmondClub.com.au/facil_bars.asp') menu.makeMenu('games','facilities','Games Room','http://www.richmondClub.com.au/facil_games.asp') menu.makeMenu('kids','facilities','Kids Room','http://www.richmondClub.com.au/facil_kids.asp') menu.makeMenu('tab','facilities','TAB / Keno','http://www.richmondClub.com.au/facil_tab.asp') menu.makeMenu('clubShop','facilities','Club Shop','http://www.richmondClub.com.au/facil_clubShop.asp') menu.makeMenu('salon','facilities','Hairdressing Salon','http://www.richmondClub.com.au/facil_salon.asp') menu.makeMenu('massage','facilities','Massage Therapy','http://www.richmondClub.com.au/facil_massage.asp') menu.makeMenu('bus','facilities','Courtesy Bus','http://www.richmondClub.com.au/facil_bus.asp') menu.makeMenu('attractions','facilities','Local Attractions','http://www.richmondClub.com.au/facil_attractions.asp') menu.makeMenu('resorts','facilities','Holiday Resort units','http://www.richmondClub.com.au/facil_resorts.asp') menu.makeMenu('aged','facilities','Aged Care','http://www.richmondClub.com.au/facil_agedCare.asp') menu.makeMenu('sports','','','http://www.richmondClub.com.au/sports.asp', '', '63','','../images/nav_sports.gif','../images/nav_sports-o.gif') menu.makeMenu('membership','','','http://www.richmondClub.com.au/members_benefits.asp', '', '108','','../images/nav_membership.gif','../images/nav_membership-o.gif','','','bottomleft') menu.makeMenu('memMargin','membership','','', '', '','25','../images/nav_subMargin.gif') menu.makeMenu('annualreport','membership','Annual Report','http://www.richmondClub.com.au/members_annualreport.asp') menu.makeMenu('benefits','membership','Benefits','http://www.richmondClub.com.au/members_benefits.asp') menu.makeMenu('applications','membership','Application','http://www.richmondClub.com.au/members_application.asp') menu.makeMenu('renewals','membership','Renewals','https://www.bluemts.com.au/richmondclub/secure/members_renewals.asp') menu.makeMenu('membersLogin','membership','Members Login','http://www.richmondClub.com.au/members_login.asp') menu.construct()