<!--

function browsertype(){
  // ＯＳ判定
  uAgent   = navigator.userAgent.toUpperCase();
  aName    = navigator.appName.toUpperCase();
  aVersion = navigator.appVersion.toUpperCase();

  isWin = (uAgent.indexOf("WIN") != -1); // Windows？
  isMac = (uAgent.indexOf("MAC") != -1); // Macintosh？
  isX11 = (uAgent.indexOf("X11") != -1); // X11(Unix)？

  this.os = "other";
  if (isWin) this.os = "win";
  if (isMac) this.os = "mac";
  if (isX11) this.os = "x11";


  // ブラウザ判定
  isIE = (uAgent.indexOf("MSIE") != -1);
  isNN = (aName=="NETSCAPE");

  this.browser = "other";
  if (isIE) this.browser = "ie";
  if (isNN) this.browser = "nn";


  // バージョン判定
  this.version = aVersion.substring(0,1);
  if (isIE){
    st = uAgent.indexOf("MSIE ",0) + 5;
    en = uAgent.indexOf(";",st);
    //this.version = uAgent.substring(st,st+1);
    this.version = uAgent.substring(st,en);
  }

  if (isNN){
    en = aVersion.indexOf(" ",0);
    this.version = eval(aVersion.substring(0,en));
    if (this.version >= 5) this.version++;
  }
  if (uAgent.indexOf("GECKO")!=-1) this.version = 6;

}



//-->

