function EmbedFlashMovie(doc, id, src, width, height, bgcolor)
{
  doc.write('\n<object id="'+id+'" classId="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0">');
  doc.write('\n<param name="movie" value="'+src+'" />');
  doc.write('\n<param name="bgcolor" value="'+bgcolor+'" />');
  doc.write('\n<param name="menu" value="false" />');
  doc.write('\n<param name="quality" value="best" />');
  doc.write('\n<param name="SeamlessTabbing" value="false" />');
  doc.write('\n<param name="allowScriptAccess" value="sameDomain" />');
  doc.write('\n<embed name="'+id+'" src="'+src+'" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" bgcolor="'+bgcolor+'" menu="false" quality="best" SeamlessTabbing="false" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
  doc.write('\n</object>');
}
