var getStyle = function(dom, attr){ return dom.currentStyle ? dom.currentStyle[attr] : getComputedStyle(dom, false)[attr];}