//-----------------------------------------------------------------------------
// mouse over links; who we are... etc
//-----------------------------------------------------------------------------

function contactCALLUP()
{
document.images.contactus.src="buttons/contact_us_down.jpg"
}

function contactCALLDOWN()
{
document.images.contactus.src="buttons/contact_us_up.jpg"
}


function aboutCALLUP()
{
document.images.aboutus.src="buttons/about_us_up.jpg"
}

function aboutCALLDOWN()
{
document.images.aboutus.src="buttons/about_us_down.jpg"
}


function providersCALLUP()
{
document.images.providers.src="buttons/our_providers_down.jpg"
}

function providersCALLDOWN()
{
document.images.providers.src="buttons/our_providers_up.jpg"
}

function servicesCALLUP()
{
document.images.services.src="buttons/our_services_up.jpg"
}

function servicesCALLDOWN()
{
document.images.services.src="buttons/our_services_down.jpg"
}

function commitmentCALLUP()
{
document.images.commitment.src="buttons/our_commitment_up.jpg"
}

function commitmentCALLDOWN()
{
document.images.commitment.src="buttons/our_commitment_down.jpg"
}


/***********************************************
* 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
var menu_aboutus=new Array()
menu_aboutus[0]='<a href="mission.htm">Mission & Goals</a>'
menu_aboutus[1]='<a href="board.htm">Our Board of Directors</a>'
menu_aboutus[2]='<a href="chidi_achebe.htm">Our C.E.O</a>'
menu_aboutus[3]='<a href="management.htm">Our Management</a>'


//Contents for menu 2
var menu_providers=new Array()
menu_providers[0]='<a href="providers.htm#fammed">Family Medicine</a>'
menu_providers[1]='<a href="providers.htm#obgyn">Ob/Gyn </a>'
menu_providers[2]='<a href="providers.htm#dental">Dental</a>'
menu_providers[3]='<a href="providers.htm#sub">Mental Health</a>'
menu_providers[4]='<a href="providers.htm#pd">Pediatric</a>'
menu_providers[5]='<a href="providers.htm#fammed">Nutrition</a>'
menu_providers[6]='<a href="providers.htm#ortho">Orthopedic</a>'


//Contents for menu 3
var menu_services=new Array()
menu_services[0]='<a href="pediatrics.htm">Pediatrics</a>'
menu_services[1]='<a href="adolescent.htm">Teen Clinic</a>'
menu_services[2]='<a href="womenscenter.htm">Women\'s Clinic/ObGyn</a>'
menu_services[3]='<a href="wic.htm">W.I.C</a>'
menu_services[4]='<a href="menshealthclinic.htm">Men\'s Clinic</a>'
menu_services[5]='<a href="services.htm#mentalh">Mental Health</a>'
menu_services[6]='<a href="dentalclinic.htm">Dental Clinic</a>'
menu_services[7]='<a href="services.htm">Family Medicine</a>'



var menuwidth='250px' //default menu width
var menubgcolor='white'  //menu bgcolor

opacity:0.6;
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

//No further editting needed; NOTE for tansparenct effect (line 98): 'filter:alpha' for ie browsers; opacity for others

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="filter:alpha(opacity=94);opacity:0.9;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()
}

/*this line appear unnecessary
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
*/


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




