// 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 type="application/x-shockwave-flash" data="../flash/player.swf" width="400" height="380">'
    + '<param name="movie" value="../flash/player.swf" />'
    + '<p class="error">Oops!  It appears Javascript is not enabled for your browser.  Please enable it before viewing this page</p><\/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 = '<p class="error">Uh oh!  We were unable to detect the Macromedia Flash plugin for your browser.  This could be because the plugin is not installed or it is out of date.</p><p class="error">Please visit <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" rel="external" >Macromedia\'s web site</a> (this link will open in a new window) for download and installation instructions.</p><p class="error">Once your Flash player has been installed or upgraded, please refresh this page and the media clips should be displayed.</p>';

    document.write(alternateContent);  // insert non-flash content
  }
}