var flashVer = false;

var nn = ((navigator.appName.charAt(0) == "N") && navigator.userAgent.indexOf("Safari") == -1) || false;
var n6 = (document.getElementById && nn) || false;
var ie = (document.all && !nn) || false;
var safari = (navigator.userAgent.indexOf("Safari") != -1) || false;
var mac = (navigator.userAgent.indexOf("Mac") != -1) || false;
var macIE5 = (mac && navigator.userAgent.indexOf("MSIE 5") != -1) || false;


if (ie && !mac) {
    try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
    	flashVer = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").FlashVersion();
    	flashVer = Math.floor(flashVer / 0x10000);
    }catch(e){
    	flashVer = false;
    }
}

if (!flashVer) {
    if (nn && !document.plugins && !safari){
        flashVer = false;
    }else if ((nn || n6 || safari || macIE5) && navigator.plugins){
        flashVer = navigator.plugins["Shockwave Flash"].description.charAt(16);
    }else{
        flashVer = false;
	}
}

