var theImages = new Array()

theImages[0] = 'assets/img/bigpic01.jpg'
theImages[1] = 'assets/img/bigpic02.jpg'
theImages[2] = 'assets/img/bigpic03.jpg'
theImages[3] = 'assets/img/bigpic04.jpg'
theImages[4] = 'assets/img/bigpic05.jpg'
theImages[5] = 'assets/img/bigpic06.jpg'
theImages[6] = 'assets/img/bigpic07.jpg'
theImages[7] = 'assets/img/bigpic08.jpg'
theImages[8] = 'assets/img/bigpic09.jpg'
theImages[8] = 'assets/img/bigpic10.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]+'">');
}
