<!-- Hide from old browsers


onimage = new Array(5);
offimage = new Array(5);
loadedimg = new Array(5);

var rollovers_loaded = "no";

for (var i=0; i < 6; i++){
	onimage[i] = new Image();
	offimage[i] = new Image();
	loadedimg[i] = "FALSE";
	}

function onload_images(){

	if(rollovers_loaded == "no"){
				
		offimage[0].src = "HomeButton2.gif";
		onimage[0].src = "HomeButton.gif";
		loadedimg[0] = "TRUE";

		offimage[1].src = "FacilitiesButton2.gif";
		onimage[1].src = "FacilitiesButton.gif";
		loadedimg[1] = "TRUE";

		offimage[2].src = "ActivitiesButton2.gif";
		onimage[2].src = "ActivitiesButton.gif";
		loadedimg[2] = "TRUE";

		offimage[3].src = "StaffButton2.gif";
		onimage[3].src = "StaffButton.gif";
		loadedimg[3] = "TRUE";

		offimage[4].src = "RatesButton2.gif";
		onimage[4].src = "RatesButton.gif";
		loadedimg[4] = "TRUE";

		offimage[5].src = "ContactButton2.gif";
		onimage[5].src = "ContactButton.gif";
		loadedimg[5] = "TRUE";

		rollovers_loaded = "yes";
		}

}

function rotateimg(imgname, imgnum, onoff){

	// if all images are loaded then its all good
	if(rollovers_loaded == "yes"){

		if(onoff == 0){
			document.images[imgname].src = offimage[imgnum].src;
			}
		else if(onoff == 1){
			document.images[imgname].src = onimage[imgnum].src;
			}

		
		}

	// if only some images are loaded, lets see if our image is loaded
	else if(loadedimg[imgnum] == "TRUE"){

		if(onoff == 0){
			document.images[imgname].src = offimage[imgnum].src;
			}
		else if(onoff == 1){
			document.images[imgname].src = onimage[imgnum].src;
			}
		
		}
		
}

// -->