// 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/photos-hover.gif');
preload('img/contact-hover.gif');
preload('img/learn-more-hover.gif');
preload('img/in-the-news-hover.gif');
preload('img/beenSelect.png');
preload('img/beenSelectAdmin.png');
preload('img/downloadBrochureHover.gif');
preload('img/register4rosiesHover.gif');
preload('img/3pics.gif');
preload('img/3pics-2.gif');
preload('img/3pics-3.gif');
preload('img/look_for_camp_button_selected.gif');
}