// JavaScript that preloads the  page images in memory

Preload_Images("/images/help_1.jpg","/images/admarisinc.jpg","/images/uparrow.gif","/images/uparrow_hover.gif");

function Preload_Images() {
/*
Loads images into the browser's cache for later use.
Author: Daniel Servranckx, NSC Webmaster, 23 Oct 2002
Usage: Preload_Images('image1 URL', 'image2 URL', 'image3 URL', ...);
*/
  var image_lib = new Array(); // empty cache
	
  // Loop through all the arguments passed to the function.
  var argLength = Preload_Images.arguments.length;
  for(argNo=0; argNo<argLength; argNo++) {
    // For each arggument in the function param list, create a new image.
    image_lib[argNo] = new Image(); // define this array element as an image object
    // Set the source of that image object to the image URL passed in that argument
    image_lib[argNo].src = Preload_Images.arguments[argNo];
  }
}
