BeepPadUI/Workflow/shared/ccc.js
// JavaScript helper required to detect Flash Player PlugIn version information
JavaScript helper required to detect Flash Player PlugIn version information
JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	var flashVer = -1;
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}
	return flashVer;
}
function GetSwfVer ( ) { var flashVer = - 1 ; if ( navigator . plugins != null && navigator . plugins . length > 0 ) { if ( navigator . plugins [ "Shockwave Flash 2.0" ] || navigator . plugins [ "Shockwave Flash" ] ) { var swVer2 = navigator . plugins [ "Shockwave Flash 2.0" ] ? " 2.0" : "" ; var flashDescription = navigator . plugins [ "Shockwave Flash" + swVer2 ] . description ; var descArray = flashDescription . split ( " " ) ; var tempArrayMajor = descArray [ 2 ] . split ( "." ) ; var versionMajor = tempArrayMajor [ 0 ] ; var versionMinor = tempArrayMajor [ 1 ] ; var versionRevision = descArray [ 3 ] ; if ( versionRevision == "" ) { versionRevision = descArray [ 4 ] ; } if ( versionRevision [ 0 ] == "d" ) { versionRevision = versionRevision . substring ( 1 ) ; } else if ( versionRevision [ 0 ] == "r" ) { versionRevision = versionRevision . substring ( 1 ) ; if ( versionRevision . indexOf ( "d" ) > 0 ) { versionRevision = versionRevision . substring ( 0 , versionRevision . indexOf ( "d" ) ) ; } } var flashVer = versionMajor + "." + versionMinor + "." + versionRevision ; } } else if ( navigator . userAgent . toLowerCase ( ) . indexOf ( "webtv/2.6" ) != - 1 ) flashVer = 4 ; else if ( navigator . userAgent . toLowerCase ( ) . indexOf ( "webtv/2.5" ) != - 1 ) flashVer = 3 ; else if ( navigator . userAgent . toLowerCase ( ) . indexOf ( "webtv" ) != - 1 ) flashVer = 2 ; else if ( isIE && isWin && ! isOpera ) { flashVer = ControlVersion ( ) ; } return flashVer ; }
JavaScript helper required to detect Flash Player PlugIn version information
JavaScript helper required to detect Flash Player PlugIn version information
// NS/Opera version >= 3 check for Flash plugin in plugin array // MSN/WebTV 2.6 supports Flash 4 // WebTV 2.5 supports Flash 3 // older WebTV supports Flash 2