    // Initiate 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('/images/gallery/thumbs/030-2470.jpg');
    preload('/images/gallery/thumbs/016-2470.jpg');
    preload('/images/gallery/thumbs/026-2470.jpg');
    preload('/images/gallery/thumbs/168-2470.jpg');
    preload('/images/gallery/thumbs/119-2470.jpg');
	preload('/images/gallery/thumbs/067-2470.jpg');
    }