<!--

function PreloadImages() {

/*
PreloadImages()
Loads images into the browser's cache for later use.

Usage: PreloadImages('image 1 URL', 'image 2 URL', 'image 3 URL', ...);
*/

  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.x) == 'undefined'){
      document.x = new Object();
    }
    document.x.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = PreloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.x.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.x.loadedImages[arg].src = PreloadImages.arguments[arg];
    }
  }
}

// -->


