if (plugin_isPluginInstalled() == false ) {
    document.write("<font size=+1>");
    document.write("It appears that this machine doesn't have Cisco IP/TV browser Plugin.");
    document.write("<P>Please download it <a href=/iptvfiles/iptv_plugins.exe>here</a>,");
    document.write("<P>then reload this page." );
    document.write("</font>");
}

function  plugin_isPluginInstalled() {
    var extension='sdp';
    var mime='application/x-sdp';
    var activeXname ='CISCOMEDIA.CiscoMediaCtrl.1'; 
    var detected = 0;

    // for internet explorer
    if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1))
    {
        detected = plugin_activeXDetect(activeXname);
        return detected;
    } else {
        // for navigator 
        if (navigator.plugins)
        { 
            numPlugins = navigator.plugins.length;
            if (numPlugins >= 1) 
            {
                if (navigator.mimeTypes && navigator.mimeTypes[mime] 
                    && navigator.mimeTypes[mime].enabledPlugin 
                    && (navigator.mimeTypes[mime].suffixes.indexOf(extension) != -1))
                {
                    detected = 1;
                }        
            }
        }
        return detected;
    }
}
