	        <!--
	        	//@filename: flash_check.html -  file that checks for flash and what version
   				//Project: MOCA
   				//@copyright (c) 2001 MOCA - Mike Matute and Rex Ravenelle
    	    // -->   

    		    


function getFlashVersion(){ 
  // ie 
  try { 
    try { 
      // avoid fp6 minor version lookup issues 
      // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/ 
      var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); 
      try { axo.AllowScriptAccess = 'always'; } 
      catch(e) { return '6,0,0'; } 
    } catch(e) {} 
    return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; 
  // other browsers 
  } catch(e) { 
    try { 
      if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){ 
        return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; 
      } 
    } catch(e) {} 
  } 
  return '0,0,0'; 
} 


        	function detectFlash()
        	{       
        	
        	    var javascriptVersion = 1.0;

        		var javascriptVersion = 1.1;


        		var requiredVersion = 9;
        		var useRedirect = true;

        		//put the url here that will take you to the piece
        		var flashPage = "index_flash.php";
        		var noFlashPage = "../../decision.php?pMillerCheck=1";
        		var upgradePage = "../../decision.php?pMillerCheck=1";
        		
        	
        	    var actualVersion = getFlashVersion().split(',').shift();


                if (actualVersion >= requiredVersion)
                {
                        hasRightVersion = true;

                        if (useRedirect)
                        {
                                if (javascriptVersion >= 1.1)
                                {
                                        window.location.replace(flashPage);
                                } 
                                else
                                {
                                        window.location = flashPage;
                                }
                        }
                }
                else
                {
                        if (useRedirect)
                        {
                                if (javascriptVersion >= 1.1)
                                {
                                        window.location.replace((actualVersion >= 2) ? upgradePage : noFlashPage);
                                }
                                else
                                {
                                        window.location = (actualVersion >= 2) ? upgradePage : noFlashPage;
                                }
                        }
                }
        }
        
        


        detectFlash();

