function resizeApplication(height)
{
	var applicationWrapper = document.getElementById(attributes.id);

	if(typeof(window.innerWidth) == 'number'){
		//Non-IE
		//alert("1");
		//document.height = height;
  	} else if(document.documentElement && document.documentElement.clientHeight) {
		//IE 6+ in 'standards compliant mode'
		//alert("2.1");
		//document.height = height;
	} else if(document.body && document.body.clientHeight) {
    	//IE 4 compatible
    	//alert("3.1");
    	document.body.height = height;
  	}
	
	applicationWrapper.height = height - 10;
}

function getVScrollPosition()
{
	//alert("XXX " + document.body.scrollTop);
	
	var scrOfX = 0, scrOfY = 0;
	if(typeof( window.pageYOffset ) == 'number') {
	    //Netscape compliant
	    scrOfY = window.pageYOffset;
	    scrOfX = window.pageXOffset;
	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
	    //DOM compliant
	    scrOfY = document.body.scrollTop;
	    scrOfX = document.body.scrollLeft;
	} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
	    //IE6 standards compliant mode
	    scrOfY = document.documentElement.scrollTop;
	    scrOfX = document.documentElement.scrollLeft;
	}
	
	return scrOfY;
}

function getScrollXY() {
  
  return [ scrOfX, scrOfY ];
}

function windowHeight()
{
	

	var myHeight = 0;
	if(typeof(window.innerWidth) == 'number'){
		//Non-IE
		myHeight = window.innerHeight;
  	} else if(document.documentElement && document.documentElement.clientHeight) {
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
	} else if(document.body && document.body.clientHeight) {
    	//IE 4 compatible
    	myHeight = document.body.clientHeight;
  	}
  	
  	//alert("myHeight " + myHeight);
  	
  	return myHeight;
}
