var theImages = new Array() //
theImages[0] = 'images/rotating/index-thumb24.jpg'
theImages[1] = 'images/rotating/index-thumb25.jpg'
theImages[2] = 'images/rotating/index-thumb26.jpg'
theImages[3] = 'images/rotating/index-thumb27.jpg'
theImages[4] = 'images/rotating/index-thumb28.jpg'
theImages[5] = 'images/rotating/index-thumb29.jpg'
theImages[6] = 'images/rotating/index-thumb30.jpg'
theImages[7] = 'images/rotating/index-thumb31.jpg'
theImages[8] = 'images/rotating/index-thumb32.jpg'
theImages[9] = 'images/rotating/index-thumb33.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]+'">');
}
