var buttonFolder = "/Include/Images/buttons/";
var upSources, overSources;
totalButtons = (upSources ? upSources.length : 0);

// PRELOAD MAIN MENU BUTTON IMAGES
function preload() {
	for (x = 0 ; x < totalButtons ; x++) 
	{
		buttonUp = new Image();
		buttonUp.src = buttonFolder + upSources[x];
		buttonOver = new Image();
		buttonOver.src = buttonFolder + overSources[x];
	}
}
preload();

// SET MOUSEOVER BUTTON
function setOverImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + overSources[But-1];
}

// SET MOUSEOUT BUTTON
function setOutImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + upSources[But-1];
}