function AdfIE9Agent(a,b){this.Init(a,b);AdfIEAgent.assertBrowserMode(this)}AdfObject.createSubclass(AdfIE9Agent,AdfIE8Agent);AdfIE9Agent.prototype.addEventCaptures=function(a,b){AdfAssert.assertDomNode(a);AdfAssert.assertFunction(b);for(var d=AdfAgent.REDISTRIBUTE_EVENTS,e=d.length,f=0;f<e;f++)a.addEventListener(d[f],b,!0)};
AdfIE9Agent.prototype.cloneEvent=function(a,b){if(this.isMouseEvent(a)){var d=a.type;newEvent=this._copyMouseEvent(a,d,b);var e=b?b:a.target,f=e.ownerDocument;f.addEventListener(d,this.stopPropagation,!0);try{e.dispatchEvent(newEvent)}finally{f.removeEventListener(d,this.stopPropagation,!0)}return newEvent}return this.isKeyboardEvent(a)?AdfAgent.prototype.cloneEvent.call(AdfAgent.prototype,a,b):a};
AdfIE9Agent.prototype.copyEvent=function(a){return this.isMouseEvent(a)||"contextmenu"==a.type?newEvent=this._copyMouseEvent(a,a.type):a};AdfIE9Agent.prototype._copyMouseEvent=function(a,b,d){d=(d?d:a.target).ownerDocument.createEvent("MouseEvents");d.initMouseEvent(b,a.bubbles,a.cancelable,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget);return d};
AdfIE9Agent._getBoxObjectFor=function(a){var b=a.ownerDocument;if(b.getBoxObjectFor)return b.getBoxObjectFor(a);var d=a.getBoundingClientRect();a=Math.round(d.top);var b=Math.round(d.left),e=Math.round(d.width),d=Math.round(d.height);return{x:b,y:a,width:e,height:d}};AdfIE9Agent.prototype.getComponentEvent=function(a,b,d){return AdfAgent.prototype.getComponentEvent.apply(this,arguments)};
AdfIE9Agent.prototype.stopPropagation=function(a){a.stopPropagation?a.stopPropagation():AdfIE9Agent.superclass.stopPropagation.call(this,a)};AdfIE9Agent.prototype.preventDefault=function(a){a.preventDefault?a.preventDefault():AdfIE9Agent.superclass.preventDefault.call(this,a)};AdfIE9Agent.prototype.isLeftButton=function(a){return 0==a.button};AdfIE9Agent.prototype.isDefaultPrevented=function(a){return a.defaultPrevented?a.defaultPrevented:AdfIE9Agent.superclass.isDefaultPrevented.call(this,a)};
AdfIE9Agent.prototype.dispatchEvent=function(a,b){return a.dispatchEvent(b)};AdfIE9Agent.prototype.getEventTarget=function(a){var b=a.target;return!b?AdfIE9Agent.superclass.getEventTarget.call(this,a):b};AdfIE9Agent.prototype.setEventTarget=function(a,b){a.target=b};
AdfIE9Agent.prototype.getTextContent=function(a){AdfAssert.assertDomNode(a);switch(a.nodeType){case 1:var b=a.textContent;return void 0==b?AdfIE9Agent.superclass.getTextContent.call(this,a):b;default:return AdfIE9Agent.superclass.getTextContent.call(this,a)}};AdfIE9Agent.prototype.addBubbleEventListener=function(a,b,d){AdfAssert.assertString(b);AdfAssert.assertFunction(d);a.addEventListener(b,d,!1)};
AdfIE9Agent.prototype.removeBubbleEventListener=function(a,b,d){AdfAssert.assertString(b);AdfAssert.assertFunction(d);a.removeEventListener(b,d,!1)};AdfIE9Agent.prototype.addKeyEventListener=function(a,b){a.addEventListener("keydown",b,!1)};AdfIE9Agent.prototype.removeKeyEventListener=function(a,b){a.removeEventListener("keydown",b,!1)};AdfIE9Agent.prototype.setOpacity=function(a,b){AdfIE9Agent.superclass.setOpacity.call(this,a,b);a.style.opacity=b/100};
AdfIE9Agent.prototype.CreateUIInputEvent=function(a,b,d){return new AdfIE9UIInputEvent(a,b,d)};AdfIE9Agent.prototype.GetResizeEvents=function(){return AdfIE9Agent._RESIZE_EVENTS};AdfIE9Agent.prototype.supportsTransientStyleClasses=function(){return 0>=this.getDomDocument().documentElement.scrollTop};AdfIE9Agent._RESIZE_EVENTS=["DOMAttrModified","DOMSubtreeModified"];