

var theImages = new Array() 
theImages[0] = './graphics/image4.jpg'
theImages[1] = './graphics/image8.jpg'
theImages[2] = './graphics/image3.jpg'
theImages[3] = './graphics/image7.jpg'
theImages[4] = './graphics/image5.jpg'
theImages[5] = './graphics/image6.jpg'
theImages[6] = './graphics/image1.jpg'
theImages[7] = './graphics/image2.jpg'


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]+'" border="0">');
}