﻿// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
    var requiredMajorVersion = 9;
// Minor version of Flash required
    var requiredMinorVersion = 0;
// Minor version of Flash required
    var requiredRevision = 115;
// -----------------------------------------------------------------------------

function CheckFlash() {
     // Version check based upon the values entered above in "Globals"
     var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

     // Check to see if the version meets the requirements for playback
     if (hasReqestedVersion) {
         // if we've detected an acceptable version
         // embed the Flash Content SWF when all tests are passed
         //alert("Flash player installed!");
     }
     else {  // flash is too old or we can't detect the plugin
         alert("This site requires Adobe Flash (verstion 9.0.115 or later) - a free web tool - to be installed. You will " +
          "now be redirected to Adobe's Download page where you can install the Flash Plug-In. " +
          "Once that is installed, please restart your web browser and try visiting us again!" +
          "We're sorry for any inconvenience this may have caused!");
         //SwitchModalPopups();

         window.location = "http://get.adobe.com/flashplayer/";
     } 
 }