
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents In our Community
var menu10=new Array()
menu10[0]='<a href="/localtoglobal/local/baltimorenurse.aspx">The Baltimore Nurse</a>'
menu10[1]='<a href="/localtoglobal/local/communityhealth.aspx">Good Neighbouring, Good Nursing</a>'
menu10[2]='<a href="/localtoglobal/local/collaborations.aspx">Community Collaborations</a>'

//Contents for Around the Globe
var menu11=new Array()
menu11[0]='<a href="/localtoglobal/global/goglobal.aspx">Hopkins Nurses Go Global</a>'
menu11[1]='<a href="/localtoglobal/global/globalhealth.aspx">Global Health at Hopkins</a>'
menu11[2]='<a href="/localtoglobal/global/partners.aspx">Partnering for Global</a>'

//Menu for Local to Global Nursing
var menu11a=new Array()
menu11a[0]='<a href="/localtoglobal/local/">In Our Community</a>'
menu11a[1]='<a href="/localtoglobal/global/">Around the Globe</a>'
//menu11a[2]='<a href="/practice/bc">Birth Companions</a>'

//Menu for News and Publications
var menu12=new Array()
menu12[0]='<a href="/newsevents/news/">News Releases</a>'
menu12[1]='<a href="/newsevents/pubs/">Publications</a>'
menu12[2]='<a href="/sonpoll/">Poll</a>'
menu12[3]='<a href="/newsevents/pressclips/">SON in the News</a>'
menu12[4]='<a href="/resources/communications/">Resources for Media</a>'
menu12[5]='<a href="/aboutus/gallery/">Photos, Podcasts, Videos</a>'
menu12[6]='<a href="/aboutus/directory/administration/">Contact Us</a>'

//Contents for Resources
var menu13=new Array()
menu13[0]='<a href="http://esgwebproxy.johnshopkins.edu/notice">Alerts</a>'
menu13[1]='<a href="https://mail.son.jhmi.edu/">E-mail</a>'
menu13[2]='<a href="http://portal.son.jhmi.edu">Intranet</a>'
menu13[3]='<a href="/academics/apply/disability/">Disability Services</a>'
menu13[4]='<a href="/resources/career/employment/empservices.aspx">Employment Services</a>'
menu13[5]='<a href="/resources/academic/library/">Library</a>'
menu13[6]='<a href="/aboutus/directions/">Maps and Directions</a>'
menu13[7]='<a href="/resources/general/">Miscellaneous</a>'

//Contents for Giving
var menu14=new Array()
menu14[0]='<a href="https://jhweb.dev.jhu.edu/eforms/form/nursing" target="_blank">Give Now</a>'
menu14[1]='<a href="/giving/ways.aspx">Ways to Give</a>'
menu14[2]='<a href="/alumni/development/">Help Secure the Future</a>'
menu14[3]='<a href="/alumni/legacy/">Legacy Circle</a>'
menu14[4]='<a href="/aboutus/directory/administration/development.aspx">Contact Us</a>'

//Contents for Faculty
var menu15=new Array()
menu15[0]='<a href="/academics/faculty/news/">Faculty News</a>'
menu15[1]='<a href="/academics/departments/">Departments</a>'
menu15[2]='<a href="/academics/faculty/join/">Join the Faculty</a>'
menu15[3]='<a href="/aboutus/directory/faculty/">Faculty Directory</a>'
menu15[4]='<a href="/faculty/info/">Faculty Information</a>'
menu15[5]='<a href="/academics/faculty/pubs/">Publications</a>'

//Contents for IJHN
var menu16=new Array()
menu16[0]='<a href="/continue">Continuing Education</a>'

//Contents for Blogs
var menu17=new Array()
menu17[0]='<a href="http://www.son.jhmi.edu/blogs">Student Blogs</a>'
menu17[1]='<a href="http://www.son.jhmi.edu/blogs/blogs/studentgroups">Student Group Blogs</a>'
menu17[2]='<a href="http://www.son.jhmi.edu/blogs/blogs/staff">SON Staff Blog</a>'

//Contents for RWJF
var menu18=new Array()
menu18[0]='<a href="http://rwjfnursefacultyscholars.son.jhmi.edu/about/default.aspx">About the program</a>'
menu18[1]='<a href="http://rwjfnursefacultyscholars.son.jhmi.edu/apply/default.aspx">Become a Scholar</a>'
menu18[2]='<a href="http://rwjfnursefacultyscholars.son.jhmi.edu/about/dates.aspx">Key Dates</a>'

var menuwidth='175px' //default menu width
var menubgcolor='#334336'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudivgreen" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenugreen(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudivgreen") : dropmenudivgreen
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

