var 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.
                           
var redirectPage   = "congreso/index.htm"    // The location of the flash movie page
var jsVersion = 1.0;            // the version of javascript supported

function redirectTo() {
    if (useRedirect) {
      // Need javascript1.1 to do location.replace
      if(jsVersion > 1.0) {
        // It's safe to use replace(). Good...we won't break the back button.
        window.location.replace(redirectPage);  
      } else {
        // JavaScript version is too old, so use .location to load
        // the flash page.
        window.location = redirectPage;
      }
    }
}

redirectTo();    

