!function(){var e,t=YUI.Env,n=YUI.config,o=n.doc,r=o&&o.documentElement,i="onreadystatechange",n=n.pollInterval||40;r.doScroll&&!t._ieready&&(t._ieready=function(){t._ready()},
/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
self!==self.top?t.add(o,i,e=function(){"complete"==o.readyState&&(t.remove(o,i,e),t.ieready())}):t._dri=setInterval(function(){try{r.doScroll("left"),clearInterval(t._dri),t._dri=null,t._ieready()}catch(e){}},n))}(),YUI.add("event-base-ie",function(a,e){function c(){a.DOM2EventFacade.apply(this,arguments)}function i(e){var t=a.config.doc.createEventObject(e),n=i.prototype;return t.hasOwnProperty=function(){return!0},t.init=n.init,t.halt=n.halt,t.preventDefault=n.preventDefault,t.stopPropagation=n.stopPropagation,t.stopImmediatePropagation=n.stopImmediatePropagation,a.DOM2EventFacade.apply(t,arguments),t}var t=a.config.doc&&a.config.doc.implementation,n=a.config.lazyEventFacade,l={0:1,4:2,2:3},o={mouseout:"toElement",mouseover:"fromElement"},s=a.DOM2EventFacade.resolve,r={init:function(){c.superclass.init.apply(this,arguments);var e,t,n,o,r,i=this._event;this.target=s(i.srcElement),"clientX"in i&&!e&&0!==e&&(e=i.clientX,t=i.clientY,n=(o=a.config.doc).body,e+=(o=o.documentElement).scrollLeft||n&&n.scrollLeft||0,t+=o.scrollTop||n&&n.scrollTop||0,this.pageX=e,this.pageY=t),"mouseout"==i.type?r=i.toElement:"mouseover"==i.type&&(r=i.fromElement),this.relatedTarget=s(r||i.relatedTarget),this.which=this.button=i.keyCode||l[i.button]||i.button},stopPropagation:function(){this._event.cancelBubble=!0,this._wrapper.stopped=1,this.stopped=1},stopImmediatePropagation:function(){this.stopPropagation(),this._wrapper.stopped=2,this.stopped=2},preventDefault:function(e){this._event.returnValue=e||!1,this._wrapper.prevented=1,this.prevented=1}};if(a.extend(c,a.DOM2EventFacade,r),a.extend(i,a.DOM2EventFacade,r),i.prototype.init=function(){var e,t=this._event,n=this._wrapper.overrides,o=i._define,r=i._lazyProperties;for(e in this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey,this.type=n&&n.type||t.type,this.clientX=t.clientX,this.clientY=t.clientY,this.keyCode=this.charCode=t.keyCode,this.which=this.button=t.keyCode||l[t.button]||t.button,r)r.hasOwnProperty(e)&&o(this,e,r[e]);this._touch&&this._touch(t,this._currentTarget,this._wrapper)},i._lazyProperties={target:function(){return s(this._event.srcElement)},relatedTarget:function(){var e=this._event,t=o[e.type]||"relatedTarget";return s(e[t]||e.relatedTarget)},currentTarget:function(){return s(this._currentTarget)},wheelDelta:function(){var e=this._event;if("mousewheel"===e.type||"DOMMouseScroll"===e.type)return e.detail?-1*e.detail:Math.round(e.wheelDelta/80)||(e.wheelDelta<0?-1:1)},pageX:function(){var e,t,n=this._event,o=n.pageX;return o===undefined&&(e=(t=a.config.doc).body&&t.body.scrollLeft,t=t.documentElement.scrollLeft,o=n.clientX+(t||e||0)),o},pageY:function(){var e,t,n=this._event,o=n.pageY;return o===undefined&&(e=(t=a.config.doc).body&&t.body.scrollTop,t=t.documentElement.scrollTop,o=n.clientY+(t||e||0)),o}},i._define=function(n,o,r){function e(e){var t=arguments.length?e:r.call(this);return delete n[o],Object.defineProperty(n,o,{value:t,configurable:!0,writable:!0}),t}Object.defineProperty(n,o,{get:e,set:e,configurable:!0})},t&&!t.hasFeature("Events","2.0")){if(n)try{Object.defineProperty(a.config.doc.createEventObject(),"z",{})}catch(p){n=!1}a.DOMEventFacade=n?i:c}},"patched-v3.18.3",{requires:["node-base"]});