// Set up the image files to be used.
var theImages = new Array()
var theAlts = new Array()
// To add more image files, continue with the
// pattern below, adding to the array.
 
theImages[0] = './Images/CNESbanner700x100En.jpg'
theImages[1] = './Images/CNESbanner700x100Gl.jpg'
// etc add more as required

theAlts[0] = 'A Hebridean panorama.'
theAlts[1] = 'A Hebridean panorama.'
//etc add more as required

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));


// To load appropriate headers depending on URL

function showImage(){
	//alert('<img style="width: 100%;" src="'+theImages[whichImage]+'"  title="'+theAlts[whichImage]+'" alt="'+theAlts[whichImage]+'">');
	document.write('<img style="width: 100%;" src="'+theImages[whichImage]+'"  title="'+theAlts[whichImage]+'" alt="'+theAlts[whichImage]+'">');
	}

