function BrowserCheck()
{
    var b = navigator.appName;
    if (b == "Netscape")
      this.b = "NS";
    else if (b == "Microsoft Internet Explorer")
      this.b = "IE";
    else
      this.b = b;
    this.v = parseInt(navigator.appVersion);
    this.NS = (this.b == "NS" && this.v>=4);
    this.NS4 = (this.b == "NS" && this.v == 4);
    this.NS5 = (this.b == "NS" && this.v == 5);
    this.IE = (this.b == "IE" && this.v >= 4);
    this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0);
    this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0);
    if (this.IE5 || this.NS5) this.VER5 = true;
    if (this.IE4 || this.NS4) this.VER4 = true;
    this.OLD = (! this.VER5 && ! this.VER4) ? true : false;
    this.min = (this.NS||this.IE);
}
is = new BrowserCheck();

function getMaxWH(win)
{
  var t = new Object();
  t.width = 800;
  t.height = 600;

  if(is.IE)
  {
    t.width = parseInt(win.document.body.clientWidth)-5;
    t.height = parseInt(win.document.body.clientHeight)-15;
  }
  else if(is.NS)
  {
    t.width = parseInt(win.innerWidth)-25;
    t.height = parseInt(win.innerHeight)-25;
  }
  return t;
}

