﻿

var ClientInfo = new Object();

var i_flash;
var v_flash;
// Netscape 
if (navigator.plugins) {
    for (var i = 0; i < navigator.plugins.length; i++) {
        if (navigator.plugins[i].name.toLowerCase().indexOf("shockwave flash") >= 0) {
            i_flash = true;
            v_flash = navigator.plugins[i].description.substring(navigator.plugins[i].description.toLowerCase().lastIndexOf("flash ") + 6, navigator.plugins[i].description.length);
        }
    }
}

var isIE = (navigator.appVersion.indexOf("MSIE") >= 0);
if (isIE) {
    try {
        var objFlash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
        i_flash = true;
    } catch (e) {
        i_flash = false;
    }
}

if (typeof (i_flash) == 'undefined')
    i_flash = false;

ClientInfo.FlashSupport = i_flash;
setCookie("FDA_ClientInfo_FlashSupport", ClientInfo.FlashSupport);

//document.writeln(ClientInfo.FlashSupport);
//if (i_flash) {
//    document.writeln("你已经安装了Flash插件")
//    if (v_flash) {
//        document.writeln(" - 版本 " + v_flash);
//    }
//} else {
//    document.writeln("你没有安装Flash插件")
//}




