var theImages = new Array()

//Random-loading images
theImages[0] = 'images/background/1.jpg' 
theImages[1] = 'images/background/2.jpg'
theImages[2] = 'images/background/3.jpg' 
theImages[3] = 'images/background/4.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(){
if(whichImage==0){
document.write('<style>#content2-img { background-image:url('+theImages[whichImage]+');}</style>');
}
else if(whichImage==1){
document.write('<style>#content2-img { background-image:url('+theImages[whichImage]+');}</style>');
}
else if(whichImage==2){
document.write('<style>#content2-img { background-image:url('+theImages[whichImage]+');}</style>');
}
else if(whichImage==3){
document.write('<style>#content2-img { background-image:url('+theImages[whichImage]+');}</style>');
}
else if(whichImage==4){
document.write('<style>#content2-img { background-image:url('+theImages[whichImage]+');}</style>');
}
}

