
//original:
/*
function showImage(imgPath) {

    var img = new Image();
    img.src = imgPath;

    window.open("/popup.asp?img="
	+ imgPath,"","toolbars=no,scrolling=no,height=250,width=350");
}
*/

function showImage(imgPath,Caption) {

    var img = new Image();
    img.src = imgPath;
	
    window.open("/popup.asp?img=" + imgPath +"&cap=" + Caption,"","toolbars=no,scrolling=no,height=250,width=350");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function close_window() {
    window.close();
}

	function toggle(e){
	if (e.style.display == "none"){
		e.style.display = "";
		}
	else{
		e.style.display = "none";
	}
}
	
function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

function openWindow (earl,name,widgets) {
        host = location.hostname;     
                {
                        var url = earl;
                        }
        popupWin = window.open (url,name,widgets);
        popupWin.opener.top.name="opener";
        popupWin.focus();
        }
function closeWindow () {
        parent.close ();
        }
function goTW(){
    var URL = document.pathfinder.site.options[document.pathfinder.site.selectedIndex].value;
    window.location.href = URL;

}

function WM_imageSwap(daImage, daSrc){
  var objStr,obj;
  if(document.images){
    if (typeof(daImage) == 'string') {
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}


function WM_preloadImages() {

  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 printable()
{
 var bgc;
 var fgc;
 var lc;
 var vlc;
 var alc;
 var bkg;
 bgc = document.bgColor;
 fgc = document.fgColor;
 lc =  document.linkColor;
 vlc = document.vlinkColor;
 alc = document.alinkColor; 
 bkg = document.body.background;
 document.bgColor = "white"; 
 document.fgColor = "black";
 document.linkColor = "black";
 document.vlinkColor = "black";
 document.alinkColor = "black";
 document.body.background = "";
 focus()
 print()
 document.bgColor = bgc;
 document.fgColor = fgc;
 document.linkColor = lc;
 document.vlinkColor = vlc;
 document.alinkColor = alc;
 document.body.background = bkg;
}


