// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.
if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
    + 'width="748" height="238"'
    + 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0">'
    + '<param name="movie" value="home-header.swf" />'
	+ '<param name="allowScriptAccess" value="sameDomain" />'
    + '<param name="play" value="true" />'
    + '<param name="quality" value="high" />'
    + '<param name="menu" value="false" />'
    + '<param name="bgcolor" value="#FFFFFF" />'	
    + '<!--[if !IE]> <-->'
    + '<object data="home-header.swf"'
    + 'width="748" height="238" type="application/x-shockwave-flash">'
    + '<param name="allowScriptAccess" value="sameDomain" />'
    + '<param name="quality" value="high" />'
	+ '<param name="menu" value="false" />'
	+ '<param name="bgcolor" value="#FFFFFF" />'
    + '<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />'
    + 'FAIL (the browser should render some flash content, not this).'
    + '</object>'
    + '<!--> <![endif]-->'
    + '</object>';

    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    // NOTE: height, width are required!
    var alternateContent = '<img src="images/home-header-noflash.jpg" width="748" height="238" alt="" />' 
      + '';

    document.write(alternateContent);  // insert non-flash content
  }
}