var theImages = new Array()

//Random-loading images
theImages[0] = 'images/intro1.jpg'
theImages[1] = 'images/intro2.jpg'
theImages[2] = 'images/intro3.jpg'
theImages[3] = 'images/intro4.jpg'
theImages[4] = 'images/intro5.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 showImageIntro(){
document.write('<div id="intro" style="background-image: url('+theImages[whichImage]+')">');

}
