// The following script preloads images for the SRU Geography Department website.
// Preloading caches images in the user's computer's memory, saving time for images to load. 
// Script authored by Matthew Batina
                        
var ggePreloadArray = new Array(10);           // Preload array (8 images)

/* Image INSERTIONS or ADDITIONS go below this comments block
   Preloading format:

   For modifications that are not iterated (additions that don't need repetition):
   
   variable name = new Image(width, height);
   variable name.src = "folder/image.jpg";    images from one local folder within the same directory as the webpages 

   For modifications that are iterated (additions that do need reptition):

   Model after the FOR loop structures, using the appropriate incrementation values. USE CAUTION when editing these
   or creating new ones.
   
   Please do not edit any filenames of current files or images, or the FOR loop structures below*/

// Checks to see if there are images. If so, begins preloading.

if (document.images)
{
	var ggeIMG1 = new Image(128,128);
	ggeIMG1.src = "../../images/sandstone.jpg";
	
	var ggeIMG2 = new Image(82,88);
	ggeIMG2.src = "../../images/clipartglobe.gif";
	
	var ggeIMG3 = new Image(277,210);
	ggeIMG3.src = "../../images/prorok.jpg";
	
	var ggeIMG4 = new Image(580,511);
	ggeIMG4.src = "../../images/students t sq2 b.jpg";
	
	var ggeIMG5 = new Image(1774,1536);
	ggeIMG5.src = "../../images/students T Sq2 a.jpg";
	
	var ggeIMG6 = new Image(556,433);
	ggeIMG6.src = "../../images/awards05.jpg";
	
	var ggeIMG7 = new Image(580,511);
	ggeIMG7.src = "../../trip images/AAG NY 2001/aagNY2001.jpg";
	
	var ggeIMG8 = new Image(600,700);
	ggeIMG8.src = "../../images/SRUCampusMap3.jpg";
	
	var ggeIMG9 = new Image(414,142);
	ggeIMG9.src = "../../images/jh_email_address.jpg";
	
	var ggeIMG10 = new Image(3072,2304);
	ggeIMG10.src = "../../news/ziegAntarctica1.jpg";
	
	var ggeIMG11 = new Image(3072,2304);
	ggeIMG11.src = "../../news/ziegAntarctica1.jpg";
	
	var ggeIMG12 = new Image(2034,3072);
	ggeIMG12.src = "../../news/ziegAntarctica1.jpg";
	

	for (cnt=0; cnt<10; cnt++)
	{
		ggePreloadArray[cnt] = new Image(785,188);
		ggePreloadArray[cnt].src = "../../ggeMasts/mast" + (cnt+1) + ".jpg";
	}
}

// Otherwise, don't take any action
else 
{
	var filler=0;
}
