
var MM_contentVersion = 6;
var MM_FlashCanPlay = false;
function checkFlash(FLASHVERSION)
{

MM_contentVersion = FLASHVERSION;
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]; 
	    }
	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');
}
	return MM_FlashCanPlay;
}



function CreateControl(DivID, CLSID, ObjectID,
                       WIDTH, HEIGHT, URL, AUTOSTART,VERVOLGURL,FLASHVERSION,IMG)
{
	if(typeof(bgcolor)=="undefined" || bgcolor=="")
		bgcolor = "#99EBF9";
	var d = document.getElementById(DivID);
	if(checkFlash(FLASHVERSION))
	{
		
		if(navigator.appName=="Microsoft Internet Explorer")
		{
			d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + ' width="' + WIDTH + '" height="' + HEIGHT +'" align=""><param name="movie" value=' + URL + '><param name=quality value=high><param name=bgcolor value='+bgcolor+'><param name="menu" value="false"><param name="autoStart" value=' + AUTOSTART + '/><param name="scale" value="exactfit"/></object>';
		}
		else
		{
			d.innerHTML = '<EMBED scale="exactfit" src="'+URL+'" quality=high bgcolor='+bgcolor+'  WIDTH="'+WIDTH+'" HEIGHT="'+HEIGHT+'" NAME="akara webdiensten" ALIGN="" scale="exactfit" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" menu="false" scale="exactfit"></EMBED>';
		}
	}

	bgcolor = "";
}

