design/src/webim/js/brws.js
Evgeny Gryaznov 1253dbe4bd handle exceptions in chat
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@102 c66351dc-e62f-0410-b875-e3a5c0b9693f
2008-06-06 22:44:18 +00:00

1 line
636 B
JavaScript

var myAgent="";var cj=0;var myRealAgent="";function vj(){var wj=["o\u0070e\u0072\141","\155s\151\145","\u0073afa\162i","firefox","\156e\164\u0073cape","moz\u0069ll\141"];var _i=navigator.userAgent.toLowerCase();for(var i=0;i<wj.length;i++){var xj=wj[i];if(_i.indexOf(xj)!=-1){myAgent=xj;if(!window.RegExp)break;var yj=new RegExp(xj+"\133 \/\135\077([\u0030\u002d\u0039]\053\u0028\.\133\060-\071]\u002b\u0029\077\051");if(yj.exec(_i)!=null){cj=parseFloat(RegExp.$1);} break;} } myRealAgent=myAgent;if(navigator.product=="\u0047\u0065\u0063k\u006f")myAgent="\u006do\172";} vj();function getEl(name){return document.getElementById(name);}