	var IS_FLASH;

	var flashVersion, flashVersionInt;

			

	function doRegular(w){

                 IS_FLASH = false;

            }

            

            //

            function doFlash(w){

                 IS_FLASH = true;

            }

            

            //

            function detectFlash(){

                 //

                 function reviewVersion(ver){

                      vo = ver.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(",");

                      flashVersion = vo[0]+"."+vo[1]+"."+vo[2];

                      flashVersionInt = parseInt(flashVersion);

                      doFlash();

                 }

                 

                 //

                 function detectVersion(ver){

                      if (ver == 6){

                           try {

                                var ax=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");

                                reviewVersion(ax.GetVariable("$version"));

                           }

                           catch (e) {

                                doRegular();

                           }

                           return;

                           }

                      try {

                           var ax=new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + ver);

                           reviewVersion(ax.GetVariable("$version"));

                      }

                      catch (e) {

                           detectVersion(ver - 1);

                      }

                 }

                 

                 if(navigator.plugins&&navigator.mimeTypes.length){

                      var x=navigator.plugins["Shockwave Flash"];

                      if(x&&x.description){

                           vo = x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".");

                           flashVersion = vo[0]+"."+vo[1]+"."+vo[2];

                           flashVersionInt = parseInt(flashVersion);

                           doFlash();

                           } else {

                                doRegular();

                           }

                 } else {

                      detectVersion(9);

                 }

            }

            

            detectFlash();

			

			




