var theImages = new Array()

theImages[0] = 'img/random/winch.jpg'
theImages[1] = 'img/random/scotta.jpg'
theImages[2] = 'img/random/ponte.jpg'
theImages[3] = 'img/random/yacht.jpg'
theImages[4] = 'img/random/crociera.jpg'
theImages[5] = 'img/random/motoscafo.jpg'
theImages[6] = 'img/random/vela.jpg'
theImages[7] = 'img/random/barca.jpg'
theImages[8] = 'img/random/scafi.jpg'
theImages[9] = 'img/random/cabinato.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 width="258" height="121" src="'+theImages[whichImage]+'">');
}

