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


var OK = true;
var flash4 = false;
var flash5 = false;

function FlashDetect(fparam){
	this.fdetect = fparam;
	return this;
}

if(isIE && isWin){ 
        document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
        document.write('on error resume next \n');
        document.write('flash4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
        document.write('flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');      
        document.write('</SCR' + 'IPT\> \n'); 
        
        if (flash4 == true) { OK=true; }
        else if (flash5 == true) { OK=true; }
        else { OK=false; }
}

                
if(parseInt(navigator.appVersion) < 4){
        OK=false;
}else {
        if(!navigator.plugins) { OK=false; }
        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));
                var fVx = flashDescription.split(" r"); 
                if (!isWin && flashVersion >= 4 && (fVx[1] < 7 && fVx[1] <10)) {
                        OK = false       
                }else{
                        if (isMac && flashVersion >= 4 && fVx[1] <27) {
                                OK = false      
                        }
                }
                if (flashVersion < 4) { OK=false; }
        }else if (!isIE || isMac) { OK=false; }
}                       
        
if (OK==true){
		isflash = new FlashDetect(true);
		//alert (isflash.fdetect);
        }
else {  isflash = new FlashDetect(false);
		//alert (isflash.fdetect);
		}
		

