//div tag below is populated with this banner image, for banner style #banner see above
function loadBannerImg(){ 
//banner images have to be .gifs and named as consecutive numbers
var theUrl = new  Array('www.co-operative.coop','www.co-operative.coop','www.co-operative.coop','www.ttc-hosting.co.uk/contact/email_ttc.php','www.ttc-hosting.co.uk/contact/email_ttc.php'); 
var p = theUrl.length; //this length = number of images
var whichNumber = Math.round(Math.random()*(p-1)); //this gets the image associated with each element of the url array
document.write('<a style ="margin-left: 2em;" href="http://'+theUrl[whichNumber]+'""><img id="banner" src="http://co-opnet.coop/styles/prosilver/banner/'+ whichNumber+'.gif" /></a>');
}

/*
To call in the HTML place the following function call in the page where you want the images to appear.
<script type="text/javascript">loadBannerImg();</script>
*/