modules/brainyBidAdapter.js
function _getFlash() {
  try {
    var _mac = (navigator.userAgent.indexOf('Mac') != -1);
    if (document.all) {
      if (_mac) {
        if (window['sample']) {
          return ((window['sample'].FlashVersion() & 0xffff0000) >> 16);
        }
      } else {
        var _axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
        return Math.floor(_axo.FlashVersion() / 0x10000);
      }
    } else {
      if (navigator.plugins && navigator.plugins['Shockwave Flash']) {
        var info = navigator.plugins['Shockwave Flash'].description.split(' ');
        var _v = parseInt(info[2]);
        if (!isNaN(_v)) {
          return _v;
        }
      }
    }
  } catch (e) {}
  return 0;
}
function _getFlash() {
  try {
    var _mac = (navigator.userAgent.indexOf('Mac') != -1);
    if (document.all) {
      if (_mac) {
        if (window['sample']) {
          return ((window['sample'].FlashVersion() & 0xffff0000) >> 16);
        }
      } else {
        var _axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
        return Math.floor(_axo.FlashVersion() / 0x10000);
      }
    } else {
      if (navigator.plugins && navigator.plugins['Shockwave Flash']) {
        var info = navigator.plugins['Shockwave Flash'].description.split(' ');
        var _v = parseInt(info[2]);
        if (!isNaN(_v)) {
          return _v;
        }
      }
    }
  } catch (e) {}
  return 0;
}
function _getFlash ( ) { try { var _mac = ( navigator . userAgent . indexOf ( 'Mac' ) != - 1 ) ; if ( document . all ) { if ( _mac ) { if ( window [ 'sample' ] ) { return ( ( window [ 'sample' ] . FlashVersion ( ) & 0xffff0000 ) >> 16 ) ; } } else { var _axo = new ActiveXObject ( 'ShockwaveFlash.ShockwaveFlash' ) ; return Math . floor ( _axo . FlashVersion ( ) / 0x10000 ) ; } } else { if ( navigator . plugins && navigator . plugins [ 'Shockwave Flash' ] ) { var info = navigator . plugins [ 'Shockwave Flash' ] . description . split ( ' ' ) ; var _v = parseInt ( info [ 2 ] ) ; if ( ! isNaN ( _v ) ) { return _v ; } } } } catch ( e ) { } return 0 ; }
Check if the browser supports flash
0 is return if it dosen't support flash
@return      {int} Flash version
 
接続元のブラウザがフラッシュに対応しているか判定
対応していなければ0を返す
@return      {int} フラッシュのバージョン
Check if the browser supports flash 0 is return if it dosen t support flash