// 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 ggeDeptTripNYCArray = new Array(9);       // Preload array for NYC Department Trip images (9 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)
{
	for (cnt11=0; cnt11<9; cnt11++)
	{
		ggeDeptTripNYCArray[cnt11] = new Image(680,405);
		ggeDeptTripNYCArray[cnt11].src = "trip images/Dept Trip NYC/nyc" + cnt11 + ".jpg";
	}
}


// Otherwise, don't take any action
else 
{
	var filler=0;
}