

var theImages = new Array()


theImages[0] = 'pic00.jpg'
theImages[1] = 'pic01.jpg'
theImages[2] = 'pic02.jpg'
theImages[3] = 'pic03.jpg'
theImages[4] = 'pic04.jpg'
theImages[5] = 'pic05.jpg'
theImages[6] = 'pic06.jpg'
theImages[7] = 'pic07.jpg'
theImages[8] = 'pic08.jpg'
theImages[9] = 'pic09.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]+'">');
}

