//Load the flash movie
function loadAnimation(flashPath, images) {
  var so = new SWFObject(flashPath, "movie", "653", "196", "7", "#ffffff");

  so.addParam("quality", "high");
  so.addParam("wmode", "transparent");
  so.addParam("FlashVars", "_images="+images);
  so.write("flashContentContainer");
  setTimeout("checkForFlash('flashContentContainer', 'flashTest', 'noFlashContentContainer')", 500);
}

//Show the static version if the flash could not be loaded
function checkForFlash(flashContentContainer, flashTest, pageContentContainer) {
  var flashContentDiv = document.getElementById(flashContentContainer);
  var flashNotLoaded = document.getElementById(flashTest);
  var staticContentDiv = document.getElementById(pageContentContainer);

  if (flashNotLoaded) {
    flashContentDiv.style.display = "none";
    staticContentDiv.style.display = "block";
  } else {
    flashContentDiv.style.display = "block";
  }
}
