<!-- //This script swaps the main image on the page each time the page is refreshed -->
var images = new Array() 
images[0] = 'home_photo1.jpg'
images[1] = 'home_photo2.jpg'
images[2] = 'home_photo3.jpg'
images[3] = 'home_photo4.jpg'

var i = 0;
var p = images.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = images[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
	document.write('<img src="images/'+images[whichImage]+'" width="365" height="273" border="0" alt="">');
}

<!-- //This script controls the rollovers for the navigation -->
function swap (name,over)
{
	if(window.document.images) {
		if (over)
			window.document.images[name].src = "images/" + name + "_on.gif";
		else
			window.document.images[name].src = "images/" + name + ".gif";
	}
}

