var theImages = new Array() 

theImages[0] = '/images/topimages/ghana.jpg'
theImages[1] = '/images/topimages/trekroner.jpg'
theImages[2] = '/images/topimages/kysterosion.jpg'
theImages[3] = '/images/topimages/windmills.jpg'
theImages[4] = '/images/topimages/volta.jpg'
theImages[5] = '/images/topimages/front.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('<div id="picture">');
document.write('<div style="background: url('+theImages[whichImage]+') no-repeat top left; height: 175px;	width: 900px;">');
document.write('<h1><a title="Home" href="/">Danish Water Forum</a></h1>');
document.write('</div>');
document.write('</div>');
}

