/***********************************************
* 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 for mnufaculty
var mnufaculty = new Array()

mnufaculty[0]='<div id="dropMenuItem"><a href="/btc/modules/facultystaff1/index.php?id=77" class="leftnavbutn0">Leadership</a></div>'
mnufaculty[1]='<div id="dropMenuItem"><a href="/btc/modules/facultystaff1/index.php?id=81" class="leftnavbutn0">Clinical Care</a></div>'
mnufaculty[2]='<div id="dropMenuItem"><a href="/btc/modules/facultystaff1/index.php?id=80" class="leftnavbutn0">Clinical Research Team</a></div>'
mnufaculty[3]='<div id="dropMenuItem"><a href="/btc/modules/facultystaff1/index.php?id=83" class="leftnavbutn0">Basic Research</a></div>'
mnufaculty[4]='<div id="dropMenuItem"><a href="/btc/modules/facultystaff1/index.php?id=49" class="leftnavbutn0">Quality of Life Research</a></div>'
mnufaculty[5]='<div id="dropMenuItem"><a href="/btc/modules/facultystaff1/index.php?id=82" class="leftnavbutn0">Administrative</a></div>'



var mnuresearch = new Array()

mnuresearch[0]='<div id="dropMenuItem"><a href="/btc/modules/Research3/index.php?id=3" class="leftnavbutn0">The Duke Brain SPORE</a></div>'
mnuresearch[1]='<div id="dropMenuItem"><a href="/btc/modules/Research3/index.php?id=4" class="leftnavbutn0">Pediatric Brain Tumor Foundation Institute</a></div>'
mnuresearch[2]='<div id="dropMenuItem"><a href="/btc/modules/Research3/index.php?id=5" class="leftnavbutn0">Basic and Clinical Research Program</a></div>'
mnuresearch[3]='<div id="dropMenuItem"><a href="/btc/modules/Research3/index.php?id=7" class="leftnavbutn0">Quality of Life Research Program</a></div>'



var mnuctrials = new Array()
mnuctrials[0]='<div id="dropMenuItem"><a href="/btc/modules/ClinicalTrials4/index.php?id=1" class="leftnavbutn0">Overview and Frequently Asked Questions</a></div>'
mnuctrials[1]='<div id="dropMenuItem"><a href="/btc/modules/ClinicalTrials4/index.php?id=2" class="leftnavbutn0">Clinical Trials Adults</a></div>'
mnuctrials[2]='<div id="dropMenuItem"><a href="/btc/modules/ClinicalTrials4/index.php?id=3" class="leftnavbutn0">Clinical Trials Pediatrics</a></div>'
mnuctrials[3]='<div id="dropMenuItem"><a href="/btc/modules/ClinicalTrials4/index.php?id=4" class="leftnavbutn0">Quality of Life Studies</a></div>'
mnuctrials[4]='<div id="dropMenuItem"><a href="/btc/modules/ClinicalTrials4/index.php?id=5" class="leftnavbutn0">Supportive Care Studies</a></div>'

var mnuptinfo = new Array()
mnuptinfo[0]='<div id="dropMenuItem"><a href="" class="leftnavbutn0">Become / Refer a Patient</a></div>'
mnuptinfo[1]='<div id="dropMenuItem"><a href="" class="leftnavbutn0">Patient / Visitor Information</a></div>'


var mnuptsupport = new Array()
mnuptsupport[0]='<div id="dropMenuItem"><a href="" class="leftnavbutn0">Resources at Duke</a></div>'
mnuptsupport[1]='<div id="dropMenuItem"><a href="" class="leftnavbutn0">Community and National Resources</a></div>'
mnuptsupport[2]='<div id="dropMenuItem"><a href="" class="leftnavbutn0">Additional Resources</a></div>'

var mnupatientfamilies = new Array()
mnupatientfamilies[0]='<div id="dropMenuItem"><a href="/btc/modules/patientinfo13/index.php?id=14" class="leftnavbutn0">Referal Information</a></div>'
mnupatientfamilies[1]='<div id="dropMenuItem"><a href="/btc/modules/patientinfo13/index.php?id=15" class="leftnavbutn0">Orientation</a></div>'
mnupatientfamilies[2]='<div id="dropMenuItem"><a href="/btc/modules/patientsupport12/index.php?id=4" class="leftnavbutn0">Support Programs/Services</a></div>'
mnupatientfamilies[3]='<div id="dropMenuItem"><a href="/btc/modules/patienteducation11/index.php?id=29" class="leftnavbutn0">Education Programs/Services</a></div>'


var mnupteducation = new Array()
mnupteducation[0]='<div id="dropMenuItem"><a href="/btc/modules/patienteducation11/index.php?id=1" class="leftnavbutn0">Facts about brain tumors</a></div>'
mnupteducation[1]='<div id="dropMenuItem"><a href="/btc/modules/patienteducation11/index.php?id=12" class="leftnavbutn0">Tour the Brain Tumor Learning Center</a></div>'
mnupteducation[2]='<div id="dropMenuItem"><a href="/btc/modules/patienteducation11/index.php?id=13" class="leftnavbutn0">Interactive Learning Center</a></div>'
mnupteducation[3]='<div id="dropMenuItem"><a href="/btc/modules/patienteducation11/index.php?id=5" class="leftnavbutn0">Adult Patient Education</a></div>'
mnupteducation[4]='<div id="dropMenuItem"><a href="/btc/modules/readingroom14/index.php?id=12" class="leftnavbutn0">Reading Room</a></div>'
mnupteducation[5]='<div id="dropMenuItem"><a href="/btc/modules/patienteducation11/index.php?id=15" class="leftnavbutn0">Pediatric Patient Education</a></div>'

var mnuhopeatduke = new Array()
mnuhopeatduke[0]='<div id="dropMenuItem"><a href="/btc/modules/faces5/index.php?id=1" class="leftnavbutn0">Faces of Hope</a></div>'
mnuhopeatduke[1]='<div id="dropMenuItem"><a href="/btc/modules/journey7/index.php?id=1" class="leftnavbutn0">Journey of Hope</a></div>'
mnuhopeatduke[2]='<div id="dropMenuItem"><a href="/btc/modules/voices6/index.php?id=1" class="leftnavbutn0">Voices of Hope</a></div>'
mnuhopeatduke[3]='<div id="dropMenuItem"><a href="/btc/modules/scrapbook8/index.php?id=1" class="leftnavbutn0">Family Scrapbook</a></div>'

var mnuway2help = new Array()
mnuway2help[0]='<div id="dropMenuItem"><a href="/btc/modules/waystohelp10/index.php?id=1" class="leftnavbutn0">Giving Opportunities</a></div>'
mnuway2help[1]='<div id="dropMenuItem"><a href="/btc/modules/waystohelp10/index.php?id=2" class="leftnavbutn0">Make a Donation</a></div>'
mnuway2help[2]='<div id="dropMenuItem"><a href="http://www.costore.com/btc/welcome.asp" target="_blank" class="leftnavbutn0">Online-Shopping</a></div>'
mnuway2help[3]='<div id="dropMenuItem"><a href="/btc/modules/waystohelp10/index.php?id=4" class="leftnavbutn0">Fundraising Events</a></div>'

var mnuaboutus = new Array()
mnuaboutus[0]='<div id="dropMenuItem"><a href="/btc/modules/aboutus9/index.php?id=1" class="leftnavbutn0">General Information</a></div>'
mnuaboutus[1]='<div id="dropMenuItem"><a href="/btc/modules/aboutus9/index.php?id=2" class="leftnavbutn0">Calendar of Events</a></div>'
mnuaboutus[2]='<div id="dropMenuItem"><a href="/btc/modules/aboutus9/index.php?id=3" class="leftnavbutn0">Fellowships and Internships</a></div>'
mnuaboutus[3]='<div id="dropMenuItem"><a href="/btc/modules/aboutus9/index.php?id=4" class="leftnavbutn0">Board of Advisors</a></div>'
mnuaboutus[4]='<div id="dropMenuItem"><a href="/btc/modules/aboutus9/index.php?id=5" class="leftnavbutn0">Partners</a></div>'

var menuwidth='165px' //default menu width
var menubgcolor='#2F3F73'  //menu bgcolor
var disappeardelay=500  //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="dropmenudiv" 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=-500

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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
		dropmenuobj.contentmeasure=dropmenuobj.offsetHeight

		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
			edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
	}
	return edgeoffset
}



function populatemenu(what){
	if (ie4||ns6)
	dropmenuobj.innerHTML=what.join("")
}





function dropdownmenu(obj, e, menucontents, menuwidth){

if (window.event) event.cancelBubble=true

else if (e.stopPropagation) e.stopPropagation()

clearhidemenu()

dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv

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