function AdfIE8Agent(a,b){this.Init(a,b);AdfIEAgent.assertBrowserMode(this)}AdfObject.createSubclass(AdfIE8Agent,AdfIEAgentLegacy);AdfIE8Agent.prototype.getElementPosition=function(a){AdfAssert.assertDomElement(a);var b=a.getBoundingClientRect(),d=b.top,b=b.left;a=a.ownerDocument.documentElement;var e=a.scrollLeft;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(e=-e);b-=a.clientLeft-e;d-=a.clientTop-a.scrollTop;return{x:b,y:d}};
AdfIE8Agent.prototype.getElementLeft=function(a){AdfAssert.assertDomElement(a);var b=a.getBoundingClientRect().left;a=a.ownerDocument.documentElement;var d=a.scrollLeft;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(d=-d);return b-=a.clientLeft-d};AdfIE8Agent.prototype.getTableRows=function(a){var b=[];for(a=a.firstChild;a;){if(1==a.nodeType)for(var d=a.firstChild;d;)1==d.nodeType&&b.push(d),d=d.nextSibling;a=a.nextSibling}return b};
AdfIE8Agent.prototype.getTableRow=function(a,b){void 0===b&&(b=0);for(var d=a.firstChild;null!=d;){if(1==d.nodeType)for(var e=d.firstChild;e;){if(1==e.nodeType){if(0==b)return e;b--}e=e.nextSibling}d=d.nextSibling}return null};AdfIE8Agent.prototype.getTableRowCells=function(a){var b=[];for(a=a.firstChild;a;)1==a.nodeType&&b.push(a),a=a.nextSibling;return b};
AdfIE8Agent.prototype.isSessionStorageEnabled=function(){if(void 0===this._isSessionStorageEnabled)try{sessionStorage.setItem("_adfTestKey","on"),sessionStorage.removeItem("_adfTestKey"),this._isSessionStorageEnabled=!0}catch(a){AdfLogger.LOGGER.logErrorAsInfo(a,"userdata monitoring has been disabled because an error occurred accessing the DOM sessionStorage. Please ensure that 'DOM Storage' is enabled in your IE browser settings."),this._isSessionStorageEnabled=!1}return this._isSessionStorageEnabled};
AdfIE8Agent.prototype.getSessionStorageProperty=function(a){AdfAssert.assertString(a);try{return sessionStorage.getItem(a)}catch(b){throw AdfLogger.LOGGER.logErrorAsInfo(b,"An error occurred trying to access DOM sessionStorage."),b;}};AdfIE8Agent.prototype.removeSessionStorageProperty=function(a){AdfAssert.assertString(a);try{sessionStorage.removeItem(a)}catch(b){throw AdfLogger.LOGGER.logErrorAsInfo(b,"An error occurred trying to access DOM sessionStorage."),b;}};
AdfIE8Agent.prototype.setSessionStorageProperty=function(a,b){AdfAssert.assertString(a);AdfAssert.assertString(b);try{sessionStorage.setItem(a,b)}catch(d){throw AdfLogger.LOGGER.logErrorAsInfo(d,"An error occurred trying to access DOM sessionStorage."),d;}};AdfIE8Agent.prototype.setTableRowHeight=function(a,b){a.style.height=b+"px"};
AdfIE8Agent.prototype.setOpacity=function(a,b){var d=null;try{d=a.filters}catch(e){d=null}d=d?d.alpha:null;null==d?100!=b&&(a.style.filter+="alpha(opacity\x3d"+b+")"):(d.opacity=b,d.enabled=100>b)};AdfIE8Agent.prototype.elementsRemoved=function(a){var b=this._ID_TO_DOM_MAP,d=a.id;null!=d&&delete b[d];a=a.all;for(var d=a.length,e=0;e<d;e++){var f=a(e).getAttribute("id");f&&delete b[f]}};
AdfIE8Agent.prototype.elementsAdded=function(a){var b=this._ID_TO_DOM_MAP,d=a.id;null!=d&&(b[d]=a);a=a.all;for(var d=a.length,e=0;e<d;e++){var f=a(e),g=f.getAttribute("id");g&&(b[g]=f)}};AdfIE8Agent.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.attachEvent("on"+d[f],b,!0)};
AdfIE8Agent.prototype.removeEventCaptures=function(a,b){AdfAssert.assertDomNode(a);AdfAssert.assertFunction(b);for(var d=AdfAgent.REDISTRIBUTE_EVENTS,e=d.length,f=0;f<e;f++)a.detachEvent("on"+d[f],b,!0)};AdfIE8Agent.prototype.getBoxSizing=function(a,b){b||(b=this.getComputedStyle(a));return b.getAttribute("-ms-box-sizing")};AdfIE8Agent.prototype.CreateDefaultLogWriter=function(a){if(AdfAssert.DEBUG){var b=this.getDomWindow(),d=b.console;return d&&d.log?a:new AdfConsoleLogWriter(b,a)}return a};
AdfIE8Agent.prototype.cloneNode=function(a){return a.cloneNode(!0)};AdfIE8Agent.prototype.hasAttribute=function(a,b){AdfAssert.assertDomElement(a);return a.hasAttribute(b.name)};