/**
 * JavaScript Library v2.0
 * Copyright (c) 2000-2010  J. Damon & Co.
 * All Rights Reserved WorldWide.
 */
if(!js)var js={};if(!js.lang)js.lang={};
js.lang.Browser=function(a){this._object={};this._object._DECIMAL_POINT=".";this._object._SPACE=" ";this._object._ZERO="0";this._object._name=null;this._object._version=null;this._object._ajax=null;this._object._app={};this._object._app._name=navigator.appName;this._object._app._version=navigator.appVersion;this._object._cookies=null;this._object._display=null;this._object._init=false;this._object._java=null;this._object._js=null;this._object._json=null;this._object._os=null;this._object._time=null;
this._object._user={};this._object._user._agent=a?a:navigator.userAgent;this._init()};js.lang.Browser.prototype.CHROME="Google Chrome";js.lang.Browser.prototype.EXPLORER="Internet Explorer";js.lang.Browser.prototype.FIREFOX="Mozilla Firefox";js.lang.Browser.prototype.FLOCK="Flock";js.lang.Browser.prototype.ICAB="iCab";js.lang.Browser.prototype.KONQUEROR="Konqueror";js.lang.Browser.prototype.MOZILLA="Mozilla";js.lang.Browser.prototype.NETSCAPE="Netscape Navigator";
js.lang.Browser.prototype.OMNI_WEB="OmniWeb";js.lang.Browser.prototype.OPERA="Opera";js.lang.Browser.prototype.SAFARI="Apple Safari";js.lang.Browser.prototype.UNKNOWN="Unknown";js.lang.Browser.prototype.WEB_TV="WebTV";js.lang.Browser.prototype.OS={};js.lang.Browser.prototype.OS.LINUX="Linux";js.lang.Browser.prototype.OS.MAC="Mac OS";js.lang.Browser.prototype.OS.SUN="SunOS";js.lang.Browser.prototype.OS.UNIX="Unix";js.lang.Browser.prototype.OS.UNKNOWN="Unknown";
js.lang.Browser.prototype.OS.WINDOWS="Windows";
js.lang.Browser.prototype.addForm=function(){var a="";if(document.forms!=null&&document.forms.length>0){var b=document.forms[0];with(this._object)for(var f=this.serialize().split("&"),e=0;e<f.length;e++){var d=f[e].split("="),c=d[0],g=d[1];d="<input ";d+='type="hidden" ';d+='name="'+c+'" ';d+='value="'+g+'" ';d+="/>";if(document.createElement){c=document.createElement("div");c.innerHTML=d;b.appendChild&&b.appendChild(c)}a+=d}if(!document.createElement||!b.appendChild){alert("form.innerHTML");b.innerHTML+=
a}}return a};
js.lang.Browser.prototype.getAjax=function(){with(this._object){if(_ajax==null){_ajax={};_ajax._enabled=false;_ajax.enabled=function(){return this._enabled};_ajax.getRequest=function(){var a=null;if(window.XMLHttpRequest)a=new XMLHttpRequest;if(a==null)if(window.ActiveXObject){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){}if(a==null)try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}}if(a==null)if(window.createRequest)a=window.createRequest();return a};_ajax._enabled=_ajax.getRequest()!=null}return _ajax}};
js.lang.Browser.prototype._getBrowsers=function(){var a=[],b=0;a[b++]=[this.ICAB];a[b++]=[this.KONQUEROR];a[b++]=[this.OMNI_WEB];a[b++]=[this.WEB_TV];a[b++]=[this.OPERA];a[b++]=[this.CHROME];a[b++]=[this.CHROME,"Chrome"];a[b++]=[this.SAFARI];a[b++]=[this.SAFARI,"Safari"];a[b++]=[this.NETSCAPE];a[b++]=[this.NETSCAPE,"Navigator"];a[b++]=[this.NETSCAPE,"Netscape"];a[b++]=[this.EXPLORER];a[b++]=[this.EXPLORER,"Explorer"];a[b++]=[this.EXPLORER,"MSIE"];a[b++]=[this.FLOCK];a[b++]=[this.FIREFOX];a[b++]=[this.FIREFOX,
"Firefox"];return a};js.lang.Browser.prototype.getClass=function(){with(js.lang){if(typeof Class!=typeof this.constructor){window.status="Class js.lang.Class is required.";return"js.lang.Browser"}return Class._getInstance("js.lang.Browser")}};
js.lang.Browser.prototype.getCookies=function(){with(this._object){if(_cookies==null){_cookies={};_cookies._enabled=false;if(typeof navigator.cookieEnabled==typeof void 0)try{testCookie="testcookie";document.cookie=testCookie;if(document.cookie==testCookie)_cookies._enabled=true;document.cookie=""}catch(a){}else _cookies._enabled=navigator.cookieEnabled;_cookies.enabled=function(){return this._enabled}}return _cookies}};
js.lang.Browser.prototype.getDisplay=function(){with(this._object){if(_display==null){_display={};_display._colors=Math.pow(2,screen.colorDepth);_display._depth=screen.colorDepth;_display._height=screen.height;_display._resolution=screen.width+"x"+screen.height;_display._width=screen.width;_display.getColors=function(){return this._colors};_display.getDepth=function(){return this._depth};_display.getHeight=function(){return this._height};_display.getResolution=function(){return this._resolution};
_display.getWidth=function(){return this._width}}return _display}};js.lang.Browser.prototype._getEngines=function(){var a=[],b=0;a[b++]=["iCab"];a[b++]=["WebCore"];a[b++]=["AppleWebKit"];a[b++]=["WebKit"];a[b++]=["KHTML"];a[b++]=["Presto"];a[b++]=["Gecko"];a[b++]=["Trident"];return a};
js.lang.Browser.prototype.getJava=function(){with(this._object){if(_java==null){_java={};_java._enabled=false;_java._version=null;if(typeof navigator.javaEnabled==typeof this.getJava||typeof navigator.javaEnabled=="unknown")_java._enabled=navigator.javaEnabled();_java.enabled=function(){return this._enabled};_java._getVersion=function(){return this._version!=null?this._version:-1}}return _java}};
js.lang.Browser.prototype.getJavaScript=function(){this._init();with(this._object){if(_js==null){_js={};_js._browser=this;_js._enabled=true;_js._version=null;if(js.lang)if(typeof js.lang.VERSION=="number")_js._version=js.lang.VERSION;_js.enabled=function(){return this._enabled};_js.getVersion=function(){return this._version!=null?this._version:-1};_js._getVersions=function(){var g=[],h=0;g[h++]=[this._browser.EXPLORER,"2.0","1.0"];g[h++]=[this._browser.EXPLORER,"4.0","1.2"];g[h++]=[this._browser.EXPLORER,
"5.0","1.3"];g[h++]=[this._browser.EXPLORER,"5.0","1.4",this._browser.OS.MAC];g[h++]=[this._browser.EXPLORER,"7.0","1.3"];g[h++]=[this._browser.FIREFOX,"0.0",null];g[h++]=[this._browser.FIREFOX,"1.0",null];g[h++]=[this._browser.FIREFOX,"1.5","1.6"];g[h++]=[this._browser.FIREFOX,"2.0","1.6"];g[h++]=[this._browser.NETSCAPE,"2.0","1.0"];g[h++]=[this._browser.NETSCAPE,"3.0","1.1"];g[h++]=[this._browser.NETSCAPE,"4.0","1.2"];g[h++]=[this._browser.NETSCAPE,"4.05","1.3"];g[h++]=[this._browser.NETSCAPE,"5.0",
"1.4"];g[h++]=[this._browser.NETSCAPE,"6.0","1.5"];g[h++]=[this._browser.NETSCAPE,"9.0","1.7"];g[h++]=[this._browser.OPERA,"4.0","1.1"];g[h++]=[this._browser.OPERA,"5.0","1.3"];g[h++]=[this._browser.OPERA,"7.0","1.5"];g[h++]=[this._browser.SAFARI,"1.0",null];g[h++]=[this._browser.SAFARI,"2.0",null];g[h++]=[this._browser.SAFARI,"3.0","1.7"];return g};if(_js._version==null){var a=this.getName(),b=this.getVersion();if(b!=null&&!isNaN(parseFloat(b)))for(var f=_js._getVersions(),e=0;e<f.length;e++)if(a==
f[e][0]&&b>=parseFloat(f[e][1])){var d=f[e][2];if(d!=null){var c=null;if(f[e].length>3)c=f[e][3];d=this._toNumber(d);if(_js._version==null||_js._version<d)if(c!=null){this.getOS(true);if(_os!=null&&_os._name!=null)if(_os._name==c)_js._version=d}else _js._version=d}}if(js.lang)if(_js._version!=null)js.lang.VERSION=_js._version}}return _js}};
js.lang.Browser.prototype.getLocale=function(a){if(typeof a!="boolean")a=true;var b=null;if(js.util)with(js.util)if(typeof Locale==typeof this.constructor)if(Locale.getDefault)b=Locale.getDefault();if(a==true){if(b!=null)return b;window.status="Class js.util.Locale is required."}else if(b!=null)return b.toString();a=[navigator.browserLanguage,navigator.userLanguage,navigator.systemLanguage];for(b=0;b<a.length;b++){var f=a[b];if(f&&f!=null)return f}return null};
js.lang.Browser.prototype.getName=function(a){this._init();if(typeof a!="boolean")a=true;with(this._object){if(_name!=null)if(a==true)return _name;else{a=this._getBrowsers();for(var b=0;b<a.length;b++)if(a[b].length>=1)if(_name==a[b][0]){var f=a[b][0];if(a[b].length>1)f=a[b][1];if(typeof this["is"+f]==typeof this.getName)return f}}return this.UNKNOWN}};
js.lang.Browser.prototype.getOS=function(){with(this._object){if(_os==null==true){_os={};_os._browser=this;_os._name=null;_os._version=null;_os._year=null;for(var a=this._getOSes(),b=_user._agent.toLowerCase(),f=0;f<a.length;f++){os=a[f];var e=b.indexOf((os.length>1?os[1]:os[0]).toLowerCase());if(e>=0){_os._name=os[0];if(os.length>2){_os._year=this._toNumber(os[2]);if(os.length>3){_os._version=this._toNumber(os[3]);if(_os._version==null)_os._version=os[3];if(os.length>4){e=b.indexOf(os[4].toLowerCase());
if(e>=0)_os._version+=_SPACE+os[5]}}}else if(e>=0){e+=os.length>1?os[1].length:os[0].length;if(e<b.length-1){a=b.substring(e,b.length);a=this._toNumber(a,false);if(a!=null)_os._version=a}}break}}if(_os._name==null){_os._name=navigator.platform.toLowerCase();if(_os._name!=null){if(_os._name.length>=3)_os._name=_os._name.substring(0,3);_os._name=_os._name=="win"?this.OS.WINDOWS:_os._name=="mac"?this.OS.MAC:navigator.platform}}_os.getName=function(){with(this)return _name!=null?_name:_browser.OS.UNKNOWN};
_os.getVersion=function(d){if(typeof d!="boolean")d=false;with(this){var c=this._version;if(d==true){if(c!=null)if(isNaN(parseFloat(c)))return c}else c=_browser._toNumber(this._version);return c!=null?c:-1}};_os.getYear=function(){return this._year!=null?this._year:-1};_os._isLinux=function(){with(this)return _name!=null?_name==_browser.OS.LINUX:false};_os._isMac=function(){with(this)return _name!=null?_name==_browser.OS.MAC:false};_os.isWindows=function(){with(this)return _name!=null?_name==_browser.OS.WINDOWS:
false};_os.toString=function(){with(this._browser._object){if(this._name==null||this._version==null)return this.getName();return this.getName()+_SPACE+this.getVersion(true)}}}return _os}};
js.lang.Browser.prototype._getOSes=function(){var a=[],b=0;a[b++]=["FreeBSD"];a[b++]=["NetBSD"];a[b++]=["OpenBSD"];a[b++]=["BSD"];a[b++]=["OS/2"];a[b++]=[this.OS.MAC,"Mac OS X",null,"X"];a[b++]=[this.OS.MAC,"Macintosh"];a[b++]=[this.OS.MAC,"PowerPC"];a[b++]=[this.OS.MAC];a[b++]=[this.OS.SUN];a[b++]=[this.OS.LINUX];a[b++]=[this.OS.UNIX,"x11"];a[b++]=[this.OS.UNIX];a[b++]=["AIX"];a[b++]=["HP-UX"];a[b++]=["SCO"];a[b++]=[this.OS.WINDOWS,"windows nt x.x","20nn"];a[b++]=[this.OS.WINDOWS,"windows nt 6.1",
"2009","7"];a[b++]=[this.OS.WINDOWS,"windows nt 6.0","2007","Vista"];a[b++]=[this.OS.WINDOWS,"windows nt 5.2","2003","XP"];a[b++]=[this.OS.WINDOWS,"windows nt 5.1","2001","XP"," SV1","SP2"];a[b++]=[this.OS.WINDOWS,"windows nt 5.0","2000","2000"];a[b++]=[this.OS.WINDOWS,"windows nt",null,"NT"];a[b++]=[this.OS.WINDOWS,"winnt",null,"NT"];a[b++]=[this.OS.WINDOWS,"win 9x 4.90","2000","ME"];a[b++]=[this.OS.WINDOWS,"windows 98","1998","98"];a[b++]=[this.OS.WINDOWS,"win98","1998","98"];a[b++]=[this.OS.WINDOWS,
"windows 95","1995","95"];a[b++]=[this.OS.WINDOWS,"win95","1995","95"];a[b++]=[this.OS.WINDOWS,"windows 3.1","1992","3.1"];a[b++]=[this.OS.WINDOWS];return a};js.lang.Browser.prototype._getSupported=function(){var a=[],b=0;a[b++]=[this.EXPLORER,"6.0 SP2"];a[b++]=[this.EXPLORER,"7.0"];a[b++]=[this.FIREFOX,"1.5.0.12"];a[b++]=[this.FIREFOX,"2.0.0.11"];a[b++]=[this.NETSCAPE,"8.1.3"];a[b++]=[this.NETSCAPE,"9.0.0.5"];a[b++]=[this.OPERA,"8.54"];a[b++]=[this.OPERA,"9.24"];a[b++]=[this.SAFARI,"3.04"];return a};
js.lang.Browser.prototype.getTimeZone=function(){with(this._object){if(_time==null){_time={};_time._zone=null}if(_time._zone==null){_time._zone={};_time._zone._dst=null;_time._zone._offset=null;var a=new Date,b=new Date(a.getFullYear(),0,1,0,0,0,0);a=new Date(a.getFullYear(),6,1,0,0,0,0);var f=b.toGMTString(),e=new Date(f.substring(0,f.lastIndexOf(" ")-1));f=a.toGMTString();f=new Date(f.substring(0,f.lastIndexOf(" ")-1));b=(b-e)/36E5;a=(a-f)/36E5;e="Daylight Saving Time is observed.";_time._zone._dst=
true;_time._zone._offset=a;if(a==b){e="Daylight Saving Time is NOT observed.";_time._zone._dst=false;_time._zone._offset=b}e="Time zone is GMT "+_time._zone._offset+".\n"+e;_time._zone.getOffset=function(){return this._offset};_time._zone.isDST=function(){return this._dst}}return _time._zone}};
js.lang.Browser.prototype.getVersion=function(a){this._init();with(this._object){if(_version==null)return-1;var b=_version.toString(),f=false;if(typeof _version=="number")f=true;else if(typeof _version=="string")try{isNaN(parseFloat(b))||(f=true)}catch(e){}if(typeof a=="boolean"){if(a!=true)if(f==true){a=b.indexOf(_DECIMAL_POINT);if(a>=0)b=a>0?b.substring(0,a):_ZERO;return parseInt(b)}}else if(f==true)return this._toNumber(b);return _version}};
js.lang.Browser.prototype._init=function(){with(this._object){if(_init==true)return;_version=_name=null;var a=this._getBrowsers();this._testUserAgent&&this._testUserAgent();var b=_user._agent;if(b.trim)b=b.trim();if(b.length>0){for(var f=b.length,e=b.toLowerCase(),d,c,g=0;g<a.length;g++){d=a[g];var h=d[0],j=d[0];if(d.length>1)h=d[1];for(var i=1;i<=2;i++){c=i==2?e.lastIndexOf(h.toLowerCase()):b.lastIndexOf(h);if(c>=0){var k=b.substring(c,f);if(i==2){c=e.substring(0,c);c=c.lastIndexOf(h.toLowerCase())}else{c=
b.substring(0,c);c=c.lastIndexOf(h)}d=k;if(c>=0){c=b.substring(c,f);if(c>k)d=c}_name=j;break}}if(_name!=null)break;d=null}if(d==null){c=b.lastIndexOf(")");if(c>=0){c++;if(c<f-1){g=b.substring(c,f);g=this._toNumber(g);if(g!=null)c=f-1}}if(c>=f-1){c=b.indexOf(_SPACE);if(c<0)c=f;d=b.substring(0,c)}else{c=b.lastIndexOf(_SPACE);if(c<0)c=0;else c++;if(c<f)d=b.substring(c,f)}}if(d!=null){for(i=1;i<=2;i++)if(d.length>0){a=d.indexOf("/");g=d.indexOf(_SPACE);c=a;if(g>=0)if(a<0||g<a)c=g;if(c>0&&c<d.length-1){if(i==
1)if(_name==null)_name=d.substring(0,c);c++;if(c<d.length){_version=d.substring(c,d.length);_version=this._toNumber(_version,false)}if(_version!=null){d=this._toNumber(_version);if(parseFloat(d)>15){c=e.lastIndexOf("version");if(c>=0){c+=8;if(c<f){d=b.substring(c,f);c=d.indexOf(_SPACE);if(c>0)d=d.substring(0,c);continue}}}break}}else{if(c==0){c++;if(c<d.length)d=d.substring(c,d.length);else i++}else{c--;if(c>=0)d=d.substring(0,c);else i++}if(this._toNumber(d)==null){if(_name==null)_name=d}else _version=
this._toNumber(d,false);if(i==1)break}}c=b.toLowerCase().indexOf("Version/".toLowerCase());if(c>=0){b=b.substring(c+8);c=b.indexOf(_SPACE);if(c>=0)b=b.substring(0,c);if(typeof parseFloat(b)=="number")_version=b}}if(js.lang)if(js.lang._EXPLORER)if(typeof js.lang._EXPLORER._VERSION=="number"){_name=this.EXPLORER;if(_version==null)_version=js.lang._EXPLORER._VERSION}if(_name==null)if(window.opera)_name=this.OPERA;else if(document.all)_name=this.EXPLORER;else if(document.layers)_name=this.NETSCAPE;if(_name!=
null&&_version!=null)if(_name==this.EXPLORER)if(navigator.appMinorVersion){b=navigator.appMinorVersion;if(b!=null){if(b.trim)b=b.trim();d="";for(c=0;c<b.length;c++){f=b.substring(c,c+1);if(f!=";")d+=f}if(d.trim)d=d.trim();if(d.length>0){c=_version.lastIndexOf(_DECIMAL_POINT);c>=0&&c<_version.length||(_version+=_DECIMAL_POINT+d)}}}_init=true}}};
js.lang.Browser.prototype.is=function(a,b){with(this._object)if(typeof a=="string"){if(a.trim)a=a.trim();if(a==this.getName()){if(typeof b==typeof void 0||b==null)return true;var f=false;if(typeof b=="number")b=b.toString();else if(typeof b=="string"){var e="";if(b.length>0){e=b.length-1;e=b.substring(e,e+1)}if(e=="+"){b=b.substring(0,b.length-1);f=true}}if(typeof b=="string"){e=this.getVersion();if(e!=null)if(f==true)try{e=parseFloat(e);b=parseFloat(b);if(e>=b)return true}catch(d){}else for(f=1;f<=
2;f++){if(f==2)e=this.getVersion(true);e=e.toString();if(e.length>b.length)e=e.substring(0,b.length);if(b==e)return true}}}}return false};js.lang.Browser.prototype.isChrome=function(a){return this.is(this.CHROME,a)};js.lang.Browser.prototype.isExplorer=function(a){return this.is(this.EXPLORER,a)};js.lang.Browser.prototype.isFirefox=function(a){return this.is(this.FIREFOX,a)};js.lang.Browser.prototype.isNetscape=function(a){return this.is(this.NETSCAPE,a)};
js.lang.Browser.prototype.isOpera=function(a){return this.is(this.OPERA,a)};js.lang.Browser.prototype.isSafari=function(a){return this.is(this.SAFARI,a)};js.lang.Browser.prototype._isW3CDOM=function(){if(document.getElementById&&document.createElement)return true;return false};
js.lang.Browser.prototype.serialize=function(a){if(typeof a!="boolean")a=true;var b=arguments.length>1?arguments[1]:void 0,f=arguments.length>2?arguments[2]:void 0;if(typeof b==typeof void 0)b="browser";if(typeof f==typeof void 0)f=this.toJSON();var e="";if(typeof f==typeof this)for(property in f)if(!(property.length>0&&property.substring(0,1)=="_")){var d=f[property];if(typeof d!=typeof this.serialize){var c=b+"."+property;if(typeof d==typeof this)e+=this.serialize(a,c,d);else if(d!=null){if(e.length>
0||arguments.length>1)e+="&";e+=c+"="+d}}}return e};
js.lang.Browser.prototype._testIs=function(a,b){with(this._object){if(typeof a==typeof void 0)a=_name;if(typeof b==typeof void 0){var f="";if(a!=_name)f+=this.toString();var e=null;if(a==null||a==this.EXPLORER)e=["",5,"5+",5.5,"5.5","5.5+","5.00",6,"6+","6.0","6.0+","6.00",6.1,"6.1","6.1+",7,"7+","7.0","7.0+","7.00",7.1,"7.1","7.1+"];if(a==null||a==this.FIREFOX)e=["",1,"1+","1.0","1.0+",1.5,"1.5","1.5+","1.50","1.5.0","1.5.1",1.501,"1.501","1.5.0.1","1.5.0.10",1.5012,"1.5012","1.5.0.12","1.5.0.120",
1.6,"1.6","1.6+",2,"2+","2.0","2.0+","2.00","2.0.0","2.0.1",2.001,"2.001","2.0.0.1","2.0.0.10",2.0011,"2.0011","2.0.0.11","2.0.0.110",2.1,"2.1","2.1+",3,"3+","3.0","3.0+"];if(a==null||a==this.NETSCAPE)e=["",6,"6+","6.0","6.0+",7,"7+","7.0","7.0+",7.1,"7.1","7.1+",7.2,"7.2","7.2+",8,"8+","8.0","8.0+",8.1,"8.1","8.1+",8.13,"8.13","8.1.3","8.1.30",8.2,"8.2","8.2+",9,"9+","9.0","9.0+","9.00","9.0.0","9.0.00",9.005,"9.005","9.0.0.5","9.0.0.50",9.1,"9.1","9.1+"];if(a==null||a==this.OPERA)e=["",6,"6+","6.0",
"6.0+",7,"7+","7.0","7.0+",7.1,"7.1","7.1+",7.2,"7.2","7.2+",8,"8+","8.0","8.0+",8.4,"8.4","8.4+",8.5,"8.5","8.5+",8.54,"8.54","8.54+","8.540",8.6,"8.6","8.6+",9,"9+","9.0","9.0+",9.1,"9.1","9.1+",9.2,"9.2","9.2+",9.24,"9.24","9.24+","9.240",9.3,"9.3","9.3+"];if(a==null||a==this.SAFARI)e=["",1,"1+","1.0","1.0+",1.5,"1.5","1.5+",2,"2+","2.0","2.0+",2.5,"2.5","2.5+",3,"3+","3.0","3.0+",3.04,"3.04","3.04+","3.040",3.1,"3.1","3.1+",3.2,"3.2","3.2+"];if(e!=null){if(f.length>0)f+="\n\n";for(var d=0;d<e.length;d++){f+=
this._testIs(a,e[d]);if(d<e.length-1)f+="\n"}}return f}else{f=_name;_name=a;e="is"+this.getName(false);var c="";_name=f;if(typeof this[e]==typeof this._testIs){f=b;for(d=1;d<=2;d++){b=f;if(b!=null)if(typeof b=="string"&&b.length>0){var g=b.length-1;g=b.substring(g,g+1);if(d==2||g!=_ZERO)b='"'+b+'"'}var h=e+"("+b+")";try{if(c.length>0)c+="\n";c+=h+"="+eval("this."+h)}catch(j){}if(d==1&&g!=_ZERO)break}}return c}}};
js.lang.Browser.prototype._testJSON=function(){var a="";with(this._object)for(var b=this.serialize().split("&"),f=0;f<b.length;f++){var e=b[f].split("="),d=e[0];e=e[1];var c=d.indexOf(".");c++;if(c<d.length)d=d.substring(c,d.length);if(a.length>0)a+="\n";if(d=="actual.version"||d=="app.name"||d=="display.colors"||d=="locale.string"||d=="os.name"||d=="string"||d=="chrome"||d=="time.zone.dst"||d=="user.agent"||d=="w3c.dom")a+="\n";if(d.indexOf("enabled")>=0)a+="\n";a+=d;a+=_SPACE+"="+_SPACE;a+=e}return a};
js.lang.Browser.prototype._testNavigator=function(){var a="";if(navigator.appName)a+="appName="+navigator.appName+NEW_LINE;if(navigator.appCodeName)a+="appCodeName="+navigator.appCodeName+NEW_LINE;if(navigator.appVersion)a+="appVersion="+navigator.appVersion+NEW_LINE;if(navigator.appMinorVersion)a+="appMinorVersion="+navigator.appMinorVersion+NEW_LINE;if(navigator.browserLanguage)a+="browserLanguage="+navigator.browserLanguage+NEW_LINE;a+="cookieEnabled="+navigator.cookieEnabled+NEW_LINE;a+="javaEnabled()="+
navigator.javaEnabled()+NEW_LINE;if(navigator.mimeTypes)a+="mimeTypes="+navigator.mimeTypes.length+NEW_LINE;a+="onLine="+navigator.onLine+NEW_LINE;if(navigator.opsProfile)a+="opsProfile="+navigator.opsProfile+NEW_LINE;if(navigator.platform)a+="platform="+navigator.platform+NEW_LINE;if(navigator.plugins)a+="plugins="+navigator.plugins.length+NEW_LINE;if(navigator.systemLanguage)a+="systemLanguage="+navigator.systemLanguage+NEW_LINE;if(navigator.userLanguage)a+="userLanguage="+navigator.userLanguage+
NEW_LINE;if(navigator.userProfile)a+="userProfile="+navigator.userProfile+NEW_LINE;if(navigator.vendor)a+="vendor="+navigator.vendor;return a};js.lang.Browser.prototype._testUserAgent=function(){with(this._object);};
js.lang.Browser.prototype.toJSON=function(a){this._init();with(this._object){if(typeof a!="boolean")a=false;if(_json!=null)if(a==true)_json.isExplorer||(_json=null);else _json.explorer||(_json=null);if(_json==null){_json={};if(a==true)_json._browser=this;_json.name=this.getName();_json.version=this.getVersion();_json.actual={};_json.actual.version=this.getVersion(true);_json.major={};_json.major.version=this.getVersion(false);_json.app={};_json.app.name=_app._name;_json.app.version=_app._version;
_json.ajax={};_json.ajax.enabled=this.getAjax().enabled();_json.cookies={};_json.cookies.enabled=this.getCookies().enabled();_json.display={};_json.display.colors=this.getDisplay().getColors();_json.display.depth=this.getDisplay().getDepth();_json.display.height=this.getDisplay().getHeight();_json.display.resolution=this.getDisplay().getResolution();_json.display.width=this.getDisplay().getWidth();_json.java={};_json.java.enabled=this.getJava().enabled();_json.js={};_json.js.enabled=this.getJavaScript().enabled();
_json.js.version=this.getJavaScript().getVersion();_json.locale={};_json.locale.string=this.getLocale(false);_json.os={};_json.os.name=this.getOS().getName();var b=this.getOS().getVersion();if(b>=0)_json.os.version=this.getOS().getVersion();var f=this.getOS().getVersion(true);if(b>=0||isNaN(parseFloat(f))){_json.os.actual={};_json.os.actual.version=f}if(this.getOS().getYear()>=0)_json.os.year=this.getOS().getYear();_json.os.string=this.getOS().toString();_json.string=this.toString();if(a==true){_json.isChrome=
function(e){return this._browser.isChrome(e)};_json.isExplorer=function(e){return this._browser.isExplorer(e)};_json.isFirefox=function(e){return this._browser.isFirefox(e)};_json.isNetscape=function(e){return this._browser.isNetscape(e)};_json.isOpera=function(e){return this._browser.isOpera(e)};_json.isSafari=function(e){return this._browser.isSafari(e)}}else{_json.chrome=this.isChrome();_json.explorer=this.isExplorer();_json.firefox=this.isFirefox();_json.netscape=this.isNetscape();_json.opera=
this.isOpera();_json.safari=this.isSafari()}_json.time={};_json.time.zone={};_json.time.zone.dst=this.getTimeZone().isDST();_json.time.zone.offset=this.getTimeZone().getOffset();_json.toString=function(){return this.string};_json.user={};_json.user.agent=_user._agent;_json.w3c={};_json.w3c.dom=this._isW3CDOM()}return _json}};
js.lang.Browser.prototype._toNumber=function(a,b){if(typeof a=="number")return a;if(typeof b!="boolean")b=true;if(typeof a=="string")with(this._object){for(var f="",e="",d=0;d<a.length;d++){var c=a.substring(d,d+1);if(c>="0"&&c<="9"){f+=e+c;e=""}else if(c==_DECIMAL_POINT)if(b==true){if(f.indexOf(c)<0)f+=c}else f+=c;else if(c==_SPACE){if(f.length>0)if(b!=true)e=_SPACE}else if(c=="/"||c=="\\"||c=="-"){if(f.length!=0)break}else break}if(f.length>0){if(b==true){e=f.split("");d=e.length-1;if(e.length==
1||e[0]!=_ZERO&&e[d]!=_ZERO)return parseFloat(f)}return f}}return null};js.lang.Browser.prototype.toString=function(){this._init();with(this._object){if(_name==null)return this.getName();return this.getName()+_SPACE+this.getVersion(true)}};if(!js.lang.IMPORT)js.lang.IMPORT=true;if(js.lang.IMPORT)var Browser=new js.lang.Browser;
