var ImageArray = new Array()

function preloadImages(){
  for (i=0;i<preloadImages.arguments.length;i++){
    ImageArray[i] = new Image()
    ImageArray[i].src = preloadImages.arguments[i]
  }
}

function WM_imageSwap(daImage, daSrc){
var objStr,obj;
/*
WM_imageSwap()
Changes the source of an image.
Source: Webmonkey Code Library
(http://www.hotwired.com/webmonkey/javascript/code_library/)
Author: Shvatz
Author Email: shvatz@wired.com
Usage: WM_imageSwap(originalImage, 'newSourceUrl');
Requires: WM_preloadImages() (optional, but recommended)
Thanks to Ken Sundermeyer (ksundermeyer@macromedia.com) for his help
with variables in ie3 for the mac.
*/
  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof daImage == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof daImage == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}

function popAttach(url) {
  var newWin = window.open(url,'Attachment','height=550,width=500,resizable=yes,scrollbars=yes,status=yes');
  newWin.focus();
}
