function stopError() {  return true;}
window.onerror = stopError;
function ver ()
{
  var agt=navigator.userAgent.toLowerCase();
  this.agt = agt;
  this.major = parseInt(navigator.appVersion);
  this.minor = parseFloat(navigator.appVersion);

  this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
  this.nav4up = this.nav && (this.major >= 4);
  this.nav6up = this.nav && (this.major >= 5);

  var opera = agt.indexOf ( "opera" );
  if (opera!=-1){
    var verstr = agt.substring (opera + 5, agt.indexOf (";", opera + 5 ));
    this.opera = -1;
    this.major = parseInt(verstr);
    this.minor = parseFloat(verstr);
  }
  else {
    var msie = agt.indexOf ( "msie" );
    if (msie!=-1 ) {
      var verstr = agt.substring (msie + 5, agt.indexOf (";", msie + 5 ));
      this.major = parseInt(verstr);
      this.minor = parseFloat(verstr);
      this.ie = true;
      if (this.major >= 4) this.ie4up = -1;
    }
  }
}
function dom ()
{
  if (document.all) this.ie4 = true;
  if (document.layers) this.ns4 = true;
  if (document.getElementById) this.w3c = true;
}

function os ()
{
  var agt=navigator.userAgent.toLowerCase()
  this.win = ((agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
  if (this.win) {
    if ((agt.indexOf("win16")!=-1)
               || (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1)
               || (agt.indexOf("windows 16-bit")!=-1) )  {
      this.group = 'win16';
      this.family = 'win31';
      this.os = 'win31';
    }
    else
    {
      this.group = 'win32';
      if ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1)) {
        this.family = 'win95';
        this.os = 'win95';
      }
      else {
        if ((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1)){
          this.family = 'win95';
          this.os = 'win98';
        }
        else {
          if ((agt.indexOf("winme")!=-1)||(agt.indexOf("windows me")!=-1)){
            this.family = 'win95';
            this.os = 'winme';
          }
          else {
            if ((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1)){
              this.family = 'winnt';
              if ((agt.indexOf("winnt 5")!=-1)||(agt.indexOf("windows nt 5")!=-1)){this.os = 'win2k';}
              else this.os = 'winnt';
            }
            else {
              if ((agt.indexOf("wince")!=-1)||(agt.indexOf("windows ce")!=-1)){
                this.family = 'wince';
                this.os = 'wince';
              }
              else {
                this.family = 'win95'
                this.os = 'win95'
              }
            }
          }
        }
      }
    }
  }
  else {
    if (agt.indexOf("mac")!=-1) {
      this.group = 'mac';
      this.family = 'mac';
      if ((agt.indexOf("68k")!=-1) || (agt.indexOf("68000")!=-1)){this.os = 'mac68';}
      else {
        if ((agt.indexOf("ppc")!=-1) || (agt.indexOf("powerpc")!=-1)) { this.os = 'macppc';}
        else {this.os = 'mac';}
      }
    }
    else {
      if ((agt.indexOf("os/2")!=-1) || (navigator.appVersion.indexOf("OS/2")!=-1) || (agt.indexOf("ibm-webexplorer")!=-1)) {
        this.group = 'os2'
        this.family = 'os2'
        this.os = 'os2'
      }
      if (agt.indexOf("sunos")!=-1){
        this.group = 'unix'
        this.family = 'sun'
      }
      if (agt.indexOf("irix") !=-1) {    // SGI
        this.group = 'unix'
        this.family = 'irix'
      }
      if (agt.indexOf("hp-ux")!=-1) {
        this.group = 'unix'
        this.family = 'hpux'
      }
      if (agt.indexOf("aix")  !=-1) {
        this.group = 'unix'
        this.family = 'aix'
      }
      if (agt.indexOf("inux")!=-1) {
        this.group = 'unix'
        this.family = 'linux'
      }
      if ((agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1)) {
        this.group = 'unix'
        this.family = 'sco'
      }
      if (agt.indexOf("unix_system_v")!=-1) {
        this.group = 'unix'
        this.family = 'unixware'
          }
      if (agt.indexOf("ncr")!=-1) {
        this.group = 'unix'
        this.family = 'mpras'
      }
      if (agt.indexOf("reliantunix")!=-1) {
        this.group = 'unix'
        this.family = 'reliant'
      }
      if ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) || (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1)) {
        this.group = 'unix'
        this.family = 'dec'
      }
      if (agt.indexOf("sinix")!=-1) {
        this.group = 'unix'
        this.family = 'sinix'
      }
      if (agt.indexOf("bsd")!=-1) {
        this.group = 'unix'
        this.family = 'bsd'   
      }
      if ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1)) {
        this.group = 'vms'
        this.family = 'vms'   
      }
    }
    if (this.group=='') {this.group = 'unknown';}
    if (this.family=='') {this.family = this.group;}
    if (this.os=='') {this.os = this.family;}
  }
}

var BC = new ver;
if (BC.ie4up) document.createStyleSheet("css/fontsfree.css")
else if (BC.nav6up)  document.write ('<link rel="stylesheet" href="css/fontns6.css" />')
else if (BC.nav4up) document.write ('<link rel="stylesheet" href="css/fontns4.css" />')
else document.write ('<link rel="stylesheet" href="css/fontsfree.css" />')