docs/autodocs/source/aibs_sphinx/static/external_assets/javascript/portal.js
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
When called with reqMajorVer reqMinorVer reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) {
    var versionArray;
    var versionStr = GetSwfVer();
    if (versionStr == -1) {
        return false;
    } else if (versionStr != 0) {
        if (isIE && isWin && !isOpera) {
            var tempArray = versionStr.split(" ");  
            var tempString = tempArray[1];           
            versionArray = tempString.split(",");  
        } else {
            versionArray = versionStr.split(".");
        }
        var versionMajor = versionArray[0];
        var versionMinor = versionArray[1];
        var versionRevision = versionArray[2];
        if (versionMajor > parseFloat(reqMajorVer)) {
            return true;
        } else if (versionMajor == parseFloat(reqMajorVer)) {
            if (versionMinor > parseFloat(reqMinorVer))
                return true;
            else if (versionMinor == parseFloat(reqMinorVer)) {
                if (versionRevision >= parseFloat(reqRevision))
                    return true;
            }
        }
        return false;
    }
}
function DetectFlashVer ( reqMajorVer , reqMinorVer , reqRevision ) { var versionArray ; var versionStr = GetSwfVer ( ) ; if ( versionStr == - 1 ) { return false ; } else if ( versionStr != 0 ) { if ( isIE && isWin && ! isOpera ) { var tempArray = versionStr . split ( " " ) ; var tempString = tempArray [ 1 ] ; versionArray = tempString . split ( "," ) ; } else { versionArray = versionStr . split ( "." ) ; } var versionMajor = versionArray [ 0 ] ; var versionMinor = versionArray [ 1 ] ; var versionRevision = versionArray [ 2 ] ; if ( versionMajor > parseFloat ( reqMajorVer ) ) { return true ; } else if ( versionMajor == parseFloat ( reqMajorVer ) ) { if ( versionMinor > parseFloat ( reqMinorVer ) ) return true ; else if ( versionMinor == parseFloat ( reqMinorVer ) ) { if ( versionRevision >= parseFloat ( reqRevision ) ) return true ; } } return false ; } }
When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
When called with reqMajorVer reqMinorVer reqRevision returns true if that version or greater is available
// Given "WIN 2,0,0,11" // ["WIN", "2,0,0,11"] // "2,0,0,11" // ['2', '0', '0', '11'] // is the major.revision >= requested major.revision AND the minor version >= requested minor