// JavaScript Document


//Preloader Code for the navigation rollover buttons:

var preloader = new Array(); //an array to preload the files

//initialize each array element with an empty object
for (var i = 0; i < 6; i++) {
	preloader[i] = new Image();
}

//initialize the src property to an image filename for each element
for (var i = 0; i < 6; i++) {
	preloader[i].src = "../images/button" + (i+1) + ".jpg";
}

//Image rollover code for navigation buttons:
function changeButton(name, file) {
	if (document.images[name]){
		document.images[name].src = file;
	}
}
