// testIt
// Version 2.0 2006-11-13
// Added: IE 7.x

function testIt()
   {
   var browser      = navigator.userAgent.toLowerCase();

   this.macos       = (browser.indexOf("mac") != -1);
   this.win         = (browser.indexOf("win") != -1);

   this.iex         = (browser.indexOf("msie") > 0);

   this.nc          = (browser.indexOf("mozilla") != -1) && (browser.indexOf("compatible") == -1);

   this.opera       = (browser.indexOf("opera") > 0);

   this.version     = parseInt(navigator.appVersion);

   this.nc4         = ( this.version == 4 ) && this.nc;
   this.nc6         = ( this.version == 5 ) && this.nc;
   this.nc7         = ( this.version == 5 ) && this.nc; // !!!vorbereitet
   this.iex4        = ( browser.indexOf("msie 4") > 0 ) && this.iex;
   this.iex5        = ( browser.indexOf("msie 5.0") > 0 ) && this.iex;
   this.iex5up      = ( ( browser.indexOf("msie 5") > 0 ) || ( browser.indexOf("msie 6") > 0 ) ) && this.iex;
   this.iex55       = ( browser.indexOf("msie 5.5") > 0 ) && this.iex;
   this.iex6        = ( ( browser.indexOf("msie 6") > 0 ) || ( browser.indexOf("msie 7") > 0 ) ) && this.iex;
   this.iex8        = ( browser.indexOf("msie 8") > 0 ) && this.iex;

   // !!! neu fuer opera
   this.op5         = ( this.version == 5 ) && this.opera;
   this.op6         = ( this.version == 6 ) && this.opera;
   this.op7         = ( this.version == 7 ) && this.opera;

   this.w3c =  this.iex5up || this.iex6 || this.iex8 ||  this.nc6 || this.nc7 || this.op7; // !!!ausbauen
   this.width  = 800;
   this.height = 450;

   } // function testIt


// alle browser-eigenschaften zusammensammeln
me = new testIt();

// alert (this.version);
function setDim( obj )
  {
  if (obj.iex)
  		{
      obj.width  = document.body.clientWidth - 16; // standard-scroolbalken substrahieren
      obj.height = document.body.clientHeight;
   	}
   if (obj.nc)
      {
      obj.width = window.innerWidth - 16;
      obj.height = window.innerHeight;
      }
  } // function setDim

