code: function getStyle(el,styleProp) {
    if (el.currentStyle)
      var y = el.currentStyle[styleProp];
    else if (window.getComputedStyle)
      var y = (window.getComputedStyle||document.defaultView.getComputedStyle)(el,null).getPropertyValue(styleProp);
    return y;
  }
docs: quirksmode http://www.quirksmode.org/dom/getstyles.html