// the following line sets the image array for use, do not change it
var theImages = new Array()

// set the path to your images
theImages[0] = 'images/Home/Homepage1.jpg'
theImages[1] = 'images/Home/Homepage2.jpg'
theImages[2] = 'images/Home/Homepage3.jpg'
theImages[3] = 'images/Home/Homepage4.jpg'
theImages[4] = 'images/Home/Homepage5.jpg'

// to add more images continue with the pattern above

// do not edit the following 
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="'+theImages[whichImage]+'">');
}
