function ActivateFlash(movie, width, height, bgColor, attributes)
{
	if (!attributes)
		attributes = "";
	
	document.write('<object type="application/x-shockwave-flash" '+attributes+' data="'+movie+'" width="'+width+'" height="'+height+'">');
	document.write('	<param name="allowScriptAccess" value="sameDomain">');
	document.write('	<param name="quality" value="high">');
	document.write('	<param name="movie" value="'+movie+'">');
	if (bgColor)
		document.write('	<param name="bgcolor" value="'+bgColor+'">');
	document.write('</object>');
}