function od(a,b){arguments.length&&this.Init(a,b)}v("AdfGeckoAgent",od);z.l(od,w);od.da=function(){od.tMa=String.fromCharCode(160)};v("AdfGeckoAgent.InitClass",od.da);od.Eo=function(a){return w.JM(a,/rv:(\d+[.]\d+)/)};od.NF=function(a,b){return-1==a.indexOf("Firefox/")?p:0==w.MLa?l:b>=w.MLa};od.MF=function(a,b){return 6<=b?"AdfGeckoAgent":5<=b?"AdfGecko5Agent":1.9<=b?"AdfGecko19Agent":1.8<=b?"AdfGecko18Agent":1<=b?"AdfGecko17Agent":"AdfGeckoAgent"};
od.prototype.Init=function(a,b){od.f.Init.call(this,w.ed,w.Yh(),a,b);this.ol={}};z.a("AdfGeckoAgent.prototype.Init",{Init:od.prototype.Init});od.prototype.getElementById=function(a){if(a==n)return n;if(B.bc){var b=this.ol[a],d=this.w().getElementById(a);b!=d&&B.assert(p,"document.getElementById('"+a+"')\x3d\x3d"+d+" not "+b)}return this.ol[a]};z.a("AdfGeckoAgent.prototype.getElementById",{getElementById:od.prototype.getElementById});
od.prototype.gc=function(a){var b=this.ol,d=a.id;d!=n&&delete b[d];if(a.firstChild){a=this.w().evaluate(".//*[@id]",a,n,XPathResult.ANY_TYPE,n);for(d=a.iterateNext();d;)(d=d.getAttribute("id"))&&delete b[d],d=a.iterateNext()}};z.a("AdfGeckoAgent.prototype.elementsRemoved",{gc:od.prototype.gc});od.prototype.xu=function(){this.ol={};this.wa(this.w())};z.a("AdfGeckoAgent.prototype.allElementsRemoved",{xu:od.prototype.xu});
od.prototype.wa=function(a){var b=this.ol,d=a.id;d!=n&&(b[d]=a);if(a.firstChild){a=this.w().evaluate(".//*[@id]",a,n,XPathResult.ANY_TYPE,n);for(d=a.iterateNext();d;){var e=d.getAttribute("id");e&&(b[e]=d);d=a.iterateNext()}}};z.a("AdfGeckoAgent.prototype.elementsAdded",{wa:od.prototype.wa});od.prototype.WJ=function(a,b){B.ub(a);if(b===n||0==b.length)b=od.tMa;a.textContent=b};z.a("AdfGeckoAgent.prototype.setButtonTextContent",{WJ:od.prototype.WJ});
od.prototype.vd=function(a){a.style.MozUserSelect="none"};z.a("AdfGeckoAgent.prototype.disableUserSelect",{vd:od.prototype.vd});od.prototype.Qe=function(a){a.style.MozUserSelect=""};z.a("AdfGeckoAgent.prototype.enableUserSelect",{Qe:od.prototype.Qe});od.prototype.ij=function(a,b,d){return"click"==d.type&&2==d.button?n:new rd(a,b,d)};z.a("AdfGeckoAgent.prototype.CreateUIInputEvent",{ij:od.prototype.ij});
od.prototype.al=function(a){var b=this.R();return b.console&&b.console.firebug?new ld(b,a):od.f.al.call(this,a)};z.a("AdfGeckoAgent.prototype.CreateDefaultLogWriter",{al:od.prototype.al});od.prototype.vh=function(){return new sd};z.a("AdfGeckoAgent.prototype.CreateNativeLogWriter",{vh:od.prototype.vh});od.prototype.cJ=function(a){if(a)try{return a.nodeType}catch(b){}};z.a("AdfGeckoAgent.prototype.getNodeType",{cJ:od.prototype.cJ});od.prototype.fs=function(a){return a.innerWidth};
z.a("AdfGeckoAgent.prototype.getWindowClientWidth",{fs:od.prototype.fs});od.prototype.es=function(a){return a.innerHeight};z.a("AdfGeckoAgent.prototype.getWindowClientHeight",{es:od.prototype.es});od.prototype.gD=function(a,b,d){if(this.Kc(a,b,d))return l;if(!a.clientHeight&&!a.clientWidth){for(var e=a.parentNode;e;e=e.parentNode)if(e.clientWidth||e.clientHeight){if(this.Kc(e,b,d))break;return p}for(a=a.firstChild;a;a=a.nextSibling)if(1==a.nodeType&&"absolute"!=a.style.position&&this.gD(a,b,d))return l}return p};
z.a("AdfGeckoAgent.prototype.pointInElementOrChildBounds",{gD:od.prototype.gD});od.prototype.Jp=function(a){try{return a.originalTarget.localName,p}catch(b){return l}};z.a("AdfGeckoAgent.prototype.isChromeEvent",{Jp:od.prototype.Jp});od.prototype.xs=function(a,b){a.setAttribute("src",b);this.Qxa=l};z.a("AdfGeckoAgent.prototype.setImageSource",{xs:od.prototype.xs});od.prototype.iS=function(a,b){a.title=b};z.a("AdfGeckoAgent.prototype.setImageTooltip",{iS:od.prototype.iS});
od.prototype.hh=function(a,b){od.f.hh.call(this,a,b);od.f.hh.call(this,a,od.jza)};z.a("AdfGeckoAgent.prototype.addEventBubbles",{hh:od.prototype.hh});od.prototype.On=function(a,b){od.f.hh.call(this,a,b);od.f.On.call(this,a,od.jza)};z.a("AdfGeckoAgent.prototype.removeEventBubbles",{On:od.prototype.On});od.prototype.qn=function(a,b){B.ub(a);B.Da(b);a.addEventListener("keypress",b,p)};z.a("AdfGeckoAgent.prototype.addKeyEventListener",{qn:od.prototype.qn});
od.prototype.Pn=function(a,b){B.ub(a);B.Da(b);a.removeEventListener("keypress",b,p)};z.a("AdfGeckoAgent.prototype.removeKeyEventListener",{Pn:od.prototype.Pn});
od.jza=function(){var a=w.b;if(a.Qxa){a.Qxa=p;var a=a.w(),b=a.documentElement,d=a.createElement("iframe");d.frameBorder="0";d.scrolling="no";d.style.zIndex=900;d.style.position="absolute";d.style.borderStyle="none";d.style.top=b.style.top;d.style.left=b.style.left;d.style.width=b.offsetWidth+"px";d.style.height=b.offsetHeight+"px";a.body.appendChild(d);a.body.removeChild(d)}};od.prototype.vv=function(a,b){od.f.vv(a,b);this.FC(a)};z.a("AdfGeckoAgent.prototype.showBusyCursor",{vv:od.prototype.vv});
od.prototype.DJ=function(a){return"click"==a.type&&0==a.button};z.a("AdfGeckoAgent.prototype.isLeftButtonClick",{DJ:od.prototype.DJ});od.prototype.Jn=function(a){return 0==a.which};z.a("AdfGeckoAgent.prototype.isFunctionKey",{Jn:od.prototype.Jn});od.prototype.ia=function(a){if(this.Jn(a))return a.keyCode;a=a.which;return 97<=a&&122>=a?a-32:a};z.a("AdfGeckoAgent.prototype.getKeyCode",{ia:od.prototype.ia});od.prototype.YC=function(a){B.ub(a);return a instanceof HTMLElement};
z.a("AdfGeckoAgent.prototype.isElementHTML",{YC:od.prototype.YC});od.prototype.bi=function(a){var b=a.id;b!=n&&""!=b&&(a.id="");if(a.firstChild){a=this.w().evaluate(".//*[@id]",a,n,XPathResult.ANY_TYPE,n);for(b=a.iterateNext();b;){var d=b.id;d!=n&&""!=d&&(b.id="");b=a.iterateNext()}}};z.a("AdfGeckoAgent.prototype.removeIdsFromDomSubTree",{bi:od.prototype.bi});od.prototype.Ts=function(){return od.KL};z.a("AdfGeckoAgent.prototype.GetCssToDomPropertyNameMap",{Ts:od.prototype.Ts});
od.prototype.Sh=function(a,b){b||(b=this.getComputedStyle(a));return b.getPropertyValue("-moz-box-sizing")};z.a("AdfGeckoAgent.prototype.getBoxSizing",{Sh:od.prototype.Sh});od.KL={"float":"cssFloat"};od.K6a="_moz-userdefined";od.foa=k;od.$A=function(a){var b=a.ownerDocument;if(b.getBoxObjectFor)return b.getBoxObjectFor(a);a=a.getBoundingClientRect();return{x:Math.round(a.left),y:Math.round(a.top),width:Math.round(a.width),height:Math.round(a.height)}};
od.prototype.Ux=function(a,b){if("number"==typeof b)return od.f.Ux.call(this,a,b);if(b&&a&&a==this.G()){var d=navigator.userAgent.toLowerCase().match(/rv:(\d+)\.(\d+)\.?(\d+)?\.?(\d+)?/);B.yc(d,"parse gecko version string");d.splice(0,1);for(var e=b.split("."),f=Math.max(e.length,d.length),g=0;g<f;g++){var h=parseInt(d[g]?d[g]:0),m=parseInt(e[g]?e[g]:0);if(m!=h)if(m<h)break;else return p}}else return p;return l};z.a("AdfGeckoAgent.prototype.atLeast",{Ux:od.prototype.Ux});
od.prototype.Kc=function(a,b,d){var e=a.getBoundingClientRect();a=a.ownerDocument.documentElement;b-=a.scrollLeft;d-=a.scrollTop;return d>=e.top&&d<=e.bottom&&b>=e.left&&b<=e.right};z.a("AdfGeckoAgent.prototype.pointInElementBounds",{Kc:od.prototype.Kc});od.prototype.slice=function(a,b,d){if(!("undefined"===typeof Blob||"undefined"===typeof Blob.prototype.slice&&"undefined"===typeof Blob.prototype.mozSlice)){if(a==n)return n;if(a.slice)return a.slice(b,d);if(a.mozSlice)return a.mozSlice(b,d)}};
z.a("AdfGeckoAgent.prototype.slice",{slice:od.prototype.slice});od.prototype.ne=function(a,b){if(this.Ey(a)){var d=a.type,e=this.wN(a,d,b),f=b?b:a.target,g=f.ownerDocument;g.addEventListener(d,this.stopPropagation,l);try{f.dispatchEvent(e)}finally{g.removeEventListener(d,this.stopPropagation,l)}return e}return od.f.ne.call(this,a,b)};z.a("AdfGeckoAgent.prototype.cloneEvent",{ne:od.prototype.ne});
od.prototype.wN=function(a,b,d){d=(d?d:a.target).ownerDocument;var e=d.createEvent("KeyboardEvent");e.initKeyEvent(b,l,l,d.contentWindow,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.keyCode,a.charCode);return e};od.prototype.cj=function(a){if(od.f.cj.call(this,a)){a=a.L();var b=a.explicitOriginalTarget;return b===a.originalTarget?l:1!=b.nodeType}return p};z.a("AdfGeckoAgent.prototype.isDragPrepEvent",{cj:od.prototype.cj});