// JavaScript Document

// 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('Audio_And_Video_Products.jpg');
	preload('Graphics_Header.jpg');
	preload('Info_Products.jpg');
	preload('businesspeople.jpg');
	preload('cars.jpg');
	preload('cd1.jpg');
	preload('cd2.jpg');
	preload('cd3.jpg');
	preload('guy.jpg');
	preload('lifestyle.jpg');
	preload('phone.jpg');
	preload('proof3.jpg');
	preload('proof6.jpg');
	preload('proof9.jpg');
    }