////////////////////////////////////////////////////////////////////////////////////
//  scripts.js  --  This notice must be left untouched at all times.
//  Copyright Dan Bish 2001-2003. All rights reserved.
//
//  Last modified 12/1/2003.
////////////////////////////////////////////////////////////////////////////////////
<!--
// set NN minimum version, IE minimum version, bounce page and initialize vars
var fNNMinVer=4.79,fIEMinVer=5.0,sBnc='bounce.html',v,mt,mt2,bGo=false;
// bounce the users with older browsers
if(navigator.appName=='Netscape'){v=navigator.appVersion.substring(0,4);if(parseFloat(v)<fNNMinVer){bGo=true;}}else if(navigator.appName=='Microsoft Internet Explorer'){if(navigator.appVersion.indexOf('MSIE ')>-1){mt=navigator.appVersion.indexOf('MSIE ');v=navigator.appVersion.substring(mt+5,mt+9);}else{v=navigator.appVersion.substring(0,4);}if(parseFloat(v)<fIEMinVer){bGo=true;}}if(bGo){this.location=sBnc;}  

// the following methods have been condensed to save load time
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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
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_findObj(n, d) { //v4.01
  var p,i,x;  
  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function selectCheck1() {
  // this function is for the year selection only
  if (document.YearSwitch.pYear.options[0].selected) {
    //if first item in select list is selected
    alert("Please select a valid year range from this list.");
    return false;
  }
  else {
    //go to the location
    window.location = document.YearSwitch.pYear.options[document.YearSwitch.pYear.selectedIndex].value;
    return false;
  }
}
function chkStr(obj){
  if(obj.value == "Quick Search"){
     obj.value="";
  }
}
function docjslib_getImageXfromLeft(imgID) {if(document.layers)return eval(imgID).x;else return docjslib_getRealLeft(imgID);}
function docjslib_getImageYfromTop(imgID){if(document.layers) return eval(imgID).y;else return docjslib_getRealTop(imgID);}
function docjslib_getRealLeft(imgElem){xPos=eval(imgElem).offsetLeft;tempEl=eval(imgElem).offsetParent;while(tempEl!=null){xPos += tempEl.offsetLeft;tempEl = tempEl.offsetParent;}return xPos;}
function docjslib_getRealTop(imgElem){yPos=eval(imgElem).offsetTop;tempEl=eval(imgElem).offsetParent;while(tempEl!=null){yPos+=tempEl.offsetTop;tempEl=tempEl.offsetParent;}return yPos;}
function setCoords(object,imgY,imgX){if(document.layers&&document.layers[object]!=null){document.layers[object].top=imgY;document.layers[object].left = imgX;}else if(document.all){document.all[object].style.top=imgY;document.all[object].style.left=imgX;}else{document.getElementById(object).style.top =imgY;document.getElementById(object).style.left=imgX;}}
function show(object){if(object!=null)(document.layers)?document.layers[object].visibility='visible':(document.all)? document.all[object].style.visibility='visible':document.getElementById(object).style.visibility='visible';}
function hide(object){if (object != null)(document.layers)? document.layers[object].visibility = 'hidden':(document.all)? document.all[object].style.visibility = 'hidden':document.getElementById(object).style.visibility='hidden';}
function showLayer(imgID,lyrId){var myObj=lyrId;var imgX=docjslib_getImageXfromLeft(imgID);var imgY=docjslib_getImageYfromTop(imgID);var myX=imgX + 140;if(showLayer.arguments[2]){myX=imgX+showLayer.arguments[2];imgY=imgY+showLayer.arguments[3];}setCoords(myObj,imgY,myX);show(myObj);}
function hideLayer(imgID,lyrId){var myObj=lyrId;hide(myObj);}
 function MoreInfo(intID)
 {
 var comp='moreInfo.jsp?iId='+intID;
 stWindow=window.open(comp,'Comments','screenX=150,screenY=50,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,scrolling=0,resizable=1,copyhistory=0,width=500,height=500');
 stWindow.focus();
 }

function schMoreInfo(intID)
{
var comp='schMoreInfo.jsp?iId='+intID; 
schWindow=window.open(comp,'Comments','screenX=150,screenY=50,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,scrolling=0,resizable=1,copyhistory=0,width=500,height=500'); 
schWindow.focus();
}
function distMoreInfo(intID)
{
var comp='distMoreInfo.jsp?iId='+intID;
distWindow=window.open(comp,'Comments','screenX=150,screenY=50,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,scrolling=0,resizable=1,copyhistory=0,width=500,height=500');
distWindow.focus();
}
function stateMoreInfo(intID)
{
var comp='stateMoreInfo.jsp?iId='+intID;
stateWindow=window.open(comp,'Comments','screenX=150,screenY=50,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,scrolling=0,resizable=1,copyhistory=0,width=500,height=500');
stateWindow.focus();
}

function chrtMoreInfo(intID)
{
var comp='chrtMoreInfo.jsp?iId='+intID; 
schWindow=window.open(comp,'Comments','screenX=150,screenY=50,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,scrolling=0,resizable=1,copyhistory=0,width=500,height=500'); 
schWindow.focus();
}

function advSearchMoreInfo(intID)
{
var comp='advSearchMoreInfo.jsp?iId='+intID; 
schWindow=window.open(comp,'Comments','screenX=150,screenY=50,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,scrolling=0,resizable=1,copyhistory=0,width=500,height=500'); 
schWindow.focus();
}

function swapImage(srcImage,destImage)
{  
   
   
   document.getElementById(srcImage).src="./images/"+destImage;
   
}

function swapImageCustom(destImage)
{  
   //alert(destImage);
   document["contactUs"].src="./images/"+destImage;
   //document["contactUs"].src="./images/contactUsRed.gif";
}
function swapEm(topImg,botImg){var botImgDef = botImg.slice(0,3);MM_swapImgRestore();MM_swapImage('nav' + topImg,'','images/SRC' + topImg + 'on.gif',1);MM_swapImage('nav' + botImgDef,'','images/SRC' + botImg + 'on.gif',1);}
function setImages2(){var sPath=window.location.pathname;var sPage=sPath.substring(sPath.lastIndexOf('/') + 1);var aNum=setImages2.arguments;if(aNum[2]==1){MM_swapImage(aNum[0],'','images/SRC' + aNum[1] + 'on.gif',1);}else{swapEm(aNum[0],aNum[1]);}}
//-->


