/*
  description:  identify browser implementation 
  version:      1.0
  email:        info@businesslearninginc.com
  source:       unknown
*/

var browser_sniff = new browser_sniffer(); 
function browser_sniffer() 
  { 
  this.ver   = navigator.appVersion; 
  this.agent = navigator.userAgent.toUpperCase(); 
  this.dom   = document.getElementById ? 1 : 0; 
  
  this.NS4   = (document.layers && !this.dom) ? 1 : 0; 
  this.NS6   = (this.dom && parseInt(this.ver) >= 5 ) ? 1 : 0; 
  this.IE4   = (document.all && !this.dom) ? 1 : 0; 
  this.IE5   = (this.ver.indexOf("MSIE 5") > -1 && this.dom) ? 1 : 0; 
  this.IE6   = (this.ver.indexOf("MSIE 6") > -1 && this.dom) ? 1 : 0; 
  this.IE    = this.IE4 || this.IE5 || this.IE6; 
  this.MAC   = this.agent.indexOf( "MAC") ? 0 : 1; 
  
  return this; 
  }
