//<![CDATA[
/**
 * Write a swf in the HTML page with swfobject
 * @param String swf The name of the swf to load
 * @param String div The id of the div box to update
 * @param String w The width of the swf
 * @param String h The height of the swf
 * @param Object flashvars The flashvars to pass-in the swf
 * @param Boolean wmode Defines the wmode policy
 * @return
 */
function embedSWF( swf, div, w, h, flashvars, wmode )
{
  var flashparams = 
  {
    bgcolor: "#ffffff",
    allowScriptAccess: "always"
  };
  
  if( wmode !== false )
  {
    flashparams.wmode = "transparent" ;
  }
  
  swfobject.embedSWF("/flash/" + swf, div, w, h, "10.0.0", "/flash/expressInstall.swf", flashvars, flashparams);
}
//]]>
