if(!window.Node)var Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11};var ARIA_STATE="aria-";function Widgets(){this.widgets=[]}Widgets.prototype.add=function(a){this.widgets[this.widgets.length]=a};Widgets.prototype.init=function(){for(var a=0;a<this.widgets.length;a++)this.widgets[a].init()};function _$(a){return document.getElementById(a)}function WebBrowser(){}
document.addEventListener?(WebBrowser.prototype.setMouseCapture=function(a,b,c,d,e){b&&document.addEventListener("click",b,!0);c&&document.addEventListener("mousedown",c,!0);d&&document.addEventListener("mousemove",d,!0);e&&document.addEventListener("mouseup",e,!0)},WebBrowser.prototype.releaseMouseCapture=function(a,b,c,d,e){e&&document.removeEventListener("mouseup",e,!0);d&&document.removeEventListener("mousemove",d,!0);c&&document.removeEventListener("mousedown",c,!0);b&&document.removeEventListener("click",
b,!0)}):(WebBrowser.prototype.setMouseCapture=function(a,b,c,d,e){a.setCapture();b&&a.attachEvent("onclick",b);c&&a.attachEvent("onmousedown",c);d&&a.attachEvent("onmousemove",d);e&&a.attachEvent("onmouseup",e)},WebBrowser.prototype.releaseMouseCapture=function(a,b,c,d,e){e&&a.detachEvent("onmouseup",e);d&&a.detachEvent("onmousemove",d);c&&a.detachEvent("onmousedown",c);b&&a.detachEvent("onclick",b);a.releaseCapture()});
WebBrowser.prototype.simulateOnClickEvent=document.createEvent?function(a){var b=document.createEvent("MouseEvents");b.initEvent("click",!0,!0);a.dispatchEvent(b)}:function(a){var b=document.createEventObject();a.fireEvent("onclick",b)};WebBrowser.prototype.keyCode=function(a){return(a||window.event).keyCode};
typeof document.documentElement.setAttributeNS!="undefined"?(WebBrowser.prototype.stopPropagation=function(a){a.stopPropagation();a.preventDefault();return!1},WebBrowser.prototype.target=function(a){return a.target},WebBrowser.prototype.charCode=function(a){return a.charCode},WebBrowser.prototype.calculateOffsetLeft=function(a){return a.offsetLeft},WebBrowser.prototype.calculateOffsetTop=function(a){return a.offsetTop},WebBrowser.prototype.pageX=function(a){return a.pageX},WebBrowser.prototype.pageY=
function(a){return a.pageY}):(WebBrowser.prototype.stopPropagation=function(){window.event.cancelBubble=!0;return window.event.returnValue=!1},WebBrowser.prototype.charCode=function(a){return window.browser.keyCode(a)},WebBrowser.prototype.target=function(){return window.event.srcElement},WebBrowser.prototype.calculateOffsetLeft=function(a){for(var b=0;a;)b+=a.offsetLeft,a=a.offsetParent;return b},WebBrowser.prototype.calculateOffsetTop=function(a){for(var b=0;a;)b+=a.offsetTop,a=a.offsetParent;return b},
WebBrowser.prototype.pageX=function(a){return a.clientX+document.body.scrollLeft},WebBrowser.prototype.pageY=function(a){return a.clientY+document.body.scrollTop});
document.addEventListener?(WebBrowser.prototype.addEvent=function(a,b,c){a.addEventListener(b,c,!1);returnValue=!0},WebBrowser.prototype.removeEvent=function(a,b,c){a.removeEventListener(b,c,!1);returnValue=!0},WebBrowser.prototype.addChangeEvent=function(a,b){a.addEventListener("DOMAttrModified",b,!1);returnValue=!0}):document.attachEvent?(WebBrowser.prototype.addEvent=function(a,b,c){returnValue=a.attachEvent("on"+b,c)},WebBrowser.prototype.removeEvent=function(a,b,c){returnValue=a.detachEvent("on"+
b,c)},WebBrowser.prototype.addChangeEvent=function(a,b){returnValue=a.attachEvent("onpropertychange",b)}):(WebBrowser.prototype.addEvent=function(){return!1},WebBrowser.prototype.removeEvent=function(){return!1},WebBrowser.prototype.addChangeEvent=function(){return!1});function ARIA(){}ARIA.prototype.setAriaState=function(a,b,c){a.setAttribute(ARIA_STATE+b,c)};ARIA.prototype.setRole=function(a,b){a.setAttribute("role",b)};
ARIA.prototype.getAriaState=function(a,b){return a.getAttribute(ARIA_STATE+b)};ARIA.prototype.removeAriaState=function(a,b){return a.removeAttribute(ARIA_STATE+b)};ARIA.prototype.hasAriaState=function(a,b){return a.hasAttribute(ARIA_STATE+b)};
ARIA.prototype.setRolesAndStates=function(a){var b=a.className,c=b.split(" "),d=0;for(j=0;j<c.length;j++)if(b=c[j].replace(/ /g,""))if(b=="axs")d=1;else if(d==1)this.setRole(a,b),d=2;else if(d==2)b.indexOf("-")!=-1?(b=b.split(/-/),b[0]!="tabindex"?this.setAriaState(a,b[0],b[1]):a.tabIndex=b[1]!=""?b[1]:-1):this.setAriaState(a,b,"")};
initApp=function(a){if(!document.isInitialized){document.isInitialized=!0;if(!a||!a.getElementsByTagName)a=document.body;/axs /.test(a.className)&&aria.setRolesAndStates(a);if(document.evaluate)for(var b=document.evaluate(".//*[contains(@class, 'axs ')]",a,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),a=b.snapshotLength-1;a>=0;a--)aria.setRolesAndStates(b.snapshotItem(a),"wairole:");else for(var b=typeof a.all!="undefined"?a.all:a.getElementsByTagName("*"),c=b.length,a=0;a<c;a++)/axs /.test(b[a].className)&&
aria.setRolesAndStates(b[a]);widgets.init()}};widgets_flag=!0;var widgets=new Widgets,browser=new WebBrowser,aria=new ARIA;
