function doRollOver(elem,n)
{elem.src = theIms[n].src;
  if(lastSubMenu != 0) 
 	{if(lastSubMenu == "3") {the12Close = "subMenu"}else{the12Close = "subMenu1"};
	 document.getElementById(the12Close).style.visibility = "hidden";
	}
  if(theSubs[elem.id] != 0)
 	{if(elem.id == "Testing") {the12Open = "subMenu"}else{the12Open = "subMenu1"};
	 document.getElementById(the12Open).style.visibility = "visible";lastSubMenu = theSubs[elem.id];
	}

}
function doHiliteSub(elem)
	{elem.style.backgroundColor = "#ffffff";elem.style.color = "#9A3187";}
function  doUnhiliteSub(elem)
	{elem.style.backgroundColor = "#eeddeb";elem.style.color = "#3f78b3";}
function doMenu(action)
{window.location = menuActions[action];}

 function whoAmI(val)
		{if(val <= 5){var thePage = "center"+val.toString(10)+".cfm";}else{var thePage="services"+val.toString(10)+".cfm";}window.location=thePage;}
function doHilite(elem)
	{if (lastmenu != 0 && lastmenu.className != "theOne")
		{lastmenu.style.color = "#3f78b3";}
		lastmenu=elem;elem.style.color = "#9A3187";
	 if(lastSubMenu != 0) 
	 	{the12Close = "subMenu"
		 document.getElementById(the12Close).style.visibility = "hidden";
		}
	 if(theSubs[elem.innerHTML] != 0)
	 	{the12Open = "subMenu";
		 document.getElementById(the12Open).style.visibility = "visible";lastSubMenu = theSubs[elem.innerHTML];
		}
	}
function servicesRollover(elem,n)
	{elem.style.backgroundColor = "#c182b7";var theData= theServices[n][1];
	 var theItem2Display = "data1";
	 document.getElementById(theItem2Display).innerHTML = elem.innerHTML;
	 var theItem2Display = "data2";
	 document.getElementById(theItem2Display).innerHTML = theServices[n][1];
	 document.getElementById(theItem2Display).style.background = "url("+extraImages[n % 11]+") no-repeat center center"
	}
var lastElem = "";
function linkRollover(elem,n)
	{if (lastElem != ""){lastElem.style.backgroundColor = "#f4e3ef";}
	 lastElem = elem;
	 elem.style.backgroundColor = "#c182b7";var theData= theServices[n][1];
	 var theItem2Display = "data1";
	 document.getElementById(theItem2Display).innerHTML = elem.innerHTML;
	 var theItem2Display = "data2";
	 document.getElementById(theItem2Display).innerHTML = theServices[n][1];
	 document.getElementById(theItem2Display).style.background = "url("+extraImages[n % 11]+") no-repeat center center";
	}
function servicesRollOut(elem,n)
	{if (lastElem != ""){lastElem.style.backgroundColor = "#f4e3ef"; lastElem = "";}
	 elem.style.backgroundColor = "#f4e3ef";var theItem2Display = "data1";
	 document.getElementById(theItem2Display).innerHTML= document.getElementById("newsHeading").innerHTML;
	  var theItem2Display = "data2";
	 document.getElementById(theItem2Display).innerHTML = theServices[n][1];
	 document.getElementById(theItem2Display).style.background = "url("+extraImages[1]+") no-repeat center center"
	}

function printMap(n)
	{window.location = "printCenter"+n.toString(10)+".htm";}

function teamRollover(elem)
{elem.style.backgroundColor = "#c182b7";var elem1 = elem.id+'0';document.getElementById(elem1).style.backgroundColor = "#c182b7";
 if (lastElem != "" && lastElem != elem){lastElem.style.backgroundColor = "#f4e3ef";var elem1 = lastElem.id+'0';document.getElementById(elem1).style.backgroundColor = "#f4e3ef";}
 lastElem = elem;
 var theTeamData = '<table cellpadding="0" cellspacing="0" style="margin-left:0px;margin-top:0px;width:100%;">';
 document.getElementById("data1").innerHTML = theTeam[elem.id][1];
 if(!document.all)
 {theTeamData += '<tr><td valign="top" style="padding-right:0px;width:120px;padding-top:12px;"><img id="theLTeamMember" width="100" height="133" align="top" vspace="0" /></td>';
 theTeamData += '<td style="padding-right:20px;text-align:left;"><p class="mainBodyTeam">'+theTeam[elem.id][2]+'</p></td>'
 }
 else
 {theTeamData += '<tr><td valign="top" style="padding-right:00px;width:120px;padding-top:12px;"><img id="theLTeamMember" width="100" height="133" align="top" vspace="0" hspace="0" /></td>';
 theTeamData += '<td style="padding-left:0px;padding-right:20px;padding-top:8px;text-align:left;"><p class="mainBodyTeam" style="line-height:120%;">'+theTeam[elem.id][2]+'</p></td>'
 }
 theTeamData += '</tr></table>'
 document.getElementById("data2").innerHTML = theTeamData;document.getElementById("data2").style.background = "#ffffff";
 document.getElementById("theLTeamMember").src = theImages[elem.id].src
}
function teamRollOut(elem)
{if (lastElem != ""){lastElem.style.backgroundColor = "#f4e3ef";var elem1 = lastElem.id+'0';document.getElementById(elem1).style.backgroundColor = "#f4e3ef";} lastElem = "";
 document.getElementById("data1").innerHTML = "About Us";
 document.getElementById("data2").innerHTML = theTeam["Default"][2];
 document.getElementById("data2").style.background = "url(Images/Services/newSubImages/function_image1.jpg) no-repeat top left";
 }
function doLink(theLink)
{window.open("http://"+theLink,"theLink");}
function doSend()
{var errMess = ""
 var errMesses = "You must enter your name\n,You must enter your address\n,You must enter the Post Code\n,You must enter a contact number".split(",");
 var textFields2Check ="theName,address,thePCode,theTelHome".split(",")
 for(var i = 0;i < textFields2Check.length;i++)
	{if(document.getElementById(textFields2Check[i]).value == ""){errMess += errMesses[i]}}
 if(errMess != ""){alert(errMess);return}
document.forms.theData.submit();
}