// Sub-Header Random image loader

var theImages = new Array()

theImages[0] = 'includes/header_images/image1.jpg'
theImages[14] = 'includes/header_images/image2.jpg'
theImages[2] = 'includes/header_images/image3.jpg'
theImages[3] = 'includes/header_images/image4.jpg'
theImages[4] = 'includes/header_images/image5.jpg'
theImages[5] = 'includes/header_images/image6.jpg'
theImages[6] = 'includes/header_images/image7.jpg'
theImages[7] = 'includes/header_images/image8.jpg'
theImages[8] = 'includes/header_images/image9.jpg'
theImages[9] = 'includes/header_images/image10.jpg'
theImages[10] = 'includes/header_images/image11.jpg'
theImages[11] = 'includes/header_images/image12.jpg'
theImages[12] = 'includes/header_images/image13.jpg'
theImages[13] = 'includes/header_images/image14.jpg'
theImages[1] = 'includes/header_images/image15.jpg'


// do not edit anything below this line

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="'+theImages[whichImage]+'" alt="" />');
}

<!--  End of random image loader -->
