YUI.add("node-screen",function(r,e){r.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(o){r.Node.ATTRS[o]={getter:function(){var e=Array.prototype.slice.call(arguments);return e.unshift(r.Node.getDOMNode(this)),r.DOM[o].apply(this,e)}}}),r.Node.ATTRS.scrollLeft={getter:function(){var e=r.Node.getDOMNode(this);return"scrollLeft"in e?e.scrollLeft:r.DOM.docScrollX(e)},setter:function(e){var o=r.Node.getDOMNode(this);o&&("scrollLeft"in o?o.scrollLeft=e:!o.document&&9!==o.nodeType||r.DOM._getWin(o).scrollTo(e,r.DOM.docScrollY(o)))}},r.Node.ATTRS.scrollTop={getter:function(){var e=r.Node.getDOMNode(this);return"scrollTop"in e?e.scrollTop:r.DOM.docScrollY(e)},setter:function(e){var o=r.Node.getDOMNode(this);o&&("scrollTop"in o?o.scrollTop=e:!o.document&&9!==o.nodeType||r.DOM._getWin(o).scrollTo(r.DOM.docScrollX(o),e))}},r.Node.importMethod(r.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]),r.Node.ATTRS.region={getter:function(){var e=this.getDOMNode();return e&&!e.tagName&&9===e.nodeType&&(e=e.documentElement),r.DOM.isWindow(e)?r.DOM.viewportRegion(e):r.DOM.region(e)}},r.Node.ATTRS.viewportRegion={getter:function(){return r.DOM.viewportRegion(r.Node.getDOMNode(this))}},r.Node.importMethod(r.DOM,"inViewportRegion"),r.Node.prototype.intersect=function(e,o){var t=r.Node.getDOMNode(this);return r.instanceOf(e,r.Node)&&(e=r.Node.getDOMNode(e)),r.DOM.intersect(t,e,o)},r.Node.prototype.inRegion=function(e,o,t){var n=r.Node.getDOMNode(this);return r.instanceOf(e,r.Node)&&(e=r.Node.getDOMNode(e)),r.DOM.inRegion(n,e,o,t)}},"patched-v3.18.7",{requires:["dom-screen","node-base"]});