﻿function basicDetectionF () {
    var version = false;
	
    if (navigator.plugins.length > 0 && navigator.plugins["Shockwave Flash"]) { // NS/Mozilla
        var description = navigator.plugins["Shockwave Flash"].description;
        var version = description.match(/\d{1,2}/);
    } else if (navigator.mimeTypes && navigator.mimeTypes.length) {
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		if (x && x.enabledPlugin) {
			version = true;
		}
	} else if (window.ActiveXObject && window.execScript && navigator.userAgent.indexOf('Mac') == -1) { // Win IE
		for (var i=0; i<10; i++){
	        hasActiveX = false;
    	    window.execScript("On error resume next: hasActiveX = IsObject(CreateObject('ShockwaveFlash.ShockwaveFlash." + i + "'))", "VBScript");
			if (hasActiveX){
				version = i;
			}
		}
    }
    return version;
};

