<!--

function IM_ImgSwp(theImage, theSrc){
  var objStr,obj;
  /* Usage: IM_imgSwp(originalImage, 'newSourceUrl'); */

  if(document.images){
    if (typeof(theImage) == 'string') {
      objStr = 'document.' + theImage; obj = eval(objStr); obj.src = theSrc;
    } else if ((typeof(theImage) == 'object') && theImage && theImage.src) {
      theImage.src = theSrc;
    }
  }
}

function WM_preloadImages() {
/* Usage: WM_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.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = WM_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 = WM_preloadImages.arguments[arg];
    }
  }
}

function WM_imageToggle(daImage, src1, src2, netscape_container){
  var objStr,obj;
  // Check to make sure that images are supported in the DOM.
	  myImage = document.images[daImage];
  if(document.layers){
      myImage = document.layers['container'].document.layers[netscape_container].document.images[daImage];
  }
  if(document.images){
    // Check to see whether you are using a name, number, or object
      if(myImage.src == src1){
	  	myImage.src = src2;
      } else {
	  	myImage.src = src1;
      }
  }
}
// -->