function TW_preloadImages() {

  if (document.images) {
    if (typeof(document.TW) == 'undefined'){
      document.TW = new Object();
    }
    document.TW.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = TW_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image
      document.TW.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.TW.loadedImages[arg].src = TW_preloadImages.arguments[arg];
    }
  }
}

