/*
<script language="javascript" type="text/javascript">
<!--
	var flashMovieURL='img/de/eingabe_flash.swf';
	var flashMovieX=584;
	var flashMovieY=364;
	var flashMovieName='swf1';
	var requiredVersion = 5;
	var flashBgColour='#ffffff';
	var errorHTML='<img src="TODO 4 gabi: error gif saying flash is not installed/less that required version">';

	writeFlashEmbed(requiredVersion,flashMovieURL,flashMovieName,flashMovieX,flashMovieY,flashBgColour,errorHTML);
// -->
</script><noscript>
TODO 4 GABI: html here when javascript is disabled
</noscript>
*/

function writeFlashEmbed(v,url,n,x,y,bg,e) {
	var embstr='<object  id="'+n+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' + 
		'codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version='+v+',0,0,0" ' + 
		'width="'+x+'" height="'+y+'"><param name=movie value="'+url+'">' + 
		'<param name="quality" value="high"> <param name="bgcolor" value="'+bg+'">' + 
		'<embed name="'+n+'" swLiveConnect="true" mayscript src="'+url+'" quality="high" bgcolor="'+bg+'" ' + 
		'swLiveConnect=false width="'+x+'" height="'+y+'" type="application/x-shockwave-flash" ' + 
		'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">' + 
		'<'+'/embed><'+'/object>';
	
	if(flashVersion==0) {
		getFlashVersion();
	}
	if(flashVersion >= v || //ok version
	   flashVersion == flashVersion_DONTKNOW || flashVersion == null ) // can't detect for whatever reason
	{
		document.write(embstr);
		flashOK=true;
	}
	else if (flashVersion > 0 || //flash ver < required version
	         flashVersion == 0) //not installed
	{
		if(e==false) { //if e is false do not show the error html but embed anyway: allows the user to click toget the plug/actx ding
			document.write(embstr);
		} else {
			document.write(e);
		}
		
	}
}
