code: function getStyle(node, styleProp) {
  	// if not an element
  	if( node.nodeType != 1)
  		return;
  		
  	var value;
  	if (node.currentStyle) {
  		// ie case
  		styleProp = replaceDashWithCamelNotation(styleProp);
  		value = node.currentStyle[styleProp];
  	} else if (window.getComputedStyle) {
  		// mozilla case
  		value = document.defaultView.getComputedStyle(node, null).getPropertyValue(styleProp);
  	}
  	
  	return value;
  }
docs: This function retrieves the actual value of a style property even if it is set via css.