//Browsersniffer, liefert anbieter, version und betriebssystem in einem string, bsp M5W für Microsoft,5er,Windows und den zusatz, ob flash drin ist (0|1) am ende
//Ausgaben M4W,M5W,N4W,N5W,M4M,N4M,OW

if (navigator.appName.substr(0,1)=='M') //Internet Explorer
{
v=0
if (window.clipboardData) v=1;
bN='M'+(parseFloat(navigator.appVersion)+v); 
(!window.opera) ? null : bN='O';
} else if (navigator.appName.substr(0,1)=='N') //Netscape
{
v=parseFloat(navigator.appVersion)+""
v=v.substr(0,1);
bN='N'+v 
} else { bN='0'}
bN=bN+navigator.platform.substr(0,1);

//Netscape Flash-Abfrage
ver=0;
if (navigator.plugins && navigator.plugins['Shockwave Flash']) 
{
   var words = navigator.plugins["Shockwave Flash"].description.split(" ");
   for (var a = 0; a < words.length; ++a){
		if (isNaN(parseInt(words[a])))
		continue;
		ver = parseInt(words[a]);
    }
} 
(ver>=6) ? bN+=6 : bN+=0;

//Internet Explorer FlashAbfrage
if (bN=='M5W0' || bN=='M4W0')
{
document.write(''+
'<s'+'cript language="VBScript">\nOn error resume next\n'+
'ver=0\n'+
'For i=6 to 3 step -1\n'+
'Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)\n'+
'v = IsObject(x)\n'+
'if v then \n'+
'ver=i\n'+
'Exit For\n'+
'End If\n'+
'next\n'+
'</scrip'+'t>')
bN=bN.substr(0,3)+ver;
}
// allgemeine funktionen

(bN.substr(3,4)=='6')? flash=true : flash=false;
//alert(flash);
//alert(bN);
querystring = document.location.href;
noflPosition = querystring;
/*
if (!flash) {
	if (querystring.indexOf("noflash") == -1) {
		if (querystring.indexOf("?") == -1) {
			document.location.href = document.location.href + "?noflash=true"
		} else {
			document.location.href = document.location.href + "&noflash=true"
		}
	}
}
*/
