//Contents for menu 1
var menu3=new Array()
menu3[0]='<a href="finddoc_anes.php">Anesthesiology</a>'
menu3[1]='<a href="finddoc_densi.php">Dental Medicine</a>'
menu3[2]='<a href="finddoc_diagnostic.php">Diagnostic Imaging</a>'
menu3[3]='<a href="finddoc_famed.php">Family Medicine</a>'
menu3[4]='<a href="finddoc_intmed.php">Internal Medicine</a>'
menu3[5]='<a href="finddoc_ob.php">Obstetrics & Gynecology</a>'
menu3[6]='<a href="finddoc_pathology.php">Pathology</a>'
menu3[7]='<a href="finddoc_pedia.php">Pediatrics</a>'
menu3[8]='<a href="finddoc_psychiatry.php">Psychiatry</a>'
menu3[8]='<a href="finddoc_surgery.php">Surgery</a>'

var menu4=new Array()
menu4[0]='<a href="pfs_accomodation.php">Accomodation</a>'
menu4[1]='<a href="#">At the Admitting Section</a>'
menu4[2]='<a href="#">During Discharge</a>'
menu4[3]='<a href="pfs_pastoral.php">Pastoral Service</a>'
menu4[4]='<a href="pfs_medrec.php">Medical Records</a>'
menu4[5]='<a href="pfs_mssd.php">Medical Social Service</a>'
menu4[6]='<a href="pfs_visitingdetails.php">Visiting Details</a>'
menu4[7]='<a href="otherservices_imaging.php">Other Services</a>'

var menu5=new Array()
menu5[0]='<a href="otherservices_imaging.php">Imaging</a>'
menu5[1]='<a href="otherservices_laboratory.php">Laboratory</a>'
menu5[2]='<a href="otherservices_nursing.php">Nursing</a>'
menu5[3]='<a href="otherservices_pharmacy.php">Pharmacy</a>'
menu5[4]='<a href="otherservices_pt.php">Physiotherapy</a>'
menu5[5]='<a href="otherservices_pulmonary.php">Pulmonary</a>'

var menu6=new Array()
menu6[0]='<a href="gallery_sections_administrative.php">Administrative</a>'
menu6[1]='<a href="gallery_sections_alternativemedicine.php">Alternative Medicine</a>'
menu6[2]='<a href="gallery_sections_dietary.php">Dietary</a>'
menu6[3]='<a href="gallery_sections_dominicansisters.php">Dominican Sisters</a>'
menu6[4]='<a href="gallery_sections_emergency.php">Emergency</a>'
menu6[5]='<a href="gallery_sections_engineering.php">Engineering</a>'
menu6[6]='<a href="gallery_sections_finance.php">Finance</a>'
menu6[7]='<a href="gallery_sections_hrd.php">Human Resource</a>'
menu6[8]='<a href="gallery_sections_imaging.php">Imaging</a>'
menu6[9]='<a href="gallery_sections_laboratory.php">Laboratory</a>'
menu6[10]='<a href="gallery_sections_medical.php">Medical</a>'
menu6[11]='<a href="gallery_sections_medicalrecords.php">Medical Records</a>'
menu6[12]='<a href="gallery_sections_nursestations.php">Nurse Stations</a>'
menu6[13]='<a href="gallery_sections_pastoral.php">Pastoral</a>'
menu6[14]='<a href="gallery_sections_pharmacy.php">Pharmacy</a>'
menu6[15]='<a href="gallery_sections_physiotherapy.php">Physiotherapy</a>'
menu6[16]='<a href="gallery_sections_pulmonary.php">Pulmonary</a>'
menu6[17]='<a href="gallery_sections_specialunits.php">Special Units</a>'


var menu7=new Array()
menu7[0]='<a href="gallery_events_day1.php">Fiesta Day 1</a>'
menu7[1]='<a href="gallery_events_day2.php">Fiesta Day 2</a>'
menu7[2]='<a href="gallery_events_day3.php">Fiesta Day 3</a>'
menu7[3]='<a href="gallery_events_day4.php">Fiesta Day 4</a>'
menu7[4]='<a href="gallery_events_day5.php">Fiesta Day 5</a>'
menu7[5]='<a href="gallery_events_day6.php">Fiesta Day 6</a>'
menu7[5]='<a href="gallery_events_day7.php">Fiesta Day 7</a>'

var menu8=new Array()
menu8[0]='<a href="gallery_eventsvid_day1.php">Fiesta Day 1</a>'
menu8[1]='<a href="gallery_eventsvid_day2.php">Fiesta Day 2</a>'
menu8[2]='<a href="gallery_eventsvid_day3.php">Fiesta Day 3</a>'
menu8[3]='<a href="gallery_eventsvid_day4.php">Fiesta Day 4</a>'
menu8[4]='<a href="gallery_eventsvid_day5.php">Fiesta Day 5</a>'
menu8[5]='<a href="gallery_eventsvid_day6.php">Fiesta Day 6</a>'
menu8[5]='<a href="gallery_eventsvid_day7.php">Fiesta Day 7</a>'


var menuwidth='100px' //default menu width
var menubgcolor='#BED9EC'  //menu bgcolor
var disappeardelay= '50'  //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="dropmenudiv1" 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 dropdownmenu1(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv1") : dropmenudiv1
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
