/* JavaScript Datei: Browserkonstruktor                     */
/* Author Dirk Michel                                       */
/* Version 11.06.00                                         */
/* Verwendung in folgenden Pages                            */

function Get_Browsertyp()
{
	this.ver= navigator.appVersion;
	this.nam= navigator.appName;
         this.usera = navigator.userAgent;

	this.dom= document.getElementById?1:0;
//  alert("ver:"+this.ver+",dom:"+this.dom+ ",name:"+this.nam+", useragent: "+this.usera);
        if ((this.nam.indexOf("Microsoft")>-1) &&
            (this.nam.indexOf("Opera")==-1))
        {
		this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
		this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
		this.ie4 = (document.all && !this.dom)?1:0; // aktualisiert
		this.ns4 = 0;
		this.ns5 = 0;
                 this.ff  = 0;
		// this. ie4= (docum ent.all)? 1:0; ehemals (vor 10_2002)
	}
	else if ((this.nam.indexOf("Netscape")>-1) ||
	         (this.nam.indexOf("Mozilla")>-1)   )
	{
         	if (this.usera.indexOf("Firefox")>-1)
                 {
                 	this.ff = 1;
                         this.ns5 = 0;
                         this.ns4 = 0;
                 }
                 else
                 {
			this.ns5 = (this.dom && parseInt(this.ver) >= 5) ?1:0;
			this.ns4 = (document.layers)?1:0;
         	}
		this.ie4 = 0;
		this.ie5 = 0;
		this.ie6 = 0;
	}
	this.bw = (this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ff);
	return this;
}
