// JavaScript Document
if (document.images) {

	//precache all 'off' button images
	var offImgArray = new Array();
	offImgArray["home"] = new Image(96,21);
	offImgArray["back"] = new Image(132,21);
	offImgArray["description"] = new Image(180,21);
	offImgArray["times"] = new Image(214,21);
	offImgArray["contact"] = new Image(103,21);
	
	//off image array - - set 'off' image path for each button
	offImgArray["home"].src = "images/home.jpg";
	offImgArray["back"].src = "images/back.jpg";
	offImgArray["description"].src = "images/description.jpg";
	offImgArray["times"].src = "images/times.jpg";
	offImgArray["contact"].src = "images/contact.jpg";

	//precache all 'on' button images
	var onImgArray = new Array();
	onImgArray["home"] = new Image(96,21);
	onImgArray["back"] = new Image(132,21);
	onImgArray["description"] = new Image(180,21);
	onImgArray["times"] = new Image(214,21);
	onImgArray["contact"] = new Image(103,21);
	

	//on image array - - set 'on' image path for each button
	onImgArray["home"].src = "images/homeOn.jpg";
	onImgArray["back"].src = "images/backOn.jpg";
	onImgArray["description"].src = "images/descriptionOn.jpg";
	onImgArray["times"].src = "images/timesOn.jpg";
	onImgArray["contact"].src = "images/contactOn.jpg";
	
}
// functions that swap images 
function imageOn(imgName) {
	if (document.images) {
	   document.images[imgName].src = onImgArray[imgName].src;
	}
}

function imageOff(imgName) {
	if (document.images) {
	   document.images[imgName].src = offImgArray[imgName].src;
	}
}