var theImages1 = new Array()

theImages1[0] = 'shared/images/frontImage1.jpg'
theImages1[1] = 'shared/images/frontImage2.jpg'
theImages1[2] = 'shared/images/frontImage3.jpg'
theImages1[3] = 'shared/images/frontImage4.jpg'
theImages1[4] = 'shared/images/frontImage5.jpg'
theImages1[5] = 'shared/images/frontImage6.jpg'


var j = 0
var p = theImages1.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages1[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage1(){
document.write('<img src="'+theImages1[whichImage]+'">');
}



