function init()
{
	resizeMainContent();
}
//Reload the dynamically positioned elements. Firefox requires a manual reload.
function reloadme()
{
	setTimeout("resizeMainContent()",1);
}
window.onresize= reloadme;
//Set the height of the page
function resizeMainContent()
{
	// glbContent does not exist.  What is this for anyway?
	return;
	
	var clientHeight = document.documentElement.clientHeight;
	var clientWidth = document.documentElement.clientWidth;
	var MainContent = document.getElementById('divContainer');
	var glbContent = document.getElementById('glbContent');
	var glbContentTable = document.getElementById('glbContent').getElementsByTagName('table')[0];
	var glbFooterHeight = 70;
	var glbContentNegativeHeight = (clientHeight - findTop(glbContent)) - glbFooterHeight;
	
//	alert('top: ' + findTop(glbContent) + 
//			'\nclient height: ' + clientHeight + 
//			'\nnegative height: ' + glbContentNegativeHeight + 
//			'\ncontent height:' + glbContent.offsetHeight);

	//set the height of the container to the height of the browser
	if(clientHeight > MainContent.offsetHeight)
	{
		MainContent.style.height = clientHeight + 'px';	
	}
	//if the content is bigger than the height then don't set the height of the content div
	if(glbContentNegativeHeight > glbContentTable.offsetHeight)
	{
		//if it's the home page then don't set the height
		if(!document.getElementById('dvHomeBanner'))
		{
			glbContent.style.height = (glbContentNegativeHeight)  + 'px';	
		}
	}
}
//find absolute top position
function findTop(obj) { 
	var x = 0; 
	while (obj) { 
		x += obj.offsetTop 
		obj = obj.offsetParent; 
	} 
	return x;
}
//find absolute left pos
function findLeft(obj) { 
	var x = 0; 
	while (obj) { 
		x += obj.offsetLeft 
		obj = obj.offsetParent; 
	} 
	return x;
} 
// Pop up Privacy, Trademark & Terms of Use window
function openLegal(URL) {
	aWindow = window.open(URL, "Legal", "status=no,toolbar=no,location=no,menu=no,scrollbars=yes,screenX=0,screenY=0,width=450,height=400");
}
