function AdfIEAgent(a,b){this.Init(a,b);AdfIEAgent.assertBrowserMode(this)}AdfIEAgent.assertBrowserMode=function(a){AdfIEAgent._isIllegalBrowserDetected(a)&&("undefined"!=typeof checkBrowserMode&&null!=checkBrowserMode)&&("alert"==checkBrowserMode&&alert(AdfAgent._UNSUPPORTED_BROWSER_MODE_ALERT),window.setTimeout('try{AdfLogger.LOGGER.warning(unescape("'+escape(AdfAgent._UNSUPPORTED_BROWSER_MODE_ALERT)+'"));}catch(problem){}',1E3))};
AdfIEAgent._isIllegalBrowserDetected=function(a){var b=a.getVersion();a=document.documentMode;if(8>b)return 7>b?!0:null==a?!1:!0;if(8>a)return!0;b=Math.abs(b);a=Math.abs(a);return b!=a?!0:!1};AdfObject.createSubclass(AdfIEAgent,AdfAgent);AdfIEAgent.__getAgentVersion=function(a){var b=null;(b=b=a.match(/Trident\/(\d+[.]\d+)/))?(b=parseFloat(b[1]),b+=4):((b=a.match(/MSIE (\d+\.\d+);/))||(b=a.match(/MSIE (\d+\.\d+)b;/)),b=parseFloat(b[1]));return b};
AdfIEAgent.__getSupported=function(a,b){var d=!0;b<AdfAgent._MIN_IE_VERSION&&(d=!1);return d};AdfIEAgent.__getSpecificAgentClassName=function(a,b){switch(Math.floor(b)){case 11:return"AdfIEAgent";case 10:return"AdfIE9Agent";case 9:return"AdfIE9Agent";case 8:return"AdfIE8Agent";case 7:return"AdfIEAgentLegacy";default:return"AdfIE6Agent"}};AdfIEAgent.prototype.Init=function(a,b){AdfIEAgent.superclass.Init.call(this,AdfAgent.IE_PLATFORM,AdfAgent.guessOS(),a,b)};
AdfIEAgent.prototype.CreateNativeLogWriter=function(){var a=this.getDomWindow();return a.console?new AdfIEConsoleLogWriter(a,new AdfAlertLogWriter):new AdfAlertLogWriter};AdfIEAgent.prototype._getSessionStorageKey=function(a){var b=this.getDomWindow().location.protocol;return b?b+"_"+a:a};AdfIEAgent.prototype.getDescendantComponentsForNode=function(a,b){b||(b=[]);for(var d=AdfIEAgent._getAllChildElements(a),e=d.length,f=AdfPage.PAGE,g=0;g<e;g++){var h=d[g].id;h&&(h=f.findComponent(h))&&b.push(h)}return b};
AdfIEAgent.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+=a.clientWidth-a.scrollWidth);return b-=a.clientLeft-d};
AdfIEAgent.prototype.getElementPageBounds=function(a){AdfAssert.assertDomElement(a);var b=a.getBoundingClientRect();a=a.ownerDocument.documentElement;var d=a.scrollLeft;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(d+=a.clientWidth-a.scrollWidth);deltaX=a.clientLeft-d;deltaY=a.clientTop-a.scrollTop;return{top:b.top-deltaY,left:b.left-deltaX,bottom:b.bottom-deltaY,right:b.right-deltaX}};
AdfIEAgent.prototype.pointInElementBounds=function(a,b,d){var e=a.getBoundingClientRect();a=a.ownerDocument.documentElement;b=b-a.scrollLeft-2;d=d-a.scrollTop-2;return d>=e.top&&d<=e.bottom&&b>=e.left&&b<=e.right};AdfIEAgent.prototype.getOverrideStyle=function(a){return a.runtimeStyle};AdfIEAgent.prototype.getComputedStyle=function(a){return a.currentStyle};AdfIEAgent.prototype.getStyleProperty=function(a,b){return a[b]};AdfIEAgent.prototype.setCssFloat=function(a,b){a.style.styleFloat=b};
AdfIEAgent.prototype.getEventToElement=function(a){return a.toElement};AdfIEAgent.prototype.getEventFromElement=function(a){return a.fromElement};AdfIEAgent.prototype.elementFromPagePoint=function(a,b,d,e,f){return f?AdfIEAgent.superclass.elementFromPagePoint.call(this,a,b,d,e,f):this.getDomDocument().elementFromPoint(a,b)};AdfIEAgent.prototype.checkMouseOutEvent=function(a,b){for(var d=!1,e=b.toElement;null!=e;){if(e==a){d=!0;break}e=e.parentNode}return!d};
AdfIEAgent.prototype.getMousePosition=function(a){var b=this.getDomDocument().documentElement;return{x:a.clientX+b.scrollLeft-b.clientLeft,y:a.clientY+b.scrollTop-b.clientTop}};AdfIEAgent.prototype.getFormElement=function(a,b){for(var d=null,e=0;e<a.elements.length;e++){var f=a.elements[e];if(f.name==b){d=f;break}}return d};AdfIEAgent.prototype.getWindowHeight=function(){return this.getDomDocument().documentElement.clientHeight};AdfIEAgent.prototype.getWindowWidth=function(){return this.getDomDocument().documentElement.clientWidth};
AdfIEAgent.prototype.getIntAttribute=function(a,b,d){AdfAssert.assert(a);if(null==a.attributes)return d;a=a.getAttribute(b);if(void 0==a)return d;"string"==typeof a&&(a=parseInt(a));return a};AdfIEAgent.prototype.getBooleanAttribute=function(a,b,d){AdfAssert.assert(a);var e=a.getAttribute(b);return!0==e||!1==e?e:AdfIEAgent.superclass.getBooleanAttribute.call(this,a,b,d)};AdfIEAgent.prototype.isFunctionKey=function(a){a=a.keyCode;return 112<=a&&123>=a};
AdfIEAgent.prototype.isDisabledOptionSupported=function(){return!1};AdfIEAgent.prototype.isEqualIcon=function(a,b){var d=a.parentNode.innerHTML==b.parentNode.innerHTML;if(d)return!0;var e="IMG"==AdfAgent.AGENT.getNodeName(a),f="IMG"==AdfAgent.AGENT.getNodeName(b);return e&&f?(d=a.getAttribute("ALT"),e=b.getAttribute("ALT"),a.src!=b.src||d!=e?!1:!0):d};
AdfIEAgent.prototype.addOption=function(a,b,d,e,f,g,h){f||(f=this.getDomDocument().createElement("option"),a.options.add(f,h),null!=d&&(f.value=d),b&&AdfAgent.AGENT.setTextContent(f,b),f.selected=e,g&&(f.title=g))};AdfIEAgent.prototype.removeIdsFromDomSubTree=function(a){var b=a.id;null!=b&&""!=b&&(a.id="");a=AdfIEAgent._getAllChildElements(a);for(var d=a.length,e=0;e<d;e++){var f=a[e],b=f.getAttribute("id");null!=b&&""!=b&&(f.id="")}};AdfIEAgent.prototype.removeStyleProperty=function(a,b){a.style.removeAttribute(b)};
AdfIEAgent.prototype.setTableRowHeight=function(a,b){a.style.height=b+"px"};AdfIEAgent.prototype.autoCompleteForm=function(a){AdfAssert.assertDomElement(a,"FORM");var b=this.getDomWindow().external;if(b&&"undefined"!=typeof b.AutoCompleteSaveForm)try{b.AutoCompleteSaveForm(a)}catch(d){AdfLogger.LOGGER.info("window.external autocomplete failed")}else AdfLogger.LOGGER.info("window.external property null, autocomplete disabled")};
AdfIEAgent.prototype.clearSubtreeIds=function(a){a.id&&(a.id=void 0!=typeof a.uniqueID&&void 0!=a.uniqueID?a.uniqueID:"");a.name&&(a.name=void 0!=typeof a.uniqueID&&void 0!=a.uniqueID?a.name+a.uniqueID:"");for(a=a.firstChild;a;)1==a.nodeType&&this.clearSubtreeIds(a),a=a.nextSibling};AdfIEAgent.prototype.IsComputedWidthAuto=function(){return!0};AdfIEAgent._getAllChildElements=function(a){allNodes=[];if(a=a.getElementsByTagName("*"))for(var b=a.length,d=0;d<b;d++){var e=a[d];1==e.nodeType&&allNodes.push(e)}return allNodes};
AdfIEAgent.prototype.slice=function(a,b,d){if(null==a)return null;if(a.slice)return a.slice(b,d)};