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

var imageRootPath = "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","main","index.php","navMain","O","Home Page"],
	["nav","about","about.php","navAbout","O","About Moreau PT"],
	["nav","staff","staff.php","navStaff","x","Our Staff"],
	["nav","programs","programs.php","navPrograms","x","Programs"],
	["nav","patientInfo","patientInfo.php","navPatientInfo","x","Patient Info"],
	["nav","locations","locations.php","navLocations","x","Locations"],

	// 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" border="0" class="navigation"><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)+', \'125px\',\''+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>');
				//if(imageSet[x][3] == "navDesign") alert(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)+', \'125px\',\'ignore\');"';
					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>');
					//if(imageSet[x][3] == "navDesign") alert(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="about.php">About Moreau PT</a>'
menu2[1]='<a href="philosophy.php">Philosophy</a>'
menu2[2]='<a href="contactUs.php">Contact Us</a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="alMoreauJr.php">Al Moreau, Jr.</a>'
menu3[1]='<a href="alMoreauIII.php">Al Moreau, III</a>'
menu3[2]='<a href="cristinaFaucheux.php">Christina Martinez Faucheux</a>'
menu3[3]='<a href="staff.php">All</a>'
//menu3[2]='<a href="ashley.php">Ashley</a>'
//menu3[3]='<a href="caroline.php">Caroline</a>'
//menu3[4]='<a href="jennyC.php">Jenny C</a>'
//menu3[5]='<a href="jennyI.php">Jenny I</a>'
//menu3[6]='<a href="jonathan.php">Jonathan</a>'
//menu3[7]='<a href="rachelle.php">Rachelle</a>'
//menu3[8]='<a href="laKoya.php">LaKoya</a>'
//menu3[9]='<a href="sarah.php">Sarah</a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="industrial.php">Industrial Medicine</a>'
menu4[1]='<a href="aquatic.php">Aquatic Therapy</a>'

//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="forms.php">Patient Forms</a>'
menu5[1]='<a href="insurance.php">Insurance List</a>'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="zachary.php">Zachary</a>'
menu6[1]='<a href="central.php">Central</a>'
menu6[2]='<a href="batonRouge.php">Baton Rouge</a>'
menu6[3]='<a href="portBarre.php">Port Barre</a>'
menu6[4]='<a href="opelousas.php">Opelousas</a>'
menu6[5]='<a href="gp-port-hudson.php">Georgia-Pacific/Port Hudson</a>'


var menuwidth='125px' //default menu width
var menubgcolor='#DFDFDF'  //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

var triggerImage = "";
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"){
		triggerImage = parentImage;
		if( parentImage != "ignore") eval("document.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){
	//alert(triggerImage);
	if (typeof(triggerImage) != "undefined" && triggerImage != "ignore") eval("document.autoDrawn"+triggerImage+".src = " + triggerImage + "Off.src");
	if (ie4&&!dropmenuobj.contains(e.toElement)){
		if (typeof(triggerImage) != "undefined" && triggerImage != "ignore") eval("document.autoDrawn"+triggerImage+".src = " + triggerImage + "Off.src");
		delayhidemenu()
	}
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)){
		if (typeof(triggerImage) != "undefined" && triggerImage != "ignore") eval("document.autoDrawn"+triggerImage+".src = " + triggerImage + "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

//-->