	var flash2Installed = false;
	var flash3Installed = false;
	var flash4Installed = false;
	var flash5Installed = false;
	var flash6Installed = false;
	var flash7Installed = false;
	var flash8Installed = false;
	var flash9Installed = false;
	var maxVersion = 9;
	var actualVersion = 0;
	var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;

 	if(isIE && isWin){
	  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	  document.write('on error resume next \n');
	  document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
	  document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
	  document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
	  document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
	  document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
	  document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
	  document.write('flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
	  document.write('flash9Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');
	  document.write('<\/SCR' + 'IPT\> \n');
	}
function weiterleiten() { self.location.href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=German"; }
function Show_and_detect_flash (requiredVersion, SwfUrl, SwfWidth, SwfHeight)
 {
	  if (navigator.plugins) {
		if (navigator.plugins["Shockwave Flash 2.0"]
			|| navigator.plugins["Shockwave Flash"]) {
		  var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
		  var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
		  //alert("Flash plugin description: " + flashDescription);
		  var flashVersion = parseInt(flashDescription.substring(16));
		  flash2Installed = flashVersion == 2;    
		  flash3Installed = flashVersion == 3;
		  flash4Installed = flashVersion == 4;
		  flash5Installed = flashVersion == 5;
		  flash6Installed = flashVersion == 6;
		  flash7Installed = flashVersion == 7;
		  flash8Installed = flashVersion == 8;
		  flash9Installed = flashVersion >= 9;
		}
	  }
	  // Nach der aktuellsten Version schauen
	  for (var i = 2; i <= maxVersion; i++) {  
		 if (eval("flash" + i + "Installed") == true) actualVersion = i;
	  }
	  if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 4; 
	  // alert("version detected: " + actualVersion);
	  // wenn eine passende version gefunden wurde
	  if (actualVersion >= requiredVersion)
	  {
		var flashsource =  '<TABLE border="0" margin="0" align="center" cellpadding="0" cellspacing="0">'
		+ '<TR>'
		+ '<TD vAlign="middle" align="center" border="0" >'
		+ '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
		+ 'width="' + SwfWidth + '" height="' + SwfHeight + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="allowscriptaccess" value="samedomain" />'
		+ '<param name="movie" value="' + SwfUrl + '" />'
		+ '<param name="play" value="true" />'
		+ '<param name="loop" value="false"/>'
		+ '<param name="quality" value="high" />'
//		+ '<param name="menu" value="false" />'
//		+ '<param name="wmode" value="opaque" />'
		+ '<embed src="' + SwfUrl + '"'
		+ 'width="' + SwfWidth + '" height=' + SwfHeight + ' play="true" '
		+ 'loop="false" '
		+ 'quality="high" '
		+ 'menu="false" '
//		+ 'wmode="opaque" '
		+ 'allowScriptAccess="sameDomain" '
		+ 'type="application/x-shockwave-flash" '
		+ 'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash">'
		+ '</embed>'
		+ '</object>\n'
		+ '		</TD></TR></TABLE>\n';
		document.write(flashsource);
	  } else {
				var alternateContent = '<scr'+'ipt type="text/javascript">window.setTimeout("weiterleiten()",20000);</scr'+ 'ipt>'
				+'<center>'
				+'<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">'
				+'<table border="0" cellpadding="0" cellspacing="2">'
				+'<tr>'
				+'	<td>'
				+'		<center>'
				+'			<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2" color="#000033">Um alle Funktionen des Flash-Specials nutzen zu k&ouml;nnen, ben&ouml;tigen Sie das <b>Flash ' + requiredVersion + ' Plugin</b>.</font>'
				+'			<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2" color="#000033">Sie haben entweder <b>gar keins</b> oder ein <b>altes Plugin</b> installiert.</font></p>'
				+'			<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2" color="#000033">Wir leiten Sie daher automatisch auf die<br>'
				+'			Macromedia-Seite, von der Sie den<b> aktuellen Flash Player kostenlos</b> herunterladen k&ouml;nnen.</font></p>'
				+'			<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2" color="#000033">Sollte Ihr Browser eine Weiterleitung nicht unterst&uuml;tzen, klicken Sie bitte auf den untenstehenden Button.<br>'
				+'			</font>'
				+'		</center>'
				+'	</td>'
				+'</tr>'
				+'<tr height="50">'
				+'	<td height="50" align="center"><a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English&Lang=German&P5_Language=German" target="_blank"><img src="download.gif" border="0"></a></td>'
				+'</tr>'
				+'</table>'
				+'</font>'
				+'</center>';
				document.write(alternateContent);}
}
