/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/
function findPos(){
if(bw.ns4){   //Netscape 4
x = document.layers.layerMenu.pageX
y = document.layers.layerMenu.pageY
}else{ //other browsers
x=0; y=0; var el,temp
el = bw.ie4?document.all["divMenu"]: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()
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
oCMenu.pxBetween=0
oCMenu.fromLeft=pos[0]
oCMenu.fromTop=pos[1]
oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"
oCMenu.rows=0
oCMenu.menuPlacement=0
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=300 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=30000
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=170
oCMenu.level[0].height=22
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1 // original value = 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="right"
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=200
oCMenu.level[1].height=20
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"
oCMenu.level[1].arrow="OsaHomepage/ImageSlides/triangle_red.gif"
oCMenu.level[1].arrowWidth=10
oCMenu.level[1].arrowHeight=8
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=240
oCMenu.level[2].height=18
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"
/******************************************
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('top1','','&nbsp;News&nbsp;&amp;&nbsp;Publications','OsaHomepage/NewsPublication/news.html')
oCMenu.makeMenu('sub10','top1','&nbsp;News','OsaHomepage/NewsPublication/news.html')
oCMenu.makeMenu('sub11','top1','&nbsp;Events','OsaHomepage/NewsPublication/events.html')
oCMenu.makeMenu('sub12','top1','&nbsp;Research Notes','OsaHomepage/NewsPublication/researchNotes.html')
oCMenu.makeMenu('sub13','top1','&nbsp;Faculty Survey Data','OsaHomepage/NewsPublication/facultySurvey.html')
oCMenu.makeMenu('top2','','&nbsp;Seminars&nbsp;&amp;&nbsp;Symposia','OsaHomepage/SeminarSymposium/seminarSymposium.html')
//oCMenu.makeMenu('sub20','top2','&nbsp;Seminars','OsaHomepage/SeminarSymposium/seminarThisweek.html')
oCMenu.makeMenu('sub20','top2','&nbsp;Seminars','OsaHomepage/SeminarSymposium/seminarUpcoming.html')
//oCMenu.makeMenu('sub200','sub20','&nbsp;This Week','OsaHomepage/SeminarSymposium/seminarThisweek.html')
oCMenu.makeMenu('sub201','sub20','&nbsp;Upcoming','OsaHomepage/SeminarSymposium/seminarUpcoming.html')
oCMenu.makeMenu('sub202','sub20','&nbsp;Past','OsaHomepage/SeminarSymposium/seminar2009.html')
oCMenu.makeMenu('sub203','sub20','&nbsp;Submit','OsaHomepage/SeminarSymposium/seminarSubmit.html')
oCMenu.makeMenu('sub21','top2','&nbsp;Seminar Series','OsaHomepage/SeminarSymposium/seminarSymposium.html')
oCMenu.makeMenu('sub210','sub21','&nbsp;Biomedical Engineering Seminar Series','OsaHomepage/SeminarSymposium/BiomedicalEngineeringSeminarSeries2008-2009.pdf')
oCMenu.makeMenu('sub211','sub21','&nbsp;Cancer Center Lecture Series','OsaHomepage/SeminarSymposium/CancerCenterLectureSeries2008.doc')
oCMenu.makeMenu('sub212','sub21','&nbsp;GCRC Seminars','http://indigo.gcrc.sunysb.edu/seminar.aspx')
//oCMenu.makeMenu('sub210','sub21','&nbsp;Scholars in Cancer Research','OsaHomepage/SeminarSymposium/scholarCancerRes.html')
//oCMenu.makeMenu('sub211','sub21','&nbsp;Scholars in Reproductive Biology','OsaHomepage/SeminarSymposium/scholarReproductiveBiol.html')
//oCMenu.makeMenu('sub212','sub21','&nbsp;Scholars in Signal transduction','OsaHomepage/SeminarSymposium/scholarSignalTransduction.html')
//oCMenu.makeMenu('sub213','sub21','&nbsp;Scholars in Vascular Biology','OsaHomepage/SeminarSymposium/scholarVascularBiol.html')
//oCMenu.makeMenu('sub22','top2','&nbsp;Symposium Series','OsaHomepage/SeminarSymposium/seminarSymposium.html')
//oCMenu.makeMenu('sub220','sub22','&nbsp;Biochemistry &amp; Cell Biology','OsaHomepage/SeminarSymposium/symposiumBiochem2003.html')
//oCMenu.makeMenu('sub221','sub22','&nbsp;Genaral Clinical Research Center','OsaHomepage/SeminarSymposium/symposiumGCRC.html')
oCMenu.makeMenu('topA','','&nbsp;Research Informatics','https://bioinfo.osa.sunysb.edu/fdp/public/researchSearchIni.jsp')
oCMenu.makeMenu('subA0','topA','&nbsp;Current Awards','https://bioinfo.osa.sunysb.edu/fdp/public/awardCurrent.jsp')
oCMenu.makeMenu('subA1','topA','&nbsp;Search Awards','https://bioinfo.osa.sunysb.edu/fdp/public/researchSearchIni.jsp')
oCMenu.makeMenu('subA2','topA','&nbsp;Expenditures','https://bioinfo.osa.sunysb.edu/fdp/public/expenditure.jsp')
oCMenu.makeMenu('subA3','topA','&nbsp;Links','https://bioinfo.osa.sunysb.edu/fdp/public/links.jsp')
oCMenu.makeMenu('top3','','&nbsp;Programs','OsaHomepage/Programs/programs.html')
oCMenu.makeMenu('sub30','top3','&nbsp;Targeted Research Opportunities','OsaHomepage/Programs/tro.html')
oCMenu.makeMenu('sub300','sub30','&nbsp;Announcement &amp; Application','OsaHomepage/Programs/tro.html')
oCMenu.makeMenu('sub301','sub30','&nbsp;Awards','OsaHomepage/Programs/troAwards2008.html')
oCMenu.makeMenu('sub302','sub30','&nbsp;TRO-PSTP Awards Central','https://bioinfo.osa.sunysb.edu/tro/')
oCMenu.makeMenu('sub31','top3','&nbsp;Medical Scientist Training <br>&nbsp;Program','http://www.pharm.sunysb.edu/mstp/','','','34')
oCMenu.makeMenu('sub32','top3','&nbsp;Physician Scientist Training <br>&nbsp;Program','OsaHomepage/Programs/pstp.html','','','34')
oCMenu.makeMenu('sub320','sub32','&nbsp;Application','OsaHomepage/Programs/pstp.html')
oCMenu.makeMenu('sub321','sub32','&nbsp;Awards','OsaHomepage/Programs/pstpAwards2003.html')
oCMenu.makeMenu('sub322','sub32','&nbsp;TRO-PSTP Awards Central','https://bioinfo.osa.sunysb.edu/tro/')
//oCMenu.makeMenu('sub33','top3','&nbsp;Howard Hughs Medical Institute','http://www.hhmi.org/grants/')
//oCMenu.makeMenu('sub330','sub33','&nbsp;Institutional Awards','http://www.hhmi.org/grants/funding/inst/index.html')
//oCMenu.makeMenu('sub331','sub33','&nbsp;Undergraduate Program','http://www.hhmi.org/grants/office/ugradprog/index.html')
//oCMenu.makeMenu('sub332','sub33','&nbsp;HHMI Investigators','http://www.hhmi.org/research/investigators/mandel.html')
oCMenu.makeMenu('sub33','top3','&nbsp;Clinical Research Training Program<br>&nbsp;(K30)','http://www.osa.sunysb.edu/k30/','','','34')
oCMenu.makeMenu('sub34','top3','&nbsp;Clinical Trials','https://bioinfo.osa.sunysb.edu/octs/')
//oCMenu.makeMenu('sub340','sub34','&nbsp;Public Site','https://bioinfo.osa.sunysb.edu/octs/')
//oCMenu.makeMenu('sub341','sub34','&nbsp;Investigator\'s Network','https://bioinfo.osa.sunysb.edu/octs/internal/')
oCMenu.makeMenu('top4','','&nbsp;Projects','OsaHomepage/Projects/projects.html')
oCMenu.makeMenu('sub40','top4','&nbsp;HSC Environmental Chambers','OsaHomepage/Projects/envChambers.html')
oCMenu.makeMenu('sub41','top4','&nbsp;Laboratory Renovations','OsaHomepage/Projects/labRenovation.html')
oCMenu.makeMenu('sub44','top4','&nbsp;General Renovations','OsaHomepage/Projects/generalRenovation.html')
oCMenu.makeMenu('sub42','top4','&nbsp;Division of Laboratory Animal <br>&nbsp;Resources','http://www.osa.sunysb.edu/dlar/index.htm','','','34')
oCMenu.makeMenu('sub43','top4','&nbsp;Shared Instrumentation Program','http://www.ncrr.nih.gov/biotech/btshrinstr.asp')
oCMenu.makeMenu('sub430','sub43','&nbsp;Application Process','OsaHomepage/Projects/sipApplication.html')
oCMenu.makeMenu('sub431','sub43','&nbsp;Current Applications','OsaHomepage/Projects/sipCurrentApplication.html')
oCMenu.makeMenu('sub432','sub43','&nbsp;Awards','OsaHomepage/Projects/sipAwards.html')
oCMenu.makeMenu('top5','','&nbsp;Proposal Processing','OsaHomepage/Proposal/announcements.html')
oCMenu.makeMenu('top6','','&nbsp;School of Medicine <br>&nbsp;Research Cores','OsaHomepage/Facility/facility.html','','','36')
oCMenu.makeMenu('sub60','top6','&nbsp;Guide to Facilities','http://www.osa.sunysb.edu/cores/')
oCMenu.makeMenu('sub61','top6','&nbsp;Bioinformatics Facility','http://www.osa.sunysb.edu/bioinformatics/index.html')
oCMenu.makeMenu('sub62','top6','&nbsp;Biostatistical Consulting Core','http://www.uhmc.sunysb.edu/prevmed/biostat.htm')
oCMenu.makeMenu('sub63','top6','&nbsp;Cell Culture/Hybridoma Facility','http://www.stonybrook.edu/cchf')
oCMenu.makeMenu('sub64','top6','&nbsp;Clinical Trials Services','https://bioinfo.osa.sunysb.edu/octs/')
oCMenu.makeMenu('sub6E','top6','&nbsp;Division of Laboratory Animal <br>&nbsp;Resources (DLAR)','http://www.osa.sunysb.edu/dlar/index.htm','','','34')
oCMenu.makeMenu('sub65','top6','&nbsp;DNA Microarray Facility','http://www.osa.sunysb.edu/udmf/')
oCMenu.makeMenu('sub66','top6','&nbsp;DNA Sequencing Facility','http://www.osa.sunysb.edu/dna/')
oCMenu.makeMenu('sub67','top6','&nbsp;Flow Cytometry Facility','http://pathology.path.sunysb.edu/labs/corelab/corelab.html')
oCMenu.makeMenu('sub6D','top6','&nbsp;Genomics Core Facility','http://www.osa.sunysb.edu/genomics/')
oCMenu.makeMenu('sub6B','top6','&nbsp;Micro CT Facility','http://www.osa.sunysb.edu/microCT/')
oCMenu.makeMenu('sub68','top6','&nbsp;Microscopy Imaging Center','http://multiphoton.bio.sunysb.edu/')
oCMenu.makeMenu('sub69','top6','&nbsp;Molecular Cloning Service','http://www.pharm.stonybrook.edu/mcf')
oCMenu.makeMenu('sub6A','top6','&nbsp;Proteomics Center','http://www.osa.sunysb.edu/Proteomics/')
//oCMenu.makeMenu('sub6B','top6','&nbsp;Transgenic Mouse Facility','http://www.osa.sunysb.edu/transgenic/')
//oCMenu.makeMenu('sub6C','top6','&nbsp;Fabrication Services','http://www.osa.sunysb.edu/OsaHomepage/Facility/machineShop.pdf')
oCMenu.makeMenu('topB','','&nbsp;Strategic Plan:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i>Catalyzing Change</i>','OsaHomepage/StrategicPlan/StrategicPlan.html','','','34')
oCMenu.makeMenu('top7','','&nbsp;Other Sites of Interest','OsaHomepage/OtherSites/otherSites.html')
oCMenu.makeMenu('sub70','top7','&nbsp;Campus Sites','OsaHomepage/OtherSites/otherSites.html')	
oCMenu.makeMenu('sub700','sub70','&nbsp;Center for Biotechnology','http://www.biotech.sunysb.edu/index.html')	
oCMenu.makeMenu('sub701','sub70','&nbsp;Centers for Molecular Medicine','http://www.sunysb.edu/ovprpub/cmm/cmmhome.html')	
oCMenu.makeMenu('sub702','sub70','&nbsp;Environmental Health &amp; Safety','http://www.ehs.sunysb.edu/')	
oCMenu.makeMenu('sub703','sub70','&nbsp;General Clinical Research Center','http://www.sunysb.edu/gcrc')	
oCMenu.makeMenu('sub704','sub70','&nbsp;Institute of Chemical &amp; Drug Discovery','http://www.sunysb.edu/icbdd/index.shtml')
oCMenu.makeMenu('sub705','sub70','&nbsp;Office of the Vice President for Research','http://www.research.sunysb.edu/research/index.html')
oCMenu.makeMenu('sub71','top7','&nbsp;State &amp; Regional','OsaHomepage/OtherSites/otherSites.html')	
oCMenu.makeMenu('sub710','sub71','&nbsp;AMDeC','http://www.amdec.org/')
oCMenu.makeMenu('sub711','sub71','&nbsp;Brookhaven National Laboratory','http://www.bnl.gov/world/')
oCMenu.makeMenu('sub712','sub71','&nbsp;Cold Spring Harbor Laboratory','http://www.cshl.org/')
oCMenu.makeMenu('sub713','sub71','&nbsp;Long Island High Tech Incubator','http://www.lihti.org/')
oCMenu.makeMenu('sub72','top7','&nbsp;Federal Agencies','OsaHomepage/OtherSites/otherSites.html')	
oCMenu.makeMenu('sub720','sub72','&nbsp;Centers for Disease Control','http://www.cdc.gov/')
oCMenu.makeMenu('sub721','sub72','&nbsp;Defense Advanced Research Program Agency','http://www.darpa.mil')
oCMenu.makeMenu('sub722','sub72','&nbsp;Department of Energy','http://www.energy.gov/')
oCMenu.makeMenu('sub723','sub72','&nbsp;Health Resources and Services Administration','http://www.hrsa.gov/')
oCMenu.makeMenu('sub724','sub72','&nbsp;Office of Naval Research','http://www.onr.navy.mil/')
oCMenu.makeMenu('sub725','sub72','&nbsp;National Institutes of Health','http://www.nih.gov/')
oCMenu.makeMenu('sub726','sub72','&nbsp;National Science Foundation','http://www.nsf.gov/')
oCMenu.makeMenu('sub73','top7','&nbsp;Voluntary Health Agencies','OsaHomepage/OtherSites/otherSites.html')	
oCMenu.makeMenu('sub730','sub73','&nbsp;American Cancer Society','http://www.cancer.org/')
oCMenu.makeMenu('sub731','sub73','&nbsp;American Heart Association','http://www.americanheart.org/')
oCMenu.makeMenu('sub732','sub73','&nbsp;Association of American Medical Colleges','http://www.aamc.org/')
oCMenu.makeMenu('sub733','sub73','&nbsp;Howard Hughes Medical Institute','http://www.hhmi.org/')
oCMenu.makeMenu('sub734','sub73','&nbsp;Juvenile Diabetes Foundation','http://www.jdrf.org/index.php')
oCMenu.makeMenu('sub735','sub73','&nbsp;The Whitaker Foundation','http://www.whitaker.org/')
oCMenu.m//akeMenu('top8','','&nbsp;Search','OsaHomepage/Search/search.html')
oCMenu.makeMenu('top9','','&nbsp;Contact','OsaHomepage/Contact/contact.html')
oCMenu.construct()		
