function nd(a,b){this.Init(a,b)}v("AdfGecko18Agent",nd);z.l(nd,pd);nd.prototype.Init=function(a,b){nd.f.Init.call(this,a,b)};z.a("AdfGecko18Agent.prototype.Init",{Init:nd.prototype.Init});nd.prototype.rc=function(a){B.p(a);var b=a.ownerDocument;if(b.getBoxObjectFor===k)return a=a.getBoundingClientRect(),a=Math.round(a.left),a+=b.documentElement.scrollLeft;var d=b.getBoxObjectFor(a);a=d.screenX;d=b.getBoxObjectFor(b.documentElement);return a-=d.screenX};
z.a("AdfGecko18Agent.prototype.getElementLeft",{rc:nd.prototype.rc});nd.prototype.nd=function(a){B.ub(a);var b=a.ownerDocument;if(b.getBoxObjectFor===k)return a=a.getBoundingClientRect(),a=Math.round(a.top),a+=b.documentElement.scrollTop;var d=b.getBoxObjectFor(a);a=d.screenY;d=b.getBoxObjectFor(b.documentElement);return a-=d.screenY};z.a("AdfGecko18Agent.prototype.getElementTop",{nd:nd.prototype.nd});
nd.prototype.Ub=function(a){B.p(a);var b=a.ownerDocument;if(b.getBoxObjectFor===k){var d=a.getBoundingClientRect();a=Math.round(d.top);d=Math.round(d.left);b=b.documentElement;d+=b.scrollLeft;a+=b.scrollTop;return{x:d,y:a}}var e=b.getBoxObjectFor(a);a=e.screenY;d=e.screenX;e=b.getBoxObjectFor(b.documentElement);a-=e.screenY;d-=e.screenX;return{x:d,y:a}};z.a("AdfGecko18Agent.prototype.getElementPosition",{Ub:nd.prototype.Ub});
nd.prototype.Kc=function(a,b,d){B.ub(a);for(var e=0,f=0,g=a;g!=n;)e+=g.scrollTop,f+=g.scrollLeft,g=g.offsetParent;d+=e;b+=f;f=a.ownerDocument;e=od.$A(a);return d>=e.y&&b>=e.x?(a==f.documentElement?(f=a.clientWidth,a=a.clientHeight):(f=e.width,a=e.height),d<=e.y+a&&b<=e.x+f):p};z.a("AdfGecko18Agent.prototype.pointInElementBounds",{Kc:nd.prototype.Kc});
nd.prototype.Uc=function(a){B.ub(a);for(var b=a.ownerDocument,d=od.$A(a),e=0,f=0,g=a;g!=n;)e+=g.scrollTop,f+=g.scrollLeft,g=g.offsetParent;e=d.y-e;f=d.x-f;a==b.documentElement?(b=a.clientWidth,a=a.clientHeight):(b=d.width,a=d.height);return{top:e,left:f,bottom:e+a,right:f+b}};z.a("AdfGecko18Agent.prototype.getElementPageBounds",{Uc:nd.prototype.Uc});