    // 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('images/about-engage-h.jpg');
    preload('images/new-chapters-h.jpg');
    preload('images/engage-with-brian-h.jpg');
    preload('images/reviews-h.jpg');
    preload('images/deleted-scenes-h.jpg');
    preload('images/appearances-h.jpg');
    preload('images/subscribe-h.jpg');
    preload('images/photo.jpg');
    }
