<!-- Allgemein V130301 -->

function Is() {
    agent  = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns    = ((agent.indexOf('mozilla')   !=   -1) &&
                 ((agent.indexOf('spoofer')   ==   -1) &&
                 (agent.indexOf('compatible') ==   -1)));
    this.ns4   = (this.ns && (this.major      >=    4));
    this.ns6   = (this.ns && (this.major      >=    5));
    this.nss   = (this.ns && (navigator.plugins["LiveAudio"]?true:false));
    this.ie    = (agent.indexOf("msie")       !=   -1);
    this.ie3   = (this.ie && (this.major      ==    3) );
    this.ie4   = (this.ie && (this.major      ==    4) );
    this.ie5   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   !=   -1));
    this.ie55  = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.5")   !=   -1));

    this.width = null;
    this.height= null;
    this.doc = null;
    this.sty = null;
    this.htm = null;
    this.agent = agent;
    this.ready = false;
}

var is = new Is();

function StartIt() {
  if(is.ns4) {
    is.width=innerWidth;
    is.height=innerHeight;
    is.doc = "document";
    is.sty = ""; 
    is.htm = ".document";
    is.pleft = ".left";
    is.ptop = ".top";
  } else if(is.ie4) {
    is.width=document.body.clientWidth;
    is.height=document.body.clientHeight;
    is.doc = "document.all";
    is.sty = ".style"; 
    is.htm = "" 
    is.pleft = ".style.pixelLeft";
    is.ptop = ".style.pixelTop";
  }
  is.ready = true;
}
