var MM_contentVersion = 8;

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
/*/
var version = deconcept.SWFObjectUtil.getPlayerVersion();
var MM_FlashCanPlay = version["major"] > 0 && version["major"]>7;
*/
var DDflash = new Object();
DDflash.loadFlashObject = function(strSRC,strID,intWidth,intHeight,strWMode,hexBGcolor){
	if ( MM_FlashCanPlay == true) {
		document.writeln(""+
			"<object data=\""+strSRC+"\"  type=\"application/x-shockwave-flash\" width=\""+intWidth+"\" height=\""+intHeight+"\" id=\""+strID+"\">"+
			"	<param name=\"allowScriptAccess\" value=\"sameDomain\">"+
			"	<param name=\"movie\" value=\""+strSRC+"\">"+
			"	<param name=\"quality\" value=\"high\">"+
			"	<param name=\"wmode\" value=\""+strWMode+"\">"+
			" <param name=\"bgcolor\" value=\"#"+hexBGcolor+"\">"+
			"	<a href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">Klicken Sie hier um Flash zu installieren</a><br>"+
			"</object>");
/*"<OBJECT classid=\"clsid: d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" WIDTH=\"" + intWidth + "\" HEIGHT=\"" + intHeight + "\" id=\"" + strID +"\">"+
				"<PARAM NAME=\"movie\" VALUE=\"" + strSRC + "\" />" +
				"<PARAM NAME=\"quality\" VALUE=\"high\" />" +
				"<PARAM NAME=\"bgcolor\" VALUE=\"#"+ hexBGcolor + "\" />" +
				"<PARAM NAME=\"wmode\" VALUE=\"" + strWMode + "\" />" +
				"<PARAM NAME=\"play\" VALUE=\"true\" />" +
				"<EMBED src=\"" + strSRC + "\" " +
					"quality=\"high\" " +
					"wmode=\"" + strWMode + "\" " +
					"bgcolor=\"#" + hexBGcolor +"\" " +
					"WIDTH=\"" + intWidth + "\" " + 
					"HEIGHT=\"" + intHeight + "\" " +
					"NAME=\"" + strID + "\" " +
					"play=\"true\" " + 
					"TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\">" +
				"</EMBED>" +
			"</OBJECT>");
*/
	} else {
		var flashMsg = "Bitte installieren Sie <a href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">Flash 8 oder neuer<\/a>.<br><br>Anschliessend m&uuml;ssen Sie diese Seite neu laden!"
		document.writeln(flashMsg);
	}
}
		