// Sub-Header Random image loader

var theImages = new Array()

theImages[0] = 'includes/sponsors/cavalier-header.jpg'
theImages[14] = 'includes/sponsors/ledson-header.jpg'
theImages[2] = 'includes/sponsors/cooksville-header.jpg'
theImages[3] = 'includes/sponsors/edgehill-header.jpg'
theImages[4] = 'includes/sponsors/jackson-header.jpg'
theImages[5] = 'includes/sponsors/line-x-header.jpg'
theImages[6] = 'includes/sponsors/motive-header.jpg'
theImages[7] = 'includes/sponsors/peterbuilt-header.jpg'
theImages[8] = 'includes/sponsors/secure-header.jpg'
theImages[9] = 'includes/sponsors/shaw-header.jpg'
theImages[10] = 'includes/sponsors/superior-header.jpg'
theImages[11] = 'includes/sponsors/tbm-header.jpg'
theImages[12] = 'includes/sponsors/trailcon-header.jpg'
theImages[13] = 'includes/sponsors/vitran-header.jpg'
theImages[1] = 'includes/sponsors/xtra-header.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 -->

