// ROLLOVER VARIABLES BELOW

// ok will become true once the rollover images are loaded
// it will also determine if the browser supports the images array
// if the browser does not support the array, ok will remain flase
var ok = false;


// ROLLOVER CODE BELOW

// load images for the rollovers as the page is loading
if (document.images) {

	var names = new Array(11);
		names[0] = "logo";
		names[1] = "slice1";
		names[2] = "slice2";
		names[3] = "slice4";
		names[4] = "slice5";
		names[5] = "slice6";
		names[6] = "slice7";
		names[7] = "slice8";
		names[8] = "slice9";
		names[9] = "side1";
		names[10] = "side1a";


	var button_on = new Array(11);
	var button_off = new Array(11);

	for (var i=0; i<11; i++) {
		button_on[i] = new Image();
		button_on[i].src = "/img/r_" + names[i] + "_a.gif";

		button_off[i] = new Image();
		button_off[i].src = "/img/r_" + names[i] + ".gif";
	}
	ok = true;
}


// turns the rollover images "on"
function switchOn(num) {

// switch the images "on"
	document.images[names[num]].src = button_on[num].src;
}

// turns the rollover images "off"
function switchOff(num) {

// switch the images "off"
	document.images[names[num]].src = button_off[num].src;
}
