function preLoad() {
if(document.images) {
if(!document.imageArray) {
document.imageArray=new Array();
var i = document.imageArray.length;
var a = preLoad.arguments;
for(i=0; i<a.length; i++) {
document.imageArray[i] = new Image;
document.imageArray[i].src=a[i];
}
}
}
}


var nav = new Array();

nav[0] = new Array();
//this value is the link for the nav item
nav[0][0] = "../index.php";
//this value is the name of the first image, the "off" image
nav[0][1] = "nav1Home";
//this value is the width of the image
nav[0][2] = "57";
//height of the image
nav[0][3] = "14";
//alt tag for image
nav[0][4] = "Home";

nav[1] = new Array();
nav[1][0] = "../whoweare.html";
nav[1][1] = "nav1Who";
nav[1][2] = "96";
nav[1][3] = "14";
nav[1][4] = "Who We Are";

nav[2] = new Array();
nav[2][0] = "../ourservices.html";
nav[2][1] = "nav1Ourservices";
nav[2][2] = "102";
nav[2][3] = "14";
nav[2][4] = "Our Services";




function swapImage(imgName, fileName) {


if(document.images) {
var imgToChange="document." + imgName;
imgToChange=eval(imgToChange);
imgToChange.src=fileName;
}
}






var navBar = "";

function topNav(currentPage) {
for (i = 0; i < nav.length; i++) {
if(i == currentPage)
{
picSrc = '../images/' + nav[i][1] + '_on.gif';
}
else
{
picSrc = '../images/' + nav[i][1] + '.gif';
}

navBar += '<td><a href="' + nav[i][0] + '" onMouseOver="swapImage(\'' + nav[i][1] + '\',\'../images/' + nav[i][1] + '_on.gif\');" onMouseOut="swapImage(\'' + nav[i][1] + '\',\'' + picSrc + '\');"><img src="' + picSrc + '" width="' + nav[i][2] + '"height="' + nav[i][3] + '" border="0" alt="' + nav[i][4] + '" name="' + nav[i][1] + '" /></a></td>';
}
//alert(navBar);
document.write(navBar);
} 


preLoad('../images/nav1-home_on.gif','imagesnav1-who_on.gif','../images/nav1-ourservices_on.gif');