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="" menu.zIndex=1 //Background bar properties menu.useBar=0 menu.barWidth="925" menu.barHeight="28" 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=126 menu.level[0].height=23 menu.level[0].borderX=0 menu.level[0].borderY=0 menu.level[0].offsetX=0 menu.level[0].offsetY=4 menu.level[0].rows=0 menu.level[0].align="bottom" menu.level[0].regClass="" menu.level[0].overClass="" menu.level[0].borderClass="L0bdr" menu.level[1]=new cm_makeLevel() menu.level[1].width=190 menu.level[1].height=23 menu.level[1].borderY=1 menu.level[1].borderX=1 menu.level[1].offsetX=-6 menu.level[1].offsetY=4 menu.level[1].rows=0 menu.level[1].align="right" menu.level[1].regClass="L1" menu.level[1].overClass="L1o" menu.level[1].borderClass="L1bdr" //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','','HOME','default.asp', '', '45','','','','menu','menuOver') menu.makeMenu('ourPeople','','OUR PEOPLE','contacts.asp', '', '85','','','','menu','menuOver') menu.makeMenu('products','','PRODUCTS','products.asp', '', '75','','','','menu','menuOver') //menu.makeMenu('prodproducts1','products','Products','products.asp') //menu.makeMenu('tools','products','Irrigation Toolkits','IrrigationToolKits.asp') menu.makeMenu('tools','products','Irrigation Toolkits','news.asp?catID=14') //menu.makeMenu('tools1','tools','CP & LM Visualisation Tool','Tools_CPLMVisualisationTool.asp') //menu.makeMenu('siloet','tools','SILO ET','Tools_SILOEt.asp') //menu.makeMenu('economic','tools','Dam Evaporation Calculator','Tools_DamEvaporationCalculator.asp') menu.makeMenu('prodpublications1','products','Publications','publications.asp') menu.makeMenu('publicationsearch','prodpublications1','Search For Publications','publications.asp') menu.makeMenu('technicalReports','prodpublications1','Technical Reports','news.asp?catID=9') menu.makeMenu('irrigationMatters','prodpublications1','Irrigation Matters','news.asp?catID=12') menu.makeMenu('articles','prodpublications1','Articles','news.asp?catID=17') menu.makeMenu('annualReports','prodpublications1','Annual Reports','news.asp?catID=5') menu.makeMenu('brochures','prodpublications1','Brochures','news.asp?catID=13') menu.makeMenu('prodWorkshops1','products','Workshops','news.asp?catID=11') menu.makeMenu('research','','RESEARCH','research.asp', '', '75','','','','menu','menuOver') menu.makeMenu('research2007','research','2006-2010','research.asp?y=2006','','180','20') menu.makeMenu('SystemHarm2007','research2007','System Harmonisation','programs.asp?ID=6','','220','38') menu.makeMenu('SystemHarm28','SystemHarm2007','Northern Australia Irrigation Futures','projects.asp?ID=28','','380','35') menu.makeMenu('SystemHarm33','SystemHarm2007','Water Cycle Management','projects.asp?ID=33','','380','35') menu.makeMenu('SystemHarm34','SystemHarm2007','Markets and Productivity','projects.asp?ID=34','','380','35') menu.makeMenu('SystemHarm35','SystemHarm2007','Social, Cultural, Institutional and Policy Frameworks','projects.asp?ID=35','','380','35') menu.makeMenu('SystemHarm36','SystemHarm2007','System Harmonisation Integration and RIBPs','projects.asp?ID=36','','380','35') menu.makeMenu('Irrigation2007','research2007','Irrigation Toolkits','programs.asp?ID=7','','220','38') menu.makeMenu('Irrigation37','Irrigation2007','Dam Evaporation Mitigation','projects.asp?ID=37','','380','35') menu.makeMenu('Irrigation38','Irrigation2007','Tools for Irrigation Profitability and Longevity','projects.asp?ID=38','','380','35') menu.makeMenu('Irrigation39','Irrigation2007','Solute Signatures','projects.asp?ID=39','','380','35') menu.makeMenu('Irrigation40','Irrigation2007','South East Queensland Irrigation Futures','projects.asp?ID=40','','380','35') menu.makeMenu('Educationa2007','research2007','Education and Training','programs.asp?ID=8','','220','38') menu.makeMenu('research2003','research','2003-2006','research.asp?y=2003','','180','20') menu.makeMenu('PolicyandP2003','research2003','Policy and Planning for Change','programs.asp?ID=2','','220','38') menu.makeMenu('PolicyandP17','PolicyandP2003','Irrigation Futures of the Goulburn Broken Catchment','projects.asp?ID=17','','380','35') menu.makeMenu('PolicyandP18','PolicyandP2003','Impacts of CoAG Water Reforms - Real and Perceived.','projects.asp?ID=18','','380','35') menu.makeMenu('PolicyandP19','PolicyandP2003','An evaluation of the Corporate Governance arrangements of Australian Irrigation Water Providers','projects.asp?ID=19','','380','35') menu.makeMenu('PolicyandP20','PolicyandP2003','Supporting irrigation community and industry responses to change at a range of scales.','projects.asp?ID=20','','380','35') menu.makeMenu('Sustainabi2003','research2003','Sustainability - Rural and Urban','programs.asp?ID=3','','220','38') menu.makeMenu('Sustainabi26','Sustainabi2003','Use of reclaimed effluent water in Australian Horticulture','projects.asp?ID=26','','380','35') menu.makeMenu('Sustainabi27','Sustainabi2003','Tri-State Project: Impact of Salinity on Lower Murray Horticulture','projects.asp?ID=27','','380','35') menu.makeMenu('Sustainabi28','Sustainabi2003','Northern Australia Irrigation Futures','projects.asp?ID=28','','380','35') menu.makeMenu('Sustainabi29','Sustainabi2003','The Sustainability Challenge','projects.asp?ID=29','','380','35') menu.makeMenu('Sustainabi30','Sustainabi2003','The Irrigation Industry and the Living Murray','projects.asp?ID=30','','380','35') menu.makeMenu('Sustainabi31','Sustainabi2003','Improved Seasonality of Flows through Irrigation Demand Management and System HarmonisationTM','projects.asp?ID=31','','380','35') menu.makeMenu('Educationa2003','research2003','Education and Training','programs.asp?ID=4','','220','38') menu.makeMenu('FutureIrri2003','research2003','Future Irrigation: Practice and Technology','programs.asp?ID=5','','220','38') menu.makeMenu('FutureIrri21','FutureIrri2003','Tools and techniques for improving the precision of irrigation','projects.asp?ID=21','','380','35') menu.makeMenu('FutureIrri22','FutureIrri2003','Software for Best Use of Water on Farm','projects.asp?ID=22','','380','35') menu.makeMenu('FutureIrri23','FutureIrri2003','Development of a nationally standardised Evapotranspiration reference and regional crop coefficients','projects.asp?ID=23','','380','35') menu.makeMenu('FutureIrri24','FutureIrri2003','Urban Irrigation in Sydney Metropolitan Area Developing Strategies for Efficient Irrigation','projects.asp?ID=24','','380','35') menu.makeMenu('FutureIrri25','FutureIrri2003','Open Hydroponics: Risks And Opportunities','projects.asp?ID=25','','380','35') menu.makeMenu('ourZones','','ZONES','zones.asp', '', '50','','','','menu','menuOver') menu.makeMenu('winter','ourZones','Southern','zones.asp?ID=4','','100') menu.makeMenu('summer','ourZones','Summer','zones.asp?ID=5','','100') menu.makeMenu('tropical','ourZones','Tropical','zones.asp?ID=6','','100') menu.makeMenu('urban','ourZones','Urban','zones.asp?ID=7','','100') menu.makeMenu('education','','EDUCATION','education.asp', '', '80','','','','menu','menuOver') //menu.makeMenu('education1','education','Education','education.asp') menu.makeMenu('ourStudents','education','Our Students','ourstudents.asp') menu.makeMenu('postGradDev','education','Post Graduate Development','postGradDev.asp') menu.makeMenu('scholarships','education','Scholarships','scholarship.asp') menu.makeMenu('training','','TRAINING','news.asp?catID=16', '', '65','','','','menu','menuOver') menu.makeMenu('newsAndEvents','','NEWS & EVENTS','newsevents.asp', '', '177','','','','menu','menuOver') //menu.makeMenu('newsAndEvents1','newsAndEvents','News & Events','newsevents.asp') menu.makeMenu('inflo','newsAndEvents','INFLO e-Newsletter','inflo.asp') menu.makeMenu('mailinglist','newsAndEvents','Join Mailing List','subscribe.asp') menu.makeMenu('events','newsAndEvents','Calendar of Events','events.asp') //menu.makeMenu('registration','newsAndEvents','Annual Research Forum','2007_registrationentry.asp') menu.makeMenu('registration','newsAndEvents','Annual Research Forum','2008_Registration/ARF_Program.asp', '_blank') menu.makeMenu('media','newsAndEvents','Media Releases','news.asp?catID=10') menu.makeMenu('topical','newsAndEvents','CROSSFLO','news.asp?catID=2') menu.makeMenu('aboutUs','','ABOUT US','aboutus.asp', '', '70','','','','menu','menuOver') //menu.makeMenu('aboutUs1','aboutUs','About Us','aboutUs.asp') menu.makeMenu('ourManagement','aboutUs','Our Management','ourmanagement.asp') menu.makeMenu('ourBoard','aboutUs','Our Board','contacts.asp?typeID=Board Member') menu.makeMenu('ourPartners','aboutUs','Our Partners','partners.asp') menu.makeMenu('ourSupporters','aboutUs','Our Supporters','supporters.asp') menu.makeMenu('whatisaCRC','aboutUs','What is a CRC?','whatisaCRC.asp') menu.makeMenu('admin','','ADMIN','admin.asp', '', '47','','','','menu','menuOver') menu.makeMenu('GeneralDocuments','admin','General Documents','news.asp?catID=3') menu.makeMenu('PublicationGuidelines','admin','Publication Guidelines','news.asp?catID=4') menu.makeMenu('AdminCalendar','admin','Administration calendar','events.asp?admin=1') menu.makeMenu('CRCLife','admin','CRC Life portal','https://irrigation2-0.crccentric.com.au/index.php', '_blank') menu.makeMenu('contcat','','CONTACT US','contacts.asp', '', '87','','','','menu','menuOver') menu.makeMenu('forums','','FORUMS','messageboard/default.asp', '', '85','','','','menu','menuOver') //menu.makeMenu('MessageBoard','forums','Message Board','messageboard/default.asp') menu.construct() pos = findPos(); menu.fromLeft = pos[0]; menu.fromTop = pos[1]