// JavaScript Document
var theImages = new Array()
theImages[0] = 'bg_top.jpg'
theImages[1] = 'bg_top1.jpg'
theImages[2] = 'bg_top2.jpg'
theImages[3] = 'bg_top3.jpg'
theImages[4] = 'bg_top4.jpg'
theImages[5] = 'bg_top5.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="top" style="background: url(images/'+theImages[whichImage]+') center top no-repeat">');
}
