// JavaScript Document

/***********************************************
* 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 menu 1 - About Us
var menu1=new Array()
menu1[0]='<a href="about_genInfo.html">General Info</a>'
menu1[1]='<a href="about_director.html">Meet the Director</a>'
menu1[2]='<a href="about_mission.html">Mission/Vision</a>'
menu1[3]='<a href="pdf/annual_report2007.pdf">Annual Report</a>'

//Contents for menu 2 - Programs
var menu2=new Array()
menu2[0]='<a href="programs.html#aps">Adult Protective Services (APS)</a>'
menu2[1]='<a href="programs.html#daycare">Child Day Care Services</a>'
menu2[2]='<a href="programs.html#csb">Children Services</a>'
menu2[3]='<a href="programs.html#fasd">Fetal Alcohol Spectrum Disorders (FASD)</a>'
menu2[4]='<a href="programs.html#healthchek">HealthChek</a>'
menu2[5]='<a href="programs.html#helpgrow">Help Me Grow</a>'
menu2[6]='<a href="programs.html#leap">Learning, Earning and Parenting (LEAP)</a>'
menu2[7]='<a href="programs.html#medicaid">Medicaid</a>'
//menu2[8]='<a href="programs.html#mom">Mothering Ourselves Matters (MOMs)</a>'
menu2[9]='<a href="programs.html#owf">Ohio Works First (OWF)</a>'
menu2[10]='<a href="programs.html#preg">Pregnancy Services</a>'
menu2[11]='<a href="programs.html#prc">Prevention, Retention, Contingency (PRC)</a>'
menu2[12]='<a href="programs.html#trans">Transportation</a>'
menu2[13]='<a href="programs.html#wic">Women, Infants, and Children (WIC)</a>'
menu2[14]='<a href="programs.html#wfdev">Workforce Development</a>'

//Contents for menu 3 - Online Forms
var menu3=new Array()
menu3[0]='<a href="forms.html">All online forms</a>'
menu3[1]='<a href="pdf/forms_52.pdf">52 - Employment Verification</a>'
menu3[2]='<a href="pdf/forms_233.pdf">233 - Authorized Representative</a>'
menu3[3]='<a href="pdf/forms_297a.pdf">297A - Statement of Residence</a>'
menu3[4]='<a href="pdf/forms_1138.pdf">1138 - Medical (Families & Children)</a>'
menu3[5]='<a href="pdf/forms_2399.pdf">2399 - Waiver Application</a>'
//menu3[6]='<a href="pdf/forms_3800.pdf">3800 PRC - Rent, Utilities, Car Repair</a>'
menu3[7]='<a href="pdf/forms_7103.pdf">7103 - Help With Medical Expenses</a>'
menu3[8]='<a href="pdf/forms_7110.pdf">7110 - Retro Medicaid Coverage</a>'
menu3[9]='<a href="pdf/forms_7200.pdf">7200 - Cash, Food Stamps, Medical</a>'
menu3[10]='<a href="pdf/forms_7216.pdf">7216 - Healthy Start Healthy Families</a>'

//Contents for menu 4 - FAQ
var menu4=new Array()
menu4[0]='<a href="faq.html#assist">Applying for Assistance</a>'
menu4[1]='<a href="faq.html#childcare">Child Care Assistance</a>'
menu4[2]='<a href="faq.html#disability">Disability Assistance</a>'
menu4[3]='<a href="faq.html#elderly">Elderly Protection</a>'
menu4[4]='<a href="faq.html#foodstamps">Food Stamps</a>'
menu4[5]='<a href="faq.html#healthchek">HealthChek</a>'
menu4[6]='<a href="faq.html#healthystart">Healthy Start</a>'
menu4[7]='<a href="faq.html#civilrights_main">Your Civil Rights</a>'

//Contents for menu 5 - Contact Us
var menu5=new Array()
menu5[0]='<a href="contact_genInquiry.html">General Inquiries</a>'
menu5[1]='<a href="contact_unit.html">Unit Specific Contacts</a>'
menu5[2]='<a href="contact_others.html">Other Helpful Contacts</a>'
menu5[3]='<a href="contact_feedback.html">Feedback Forum</a>'
menu5[4]='<a href="contact_fraud.html">Report Fraud</a>'

//Contents for menu 6 - Links
var menu6=new Array()
menu6[0]='<a href="links_bcdjfs.html">BCDJFS Agency Partners</a>'
menu6[1]='<a href="links_others.html">Other Helpful Links</a>'

//Contents for menu 7 - Employment --> NOT USED
//var menu7=new Array()
//menu7[0]='<a href="http://cnn.com">7200</a>'
//menu7[1]='<a href="http://msnbc.com">1138</a>'

var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //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)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu