var buttonIndex = new String("");

var buttonArray = new Array ();

buttonArray [0] = new Array ();

buttonArray [1] = new Array ();

buttonArray [2] = new Array ();


function buttonSrc(){

for (i=0; i<=4; i++) {

	if (i != activePage) {stat = 0;} else {stat = 1;}

	bStart = eval('document.b_' + buttonNameArray[i] + i);

	bStart.src = buttonArray [stat][i].src;

				}

}



function F_roll(buttonName,status) {

	buttonIndex = buttonName.substring(buttonName.length-1,buttonName.length);

	if (document.images) {

			if (parseInt(buttonIndex) == activePage && status == 0){} else {

	rollButton = eval('document.b_' + buttonName);

	rollButton.src = buttonArray[status][buttonIndex].src;

																			}

	if (document.ey_bolt){

	if (status == 1) {document.ey_bolt.src = y_b.src;}

	if (status == 0) {document.ey_bolt.src = "images/clear.gif";}

												}

	if (window.event) window.event.cancelBubble = true;

						}

}