shlr/www/graph/js-graph-it.js
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;
}
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;
}
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 ; }
This function retrieves the actual value of a style property even if it is set via css.
This function retrieves the actual value of a style property even if it is set via css .