// JavaScript Document

<!-- hide
  browserOK = false;
  var pics;
// -->

<!-- hide
  browserOK = true;
  pics = new Array();
// -->

<!-- hide
var objCount = 0;


function preload(name, first, second) {
  if (browserOK) {
    pics[objCount] = new Array(3);
    pics[objCount][0] = new Image();
    pics[objCount][0].src = first;
    pics[objCount][1] = new Image();
    pics[objCount][1].src = second;
    pics[objCount][2] = name;
    objCount++;
  }
}


function on(name){
  if (browserOK) {
     for (i = 0; i < objCount; i++) {
      if (document.images[pics[i][2]] != null)
        if (name != pics[i][2]) {
          document.images[pics[i][2]].src = pics[i][0].src;
        } else {
           document.images[pics[i][2]].src = pics[i][1].src;
        }
    }
  }
}


function off(){
  if (browserOK) {
     for (i = 0; i < objCount; i++) {
      if (document.images[pics[i][2]] != null)
        document.images[pics[i][2]].src = pics[i][0].src;
    }
  }
}


// preload images
preload("ext","images/ext.gif","images/ext0.gif");
preload("fc","images/fc.gif","images/fc0.gif");
preload("hdb","images/hdb.gif","images/hdb0.gif");
preload("pl","images/pl0.gif","images/pl0.gif");
preload("hba","images/hba.gif","images/hba0.gif");
preload("sui","images/sui.gif","images/sui0.gif");
preload("hmr","images/hmr.gif","images/hmr0.gif");


//hide JavaScript


var largeWindow = null;


window.onerror = null;


function WindowFocus(){
   if( navigator.appVersion.indexOf("2") == -1 &&
navigator.appVersion.indexOf("MSIE") == -1 ) {
       largeWindow.focus();
   }
}




function Opener(filename){
  winopts =
"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,height=480,width=640,copyhistory=0,screenX=10,screenY=10"
  largeWindow = window.open(filename,"LargeWindow",winopts)
 
  //if( navigator.appVersion.indexOf("(X11") != -1 ||
  //navigator.appVersion.indexOf("(Mac") != -1) {
  //     largeWindow = window.open(filename,winname,winopts)
  //}


  if( navigator.appVersion.indexOf("MSIE") == -1 ) {
      largeWindow.mainWin = this;
  }
  WindowFocus();
}


function historywin(filename) {
    fileURL=filename;
    if (parseInt(navigator.appVersion) < 4) {
        if (largeWindow != null) {
            largeWindow.close();
        }
    }
   Opener( fileURL );
}


function ChangeImage (ImageName,FileName)
{
   if (document.images) {
       document[ImageName].src = FileName;
   }
}


function openLargeWindow( ) {
    // redeclared below to avoid netscape 3 bug

}


function startPanning( ) {
    // redeclared below to avoid netscape 3 bug
}


/* Function that swaps images. */


function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;

    }
}


/* Functions that track and set toggle group button states. */


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 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];}}
}
//-->