<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '_img/randomtop/atardecer_bocas.jpg'
theImages[1] = '_img/randomtop/ballenas.jpg'
theImages[2] = '_img/randomtop/bocas2.jpg'
theImages[3] = '_img/randomtop/canal2.jpg'
theImages[4] = '_img/randomtop/casco_viejo.jpg'
theImages[5] = '_img/randomtop/isla.jpg'
theImages[6] = '_img/randomtop/night.jpg'
theImages[7] = '_img/randomtop/playa2.jpg'
theImages[8] = '_img/randomtop/playa3.jpg'
theImages[9] = '_img/randomtop/puente_americas.jpg'
theImages[10] = '_img/randomtop/puente_centenario.jpg'
theImages[11] = '_img/randomtop/surfer.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]+'">');
}
