function PreloadImages() {

  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.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.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = PreloadImages.arguments[arg];

    }
  }
}

function ImageSwap(YoImage, YoSrc){
  var objStr,obj;

  if(document.images){

    if (typeof(YoImage) == 'string') {
      objStr = 'document.' + YoImage;
      obj = eval(objStr);
      obj.src = YoSrc;

    } else if ((typeof(YoImage) == 'object') && YoImage && YoImage.src) {
      YoImage.src = YoSrc;

    }
  }
}

function openWindow(url) {
  popupWin = window.open(url, 'newWin',  'status,scrollbars,resizable,dependent,width=475,height=375,left=50,top=50')

}