// ua.js - Detect Browser// Requires JavaScript 1.1/*	The contents of this file are subject to the Netscape PublicLicense Version 1.1 (the "License"); you may not use this fileexcept in compliance with the License. You may obtain a copy ofthe License at http://www.mozilla.org/NPL/Software distributed under the License is distributed on an "ASIS" basis, WITHOUT WARRANTY OF ANY KIND, either express orimplied. See the License for the specific language governingrights and limitations under the License.The Initial Developer of the Original Code is Bob Clary.Contributor(s): Bob Clary, Original Work, Copyright 1999-2000                Bob Clary, Netscape Communications, Copyright 2001Alternatively, the contents of this file may be used under theterms of the GNU Public License (the "GPL"), in which case theprovisions of the GPL are applicable instead of those above.If you wish to allow use of your version of this file onlyunder the terms of the GPL and not to allow others to use yourversion of this file under the NPL, indicate your decision bydeleting the provisions above and replace them with the noticeand other provisions required by the GPL.  If you do not deletethe provisions above, a recipient may use your version of thisfile under either the NPL or the GPL. */// work around bug in xpcdom Mozilla 0.9.1window.saveNavigator = window.navigator;// Handy functions **** WIRD GRAD NET GEBRAUCHT ****/* noop() {}function noerror() { return true; }function defaultOnError(msg, url, line){	// customize this for your site	if (top.location.href.indexOf('_files/errors/') == -1)		top.location = '/evangelism/xbProjects/_files/errors/index.html?msg=' + escape(msg) + '&url=' + escape(url) + '&line=' + escape(line);}// Display Error page... // XXX: more work to be done here//function reportError(message){	// customize this for your site	if (top.location.href.indexOf('_files/errors/') == -1)		top.location = '/evangelism/xbProjects/_files/errors/index.html?msg=' + escape(message);}function pageRequires(cond, msg, redirectTo){	if (!cond)	{		msg = 'This page requires ' + msg;		top.location = redirectTo + '?msg=' + escape(msg);	}	// return cond so can use in <A> onclick handlers to exclude browsers	// from pages they do not support.	return cond;} */function detectBrowser(){	//var oldOnError = window.onerror; **** WIRD GRAD NET GEBRAUCHT ****	var element = null;		//window.onerror = defaultOnError; **** WIRD GRAD NET GEBRAUCHT ****	navigator.OS		= '';	navigator.version	= 0;	navigator.org		= '';	navigator.family	= '';	var platform; 	if (typeof(window.navigator.platform) != 'undefined') 	{ 		platform = window.navigator.platform.toLowerCase();		if (platform.indexOf('win') != -1) 		    navigator.OS = 'win';	    else if (platform.indexOf('mac') != -1 || platform.indexOf('macppc') != -1)		    navigator.OS = 'mac';	    else if (platform.indexOf('unix')!= -1 ||		         platform.indexOf('linux') != -1 ||				 platform.indexOf('sun') != -1)		    navigator.OS = 'nix'; } 	var i = 0;	ua = window.navigator.userAgent.toLowerCase();		if ( ua.indexOf('icab') != -1 ) {		i = ua.indexOf('icab');		navigator.family = 'icab';		navigator.org = 'icab';		navigator.version = parseFloat('0' + ua.substr( i + 5 ), 10);	}		else if (ua.indexOf('opera') != -1)	{		i = ua.indexOf('opera');		navigator.family	= 'opera';		navigator.org		= 'opera';		navigator.version	= parseFloat('0' + ua.substr(i+6), 10);	}	else if ((i = ua.indexOf('msie')) != -1)	{		navigator.org		= 'microsoft';		navigator.version	= parseInt ('0' + ua.substr(i+5), 10 );				switch ( navigator.version ) {		  case 3:			navigator.family = 'ie3';			break;		  case 4:			navigator.family = 'ie4';			break;		  case 5:			navigator.family = 'ie5';			break;		  case 6:			navigator.family = 'ie6';			break;		  default:			navigator.family = 'veryoldmsie'		}						}	else if (typeof(window.controllers) != 'undefined' && typeof(window.locationbar) != 'undefined')		// true for current netscape browser > 6.x and current versions of mozilla	{		i = ua.lastIndexOf('/');		navigator.version = parseFloat( ua.substr(i + 1), 10);		navigator.family = 'gecko';		if (ua.indexOf('netscape') != -1)			navigator.org = 'netscape';		else if (ua.indexOf('compuserve') != -1)			navigator.org = 'compuserve';		else			navigator.org = 'mozilla';	}        // if we get here, it's probably an older Netscape (1.x, 2.x, 3.x or 4.x)	else if ((ua.indexOf('mozilla') !=-1) && 	         (ua.indexOf('spoofer')==-1) && 			 (ua.indexOf('compatible') == -1) && 			 (ua.indexOf('opera')==-1) && 			 (ua.indexOf('webtv')==-1) && 			 (ua.indexOf('hotjava')==-1))	{	    var is_major = parseFloat(navigator.appVersion);    		if (is_major < 4)			navigator.version = is_major;		else		{			i = ua.lastIndexOf('/')			navigator.version = parseFloat('0' + ua.substr(i+1), 10);		}		navigator.org = 'netscape';		navigator.family = 'nn' + parseInt(navigator.appVersion);	}	else if ((i = ua.indexOf('aol')) != -1 )	{		// aol		navigator.family	= 'aol';		navigator.org		= 'aol';		navigator.version	= parseFloat('0' + ua.substr(i+4), 10);	}	navigator.DOMCORE1	= (typeof(document.getElementsByTagName) != 'undefined' && typeof(document.createElement) != 'undefined');	navigator.DOMCORE2	= (navigator.DOMCORE1 && typeof(document.getElementById) != 'undefined' && typeof(document.createElementNS) != 'undefined');	navigator.DOMHTML	= (navigator.DOMCORE1 && typeof(document.getElementById) != 'undefined');	navigator.DOMCSS1	= ( (navigator.family == 'gecko') || (navigator.family == 'ie4') );	navigator.DOMCSS2   = false;	if (navigator.DOMCORE1)	{		element = document.createElement('p');		navigator.DOMCSS2 = (typeof(element.style) == 'object');	}	navigator.DOMEVENTS	= (typeof(document.createEvent) != 'undefined');	//window.onerror = oldOnError; **** WIRD GRAD NET GEBRAUCHT ****}detectBrowser();// load 96dpi-css for newer browserif (( navigator.version >= 5 ) ||	( navigator.org != 'microsoft' && 		navigator.org != 'netscape' ) ||	( navigator.OS != 'mac')){	document.write('<link href="macforum.css" rel="stylesheet" type="text/css">'); 	}			      						message='<p><b class="ue2">Ach du meine G&uuml;te, Sie Armer, Sie \verwenden keinen Macintosh-Rechner!...</b> Falls sie einen Windows-PC \benutzen, mein aufrichtiges Beileid. Schon einmal an Alternativen gedacht? \Wenn sie ein "Poweruser" sind, keine "gibt es bisher nur f&uuml;r \Windows" -Anwendungen ben&ouml;tigen (Tendenz fallend) \und ihren PC behalten wollen, \dann ist Linux eine Alternative. F&uuml;r alle anderen F&auml;lle \empfehle ich einen Apfelrechner mit MacOS. Ausgereifte, endkontrollierte \Hardware, lange Ersatzteilversorgung, funktionierender Support f&uuml;r \USB, Firewire, WLAN, bei aktuellen Rechnern (und bei alten Rechnern \super-SCSI-Support, serielle Hight-Speed-Schnittstellen Standard ...), echtes Plug\'n Play, \und und und ..., plus endlich ein Betriebsystem, das nicht nur von der Bedienbarkeit, \sondern auch vom technischen Aufbau Ma§st&auml;be setzt. \<br><b class="grun">Mittwoch, \29.09.2001</b></p></p>';message1='<p><b class="ue2">Ihnen ist die Schrift zu klein...</b> Sie \verwenden wahrscheinlich <B>Microsoft Internet Explorer ab Version 5.0</B> \oder <B>Netscape ab Version 6.0</B>; F&uuml;r den <b>Explorer:</b> Bei \Bearbeiten --> Optionen --> Webbrowser --> Sprache/Schriftarten --> \Schriftart und Schriftgrad --> Aufl&ouml;sung "96dpi (Standard)" \einstellen!  F&uuml;r <b>Netscape:</b> Ebenfalls "96 dpi" einstellen, bei \Bearbeiten --> Voreinstellungen --> Erscheinungsbild --> Schriften --> \Aufl&ouml;sung. "96 dpi" ist zwar die Voreinstellung bei diesen neuen \Browsern direkt nach der Installation, aber man wei&szlig; ja nie. \<br><b class="grun">Mittwoch, 29.09.2001</b></p>';						
