code: function (obj, prop) { // simple version
      if (obj.currentStyle) return obj.currentStyle[prop];
      else if (window.getComputedStyle) return document.defaultView.getComputedStyle(obj, null).getPropertyValue(prop);
    }
docs: attribute definitions