// random page images
var theImages = new Array()

theImages[0] = 'header-image-communities.jpg'
theImages[1] = 'header-image-communities-02.jpg'
theImages[2] = 'header-image-communities-03.jpg'
theImages[3] = 'header-image-communities-04.jpg'
theImages[4] = 'header-image-communities-05.jpg'
theImages[5] = 'header-image-communities-06.jpg'
theImages[6] = 'header-image-communities-07.jpg'
theImages[7] = 'header-image-communities-08.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="../img/interface/'+theImages[whichImage]+'" alt="DLC Resources" />');
}