function showme(msg){
	alert(msg)
}


/***********************************************
* 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 Menu1
var menu1=new Array()
menu1[0]='<a href="ehs_002.htm">Adoptions</a>'
//menu1[1]='<a href="ehs_003.htm">Pets of the Month</a>'
menu1[2]='<a href="ehs_005.htm">Special Pets</a>'
//menu1[3]='<a href="ehs_024.htm">Featured Fosters</a>'
//menu1[4]='<a href="ehs_004.htm">Adoption Process</a>'
menu1[5]='<a href="ehs_007.htm">Adoption Cost</a>'
menu1[6]='<a href="ehs_008.htm">Happy Stories</a>'

//Contents for Menu 2
var menu2=new Array()
menu2[0]='<a href="ehs_033.htm">Animal Control</a>'
menu2[1]='<a href="ehs_009.htm">Lost a Pet?</a>'
menu2[2]='<a href="ehs_011.htm">Found a Pet?</a>'
//menu2[3]='<a href="ehs_012.htm">View Strays at EHS</a>'
//menu2[4]='<a href="ehs_013.htm">View Public Lost & Found</a>'
menu2[5]='<a href="ehs_032.htm">Licensing Your Pet</a>'
menu2[6]='<a href="ehs_034.htm">Animal Cruelty</a>'
menu2[7]='<a href="ehs_035.htm">Barking Dogs</a>'
menu2[8]='<a href="ehs_036.htm">Animal Bites</a>'
//menu2[9]='<a href="ehs_037.htm">Stray Animals</a>'
menu2[10]='<a href="ehs_038.htm">Injured Animals</a>'
menu2[11]='<a href="ehs_039.htm">Animal Laws</a>'
menu2[12]='<a href="ehs_040.htm">Fees</a>'
menu2[13]='<a href="ehs_006.htm">Spay/neuter</a>'

//Contents for Menu3
var menu3=new Array()
menu3[0]='<a href="ehs_019.htm">Upcoming classes</a>'
menu3[1]='<a href="ehs_018.htm">Youth</a>'
menu3[2]='<a href="ehs_020.htm">Adult</a>'
//menu3[3]='<a href="ehs_021.htm">Internships & Youth</a>'
menu3[4]='<a href="ehs_022.htm">Resource Library</a>'
menu3[5]='<a href="ehs_015.htm">Behaviorist Corner</a>'
//menu3[6]='<a href="ehs_017.htm">Recommended Reads</a>'
menu3[7]='<a href="ehs_016.htm">Links</a>'

//Contents for Menu4
var menu4=new Array()
menu4[0]='<a href="ehs_025.htm">Donate</a>'
menu4[1]='<a href="ehs_021.htm">Million Dollar Match</a>'
//menu4[2]='<a href="ehs_026.htm">PAWS Membership</a>'
//menu4[3]='<a href="ehs_0??.htm">Buy a Brick</a>'
//menu4[4]='<a href="ehs_027.htm">Shop and Save</a>'
//menu4[5]='<a href="ehs_0??.htm">Rainbow Bridge</a>'
//menu4[6]='<a href="ehs_029.htm">Resale Shoppe</a>'
//menu4[7]='<a href="ehs_030.htm">Planned Giving</a>'
//menu4[8]='<a href="ehs_041.htm">Volunteer or Foster</a>'
//menu4[9]='<a href="ehs_028.htm">Wish List</a>'
//menu4[10]='<a href="ehs_057.htm">Rainbow Bridge</a>'
//menu4[11]='<a href="ehs_056.htm">Artists for Animals</a>'
menu4[12]='<a href="ehs_012.htm">Become a member</a>'
menu4[13]='<a href="ehs_031.htm">Donor Privacy Policy</a>'

//Contents for Menu5
var menu5=new Array()
//menu5[0]='<a href="ehs_0??.htm">News and Events Home</a>'
menu5[1]='<a href="ehs_057.htm">News and Events</a>'
menu5[2]='<a href="ehs_003.htm">Paws in the Park</a>'
menu5[3]='<a href="ehs_014.htm">Tails at Twilight</a>'
//menu5[4]='<a href="ehs_0??.htm">Alumni News</a>'
menu5[5]='<a href="ehs_010.htm">Events calendar</a>'

//Contents for Menu6
var menu6=new Array()
menu6[0]='<a href="ehs_041.htm">Volunteer</a>'
menu6[1]='<a href="ehs_042.htm">Requirements</a>'
menu6[2]='<a href="ehs_043.htm">Opportunities</a>'
menu6[3]='<a href="ehs_045.htm">Foster Care</a>'
menu6[4]='<a href="ehs_046.htm">Virtual Volunteers</a>'
//menu6[5]='<a href="Documents/EHS Foster Care Application.pdf">Download a Foster Care Application</a>'


//Contents for Menu7
var menu7=new Array()
menu7[0]='<a href="ehs_047.htm">About Us</a>'
//menu7[1]='<a href="ehs_048.htm">Our Mission</a>'
menu7[2]='<a href="ehs_049.htm">Contact Us</a>'
//menu7[3]='<a href="ehs_050.htm">Hours</a>'
menu7[4]='<a href="ehs_051.htm">Hours and directions</a>'
menu7[5]='<a href="ehs_052.htm">Board of Directors</a>'
menu7[6]='<a href="ehs_053.htm">Employment Opportunities</a>'
//menu7[7]='<a href="ehs_023.htm">PAWS</a>'
//menu7[8]='<a href="ehs_024.htm">SNAP</a>'
//menu7[9]='<a href="ehs_053.htm">Other Links</a>'

		
var menuwidth='165px' //default menu width
var menubgcolor='white'  //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="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="-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 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)
}
