/* This script selects a random image for the index page masthead/banner.
   If you add an image, make sure you to do the following:
   1. Add it to the ggeMasts directory
   2. Adjust width so it is as wide as the container for it minus 2 pixels for the outside border 
   3. Make the same adjustment for height.  
   4. Save in .jpg format unless using a transparent background for .gif format. 

   To edit, insert the number of images to be selected from where the 'x' is in the below equation:
   selector = Math.floor(1 + Math.random() * (x-1)); 
   Example: We select from 8 images in the ggeMasts directory, so 8 fills that spot for now */

var selector=0;       // Assigned a random value to select images
var ggeMastIMG;       // Holds newly constructed IMG tag

// Selects a random image
function homeSelect() {
	selector = Math.floor(1 + Math.random() * (11-1));
	ggeMastIMG = "<img src=" + "ggeMasts/mast" + selector + ".jpg border='0' usemap='#ggemap2'>"
	document.getElementById('mastHead').innerHTML = ggeMastIMG;
}