var theImages = new Array() 

theImages[0] = 'images_376/brutus.jpg'
theImages[1] = 'images_376/brutus-cassius.jpg'
theImages[2] = 'images_376/brutus-messala.jpg'
theImages[3] = 'images_376/caesar.jpg'
theImages[4] = 'images_376/caesar-brutus.jpg'
theImages[5] = 'images_376/caesar-calpurnia.jpg'
theImages[6] = 'images_376/caesar-calpurnia-2.jpg'
theImages[7] = 'images_376/calpurnia.jpg'
theImages[8] = 'images_376/octavius.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]+'">');
}