/* Arrays for the images */

var homeA = new Array("/images/home/photos_1a.jpg", 
				  	  			 "/images/home/photos_1b.jpg",
				  	  			 "/images/home/photos_1c.jpg",
				  	  			 "/images/home/photos_1d.jpg",
				  	  			"/images/home/photos_1e.jpg");
				  	  			 
 
var homeB = new Array("images/home/photos_2a.jpg", 
				  	  			 "/images/home/photos_2b.jpg",
				  	  			 "/images/home/photos_2c.jpg",
				  	  			 "/images/home/photos_2d.jpg",
				  	  			"/images/home/photos_2e.jpg");
				  	  			 
var homeC = new Array("/images/home/photos_3a.jpg", 
				  	  			 "/images/home/photos_3b.jpg",
				  	  			 "/images/home/photos_3c.jpg",
				  	  			 "/images/home/photos_3d.jpg",
				  	  			"/images/home/photos_3e.jpg");
				  	  			 


/* function to get a random number */

function random(){
	random.seed = (random.seed*random.a + random.c) % random.m;
	return random.seed/ random.m;
}
random.m = 714025; random.a = 4096; random.c = 150889;
random.seed = (new Date()).getTime()%random.m;


/* maximum number of items in array [0-n] */

max = 4

/* variables for determining the image */

var number1 = Math.round(random()*max);

var number2 = Math.round(random()*max);

var number3 = Math.round(random()*max);

	

/* funtions which write HTML to the page */

function showImage1() {
	document.write('<IMG SRC="' + homeA[number1] + '" WIDTH="157" HEIGHT="81" LOWSRC="/images/home/FFFFFF.gif">');
}

function showImage2() {
	document.write('<IMG SRC="' + homeB[number2] + '" WIDTH="157" HEIGHT="81" LOWSRC="/images/home/FFFFFF.gif">');
}

function showImage3() {
	document.write('<IMG SRC="' + homeC[number3] + '" WIDTH="157" HEIGHT="81" LOWSRC="/images/home/FFFFFF.gif">');
}



function handleResize(){
        self.location.reload();
}
