
function writeFlashCode(
swfURL,
scriptAccess,
bgColor,
objectWidth,
objectHeigh
){

	var classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";
	var codebase="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";

	document.write("<object classid=\"" + classid + 
					"\" codebase=\"" + codebase + 
					"\" width=\""+ objectWidth + "\" height=\"" + objectHeigh + "\">");
	document.write("<param name=\"allowScriptAccess\" value=\"" + scriptAccess + "\" />");
	document.write("<param name=\"movie\" value=\"" + swfURL + "\" />");
	document.write("<param name=\"bgcolor\" value=\"" + bgColor + "\" />");
	document.write("<param name=\"menu\" value=\"false\" />");

	document.write("<embed src=\"" + swfURL + "\" ");
	document.write("quality=\"high\" ");
	document.write("bgcolor=\"" + bgColor + "\" ");
	document.write("width=\"" + objectWidth + "\" ");
	document.write("height=\"" + objectHeigh + "\" ");
	document.write("type=\"application/x-shockwave-flash\" ");
	document.write("menu=\"false\" ");
	document.write("pluginspage=\"" + codebase + "\" ");
	document.write("/>");

	document.write("</object>");
}


