/*
Copyright 2006-2007 Wellspring Technologies, LLC
All Rights Reserved
Unauthorized Use Prohibited
*/
var xb = new Object();
xb.clientHeight = function() {
	var retVal = -1;
	if(window.innerHeight) retVal = window.innerHeight;
	else if(document.documentElement && document.documentElement.clientHeight) retVal = document.documentElement.clientHeight;
	else if(document.body && document.body.clientHeight) retVal = document.body.clientHeight;
	return retVal;
}

xb.getStyle = function(node, cssProperty, GeckoProperty) {
	var retVal = null;
	if (node.currentStyle) {//if IE5+
		retVal = node.currentStyle[cssProperty];
	} else if (window.getComputedStyle) { //if NS6+
		if(node.nodeType == 1) {
			var elstyle= document.defaultView.getComputedStyle(node, "");
			var propToUse = (GeckoProperty)?GeckoProperty:cssProperty;
			retVal = elstyle.getPropertyValue(propToUse);
		}
	}
}


