var theImages = new Array()

theImages[0] = 'graphics/random/th_bellapais_abbey.jpg'
theImages[1] = 'graphics/random/th_lofou_school.jpg'
theImages[2] = 'graphics/random/th_sunset.jpg'
theImages[3] = 'graphics/random/th_donkey.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]+'">');
}
