<!--

function writeFlash(filename,width,height,flashvars)
{
      flashvars+="&w="+width+"&h="+height;
	if(!width)
	{
		window.alert("No width given");
	}else
	{
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"');
		document.write(' ID=game WIDTH='+width+' HEIGHT='+height+'>');
		document.write(' <PARAM NAME=menu VALUE=false>');
	      document.write(' <PARAM NAME=FlashVars VALUE="'+flashvars+'">');
		document.write(' <PARAM NAME=movie VALUE="'+filename+'">');
		document.write(' <PARAM NAME=quality VALUE=high>');

		document.write(' <PARAM NAME=scale VALUE=noscale>');
		document.write(' <PARAM NAME=salign VALUE=LT>');
// 		document.write(' <PARAM NAME=wmode VALUE=transparent>');// don't do this, because of bug in Firefox!
		document.write(' <PARAM NAME=bgcolor VALUE=#ffffff>');
		document.write('<EMBED src="'+filename+'"');
		document.write(' Flashvars="'+flashvars+'" menu=false quality=high');
// 		document.write(' wmode=transparent');// don't do this, because of bug in Firefox!
 		document.write(' scale=noscale salign=LT');
 		document.write(' bgcolor=#ffffff');
		document.write(' WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" ');
		document.write('  PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write('</EMBED>');
		document.write('</OBJECT>');
	}
}

function writeFlashTransparant(filename,width,height,flashvars)
{
      flashvars+="&w="+width+"&h="+height;
	if(!width)
	{
		window.alert("No width given");
	}else
	{
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"');
		document.write(' ID=game WIDTH='+width+' HEIGHT='+height+'>');
		document.write(' <PARAM NAME=menu VALUE=false>');
	      document.write(' <PARAM NAME=FlashVars VALUE="'+flashvars+'">');
		document.write(' <PARAM NAME=movie VALUE="'+filename+'">');
		document.write(' <PARAM NAME=quality VALUE=high>');
		document.write(' <PARAM NAME=wmode VALUE=transparent>');
		document.write(' <PARAM NAME=bgcolor VALUE=#ffffff>');
		document.write('<EMBED src="'+filename+'"');
		document.write(' Flashvars="'+flashvars+'" menu=false quality=high wmode=transparent bgcolor=#ffffff');
		document.write(' WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" ');
		document.write('  PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write('</EMBED>');
		document.write('</OBJECT>');
	}

}

function writeFlashVars(filename,width,height,flashvars)
{
      flashvars+="&w="+width+"&h="+height;
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"');
	document.write(' ID=game WIDTH='+width+' HEIGHT='+height+'>');
	document.write(' <PARAM NAME=menu VALUE=false>');
	document.write(' <PARAM NAME=FlashVars VALUE="'+flashvars+'">');
	document.write(' <PARAM NAME=movie VALUE="'+filename+'">');
	document.write(' <PARAM NAME=quality VALUE=high>');
	document.write(' <PARAM NAME=wmode VALUE=transparent>');
	document.write(' <PARAM NAME=bgcolor VALUE=#ffffff>');
	document.write('<EMBED src="'+filename+'"');
	document.write(' Flashvars="'+flashvars+'" menu=false quality=high wmode=transparent bgcolor=#ffffff');
	document.write(' WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" ');
	document.write('  PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
// -->

