    // 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/objects/1.jpg');
    preload('../img/objects/2.jpg');
    preload('../img/objects/3.jpg');
    preload('../img/objects/4.jpg');
    preload('../img/objects/5.jpg');
	preload('../img/objects/6.jpg');
	preload('../img/objects/7.jpg');
	preload('../img/objects/8.jpg');
}

 