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'
theImages[10] = '/a/img/home/CHE_D6172.jpg'
theImages[11] = '/a/img/home/CHMP_021595.jpg'
theImages[12] = '/a/img/home/HYE_D8224.jpg'
theImages[13] = '/a/img/home/BIS_26486_Master16_alter.jpg'
theImages[14] = '/a/img/home/LIO_D7325.jpg'
theImages[15] = '/a/img/home/ORAS_023916.jpg'
theImages[16] = '/a/img/home/TIG_026440_1.jpg'
theImages[17] = '/a/img/home/LIO_D7325.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]+'">');
}
