var theImages = new Array() 

theImages[0] = 'randomimages/hippodrome_tr.gif'
theImages[1] = 'randomimages/bluemosque_tr.gif'
theImages[2] = 'randomimages/topkapipalace_tr.gif'
theImages[3] = 'randomimages/galatatower_tr.gif'
theImages[4] = 'randomimages/coveredbazaar_tr.gif'
theImages[5] = 'randomimages/saintsophia_tr.gif'
//theImages[6] = 'randomimages/random07.gif'
//theImages[7] = 'randomimages/random08.gif'
//theImages[8] = 'randomimages/random09.gif'
//theImages[9] = 'randomimages/random10.gif'
//theImages[10] = 'randomimages/random11.gif'
//theImages[11] = 'randomimages/random12.gif'

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]+'" border="0">');
}