rem: if (Element.getStyle(element, 'display') != 'none') 
add: var display = $(element).getStyle('display'); if (display != 'none' && display != null) 
context:   getDimensions: function(element) {    element = $(element);    if (Element.getStyle(element, 'display') != 'none')      return {width: element.offsetWidth, height: element.offsetHeight};    // All *Width and *Height properties give 0 on elements with display none,    // so enable the element temporarily    var els = element.style;    var originalVisibility = els.visibility;    var originalPosition = els.position;    els.visibility = 'hidden';    els.position = 'absolute';    els.display = '';    var originalWidth = element.clientWidth;    var originalHeight = element.clientHeight;    els.display = 'none';    els.position = originalPosition;    els.visibility = originalVisibility;    return {width: originalWidth, height: originalHeight};  },
meta: 1382	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1382/53dfa93e53bccf5af1729cbdce88cb70e1ffcca5/prototype.js/buggy/public/javascripts/prototype.js