    // 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/mad/anger1.jpg');
    preload('images/mad/anger2.jpg');
    preload('images/mad/anger3.jpg');
    preload('images/mad/anger4.jpg');
    preload('images/mad/anger5.jpg');
    }
    
    // -->

