/**
 * @author daniel.kurre
 * Uses PluginDetector in plugindetector.js
 */
function detectFlashPlugin() {

    pluginDetector = new PluginDetector();
    
    if (pluginDetector.getFlashVersion() >= 8) {

        ns_flashcounter('flash.plugin.enabled');
    } else {

        ns_flashcounter('flash.plugin.disabled');
    }
}

/**
 * @author daniel.kurre
 * This sitestat specific function counts plugin detection
 * 
 * called in: detectFlashPlugin()
 * 
 * HTML page must contain: <img name="ns_flashp" src="" width="1" height="1" alt="" /> 
 *
 * available counter
 * -> flash.plugin.enabled
 * -> flash.plugin.disabled
 */
function ns_flashcounter(ns_flashn) {

    var ns_flash = "http://de.sitestat.com/wgz/wgzbank/s?" + ns_flashn + "&amp;ns_type=flash" + "&amp;ns__t=" + (new Date()).getTime();
    document.ns_flashp.src=ns_flash;
}

detectFlashPlugin();