YUI.add("dom-style-ie",function(i,t){var a="px",n="filter",l="filters",d="opacity",s="auto",c="transparent",e=i.config.doc.documentElement,r=i.Features.test,o=i.Features.add,g=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,u=8<=i.UA.ie,p=function(t){return t.currentStyle||t.style},f={CUSTOM_STYLES:{},get:function(t,e){var r,o="";return t&&(r=p(t)[e],o=e===d&&i.DOM.CUSTOM_STYLES[d]?i.DOM.CUSTOM_STYLES[d].get(t):!r||r.indexOf&&-1<r.indexOf(a)?r:i.DOM.IE.COMPUTED[e]?i.DOM.IE.COMPUTED[e](t,e):g.test(r)?f.getPixel(t,e)+a:r),o},sizeOffsets:{width:["Left","Right"],height:["Top","Bottom"],top:["Top"],bottom:["Bottom"]},getOffset:function(t,e){var r=p(t)[e],o=e.charAt(0).toUpperCase()+e.substr(1),i="pixel"+o,n=f.sizeOffsets[e],l=t.ownerDocument.compatMode,d="";return r===s||-1<r.indexOf("%")?(d=t["offset"+o],"BackCompat"!==l&&(n[0]&&(d=(d-=f.getPixel(t,"padding"+n[0]))-f.getBorderWidth(t,"border"+n[0]+"Width",1)),n[1]&&(d=(d-=f.getPixel(t,"padding"+n[1]))-f.getBorderWidth(t,"border"+n[1]+"Width",1)))):(t.style[i]||t.style[e]||(t.style[e]=r),d=t.style[i]),d+a},borderMap:{thin:u?"1px":"2px",medium:u?"3px":"4px",thick:u?"5px":"6px"},getBorderWidth:function(t,e,r){e=t.currentStyle[e];return e.indexOf(a)<0&&(e=f.borderMap[e]&&"none"!==t.currentStyle.borderStyle?f.borderMap[e]:0),r?parseFloat(e):e},getPixel:function(t,e){var r=p(t),o=r.right,e=r[e];return t.style.right=e,r=t.style.pixelRight,t.style.right=o,r},getMargin:function(t,e){t=p(t)[e]===s?0:f.getPixel(t,e);return t+a},getVisibility:function(t,e){for(var r;(r=t.currentStyle)&&"inherit"===r[e];)t=t.parentNode;return r?r[e]:"visible"},getColor:function(e,r){var o=p(e)[r];return o&&o!==c||i.DOM.elementByAxis(e,"parentNode",null,function(t){if((o=p(t)[r])&&o!==c)return e=t,!0}),i.Color.toRGB(o)},getBorderColor:function(t,e){t=p(t),e=t[e]||t.color;return i.Color.toRGB(i.Color.toHex(e))}},u={};o("style","computedStyle",{test:function(){return"getComputedStyle"in i.config.win}}),o("style","opacity",{test:function(){return"opacity"in e.style}}),o("style","filter",{test:function(){return"filters"in e}}),!r("style","opacity")&&r("style","filter")&&(i.DOM.CUSTOM_STYLES[d]={get:function(t){var e=100;try{e=t[l]["DXImageTransform.Microsoft.Alpha"][d]}catch(r){try{e=t[l]("alpha")[d]}catch(o){}}return e/100},set:function(t,e,r){var o=p(t),i=o[n];r=r||t.style,""===e&&(e=d in o?o[d]:1),"string"==typeof i&&(r[n]=i.replace(/alpha([^)]*\))/gi,"")+(e<=1?"alpha("+d+"="+100*e+")":""),r[n]||r.removeAttribute(n),o.hasLayout||(r.zoom=1))}});try{i.config.doc.createElement("div").style.height="-1px"}catch(h){i.DOM.CUSTOM_STYLES.height={set:function(t,e,r){(0<=parseFloat(e)||"auto"===e||""===e)&&(r.height=e)}},i.DOM.CUSTOM_STYLES.width={set:function(t,e,r){(0<=parseFloat(e)||"auto"===e||""===e)&&(r.width=e)}}}r("style","computedStyle")||(u.width=u.height=f.getOffset,u.color=u.backgroundColor=f.getColor,u.borderWidth=u.borderTopWidth=u.borderRightWidth=u.borderBottomWidth=u.borderLeftWidth=f.getBorderWidth,u.marginTop=u.marginRight=u.marginBottom=u.marginLeft=f.getMargin,u.visibility=f.getVisibility,u.borderColor=u.borderTopColor=u.borderRightColor=u.borderBottomColor=u.borderLeftColor=f.getBorderColor,i.DOM.getComputedStyle=f.get,i.namespace("DOM.IE"),i.DOM.IE.COMPUTED=u,i.DOM.IE.ComputedStyle=f)},"patched-v3.18.4",{requires:["dom-style","color-base"]});