function adjustLayout()
{
	//Vertical sizes
	//Header:			90px
	//Content Left:		410px
	//Content Header:	100x
	//Menu:				500px
	//Footer:			100px
	
	//Get natural height of content
	var cHeight = xHeight("content");
	var stdContentHeight = 310;
	var stdFooterTop = 500;
	
	if (cHeight < stdContentHeight)
	{
		xHeight("content", stdContentHeight);
		xTop("footer", stdFooterTop);
	}
	else if (cHeight > stdContentHeight)
	{
		xHeight("contentleft", xHeight("contentleft") + (cHeight - stdContentHeight));
		xHeight("menu", xHeight("menu") + (cHeight - stdContentHeight));
		xTop("footer", stdFooterTop + (cHeight - stdContentHeight));
	}
	
	//Show the footer
	xShow("footer");
}

function adjustLayout02()
{
	var iContentHeight = xHeight("leftContent");
	var iNavigationHeight = xHeight("rightNavigation");
	var iMaxHeight = Math.max(iContentHeight, iNavigationHeight)
	var stdContentHeight = 351;
	
	if (iMaxHeight < stdContentHeight)
	{
		xHeight("leftContent", stdContentHeight);
	}
	else
	{
		xHeight("leftContent", iMaxHeight);
	}
}

window.onload = function()
{
	adjustLayout02();
}
