YUI.add("dom-style",function(o,t){var r,i,e="documentElement",f="defaultView",s="ownerDocument",a="style",n="float",l="cssFloat",u="styleFloat",S="getComputedStyle",g="getBoundingClientRect",c=o.config.doc,T=o.DOM,m=/width|height|top|left|right|bottom|margin|padding/i;o.Array.each(["WebkitTransform","MozTransform","OTransform","msTransform","transform"],function(t){t in c[e].style&&(i=(r=t)+"Origin")}),o.mix(T,{DEFAULT_UNIT:"px",CUSTOM_STYLES:{},setStyle:function(t,e,n,r){r=r||t.style;var i=T.CUSTOM_STYLES;if(r){if(null===n||""===n?n="":!isNaN(Number(n))&&m.test(e)&&(n+=T.DEFAULT_UNIT),e in i){if(i[e].set)return void i[e].set(t,n,r);"string"==typeof i[e]&&(e=i[e])}else""===e&&(e="cssText",n="");r[e]=n}},getStyle:function(t,e,n){n=n||t.style;var r=T.CUSTOM_STYLES,i="";if(n){if(e in r){if(r[e].get)return r[e].get(t,e,n);"string"==typeof r[e]&&(e=r[e])}""===(i=n[e])&&(i=T[S](t,e))}return i},setStyles:function(n,t){var r=n.style;o.each(t,function(t,e){T.setStyle(n,e,t,r)},T)},getComputedStyle:function(t,e){var n="",r=t[s];return n=t[a]&&r[f]&&r[f][S]&&(t=r[f][S](t,null))?t[e]:n}}),c[e][a][l]!==undefined?T.CUSTOM_STYLES[n]=l:c[e][a][u]!==undefined&&(T.CUSTOM_STYLES[n]=u),o.UA.webkit&&(T[S]=function(t,e){t=t[s][f][S](t,"")[e];return t="rgba(0, 0, 0, 0)"===t?"transparent":t}),o.DOM._getAttrOffset=function(t,e){var n,r=o.DOM[S](t,e),i=t.offsetParent;return"auto"===r&&("static"===(n=o.DOM.getStyle(t,"position"))||"relative"===n?r=0:i&&i[g]&&(n=i[g]()[e],i=t[g]()[e],r="left"===e||"top"===e?i-n:n-t[g]()[e])),r},o.DOM._getOffset=function(t,e){var n,r,i=null;return e=e||"left",t&&(n=T.getStyle(t,"position"),r=parseInt(T[S](t,{left:"marginLeft",right:"marginRight"}[e]),10),i=[parseInt(T[S](t,e),10),parseInt(T[S](t,"top"),10)],isNaN(i[0])&&(i[0]=parseInt(T.getStyle(t,e),10),isNaN(i[0])&&(i[0]="relative"!==n&&t[{left:"offsetLeft",right:"offsetRight"}[e]]-r||0)),isNaN(i[1])&&(i[1]=parseInt(T.getStyle(t,"top"),10),isNaN(i[1])&&(i[1]="relative"!==n&&t.offsetTop||0))),i},r&&(T.CUSTOM_STYLES.transform={set:function(t,e,n){n[r]=e},get:function(t){return T[S](t,r)}},T.CUSTOM_STYLES.transformOrigin={set:function(t,e,n){n[i]=e},get:function(t){return T[S](t,i)}})},"patched-v3.18.3",{requires:["dom-base"]});