//Rollover code to switch button images
// define the image variables and preload the images
//Written completely by Michael Henderson. If used, please give credit to where it is due

var imageURL = new Array("images/buttons/btnHome.gif", "images/buttons/btnhomehover.gif",
							"images/buttons/btnServ.gif","images/buttons/btnServhover.gif",
							"images/buttons/btnAppn.gif","images/buttons/btnAppnhover.gif",
							"images/buttons/btnAbout.gif","images/buttons/btnAbouthover.gif");

var imageInfo = new Array();

for(i=0;i<imageURL.length;i++)
{
	imageInfo[i] = new Image();
	imageInfo[i].src = imageURL[i];
}


// define the rollon and rolloff() functions
function rollon(xid,tagid)
{
	document.getElementById(tagid).src = eval("imageInfo['"+xid+"'].src");
}
function rolloff(xid,tagid)
{
	document.getElementById(tagid).src = eval("imageInfo['"+xid+"'].src");	
} 
