// Initiate the image count variable
var imageCount = 0;
// create an array to contain the preloaded image files
var preloadImages = new Array();

// Main function to load new image into browser
function preload(imageFile)
{
imageCount++;
preloadImages[imageCount] = new Image();
preloadImages[imageCount].src = imageFile;
}

// Basic function to load the images when the browser has loaded the webpage.
window.onload = function() {
preload('img/southern-vermont-active.gif');
preload('img/western-vermont-active.gif');
preload('img/northern-nh-active.gif');
preload('img/southern-nh-active.gif');
preload('img/northern-vermont-inactive.gif');
}