i18n/src/messenger/webim/js/164/brws.js

1 line
502 B
JavaScript
Raw Normal View History

2011-03-02 04:02:28 +03:00
var myAgent="";var _j=0;var myRealAgent="";function mk(){var nk=["opera","msie","safari","firefox","netscape","mozilla"];var nj=navigator.userAgent.toLowerCase();for(var i=0;i<nk.length;i++){var qk=nk[i];if(nj.indexOf(qk)!=-1){myAgent=qk;if(!window.RegExp)break;var rk=new RegExp(qk+"[ \/]?([0-9]+(\.[0-9]+)?)");if(rk.exec(nj)!=null){_j=parseFloat(RegExp.$1);} break;} } myRealAgent=myAgent;if(navigator.product=="Gecko")myAgent="moz";} mk();function getEl(name){return document.getElementById(name);}