function getWindowGeometry() {	
	
	var doc = (!document.compatMode || document.compatMode == 'CSS1Compat') ? document.documentElement : document.body;
	
	
	if(window.innerWidth) {
	 //Most Browsers
	  var browserWidth = window.innerWidth;
	  var browserHeight = window.innerHeight;
	  
	} else {
	   //IE
	   var browserWidth = doc.clientWidth;
	   var browserHeight = doc.clientHeight;
	   
	}
	
	var bodyWidth = Math.max(doc.scrollWidth, browserWidth);
	var bodyHeight = Math.max(doc.scrollHeight, browserHeight);
	
	//Determining if their is space to scroll or not
	var scrollX = (bodyWidth > browserWidth);
	var scrollY = (bodyHeight > browserHeight);
	
	//This will return an object map containing each value
	
	return {
		windowWidth: browserWidth, 
		windowHeight: browserHeight, 
	    bodyWidth: bodyWidth,
		bodyHeight: bodyHeight,
		scrollX: scrollX, 
		scrollY: scrollY
	 };		
}


//This Class handles setting the opacity


function setOpacity(elRef, value) {
	// value must be between 0 and 1
	
	// W3C browsers and IE7+
	elRef.style.opacity = value;
	
	//Older versions of IE
	elRef.style.filter = 'alpha(opacity=' + Math.round(value*100) + ')';
	
}


