function EmbedFlash(path, height, width, flashvars)
{
    var obj = "<object codeBase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" quality=\"best\" ";
  if(height.length > 0)
      obj += "height=\"" + height + "\" ";
  
  if(width.length > 0)
      obj += "width=\""+ width + "\" ";
  
  obj += "classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" >\r\n";

  //jbhf: added vmmode=transparent parameter to allow for layering using z-index.
  document.write(obj)
  document.write("<param name=\"flashvars\" value=\"" + flashvars + "\" />\r\n" );
  document.write("<param name=\"movie\" value=\"" + path + "\" />\r\n" );
  document.write("<param name=\"src\" value=\"" + path + "\" />\r\n" );
  document.write("<param name=\"quality\" value=\"best\" />\r\n");
  document.write("<param name=\"wmode\" value=\"transparent\" />\r\n");
  document.write("<embed src=\"" + path + "\" quality=\"high\" flashvars=\"" + flashvars + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" wmode=\"transparent\" height=\"" + height + "\" width=\"" + width + "\" />\r\n");
  document.write("</object>\r\n");

}
