﻿var theImages = new Array()

theImages[0] = '../../media/bild1.jpg'
theImages[1] = '../../media/bild6.jpg'
theImages[2] = '../../media/bild8.jpg'
theImages[3] = '../../media/bild10.jpg'
theImages[4] = '../../media/bild15.jpg'
theImages[5] = '../../media/bild16.jpg'
theImages[6] = '../../media/bild17.jpg'
theImages[7] = '../../media/bild19.jpg'
theImages[8] = '../../media/bild20.jpg'
theImages[9] = '../../media/bild21.jpg'
theImages[10] = '../../media/bild3.jpg'
theImages[11] = '../../media/bild22.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]+'">');
}
