function Browser()
{
   var agent = navigator.userAgent.toLowerCase(); 
   this.mac = ( agent.indexOf("mac") != -1 );
   this.win = !this.mac;
   this.winax = ( window.ActiveXObject ) ? true:false;
   this.w3c = ( document.getElementById ) ? true:false;
   this.iex = ( document.all ) ? true:false;
   this.ns4 = ( document.layers ) ? true:false;
   this.images = ( document.images ) ? true:false;
   this.ce = ( document.createElement ) ? true:false;
   
   this.toString = function()
   { 
      return 'Browser\nAgent ' + agent + '\nMac ' + this.mac + '\nWin ' + this.win + '\nActiveX ' + this.winax + '\nW3c ' + this.w3c + '\nIex ' + this.iex + '\nNs4 ' + this.ns4 + '\nImages ' + this.images + '\nCreate Element ' + this.ce 
   };
}
var Browser = new Browser();
