<!--
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(daImage, daSrc){
  var objStr,obj;
  // 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 setText(daDiv, daText)
{
   var obj,objStr;
   
   if(document.layers)
   {
      // Older Netscape
      document.layers[daDiv].document.open();
      document.layers[daDiv].document.writeln(daText);
      document.layers[daDiv].document.close();
   }
   else if (document.all)
   {
		// IE
       document.all[daDiv].innerHTML = daText;
   }
   else // Mozilla and new NS
      document.getElementById(daDiv).innerHTML = daText;

}
   

      

function popupWindow(url, title, features)
{
   var w = window.open(url, title, features); //+'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0');
}
// -->


