//image rotation 
// please add an include on your page (see below) to add this script
// <script languange="JavaScript" src="/path/of/rotateimage.js"> </script>

var theImages = new Array() // do not change this


var theImages = new Array() // do not change this

var theUrls = new Array() // do not change this


var theUrls = new Array() // do not change this
// EDIT HERE
// this is the path of the image relative to the root of the site
// e.g. image 1 is at http://yoursite/location/of/image/1.jpg

/*theImages[0] = '/location/of/image/1.jpg'
theImages[1] = '/location/of/image/2.jpg'
theImages[2] = '/location/of/image/3.jpg'
theImages[3] = '/location/of/image/4.jpg'
theImages[4] = '/location/of/image/5.jpg'*/

theImages[0] = 'images/apas_front_ec.jpg'
theImages[1] = 'images/apas_front_nakamura.jpg'
theImages[2] = 'images/apas_front_histsurvey.jpg'
theImages[3] = 'images/apas_front_cert.jpg'
theImages[4] = 'images/apas_front_apazi.jpg'

theUrls[0] = 'resources/enduringcommunities.shtml'
theUrls[1] = 'research/research.shtml'
theUrls[2] = 'research/historicproperty.shtml'
theUrls[3] = 'program/certificate.shtml'
theUrls[4] = 'resources/apazi.shtml'

// 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('<a href="'+theUrls[whichImage]+'"><img border="0" src="'+theImages[whichImage]+'" width="439" height="400" /></a>');
}


    