var theImages = new Array()

theImages[0] = 'home_pic_01.jpg'
theImages[1] = 'home_pic_02.jpg'
theImages[2] = 'home_pic_03.jpg'
theImages[3] = 'home_pic_04.jpg'
theImages[4] = 'home_pic_05.jpg'
theImages[5] = 'home_pic_06.jpg'
theImages[6] = 'home_pic_07.jpg'
theImages[7] = 'home_pic_08.jpg'
theImages[8] = 'home_pic_09.jpg'
theImages[9] = 'home_pic_10.jpg'
theImages[10] = 'home_pic_11.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="image/'+theImages[whichImage]+'">');
}
