function fNavigationResizerIE(){
	if(document.getElementById){
		bDone = false;
		while(!bDone){
			sNavigationStartPos = document.getElementById("menuContainer").style.top;
			iNavigationStartPos = parseInt(sNavigationStartPos);
			iNavigationHeight = document.getElementById("menuContainer").offsetHeight;
			iNavigationEndPos = (iNavigationHeight + iNavigationStartPos);	
	
			iMainHeight = document.getElementById("oBody").offsetHeight;
			iMainTopScroll = document.body.scrollTop;
			iMainEndPos = iMainHeight+iMainTopScroll;
			if (iMainHeight==0){
				document.getElementById("oImageResizer").height=iNavigationEndPos;
				document.getElementById("oImageResizer").src="/images/a.gif";
			}
			else{
			iLastPixel = (iMainEndPos - iNavigationEndPos-3);
				document.getElementById("oImageResizer").height=iLastPixel;
				document.getElementById("oImageResizer").src="/images/a.gif";
			}
			bDone = true;
		}
	}
}



function fNavigationResizerNS()
{
	iSubtractHeight = 18;
	iNavHeight = document.getElementById("oNavSource").offsetHeight;
	iSearchHeight = document.getElementById("oSearchSource").offsetHeight;
	iMainHeight = document.getElementById("oHeightSource").offsetHeight;
	iTopHeight = document.getElementById("oTopSource").offsetHeight;
	
	iPageHeight = iMainHeight-iNavHeight-iSearchHeight-iSubtractHeight;
	
	iAvailibleHeight = window.innerHeight - iTopHeight - iSearchHeight - iNavHeight - iSubtractHeight;
	
	
	
	
	document.getElementById("oImageResizer").height=iAvailibleHeight;
	document.getElementById("oImageResizer").src="/images/a.gif";
  
}

function fNavigationResizer()
{
if (navigator.userAgent.indexOf('MSIE') > -1)
	{
	fNavigationResizerIE();
	}
else
	{
	fNavigationResizerNS();
	}
}