function fpi_swap(strFlash, strNoFlash)
{
	detectFlash();
// 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 = strFlash;

    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 = strNoFlash;

    document.write(alternateContent);  // insert non-flash content
  }
}

}

function fpi_redirect(strFlashUrl, strNoFlashUrl, strUpgradeUrl)
{
	useRedirect = true;    // Flag indicating whether or not to load a separate
                           // page based on detection results. Set to true to
                           // load a separate page. Set to false to embed the
                           // movie or alternate html directly into this page.
                           
	flashPage   = strFlashUrl;   // The location of the flash movie page
	noFlashPage = strNoFlashUrl;  // Page displayed if the user doesn't have the
	                              // plugin or we can't detect it.
	upgradePage = strUpgradeUrl;
	
	detectFlash();
}