
/*
 --------------- FILE FOR ROTATING IMAGES ---------------------------
 
TO ADD MORE IMAGES, JUST ADD THEM TO THE FILE BELOW. REMEMBER TO:
1. ADD A BACKSLASH TO THE QUOTES INSIDE THE STRING LIKE THIS \" . OTHERWISE YOU MAY GET AN ERROR. SEE HOW IT'S DONE BELOW.
2. CHANGE THE NUMBER IN THE ARRAY TO THE NEXT NUMBER IN THE SEQUENCE. TWO NUMBERS CANNOT BE THE SAME AND IT ALWAYS STARTS 
WITH ZERO.

FOR EXAMPLE, TO CONTINUE ADDING IMAGES BELOW:
theImage[8] = " IMAGE GOES HERE"
theImage[9] = " IMAGE GOES HERE"
theImage[10] = " IMAGE GOES HERE"

ETC...


*/

var theImage=new Array() 

theImage[0] = "<img src=\"images/random/Irish-nb-trail1.jpg\" alt=\"PANB MC2946 - The Green - Fredericton, NB\" >";
theImage[1] = "<img src=\"images/random/Irish-nb-trail2.jpg\" alt=\"PANB MC2946 - St. John & Portland\" >";
theImage[2] = "<img src=\"images/random/Irish-nb-trail3.jpg\" alt=\"PANB MC2946 - A First Settlement\" >";
theImage[3] = "<img src=\"images/random/Irish-nb-trail4.jpg\" alt=\"PANB MC2946 - The Governor's House - Fredericton, NB\" >";

theImage[4] = "<img src=\"images/random/Irish-nb-trail5.jpg\" alt=\"PANB MC2946 - Split Rock - St. John River  \" >";

theImage[5] = "<img src=\"images/random/Irish-nb-trail6.jpg\" alt=\"PANB MC299  - Fredericton - 1834\" >";
theImage[6] = "<img src=\"images/random/Irish-nb-trail7.jpg\" alt=\"PANB MC299 - Stanley 1835\" >";


// This image was commented out because we didn't need it and there wasn't a number for PANB, Therefore it was removed.
//theImage[7] = "<img src=\"images/random/Irish-nb-trail8.jpg\" alt=\"Bartlett's - Fredericton, NB\" >"; 



var changeImage = theImage.length;
var whichImage=Math.round(Math.random()*(changeImage-1));
function showImage(){document.write(theImage[whichImage]);}

//showImage(); // THIS FUNCTION WAS ADDED IN THE ACTUAL TEMPLATE ITSELF.




