if (top.location != self.location){top.location = self.location;}

var isIE = document.all ? true : false;

var tblMain = document.getElementById('mainContentTable');
var cellMain = document.getElementById('mainContentCell');

var divMenu = document.getElementById('menuContentArea');
var divContent = document.getElementById('mainContentArea');

function resizeMain()
{
	var bWdth,bHght;
	
	// all except Explorer
	if ( self.innerHeight ) 
	{
		bHght = self.innerHeight;
		bWdth = self.innerWidth;
	}
	// Explorer 6 Strict Mode
	else 
	if ( document.documentElement && document.documentElement.clientHeight )
	{
		bHght = document.documentElement.clientHeight;
		bWdth = document.documentElement.clientWidth;
	}
	// other Explorers
	else if ( document.body ) 
	{
		bHght = document.body.clientHeight;
		bWdth = document.body.clientWidth;
	}
	
	bHght = Math.min(bHght,970);
	bWdth = Math.min(bWdth,980);
	
	//the following is trying to adjust for scroll bars and chrome but is not working depending on if window is maximized or not
	bHght -= ( isIE ) ? 140 : 20;
	
	tblMain.style.height = bHght + 'px';
	tblMain.style.width = bWdth + 'px';
	
	divMenu.style.height = bHght - 200 + 'px';

	/*divContent.style.left = getPageLeft(cellMain) + 'px';
	divContent.style.width = (cellMain.clientWidth - 4) + 'px';
	divContent.style.height = cellMain.clientHeight + 'px';
	divContent.style.visibility = 'visible';*/
}
