// RANDOM IMAGE FUNCTION

var theImages = new Array()

theImages[0] = 'images/indexSHOT_01.jpg'
theImages[1] = 'images/indexSHOT_02.jpg'
theImages[2] = 'images/indexSHOT_03.jpg'
theImages[3] = 'images/indexSHOT_04.jpg'
theImages[4] = 'images/indexSHOT_05.jpg'
theImages[5] = 'images/indexSHOT_06.jpg'
theImages[6] = 'images/indexSHOT_07.jpg'
theImages[7] = 'images/indexSHOT_08.jpg'
theImages[8] = 'images/indexSHOT_09.jpg'
theImages[9] = 'images/indexSHOT_10.jpg'
theImages[10] = 'images/indexSHOT_11.jpg'
theImages[11] = 'images/indexSHOT_12.jpg'

// do not edit anything below this line

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]+'">');
}
