// Store the date in a variable
d = new Date()
dateText = ""

// Get the current year; if it's before 2000, add 1900
if (d.getYear() < 2000) 
    year = (1900 + d.getYear())
else 
    year = (d.getYear())
	
dateText += year

// Set up the image files to be used.
var theImages = new Array() 
// do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'hp_main1.jpg'
theImages[1] = 'hp_main2.jpg'
theImages[2] = 'hp_main3.jpg'
theImages[3] = 'hp_main4.jpg'
theImages[4] = 'hp_main5.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="images/'+theImages[whichImage]+'" width=350 height=144>');
}