var theImages1 = new Array()

theImages1[0] = 'img/intercontinental-1.jpg'
theImages1[1] = 'img/monterey-bay-inn-1.jpg'
theImages1[2] = 'img/monterey-plaza-hotel-1.jpg'
theImages1[3] = 'img/spindrift-inn-1.jpg'
theImages1[4] = 'img/victorian-inn-1.jpg'

var j1 = 0
var p1 = theImages1.length;
var preBuffer1 = new Array()
for (i = 0; i < p1; i++){
   preBuffer1[i] = new Image()
   preBuffer1[i].src = theImages1[i]
}
var whichImage1 = Math.round(Math.random()*(p1-1));
function showImage1(){
document.write('<img src="'+theImages1[whichImage1]+'">');
}