function writeSwf(pFile,pW,pH,pVer,pBg,divToHide)
{
	var shtml = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
	shtml += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + pVer + "\"";
	shtml += "  width=\"" + pW + "\" height=\"" + pH + "\" id=\"" + pFile + "\" align=\"\">";
	shtml += " <param name=movie value=\"" + pFile + "\">";
	shtml += " <param name=quality value=high>";
	if(pBg==undefined || pBg==null || pBg=="")
	{
		shtml += "";
	}
	else
	{
		shtml += " <param name=bgcolor value=" + pBg + ">";
	}
	shtml += " <param name=menu value=false>";
	shtml += " <embed src=\"" + pFile + "\" menu=false quality=high width=\"" + pW + "\" height=\"" + pH + "\" name=\"" + pFile + "\" align=\"\"";
	shtml += "  type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
	shtml += "     </object>"
	
	//document.write(shtml)
	
	if(divToHide!=null&&divToHide!=""&&divToHide!=undefined)
	{
		document.all[divToHide].innerHTML = shtml;
	}
	else
	{
		document.write(shtml)
	}
}

