/***********************************************



* 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 drop down menus



var pastoral=new Array()  //why pastoral care drop menu



pastoral[0]='<a href="/WhyPastoralCare/WhyANeed.php">Why Is There A Need</a>'



pastoral[1]='<a href="/WhyPastoralCare/PastorsSpouses.php">Dear Pastors and Spouses</a>'



pastoral[2]='<a href="/WhyPastoralCare/Statistics.php">Statistics</a>'



pastoral[3]='<a href="/WhyPastoralCare/Testimonials.php">Testimonials</a>'





var about=new Array()  //about us drop menu



about[0]='<a href="/AboutUs/WhoisPastoralCare.php">Who Is Pastoral Care</a>'



about[1]='<a href="/AboutUs/Directors.php">Meet Our Directors</a>'


about[2]='<a href="/AboutUs/AreaDirectors.php">Area & State Directors</a>'


about[3]='<a href="/AboutUs/Mission.php">Mission Statement</a>'



about[4]='<a href="/AboutUs/Goals.php">Our Goals</a>'





var ministers=new Array()  //minister resources drop menu



ministers[0]='<a href="/MR/Surveys/Surveys.php">Surveys</a>'


ministers[1]='<a href="/MR/Books/Books.php">Books</a>'


ministers[2]='<a href="/MR/SelfCare.php">Self Care List</a>'


ministers[3]='<a href="/MR/Marriage.php">Marriage Issues</a>'


ministers[4]='<a href="/MR/PastorApp.php">Pastor Appreciation</a>'


ministers[5]='<a href="/Account/Accountability.php ">Accountability Group</a>'


ministers[6]='<a href="/MR/PostResumes.php">Post Resumes</a>'


ministers[7]='<a href="/MR/BackChecks.php">Background Check</a>'


ministers[8]='<a href="/MR/Links.php">Resourceful Links</a>'


ministers[9]='<a href="/MR/TimeMgmt.php">Time Management</a>'


ministers[10]='<a href="/MR/Retirement.php">Retirement Stratigies</a>'












var sermons=new Array()  //sermons resources drop menu



sermons[0]='<a href="/Sermons/SermonHelps/SermonHelps.php">Sermon Helps</a>'



sermons[1]='<a href="/Sermons/Sermons/Sermons.php">Sermons</a>'



sermons[2]='<a href="/Sermons/Devotions/Devotions.php">Devotions</a>'






var wecanhelp=new Array()  //can we help drop menu



wecanhelp[0]='<a href="/CanWeHelp/CanWeHelp.php">How Can We Help You</a>'



wecanhelp[1]='<a href="/CanWeHelp/ServicesProvided.php">Services Provided</a>'


wecanhelp[2]='<a href="/CanWeHelp/ListNeeds.php">Current List of Needs</a>'


wecanhelp[3]='<a href="/CanWeHelp/WhatCanYouHelp.php">What Can You Do To Help</a>'


wecanhelp[4]='<a href="/Prayer/Prayer.php">Prayer</a>'


wecanhelp[5]='<a href="/HealthCare/Healthcare.php">Healthcare</a>'


wecanhelp[6]='<a href="/Counseling/Counseling.php">Counseling</a>'


wecanhelp[7]='<a href="/GetAWay.php">Get-a-ways </a>'




var article=new Array()  //articles drop menu



article[0]='<a href="/Articles/Articles.php">Articles For Ministers</a>'


article[1]='<a href="/Articles/CC/ChristianCharacter.php">Christian Character</a>'


article[2]='<a href="/Newsletter/newsletters.php">Newsletters</a>'






var donations=new Array()  //donations drop menu



donations[0]='<a href="/Donations/DonateTalent.php">Donate Talent</a>'



donations[1]='<a href="/Donations/DonateSkills.php">Donate Skills</a>'



donations[2]='<a href="/Donations/DonateMR.php">Donate Money Resources</a>'



donations[3]='<a href="/Donations/DonateProperty.php">Donate Property</a>'



donations[4]='<a href="/Donations/DonateAB.php">Donate Auto Boat</a>'



donations[5]='<a href="/Donations/DonateTime.php">Donate Time</a>'



donations[6]='<a href="/Donations/BecomeDirector.php">Become A Director</a>'







var menuwidth='165px' //default menu width



var menubgcolor='#22596e'  //menu bgcolor



var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)



var hidemenu_onclick="no" //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




