
function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function findHeight(obj)
{
	var iHeight = 0;
	iHeight = obj.offsetHeight;
	return iHeight;
}

function adjustLeftBar()
{
		iLeftNavYPos = findPosY(document.getElementById("LeftNavID"));
		iLeftNavHeight = findHeight(document.getElementById("LeftNavID"));

		//alert(iLeftNavYPos);
		//alert(iLeftNavHeight);
		var iLeftNavBottom = parseInt(iLeftNavYPos) + parseInt(iLeftNavHeight);
	
		iFooterYPos = findPosY(document.getElementById("Footer"));
		var iGap = iFooterYPos - iLeftNavBottom;

		var iNewHeight = iLeftNavHeight + iGap;

		document.getElementById("LeftNavID").style.height = iNewHeight + "px";

		//alert(iGap);
}