var xx
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
var isIE = (navigator.appName.indexOf("Microsoft") !=-1);
md="off"
menu="off"
function openIt(x) {
// place links here .... add or remove as necessary ..... match formula below at NOTE

link1a="<a href='about.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Information about ACADV</font></a>"
link1b="<a href='about.html#mission' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Mission Statement</font></a>"
link1c="<a href='about.html#contact' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Contact Information</font></a>"
link1d="<a href='onlineapp.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Become a Member</font></a>"
link1e="<a href='shelterlist.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>List of Member Shelters</font></a>"
link1f="<a href='about.html#services' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Services</font></a>"
link1g="<a href='history.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>History</font></a>"
link1h="<a href='jobs.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Career Opportunities</font></a>"

link2a="<a href='abusers.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Why do Abusers Batter?</font></a>"
link2b="<a href='abusers.html#characteristics' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Characteristics of Abusers</font></a>"
link2c="<a href='abusers.html#manipulate' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>How Abusers Manipulate</font></a>"
link2d="<a href='abusers.html#intervention' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'> Intervention Programs</font></a>"
link2e="<a href='abusers.html#lies ' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Six Big Lies </font></a>"
link2f="<a href='abusers.html#counseling' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Couples Counseling Doesn't Work.</font></a>"
link2g="<a href='lethality.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Lethality Assessment</font></a>"

link3a="<a href='barriers.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font size='2' color='#FFFFFF'>Barriers To Leaving</font></a>"
link3b="<a href='barriers.html#why' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Why Does She Stay?</font></a>"
link3c="<a href='barriers.html#other' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Other Barriers</font></a>"
link3d="<a href='barriers.html#questions' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Victim's Questions</font></a>"
link3e="<a href='barriers.html#rights' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Relationship Rights</font></a>"


link4a="<a href='children.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font size='2' color='#FFFFFF'>Effects On Children</font></a>"
link4b="<a href='children.html#parents' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>For Parents</font></a>"
link4c="<a href='children.html#plan' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>A Child's Own Safety Plan</font></a>"
link4d="<a href='children.html#ageinfo' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Age Specific Indicators</font></a>"
link4e="<a href='children.html#working' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Working With Children</font></a>"
link4f="<a href='children.html#statistics' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Statistics</font></a>"

link5a="<a href='dating.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Dating Violence</font></a>"
link5b="<a href='dating.html#signs' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Early Warning Signs.</font></a>"
link5c="<a href='dating.html#clues' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Clues they may be victims.</font></a>"
link5d="<a href='dating.html#safety' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Dating Safety</font></a>"
link5e="<a href='dating.html#help' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Available Help</font></a>"
link5f="<a href='dating.html#statistics' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Teen Dating Statistics</font></a>"
link5g="<a href='dating.html#bor' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>A Dating Bill of Rights</font></a>"

link6a="<a href='facts.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>The Facts About Domestic Violence.</font></a>"
link6b="<a href='facts.html#questions' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Are you abused?</font></a>"
link6c="<a href='facts.html#myths' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Myths and Facts</font></a>"
link6d="<a href='pcwheel.html' target='new' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font  color='#FFFFFF' size='2'>Power and Control Wheel</font></a>"

link7a="<a href='friends.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>How can I help my friend?</font></a>"
link7b="<a href='friends.html#say' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>What can I say?</font></a>"
link7c="<a href='friends.html#signs' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>How do I know if my friend is being abused?</font></a>"
link7d="<a href='friends.html#myths' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Common myths about domestic violence.</font></a>"
link7e="<a href='friends.html#do' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>What can I do?</font></a>"

link8a="<a href='legal_pfa.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Protection From Abuse Orders</font></a>"
link8b="<a href='legal_pfa_FAQs.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Frequently Asked Questions</font></a>"
link8c="<a href='PFA_Form_C-2_2-2005.pdf' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>A Sample PFA Form.</font></a>"
link8d="<a href='AlabamaDVlaws.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Alabama Domestic Violence Laws</font></a>"
link8e="<a href='legalserv.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Legal Services</font></a>"
link8f="<a href='legislativeagenda.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>ACADV Legislative Agenda</font></a>"

link9a="<a href='links.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>DV Sources on the Internet</font></a>"


link10a="<a href='safety.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Plan for your Safety:</font></a>"
link10b="<a href='safety.html#before' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>...before a violent encounter.</font></a>"
link10c="<a href='safety.html#during' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>...during an assault.</font></a>"
link10d="<a href='safety.html#after' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>...after an assault.</font></a>"
link10e="<a href='safety.html#youleave' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>...when leaving home.</font></a>"
link10f="<a href='safety.html#abuserleaves' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>...after the abuser leaves.</font></a>"
link10g="<a href='safety.html#work' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>...in your workplace.</font></a>"
link10h="<a href='safety.html#public' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>...in the community</font></a>"


link11a="<a href='sheltermap.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Map of Alabama Shelters</font></a>"
link11b="<a href='shelterlist.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>List of Alabama Shelters</font></a>"


link12a="<a href='stories.html' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Virginia's Story</font></a>"
link12b="<a href='stories.html#poem' onmouseover='clearTimeout(xx)' onmouseout='closeMenu()'><font color='#FFFFFF' size='2'>Survivors' Poems</font></a>"


//define flyout table?
a="<table border=0 bgcolor=51919D cellpadding=0 cellspacing=0 width=230><tr><td><table border=0 bgcolor=40808C cellpadding=2 cellspacing=2 width=100%><tr><td ALIGN=left>"
b="</td></tr><tr><td>"
c="</td></tr></table></td></tr></table>"

 //links should match the above of course ****** see NOTE above

if (x==1){
text=a+link1a+b+link1b+b+link1c+b+link1d+b+link1e+b+link1f+b+link1g+b+link1h+c
}
if (x==2){
text=a+link2a+b+link2b+b+link2c+b+link2d+b+link2e+b+link2f+b+link2g+c
}
if (x==3){
text=a+link3a+b+link3b+b+link3c+b+link3d+b+link3e+c
}
if (x==4){
text=a+link4a+b+link4b+b+link4c+b+link4d+b+link4e+b+link4f+c
}
if (x==5){
text=a+link5a+b+link5b+b+link5c+b+link5d+b+link5e+b+link5f+b+link5g+c
}
if (x==6){
text=a+link6a+b+link6b+b+link6c+b+link6d+c
}
if (x==7){
text=a+link7a+b+link7b+b+link7c+b+link7d+b+link7e+c
}
if (x==8){
text=a+link8a+b+link8b+b+link8c+b+link8d+b+link8e+b+link8f+c
}
if (x==9){
text=a+link9a+c
}
if (x==10){
text=a+link10a+b+link10b+b+link10c+b+link10d+b+link10e+b+link10f+b+link10g+b+link10h+c
}
if (x==11){
text=a+link11a+b+link11b+c
}
if (x==12){
text=a+link12a+b+link12b+c

}
//define flyout position
if(x==0)text=""
topPos=(((x-1)*19)+172)

linePos=(((x-1)*19)-173)

if(isNav) {
document.theMenu.document.write(text)
document.theMenu.document.close()
document.theMenu.left=126
if (x==0)document.theLine.top=-35

else document.theLine.top=(linePos-(x*1))
document.theMenu.top=(topPos-(x*1))
//if (x==0)document.theLine.top=-35,document.theMenu.top=-200,clearTXT()
  }
if(isIE) {
if(x==0)linePos=-35, clearTXT()
theMenu.style.pixelLeft=126

theMenu.style.pixelTop=(topPos-2)
theLine.style.pixelTop=(linePos-7)
theMenu.innerHTML=text
   }
}

// the onmousedown function is not required for this version
//if (isNav){
//document.captureEvents(Event.MOUSEDOWN);
//}
//document.onmousedown = handlerMD;


// the mousedown handler is still used in conjuction with onmouseout
function handlerMD(){
md="off"
if (menu=="on")menu="off",md="on",openIt(0)
}

function closeMenu(){
xx=setTimeout("handlerMD()",1000)
}
function doIt(xx){
if (md=="on") md="off",menu="on"
if (menu=="off")menu="on",openIt(xx)
else menu="off",openIt(0)
}

function menuOn(){
menu="on"
}

function checkIt(xx,yy){
if (menu=="on")openIt(xx)

//define table for description text
xxx="<table bgcolor=40808C width=90><td><center><font face=Arial,Helvetica><font color=FFFFFF font size=-2>"+yy+"</font></center></td></table>"
if (isNav){
		document.theMO.document.write(xxx)
		document.theMO.document.close()
		}
if (isIE) theMO.innerHTML=xxx
}

function clearTXT(){
xxx="<table bgcolor=000000 width=90><td><b><center><font color=ffffff font-size:6pt>menu<br>messages</font></center><b></td></table>"
if (isNav){
	document.theMO.document.write(xxx)
		document.theMO.document.close()
}
if (isIE) theMO.innerHTML=xxx
}