function MM_checkBrowser()
{
  var b = navigator.appName;
  
  if ( b == "Netscape" ) {
    this.b = "NN";
  } else if ( b == "Microsoft Internet Explorer" ) {
    this.b = "IE";
  } else {
    this.b = b;
  }
  
  this.version = navigator.appVersion;
  this.vSub = navigator.vendorSub;
  this.userAgent = navigator.userAgent;
  this.appVersion = navigator.appVersion;
  this.v = parseInt( this.version );
  this.vs = parseFloat( this.vSub );
  
  this.NN = ( this.b == "NN" );
  this.NN4 = ( this.b == "NN" && this.v == 4 );
  this.NN6x = ( this.b == "NN" && this.v == 5 && this.vs >= 6.01 );
  this.NN6 = ( this.b == "NN" && this.v == 5 );
  
  this.IE = ( this.b == "IE" );
  this.IE3 = ( this.userAgent.indexOf( 'MSIE 3' ) > 0 );
  this.IE45 = ( this.version.indexOf( 'MSIE 4.5' ) > 0 );
  this.IE401 = ( this.version.indexOf( 'MSIE 4.01' ) > 0 );
  this.IE4 = ( this.version.indexOf( 'MSIE 4' ) > 0 );
  this.IE51 = ( this.userAgent.indexOf( 'MSIE 5.1' ) > 0 );
  this.IE5 = ( this.version.indexOf( 'MSIE 5' ) > 0 );
  this.IE6 = ( this.version.indexOf( 'MSIE 6' ) > 0 );
  
  this.Win = ( navigator.appVersion.indexOf( "Win", 0 ) != -1 );
  this.Mac = ( navigator.appVersion.indexOf( "Mac", 0 ) != -1 );
  this.Unix = ( navigator.appVersion.indexOf( "X11", 0 ) != -1 );
}

var checkB = new MM_checkBrowser();

