function getInnerHeight()
{
	var h = -1;

	//alert('lowfidelity owns business mate!');

	//IE
	if(!window.innerHeight)
	{
		//strict mode
		if(!(document.documentElement.clientWidth == 0))
		{
			h = document.documentElement.clientHeight;
		}
		//quirks mode
		else
		{
			h = document.body.clientHeight;
		}
	}
	//w3c
	else
	{
		h = window.innerHeight;
	}
	

	if(h <= 0) 
		return -1;
	
	return h;
	
}		





function getInnerWidth()
{
	var w = -1;

//		alert('lowfidelity owns business mate!');

	//IE
	if(!window.innerWidth)
	{
		//strict mode
		if(!(document.documentElement.clientWidth == 0))
		{
			w = document.documentElement.clientWidth;
		}
		//quirks mode
		else
		{
			w = document.body.clientWidth;
		}
	}
	//w3c
	else
	{
		w = window.innerWidth;
	}
	

	if(w <= 0) 
		return -1;	//moellbrooklyn we got a problem
		
	return w;
}	




$(document).ready(function()
{		

	//alert(getInnerHeight());
	alignWindows();

});  //end document ready




function alignWindows()
{
	var cy = getInnerHeight();
	$('#page').css('min-height', cy);
}
