code: function getStyle(el, prop) {
      return window.getComputedStyle !== undefined ? window.getComputedStyle(el, null).getPropertyValue(prop) : el.currentStyle[prop];
    }
docs: Get the computed style from an element (IE 8 compatible)