function WM_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 = 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_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 displayPN(s) {

	switch ( s ) {
		case 'payers': {
			window.status = 'For Payers';
			return;
		}
		case 'providers': {
			window.status = 'For Providers';
			return;
		}
		case 'about': {
			window.status = 'About Us';
			return;
		}
	}

	//window.status = s
}

function tmpFnc(s) {

	displayPN(s);

	switch ( s ) {
		case 'payers': {
			this.location.href = 'leftnav_payers.htm';
			return;
		}
		case 'providers': {
			this.location.href = 'leftnav_providers.htm';
			return;
		}
		case 'about': {
			this.location.href = 'leftnav_about.htm';
			return;
		}
	}

}

function popupMIA(){
	window.open("contact_directions_MIA_map.htm", "map_window", "width=610,height=750,menubar=no,resizable=yes,titlebar=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
}

function popupTOR(){
	window.open("contact_directions_TOR_map.htm", "map_window", "width=610,height=750,menubar=no,resizable=yes,titlebar=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
}

function popUp(sURL){
	window.open(sURL, "popup_window", "width=400,height=350,menubar=no,resizable=no,titlebar=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
}