function pixelValueOf(node, attrName) {
		if (!node || !attrName) {
			return 0;
		}
		
		var doc = node.ownerDocument;
		var win =  doc.defaultView || doc.parentWindow;
		if (win.getComputedStyle) {
			var style = win.getComputedStyle(node, null);
			var value = style.getPropertyValue(attrName);
			// Ensure that value ends in "px"
			if (value.length > 2 && value.indexOf("px", value.length - 2) !== -1) {
				value = value.slice(0,-2);
				var intVal = parseInt(value,10);
				if (intVal !== intVal) {
					return 0;  // value was NaN
				} else {
					return intVal;
				}
			}
		}
		return 0;
	}
/**
	 * @name pixelValueOf
	 * @description Returns the pixel value of the given CSS attribute
	 * @param node The element whose style is to be checked
	 * @param attrName The name of the attribute to check. Use the literal CSS name
	 * (i.e. 'padding-left' rather than 'paddingLeft').
	 * @returns returns The value (in pixels) of the attribute. If the value cannot be parsed to an int the zero is returned
	 */
@name pixelValueOf
@description Returns the pixel value of the given CSS attribute
@param node The element whose style is to be checked
@param attrName The name of the attribute to check. Use the literal CSS name
.
@returns returns The value (in pixels) of the attribute. If the value cannot be parsed to an int the zero is returned
@name pixelValueOf @description Returns the pixel value of the given CSS attribute @param node The element whose style is to be checked @param attrName The name of the attribute to check . Use the literal CSS name . @returns returns The value ( in pixels ) of the attribute . If the value cannot be parsed to an int the zero is returned
function pixelValueOf(node, attrName) {
		if (!node || !attrName) {
			return 0;
		}
		var doc = node.ownerDocument;
		var win =  doc.defaultView || doc.parentWindow;
		if (win.getComputedStyle) {
			var style = win.getComputedStyle(node, null);
			var value = style.getPropertyValue(attrName);
			if (value.length > 2 && value.indexOf("px", value.length - 2) !== -1) {
				value = value.slice(0,-2);
				var intVal = parseInt(value,10);
				if (intVal !== intVal) {
					return 0;  
				} else {
					return intVal;
				}
			}
		}
		return 0;
	}
function pixelValueOf ( node , attrName ) { if ( ! node || ! attrName ) { return 0 ; } var doc = node . ownerDocument ; var win = doc . defaultView || doc . parentWindow ; if ( win . getComputedStyle ) { var style = win . getComputedStyle ( node , null ) ; var value = style . getPropertyValue ( attrName ) ; if ( value . length > 2 && value . indexOf ( "px" , value . length - 2 ) !== - 1 ) { value = value . slice ( 0 , - 2 ) ; var intVal = parseInt ( value , 10 ) ; if ( intVal !== intVal ) { return 0 ; } else { return intVal ; } } } return 0 ; }
@name pixelValueOf
 @description Returns the pixel value of the given CSS attribute
 @param node The element whose style is to be checked
 @param attrName The name of the attribute to check.
@name pixelValueOf @description Returns the pixel value of the given CSS attribute @param node The element whose style is to be checked @param attrName The name of the attribute to check .
// Ensure that value ends in "px"
 // value was NaN
