// JavaScript Document


// 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. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'afbeeldingen/100.jpg'
theImages[1] = 'afbeeldingen/200.jpg'
theImages[2] = 'afbeeldingen/300.jpg'
theImages[3] = 'afbeeldingen/400.jpg'
theImages[4] = 'afbeeldingen/500.jpg'
theImages[5] = 'afbeeldingen/600.jpg'
theImages[6] = 'afbeeldingen/700.jpg'
theImages[7] = 'afbeeldingen/800.jpg'
theImages[8] = 'afbeeldingen/900.jpg'
theImages[9] = 'afbeeldingen/1000.jpg'
theImages[10] = 'afbeeldingen/1100.jpg'
theImages[11] = 'afbeeldingen/1200.jpg'
theImages[12] = 'afbeeldingen/1300.jpg'
theImages[13] = 'afbeeldingen/1400.jpg'

// ======================================
// do not change anything below this line
// ======================================

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]+'">');
}
