/*2002.07.17, SaschaBeschreibung: Das Objekt Browser() ermittelt clientseitig               informationen über den benutzen Browser.              Das Objekt besitzt nur lesbare Eigenschaften.              Konstruktor: Browser()Eigenschaften: Achtung: Eigenschaften dürfen nur lesend angesprochen werden!               String:  -plattform    Werte: "windows"                                             "linux"                                             "mac"                                             "unbekannt"                                             	                -name         Werte: "ie" (Microsoft Internet Explorer)	                                     "ns" (Netscape)	                                     "mo" (Mozilla)	                                     "op" (Opera)	       Float:   -version      Werte: Versionsnummer des gerade verwendeten                                             Browsers im Fließkommaformat (z.B.: 5.01)                                                           Boolean: -ie           Internet Explorer allgemein                        -ie4          Internet Explorer > 3 und < 5                        -ie5          Internet Explorer > 4 und < 6                        -ie6          Internet Explorer > 5 und < 7                        -ns           Netscape allgemein                        -ns4          Netscape > 3 und < 5                        -ns6          alle Netscape 6 und Mozilla                        -ns7          alle Netscape 7                        -op           Opera allgemein*/function BrowserArt() {		// Browserart	if(navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf('Opera') == -1) {				// Internet Explorer		this.ie = true;				// Version		this.version = parseFloat( navigator.userAgent.substring( navigator.userAgent.indexOf('MSIE') + 5, navigator.userAgent.lastIndexOf(';') ) );		if(this.version > 3 && this.version < 5) {						this.ie4 = true;		}		else if(this.version > 4 && this.version < 6) {						this.ie5 = true;		}		else if(this.version > 5 && this.version < 7) {						this.ie6 = true;		}			// Name des Browsers		this.name = 'ie';			}	else if(navigator.appName == 'Netscape' && navigator.userAgent.indexOf('Opera') == -1) {				// Netscape		this.ns = true;				// Version		if(navigator.userAgent.indexOf('Netscape/7') != -1 && navigator.userAgent.indexOf('Gecko') != -1) {						von = navigator.userAgent.lastIndexOf('/') + 1;			bis = navigator.userAgent.length;			this.version = parseFloat( navigator.userAgent.substring( von, bis ) );			this.ns7     = true;					// Name des Browsers			this.name = 'ns';				}		else if(navigator.userAgent.indexOf('Netscape') == -1 && navigator.userAgent.indexOf('Gecko') != -1) {						von = navigator.userAgent.lastIndexOf('rv:') + 3;			bis = navigator.userAgent.lastIndexOf(')');			this.version = parseFloat( navigator.userAgent.substring( von, bis ) );			this.ns6     = true;			this.ns7     = true;					// Name des Browsers			this.name = 'mo';		}		else if(navigator.userAgent.indexOf('Netscape6') != -1 && navigator.userAgent.indexOf('Gecko') != -1) {						von = navigator.userAgent.lastIndexOf('/') + 1;			bis = navigator.userAgent.length;			this.version = parseFloat( navigator.userAgent.substring( von, bis ) );			this.ns6     = true;					// Name des Browsers			this.name = 'ns';				}		else if( parseInt( navigator.userAgent.substr( navigator.userAgent.indexOf('/') + 1, navigator.userAgent.indexOf(' ') ) ) < 5		         &&		         parseInt( navigator.userAgent.substr( navigator.userAgent.indexOf('/') + 1, navigator.userAgent.indexOf(' ') ) ) > 3 ){						this.version = parseFloat(navigator.appVersion);			this.ns4     = true;					// Name des Browsers			this.name = 'ns';				}	}	else if(navigator.userAgent.indexOf('Opera') != -1) {				// Opera		this.op = true;				// Version		von = navigator.userAgent.indexOf('Opera') + 6;		bis = navigator.userAgent.lastIndexOf(' ');		this.version = parseFloat( navigator.userAgent.substring( von, bis ) );			// Name des Browsers		this.name = 'op';			}}function Browser() {		// Eigenschaften	this.ie        = false;	this.ie4       = false;	this.ie5       = false;	this.ie6       = false;	this.ns        = false;	this.ns4       = false;	this.ns6       = false;	this.ns7       = false;	this.op        = false;	this.name      = "unbekannt";	this.version   = 0;	this.plattform = "unbekannt";		// Methoden	// private	this.browserArt = BrowserArt;		// Plattform	if(navigator.platform.indexOf('Win32') != -1) { 				// Windows Plattform		this.plattform = 'windows';				this.browserArt();	}	else if(navigator.platform.indexOf('Linux') != -1) {				// Linux Plattform		this.plattform = 'linux';				this.browserArt();	}	else if(navigator.platform.indexOf('Mac') != -1) {				// Macintosh Plattform		this.plattform = 'mac';				this.browserArt();	}	else { 				// Unbekannte Plattform		this.plattform = 'unbekannt'; 	}	}