
//Total number of images in rotation - please update to match the number of images you list below
var imagenumber = 8 ;

var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array

//List all the images you'd like in the rotation, following the steps below:
// 1. Copy the last image in the list and paste it directly below the one that was copied
// 2. In the copied line, add "1" to the value in the square brackets on the left (so "images[3]" becomes "images[4]")
// 3. Change the image name at the very end to the name of your new image
// 4. Change the imagenumber value at the very top of this page to match the total number of images you have listed
// 5. Save and upload

images[1] = "/Sites/4/templates/images/homeheader/AH_art.jpg"
images[2] = "/Sites/4/templates/images/homeheader/AH_lifejackets.jpg"
images[3] = "/Sites/4/templates/images/homeheader/AH_3kids.jpg"
images[4] = "/Sites/4/templates/images/homeheader/AH_artbridge.jpg"
images[5] = "/Sites/4/templates/images/homeheader/AH_mccormicktrain.jpg"
images[6] = "/Sites/4/templates/images/homeheader/AH_nativedancing.jpg"
images[7] = "/Sites/4/templates/images/homeheader/AH_trolley.jpg"
images[8] = "/Sites/4/templates/images/homeheader/AH_yearlings.jpg"


var image = images[rand1]

document.write('<IMG SRC="' + image + '">')

