/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder_obionnew = "buttons/";

/*** SET BUTTONS' FILENAMES HERE ***/
upSources_obionnew = new Array("button1up_obionnew.png","button2up_obionnew.png","button3up_obionnew.png","button4up_obionnew.png","button5up_obionnew.png","button6up_obionnew.png","button7up_obionnew.png","button8up_obionnew.png");

overSources_obionnew = new Array("button1over_obionnew.png","button2over_obionnew.png","button3over_obionnew.png","button4over_obionnew.png","button5over_obionnew.png","button6over_obionnew.png","button7over_obionnew.png","button8over_obionnew.png");


//*** NO MORE SETTINGS BEYOND THIS POINT ***//
totalButtons_obionnew = upSources_obionnew.length;



//*** MAIN BUTTONS FUNCTIONS ***//
// PRELOAD MAIN MENU BUTTON IMAGES
function preload_obionnew() {
	for ( x=0; x<totalButtons_obionnew; x++ ) {
		buttonUp_obionnew = new Image();
		buttonUp_obionnew.src = buttonFolder_obionnew + upSources_obionnew[x];
		buttonOver_obionnew = new Image();
		buttonOver_obionnew.src = buttonFolder_obionnew + overSources_obionnew[x];
	}
}

// SET MOUSEOVER BUTTON
function setOverImg_obionnew(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder_obionnew + overSources_obionnew[But-1];
}

// SET MOUSEOUT BUTTON
function setOutImg_obionnew(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder_obionnew + upSources_obionnew[But-1];
}


//preload_obionnew();
