var theImages = new Array() 

theImages[0] = '/a/img/publishedWork/AF_AV_13332.jpg'
theImages[1] = '/a/img/publishedWork/CHE_D12075.jpg'
theImages[2] = '/a/img/publishedWork/CHE_D12162.jpg'
theImages[3] = '/a/img/publishedWork/GB_31385.jpg'
theImages[4] = '/a/img/publishedWork/HYE_D8198.jpg'
theImages[5] = '/a/img/publishedWork/JACBB_14089.jpg'
theImages[6] = '/a/img/publishedWork/PB_22717.jpg'
theImages[7] = '/a/img/publishedWork/PG_KG_10471.jpg'
theImages[8] = '/a/img/publishedWork/PG_MG_10747.jpg'
theImages[9] = '/a/img/publishedWork/WILD_D4049.jpg'
theImages[10] = '/a/img/publishedWork/CHE_D5904.jpg'
theImages[11] = '/a/img/publishedWork/CHMP_021088.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]+'">');
}