<!-- Detect flash srction -->
var flashObj7 = false;

var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;    
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; 

if(isIE && isWin){
  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	  document.write('flashObj7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');  
  document.write('</SCR' + 'IPT\> \n'); 

}

function detectFlash() {  

  if (navigator.plugins) {
    if (navigator.plugins["Shockwave Flash 2.0"]
        || navigator.plugins["Shockwave Flash"]) {
		
      var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
      var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;  
      var flashVer = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));

       flashObj7 = flashVer >= 7;
    }
  }	
  
	
	if ( flashObj7 == true ) {	
		//try popup
		//fullscreen();				
	} else {
		window.location = noFlashPage;	
	}
}

detectFlash();	

<!-- End detect flash srction -->
 
