var theImages = new Array() 

theImages[0] = '/a/img/home/CHE_10015.jpg'
theImages[1] = '/a/img/home/ELE_D7898.jpg'
theImages[2] = '/a/img/home/GB_31505.jpg'
theImages[3] = '/a/img/home/GB_D12664.jpg'
theImages[4] = '/a/img/home/GORM_D3735.jpg'
theImages[5] = '/a/img/home/HYE_D8303.jpg'
theImages[6] = '/a/img/home/LEO_14448.jpg'
theImages[7] = '/a/img/home/PB_22173.jpg'
theImages[8] = '/a/img/home/PG_AD_9122.jpg'
theImages[9] = '/a/img/home/WILD_D4167.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]+'">');
}