//Menu object creation oM=new makeCM("oM") //Making the menu object. Argument: menuname var strDevServer = false; var strOtherServer = false; var strDevServerURL = "http://www2.ewrinstitute.org"; var strDevServerSSL = "http://www2.ewrinstitute.org"; var strPrdServerURL = "http://content.ewrinstitute.org"; var strPrdServerSSL = "https://content.ewrinstitute.org"; if(document.URL.toLowerCase().indexOf("www3.ewrinstitute.org") >= 0 || document.URL.toLowerCase().indexOf("www2.ewrinstitute.org") >= 0){ strDevServer = true; } if(document.URL.toLowerCase().indexOf("https") == 0){ if(strDevServer == true){ oM.onlineRoot=strDevServerSSL; oM.offlineRoot=strDevServerSSL; } else if(strOtherServer == true){ if(strDevServer == true){ oM.onlineRoot=strDevServerSSL; oM.offlineRoot=strDevServerSSL; } else{ oM.onlineRoot=strPrdServerSSL; oM.offlineRoot=strPrdServerSSL; } } else{ oM.onlineRoot=strPrdServerSSL; oM.offlineRoot=strPrdServerSSL; } } else{ if(strDevServer == true){ oM.onlineRoot=strDevServerURL; oM.offlineRoot=strDevServerURL; } else if(strOtherServer == true){ if(strDevServer == true){ oM.onlineRoot=strDevServerURL; oM.offlineRoot=strDevServerURL; } else{ oM.onlineRoot=strPrdServerURL; oM.offlineRoot=strPrdServerURL; } } else{ oM.onlineRoot=strPrdServerURL; oM.offlineRoot=strPrdServerURL; } } oM.frames = 0 //Menu properties oM.pxBetween=0 oM.fromLeft=0 oM.fromTop=75 oM.rows=1 oM.menuPlacement="left" oM.resizeCheck=1 oM.wait=1000 oM.fillImg="" oM.zIndex=300 //Background bar properties oM.useBar=0 oM.barWidth="menu" oM.barHeight="menu" oM.barClass="clBar" oM.barX=0 oM.barY=0 oM.barBorderX=0 oM.barBorderY=0 oM.barBorderClass="" //create menu properties (width, height, regClass, overClass, borderX, borderY, borderClass, rows, align, offsetX, offsetY, arrow, arrowWidth, arrowHeight) oM.level[0]=new cm_makeLevel(177,32,"clT","clTover",0,0,"clBar",0,"bottom",8,-5); oM.level[1]=new cm_makeLevel(220,20,"clS","clSover",0,1,"clBorder",0,"right",20,0); //menu properties ('menu number','parent number','text','link','target','image width','image height','image path') oM.makeMenu('ma1','','Inside Ewri','/inside/','','89','20',"/images/ewri_inside.gif"); oM.makeMenu('mb1','ma1','Profile','/inside/profile.html'); oM.makeMenu('mb2','ma1','EWRI Organizational Structure','/inside/ewri_org.html'); oM.makeMenu('mb3','ma1','By-Laws','/inside/bylaws.html'); oM.makeMenu('mb4','ma1','Operations Handbook','/inside/operations.html'); oM.makeMenu('mb5','ma1','EWRI Annual Report','http://content.ewrinstitute.org/inside/AnnualReports.html'); oM.makeMenu('mb6','ma1','Honors & Awards','/inside/honorawards.html'); oM.makeMenu('mb7','ma1','Staff','/inside/staff.html'); oM.makeMenu('ma2','','Membership','/membership/','','103','20',"/images/ewri_membership.gif"); oM.makeMenu('mb8','ma2','Individual Membership','/member/'); oM.makeMenu('mb9','ma2','Organizational Membership','/member/ewri_orgmember.html'); oM.makeMenu('mb10','ma2','Benefits & Services','/member/ewri_benserv.html'); oM.makeMenu('mb11','ma2','Join Today!','/member/memapp.html'); oM.makeMenu('ma3','','Committees','/committees/','','95','20',"/images/ewri_comm.gif"); oM.makeMenu('mb12','ma3','Technical Activities','/committees/ewritechcounc.html'); oM.makeMenu('mb13','ma3','Institute Operations','/committees/instoperations.html'); oM.makeMenu('mb131','ma3','Governing Board','/committees/governingboard.html'); oM.makeMenu('mb14','ma3','Committee Contacts','/committees/committeecontact.html'); oM.makeMenu('mb15','ma3','Committee Information','/committees/comminfo.html'); oM.makeMenu('ma4','','Calendar/Events','/events/','','129','20',"/images/ewri_events.gif"); oM.makeMenu('mb16','ma4','Conferences/Co-Sponsored Events','/events/conferences.html'); oM.makeMenu('mb17','ma4','Workshops','/events/workshops.html'); oM.makeMenu('mb20','ma4','Meeting Calendar','/products/meetcal.html'); oM.makeMenu('ma5','','Publications','/publications/','','98','20',"/images/ewri_pubs.gif"); oM.makeMenu('mb22','ma5','EWRI of ASCE Publications','/publications/ewri_asce.html'); oM.makeMenu('mb23','ma5','EWRI Standards','/publications/pubs.html'); oM.makeMenu('mb24','ma5','Other ASCE Publications','http://www.pubs.asce.org/'); oM.makeMenu('mb25','ma5','EWRI Currents','/currents/archive.html'); oM.makeMenu('mb26','ma5','EWRI E-update','/currents/e_update_archive.html'); oM.makeMenu('mb35','ma5','Editor Instructions','/publications/edinstructions.html'); oM.makeMenu('mb36','ma5',' Subscribe to Water Resources Update','/member/wrupdate.html'); oM.makeMenu('ma6','',"Products",'/products/','','81','20',"/images/ewri_products.gif"); oM.makeMenu('mb27','ma6','Merchandise','/products/merchandise.html'); oM.makeMenu('mb28','ma6','Advertising','/products/comingsoon.html'); oM.makeMenu('ma7','','Members Only','/committees/MembersOnly.cfm','','114','20',"/images/ewri_membersonly.gif"); oM.makeMenu('mb29','ma7','Member Search','/member/comingsoon.html'); oM.makeMenu('mb30','ma7','E-Rooms','https://eroom.asce.org/eRoom/NCS/cil'); oM.makeMenu('mb31','ma7','PAES','/member/comingsoon.html'); oM.makeMenu('ma8','','Resources','/resources/','','81','20',"/images/ewri_resources.gif"); oM.makeMenu('mb32','ma8','Careers','http://careers.asce.org/search/results/?sn=25&job_category=3848%2c3855'); oM.makeMenu('mb33','ma8','Related Links','/resources/relatedlink.html'); oM.makeMenu('mb34','ma8','Consultants','/products/comingsoon.html'); oM.construct()