<!--
/* *************************************************************
* set some global variables that will be checked later         *
***************************************************************/




var imageRootPath = "http://www.capitalaaa.org/images/";
var imageType = "gif";

var navArray = [
	/* here's are sample Array entryies for "nav" and "spacer" types
	["nav","inactive cue","Image Link","Image Root Name","image events (aside from 'Home' and 'Off' which are mandatory 'O' for over ,'D' so...'O' 'D' or 'OD' ", "alt text...if none found here just use],
	["spacer","spacer.gif","alt text"],
	*/


	["nav","home","http://www.capitalaaa.org/index.php","navHome","O","Home Page"],
	["nav","services","http://www.capitalaaa.org/services.php","navServices","X","Services"],
	["nav","agency","http://www.capitalaaa.org/agency.php","navAgency","O","Agency Profile"],
	["nav","resources","http://www.capitalaaa.org/resources.php","navResources","O","Resources"],
	["nav","contactUs","http://www.capitalaaa.org/contactUs.php","navContactUs","O","Contact Us"],

	// this last entry is here just to help protect you from screwing up the syntax when adding entries...just leave it be
	["image type values nav/spacer","inactive cue","off Image","over image","click image","alt text"]
];

function createImageObject(rootName){
	eval(rootName +'= new Image()');
	eval(rootName+'.src = "'+ imageRootPath + rootName + '.' +imageType+'"');
}

function drawImageSet(imageSet,nativeTrigger){
	document.write('<table cellspacing="0" cellpadding="0"><tr>');
	for( x=0; x < imageSet.length-1; x++){
		document.write('<td class="navButton">');
		if(imageSet[x][0].toLowerCase() == "nav"){
			tmpAText = "";
			tmpAltText = "";
			if ( imageSet[x][1].toLowerCase() != nativeTrigger.toLowerCase() ){

				tmpAText += '<a href="'+imageSet[x][2]+'"';

				if ( eval("menu"+(x+1)+".length") > 0 ){
					tmpAText += ' onMouseOver="dropdownmenu(this, event, menu'+(x+1)+', \'205px\',\''+imageSet[x][3]+'\');"';
					tmpAText += ' onMouseOut="dynamichide(event,\''+imageSet[x][3]+'\')"';
				}
				else{
					tmpAText += ' onMouseOver="document.autoDrawn'+imageSet[x][3]+'.src='+imageSet[x][3]+'Over.src"';
					tmpAText += ' onMouseOut="document.autoDrawn'+imageSet[x][3]+'.src='+imageSet[x][3]+'Off.src;"';
				}

				( !imageSet[x][5] || imageSet[x][5] == "" ) ? tmpAltText = ' alt="'+imageSet[x][2]+'"' : tmpAltText = ' alt="'+imageSet[x][5]+'"';
				tmpAText += ">";
				document.write(tmpAText+'<img name="autoDrawn'+imageSet[x][3]+'" src='+imageRootPath+imageSet[x][3]+'Off.'+imageType+ ' border="0" '+tmpAltText+'></a>');

				/*
					tmpAText += '<a href="'+imageSet[x][2]+'"';
					if (imageSet[x][4].toLowerCase().indexOf("o") > -1) tmpAText += ' onMouseOver="document.autoDrawn'+imageSet[x][3]+'.src='+imageSet[x][3]+'Over.src"';
					if (imageSet[x][4].toLowerCase().indexOf("x") > -1) tmpAText += ' onMouseDown="return clickreturnvalue()" onMouseOver="dropdownmenu(this, event, menu'+(x+1)+', \'205px\'); document.autoDrawn'+imageSet[x][3]+'.src='+imageSet[x][3]+'Over.src;"';
					if (imageSet[x][4].toLowerCase().indexOf("d") > -1) tmpAText += ' onMouseDown="document.autoDrawn'+imageSet[x][3]+'.src='+imageSet[x][3]+'Down.src"';
					if (imageSet[x][4].toLowerCase().indexOf("d") > -1 ||imageSet[x][4].toLowerCase().indexOf("o") > -1) tmpAText += ' onMouseOut="document.autoDrawn'+imageSet[x][3]+'.src='+imageSet[x][3]+'Off.src;"';
					if (imageSet[x][4].toLowerCase().indexOf("x") > -1) tmpAText += ' onMouseOut="dynamichide(event); document.autoDrawn'+imageSet[x][3]+'.src='+imageSet[x][3]+'Off.src;"';
					( !imageSet[x][5] || imageSet[x][5] == "" ) ? tmpAltText = ' alt="'+imageSet[x][2]+'"' : tmpAltText = ' alt="'+imageSet[x][5]+'"';
					tmpAText += ">";
					document.write(tmpAText+'<img name="autoDrawn'+imageSet[x][3]+'" src='+imageRootPath+imageSet[x][3]+'Off.'+imageType+ ' border="0" '+tmpAltText+'></a>');
				*/
			}else{
				tmpAText += '<a href="'+imageSet[x][2]+'"';
				if ( eval("menu"+(x+1)+".length") > 0 ){
					tmpAText += '<a href="'+imageSet[x][2]+'"';
					tmpAText += ' onMouseOver="dropdownmenu(this, event, menu'+(x+1)+', \'205px\');"';
					tmpAText += ' onMouseOut="dynamichide(event)"';
					( !imageSet[x][5] || imageSet[x][5] == "" ) ? tmpAltText = ' alt="'+imageSet[x][2]+'"' : tmpAltText = ' alt="'+imageSet[x][5]+'"';
					tmpAText += ">";
					document.write(tmpAText+'<img name="autoDrawn'+imageSet[x][3]+'" src='+imageRootPath+imageSet[x][3]+'Home.'+imageType+ ' border="0" '+tmpAltText+'></a>');
				}
				else{
					( !imageSet[x][5] || imageSet[x][5] == "" ) ? tmpAltText = ' alt="'+imageSet[x][2]+'"' : tmpAltText = ' alt="'+imageSet[x][5]+'"';
					document.write('<img src="'+imageRootPath+imageSet[x][3]+'Home.'+imageType+'" border="0" '+tmpAltText+'>');
				}
				/*
				( !imageSet[x][5] || imageSet[x][5] == "" ) ? tmpAltText = ' alt="'+imageSet[x][2]+'"' : tmpAltText = ' alt="'+imageSet[x][5]+'"';
				if (imageSet[x][4].toLowerCase().indexOf("x") > -1)
				{document.write('<a href="/" onMouseOver="dropdownmenu(this, event, menu'+(x+1)+', \'205px\')" ><img src="'+imageRootPath+imageSet[x][3]+'Home.'+imageType+'" border="0" >');}
				else
				{document.write('<img src="'+imageRootPath+imageSet[x][3]+'Home.'+imageType+'" border="0" '+tmpAltText+'>');}
				*/
			}
		}else{
			( !imageSet[x][2] || imageSet[x][2] == "" ) ? tmpAltText = ' alt="'+imageSet[x][1]+'"' : tmpAltText = ' alt="'+imageSet[x][2]+'"';
			document.write('<img src="'+imageRootPath+imageSet[x][1]+'" border="0"  '+tmpAltText+'>');
		}
		document.write('</td>');
	}
	document.write('</tr></table>');
}

for( x=0; x < navArray.length; x++){
	if ( navArray[x][0].toLowerCase() == "nav" ){
		createImageObject(navArray[x][3]+"Off");
		if(navArray[x][4].toLowerCase().indexOf("o") > -1 ) createImageObject(navArray[x][3]+"Over");
		if(navArray[x][4].toLowerCase().indexOf("x") > -1 ) createImageObject(navArray[x][3]+"Over");
		if(navArray[x][4].toLowerCase().indexOf("d") > -1 ) createImageObject(navArray[x][3]+"Down");
	}
}


/***********************************************
* 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 menu1=new Array()


//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="servicesByParish.php">Services by Parish</a>';
menu2[1]='<a href="senioRx.php">SenioRx</a>';
menu2[2]='<a href="legal.php">Legal Services</a>';
menu2[3]='<a href="adrc.php">Aging and Disability Resource Center</a>';
menu2[4]='<a href="caregiverRespite.php">Caregiver Respite Services</a>';
menu2[5]='<a href="laOmbudsmen.php">Long Term Care Ombudsman</a>';
 

//Contents for menu 3, and so on
var menu3=new Array()

//Contents for menu 4, and so on
var menu4=new Array()

//Contents for menu 5, and so on
var menu5=new Array()


var menuwidth='185px' //default menu width
var menubgcolor='#FDFDF3'  //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,parentImage){
	//alert(obj+"-"+e+"-"+menucontents+"-"+menuwidth+"-"+parentImage);
	//return;
	if (typeof(parentImage) != "undefined") eval("autoDrawn"+parentImage+".src = " + parentImage + "Over.src");
	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,parentImage){
	if (typeof(parentImage) != "undefined") eval("autoDrawn"+parentImage+".src = " + parentImage + "Off.src");
	if (ie4&&!dropmenuobj.contains(e.toElement)){
		if (typeof(parentImage) != "undefined") eval("autoDrawn"+parentImage+".src = " + parentImage + "Off.src");
		delayhidemenu()
	}
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)){
		if (typeof(parentImage) != "undefined") eval("autoDrawn"+parentImage+".src = " + parentImage + "Off.src");
		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

function parishes()
{
	
		document.write('<div align="center">&nbsp;<br /><a href="');
			document.write('ascension.php" class="bodyStyle">Ascension</a> | <a href="'); 
			document.write('assumption.php" class="bodyStyle">Assumption</a> | <a href="');
			document.write('eastBR.php" class="bodyStyle">East&nbsp;Baton&nbsp;Rouge</a> | <a href="');
			document.write('eastFeliciana.php" class="bodyStyle">East&nbsp;Feliciana</a> | <a href="');
			document.write('iberville.php" class="bodyStyle">Iberville</a> | <a href="');
			document.write('lafourche.php" class="bodyStyle">Lafourche</a> | <a href="');
			document.write('livingston.php" class="bodyStyle">Livingston</a> | <a href="');
			document.write('pointeCoupee.php" class="bodyStyle">Point&nbsp;Coupee</a> | <a href="');
			document.write('stCharles.php" class="bodyStyle">St.&nbsp;Charles</a> | <a href="');
			document.write('stHelena.php" class="bodyStyle">St.&nbsp;Helena</a> | <a href="');
			document.write('stJames.php" class="bodyStyle">St.&nbsp;James</a> | <a href="');
			document.write('stJohn.php" class="bodyStyle">St.&nbsp;John</a> | <a href="');
			document.write('stTammany.php" class="bodyStyle">St.&nbsp;Tammany</a> | <a href="');
			document.write('tangipahoa.php" class="bodyStyle">Tangipahoa</a> | <a href="');
			document.write('terrebonne.php" class="bodyStyle">Terrebonne</a> | <a href="');
			document.write('washington.php" class="bodyStyle">Washington</a> | <a href="');
			document.write('westBR.php" class="bodyStyle">West&nbsp;Baton&nbsp;Rouge</a> | <a href="');
			document.write('westFeliciana.php" class="bodyStyle">West&nbsp;Feliciana</a></div>');
		document.write('<p />');
}	
		

function footer()
{
	var today=new Date();
	var nyear=today.getYear();
	
	if (nyear<=99)
  	nyear= "19"+nyear;

	if ((nyear>99) && (nyear<2000))
 	nyear+=1900;	
		
		
		document.write('<br />');
		document.write('copyright &copy; ');
		document.write(nyear);
		document.write(' Capital Area Agency on Aging<br />&nbsp;');
		document.write('');
}

function leftADRC()
{
	document.write('<div class=\'subheader\'>Aging and Disability Resource Center</div><br />');
	document.write('<a href=\'adrc.php\' alt=\'Aging and Disability Resource Center\'><img src=\'http://www.capitalaaa.org/images/laAnswersLogoSmall.gif\' align=\'right\' border=\'0\' alt=\'LA Answers Program\' /></a>The <a href=\'adrc.php\'>Aging and Disability Resource Center</a> offers a "one-stop-shop" for public and private programs at the community level that will help individuals make informed decisions about their service and support options.<p />');
	document.write('<a href=\'adrc.php\'>Click here for more info</a>...');
}

function leftEPS()
{
	document.write('<div class=\'subheader\'>Elderly Protective Services</div><br />');
	document.write('<a href=\'elderlyProtective.php\' alt=\'Elderly Protective Services\'><img src=\'http://www.capitalaaa.org/images/epsLogoSmall.gif\' align=\'right\' border=\'0\' alt=\'Elderly Protective Services\' /></a>Seeks to remedy and prevent abuse and neglect of an elder adult in the community, while promoting the maximum possible degree of independence for the individual. <p />');
	document.write('<a href=\'elderlyProtective.php\'>Click here for more info</a>...');
}

function leftSenioRx()
{
	document.write('<div class=\'subheader\'>Louisiana SenioRx Program</div><br />');
	document.write('<a href=\'senioRx.php\'><img src=\'http://www.capitalaaa.org/images/senioRxSmall.gif\' align=\'right\' border=\'0\' alt=\'SenioRx Program\' /></a> Qualified, low-income people are connected with discount prescription drugs, direct from the pharmaceutical manufacturer.<p />');
	document.write('<a href=\'senioRx.php\'>Click here for more info</a>...');
}

function leftSeniorRelief()
{
	document.write('<div class=\'subheader\'>Louisiana Senior Relief Program</div><br />');
	document.write('<a href=\'seniorRelief.php\'><img src=\'http://www.capitalaaa.org/images/seniorReliefSmall.gif\' align=\'right\' border=\'0\' alt=\'Senior Relief Program\' /></a>Capital Area Agency on Aging with the support of The Governor\'s Office of Elderly Affairs is pleased to offer assistance to any Louisiana senior resident directly impacted by declared disasters, most recently Hurricanes Katrina and/or Rita.<p />');
	document.write('<a href=\'seniorRelief.php\'>Click here for more info</a>...');
}

function spawnWindow( width, height, location )
{
		var thePropertiesString = "";
		thePropertiesString += "menu=no,";
		thePropertiesString += "address=no,";
		thePropertiesString += "height=" + height + ",";
		thePropertiesString += "width=" + width;

		window.open( location , "Gallery" , thePropertiesString );
}
//-->