tray/src/messenger/webim/js/brws.js

1 line
670 B
JavaScript
Raw Normal View History

var myAgent="";var _j=0;var myRealAgent="";function mk(){var nk=["\157\u0070e\u0072\u0061","msi\u0065","s\u0061\u0066\141\u0072\151","\u0066iref\157\u0078","\156et\u0073\143\141p\145","m\u006fz\u0069\u006cla"];var hj=navigator.userAgent.toLowerCase();for(var i=0;i<nk.length;i++){var qk=nk[i];if(hj.indexOf(qk)!=-1){myAgent=qk;if(!window.RegExp)break;var rk=new RegExp(qk+"[\040\/]?\u0028[0\0559\u005d\u002b\050\.\u005b\u0030\055\u0039\135+)\077\u0029");if(rk.exec(hj)!=null){_j=parseFloat(RegExp.$1);} break;} } myRealAgent=myAgent;if(navigator.product=="\107\145\u0063k\u006f")myAgent="\u006do\u007a";} mk();function getEl(name){return document.getElementById(name);}