/*  Autor, Entwicklung 8/2002 Kristof Lipfert Duesseldorf */
/*  http://www.lipfert-malik.de/webdesign/tutorial/bsp/browser_js_test.html */    
/*  Version 2011-06-03  Mobile Browser: "opMobile" hinzugefügt */   

if(document.ids)x='nc4';
else if( document.all && !document.getElementById )x='ie4';
else if( window.opera && !document.createElement )x='op5';
else if( window.opera && window.getComputedStyle )  { 
		if(document.designMode)x='op9';
		  else if(document.compareDocumentPosition)x='opMobile';
		   else if(document.createRange)x='op8';
            else if(window.navigate)x='op7';      //7.5
                             else x='op7';   }    //7.2
else if( window.opera && document.compatMode )x='op7';
else if( window.opera && document.releaseEvents )x='op6';
else if( document.contains && !window.opera )x='kq3';
else if(window.pkcs11&&window.XML)x='f15';
else if( window.getSelection && window.atob )x='nn7';
else if( window.getSelection && !document.compatMode )x='nn6';
else if( window.clipboardData && document.compatMode )
  x=window.XMLHttpRequest? 'ie7' : 'ie6';
else if( window.clipboardData ){x='ie5';
     if( !document.createDocumentFragment ) x='ie5';  //x+='.5'
     if( document.doctype && !window.print ) x='ie5';} //x+='m'
else if( document.getElementById && !document.all ) x='op4';
else if( document.images && !document.all ) x='nn3';
else if(document.clientWidth&&!window.RegExp)x='kq2';
else x='???';

var browser=x;

//alert (browser);

//Meldung bei alten Browsern
if (browser == "nn6" || browser == "nc4" || browser == "op7" || browser == "op8" || browser == "op6"|| browser == "ie4"|| browser == "ie5") {
alert("Diese Website ist für aktuelle Browser optimiert: \n Die folgenden Browser wurden getestet: \n \n Firefox ab Version 1.5 \n Internet Explorer ab Version 6 \n Opera ab Version 9 \n Netscape ab Version 7.0 \n \n Bitte installieren Sie einen aktuellen Browser!");
}


