var theImages = new Array()
var theAlts = new Array()

//filenames of images in this array

theImages[0] = 'images/array/home_banner_1.jpg'
theImages[1] = 'images/array/home_banner_2.jpg'
theImages[2] = 'images/array/home_banner_3.jpg'
theImages[3] = 'images/array/home_banner_4.jpg'
theImages[4] = 'images/array/home_banner_5.jpg'


//title and alt copy for images goes here
theAlts[0]="Medieval painted glass from Alderford church (Trevor Ashwin); Bronze Age timber circle at Holme next the Sea (&copy; Norfolk Landscape Archaeology); YAC member working on site at Sedgeford";
theAlts[1]="15th-century painted panel from Barton Turf church (Trevor Ashwin); excerpt from Christopher Saxton's map of Norfolk (Raymond Frostick); excavating a preserved Roman wooden bowl at Scole (&copy; Norfolk Landscape Archaeology)";
theAlts[2]="Plan and photographs of burial mounds and finds from the prehistoric barrow cemetery at Harford Farm, Caistor St Edmund, near Norwich (&copy; Norfolk Landscape Archaeology, air photographs by Derek A Edwards)";
theAlts[3]="View of St John Maddermarket church, Norwich (Trevor Ashwin); air view of Caistor St Edmund Roman town (photograph by Derek A Edwards, &copy; Norfolk Landscape Archaeology); Iron Age coin found at Spixworth (&copy; Norfolk Landscape Archaeology)";
theAlts[4]="West front of Binham Priory (Trevor Ashwin); Neolithic flint arrowhead from Wymondham (Trevor Ashwin)";

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 style="width: 100%;" src="'+theImages[whichImage]+'"  title="'+theAlts[whichImage]+'" alt="'+theAlts[whichImage]+'">');
//document.write('<img src=\"images/array/'+chosenImage[getRan]+'" alt=\"'+chosenAltCopy[getRan]+'\" width=\"600\" height=\"450\" />');
}

