    actualVersion = 0;
    var flash5Installed = false;
    var flash6Installed = false;
    var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;	// true if we're on ie
    var isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false; // true if we're on mac
      
      if(isIE && !isMac) {
    	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
    	document.write('on error resume next \n');
    	document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
        document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
    	document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script
    }
      
      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 flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
        	if (flashVersion >= 5){ flash5Installed = true;}
            if (flashVersion >= 6){ flash6Installed = true;}
    	}
    }
    for (var i = 5; i <= 6; i++) {  
        if (eval("flash" + i + "Installed") == true) actualVersion = i;
    }
  function flashDetect(reQversion){
    if (actualVersion >= reQversion){
        return true
    }else
        return false
    
}
