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/cime.jpg'
theImages[4] = '../img/random/barcavela.jpg'
theImages[5] = '../img/random/motoscafo.jpg'
theImages[6] = '../img/random/vela.jpg'
theImages[7] = '../img/random/prua.jpg'
theImages[8] = '../img/random/barca-motore.jpg'
theImages[9] = '../img/random/scafi.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]+'">');
}


