/***********************************************
* 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
***********************************************/

var menu1=new Array()
menu1[0] = '<A HREF="http://www.lcmweb.org/facilities/direct.html">Directions</A><br>'
menu1[1] = '<A HREF="http://www.lcmweb.org/about/mission.html">Mission</A><br>'
menu1[2] = '<A HREF="http://www.lcmweb.org/about/events.html">News &#38; Events</A><br>'
menu1[3] = '<A HREF="http://www.providence.org/">Providence Health</A><br>'
menu1[4] = '<A HREF="http://www.lcmweb.org/spirit/index.html">Spiritual Care</A><br>'
menu1[5] = '<A HREF="http://www.lcmweb.org/tour/index.html">Tour</A><br>'
menu1[6] = '<A HREF="http://www.providence.org/losangeles/general/hipaa_general.htm" TARGET="_blank">Joint Notice of Privacy Practices</A><br>'
		
var menu2=new Array()
menu2[0] = '<A HREF="http://www.lcmweb.org/sp_facilities/telephone.html">San Pedro</A><br>'
menu2[1] = '<A HREF="http://www.lcmweb.org/t_facilities/telephone.html">Torrance</A><br>'

var menu3=new Array()
menu3[0] = '<A HREF="http://www.lcmweb.org/education/articles.html">Articles</A><br>'
menu3[1] = '<A HREF="http://www.lcmweb.org/education/faq.html">FAQ</A><br>'
menu3[2] = '<A HREF="http://www.lcmweb.org/education/links.html">Links</A><br>'
menu3[3] = 'Programs:<br>'
menu3[4] = ' &nbsp;  &nbsp;&#149; <A HREF="http://www.lcmweb.org/education/programs.html">Community</A><br>'
menu3[5] = ' &nbsp;  &nbsp;&#149; <A HREF="http://www.lcmweb.org/education/nurse.html">Nursing</A><br>'
menu3[6] = '<A HREF="http://www.lcmweb.org/education/support.html">Support Groups</A><br>'

var menu4=new Array()
menu4[0] = '<A HREF="http://www.lcmweb.org/sp_facilities/index.html">San Pedro</A><br>'
menu4[1] = '<A HREF="http://www.lcmweb.org/t_facilities/index.html">Torrance</A><br>'
menu4[2] = '<A HREF="http://www.lcmweb.org/facilities/index2.html">Other Facilities</A><br>'

var menu5=new Array()
menu5[0] = '<A HREF="http://www.lcmweb.org/foundation/contact.html">Contact</A><br>'
menu5[1] = '<A HREF="https://secure.cnchost.com/lcmhs.org/donate.html">Donate</A><br>'
menu5[2] = '<A HREF="http://www.lcmweb.org/foundation/news.html">Newsletter</A><br>'
menu5[3] = '<A HREF="http://littlemary.giftlegacy.com/plgive_main.jsp?WebID=GL2007-0971">Planned Giving</A><br>'
menu5[4] = '<A HREF="http://www.lcmweb.org/foundation/events.html">Special Events</A><br>'
menu5[5] = '<A HREF="http://www.lcmweb.org/foundation/ways.html">Ways to Give</A><br>'

var menu6=new Array()
menu6[0] = '<A HREF="http://www.lcmweb.org/milcm/index.html">Medical Institute</A><br>'
menu6[1] = '<A HREF="http://www.lcmweb.org/physicians/index.html">Referral</A><br>'

var menu7=new Array()
menu7[0] = '<A HREF="http://www.lcmweb.org/cancer/index.html">Cancer</A><br>'
menu7[1] = '<A HREF="http://www.lcmweb.org/services/diagnostic.html">Diagnostic Imaging</A><br>'
menu7[2] = '<A HREF="http://www.lcmweb.org/services/emergency.html">Emergency Services</A><br>'
menu7[3] = '<A HREF="http://www.lcmweb.org/services/financial.html">Financial Assistance</A><br>'
menu7[4] = '<A HREF="http://www.lcmweb.org/heart/index.html">Heart</A><br>'
menu7[5] = '<A HREF="http://www.lcmweb.org/ortho/index.html">Orthopaedics</A><br>'
menu7[6] = '<A HREF="http://www.lcmweb.org/rehabcentre/index.html">Rehabcentre</A><br>'
menu7[7] = '<A HREF="http://www.lcmweb.org/spine/index.html">Spine</A><br>'
menu7[8] = '<A HREF="http://www.lcmweb.org/services/surgery.html">Surgery</A><br>'
menu7[9] = '<A HREF="http://www.lcmwomen.org/">Women &#38; Children</A><br>'
menu7[10] = '<A HREF="http://www.lcmweb.org/services/index2.html">Additional Services</A><br>'

var menuwidth='165px'
var menubgcolor="#FFFFFF"
var disappeardelay="120"
var hidemenu_onclick="yes"

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

