/* RULES ----
1) All image files must have "nav_" prefix and rollover versions must have a "_roll" suffix (ex. "nav_contactus_roll.gif")
2) Be sure to set "button_file_type" to "gif" or "jpg" based on your files
3) Images must be in "images" directory
4) Image tags need to have names that are unique from button object names
*/

var buttons = ['about','contact','home','lifttrucks','shelving','shipping']; /* button object names */
var button_file_type = 'gif'; /* set file type here */

/* No need to modify the following code */
for (i = 0; i < buttons.length; i++) {
	eval("var " + buttons[i] + " = new Image();");
	eval(buttons[i] + ".src = 'images/nav_" + buttons[i] + "." + button_file_type + "';");
	eval("var " + buttons[i] + "_roll = new Image();");
	eval(buttons[i] + "_roll.src = 'images/nav_" + buttons[i] + "_roll." + button_file_type + "';");
}

function switchon(x,y) {
	document.images[x].src = y.src
}

function switchoff(x,y) {
	document.images[x].src = y.src
}