YUI.add("dom-core",function(u,e){var r="nodeType",i="ownerDocument",o="tagName",c="contains",a="compareDocumentPosition",d=[],f=function(){var e=u.config.doc.createElement("div"),n=e.appendChild(u.config.doc.createTextNode("")),t=!1;try{t=e.contains(n)}catch(r){}return t}(),l={byId:function(e,n){return l.allById(e,n)[0]||null},getId:function(e){var n;return!e.id||e.id.tagName||e.id.item?e.attributes&&e.attributes.id&&(n=e.attributes.id.value):n=e.id,n},setId:function(e,n){e.setAttribute?e.setAttribute("id",n):e.id=n},ancestor:function(e,n,t,r){var i=null;return(i=t?!n||n(e)?e:null:i)||l.elementByAxis(e,"parentNode",n,null,r)},ancestors:function(e,n,t,r){for(var i=e,o=[];i=l.ancestor(i,n,t,r);)if(t=!1,i&&(o.unshift(i),r)&&r(i))return o;return o},elementByAxis:function(e,n,t,r,i){for(;e=e&&e[n];){if((r||e[o])&&(!t||t(e)))return e;if(i&&i(e))return null}return null},contains:function(e,n){var t=!1;return n&&e&&n[r]&&e[r]?e[c]&&(1===n[r]||f)?t=e[c](n):e[a]?(e===n||16&e[a](n))&&(t=!0):t=l._bruteContains(e,n):t=!1,t},inDoc:function(e,n){var t=!1;return t=e&&e.nodeType?(n=(n=n||e[i]).documentElement)&&n.contains&&e.tagName?n.contains(e):l.contains(n,e):t},allById:function(e,n){var t,r,i=[],o=[];if((n=n||u.config.doc).querySelectorAll)o=n.querySelectorAll('[id="'+e+'"]');else if(n.all){if((i=n.all(e))&&(i=i.nodeName?i.id===e?(o.push(i),d):[i]:i).length)for(t=0;r=i[t++];)(r.id===e||r.attributes&&r.attributes.id&&r.attributes.id.value===e)&&o.push(r)}else o=[l._getDoc(n).getElementById(e)];return o},isWindow:function(e){return!!(e&&e.scrollTo&&e.document)},_removeChildNodes:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},siblings:function(e,n){for(var t=[],r=e;r=r.previousSibling;)!r[o]||n&&!n(r)||t.unshift(r);for(r=e;r=r.nextSibling;)!r[o]||n&&!n(r)||t.push(r);return t},_bruteContains:function(e,n){for(;n;){if(e===n)return!0;n=n.parentNode}return!1},_getRegExp:function(e,n){return n=n||"",l._regexCache=l._regexCache||{},l._regexCache[e+n]||(l._regexCache[e+n]=new RegExp(e,n)),l._regexCache[e+n]},_getDoc:function(e){var n=u.config.doc;return n=e?9===e[r]?e:e[i]||e.document||u.config.doc:n},_getWin:function(e){e=l._getDoc(e);return e.defaultView||e.parentWindow||u.config.win},_batch:function(e,n,t,r,i,o){var u,c,a=0;if((n="string"==typeof n?l[n]:n)&&e)for(;u=e[a++];)void 0!==(u=n.call(l,u,t,r,i,o))&&(c=c||[]).push(u);return void 0!==c?c:e},generateID:function(e){var n=e.id;return n||(n=u.stamp(e),e.id=n),n}};u.DOM=l},"patched-v3.18.7",{requires:["oop","features"]});