/***************************************************************/
//* adjustLayout.js changed to fit Discovery Press: release 1.0*/
//Created by Mike Cleek 2.2.2010    (mr.cleek@gmail.com )     */
//**************************************************************/


function adjustLayout()
{	
	
	var headerDocObj = document.getElementById('header');
	var mainBottomDocObj = document.getElementById('main-bottom');
		//determine if there is a rightBar so that we can adjust complete page
		var leftBarDocObj = document.getElementById('leftBar');
		var contentDocObj = document.getElementById('content');
	if(mainBottomDocObj != null)
	{
		//adjust the bottom text area to the width of the screen.
		mainBottomDocObj.style.width = headerDocObj.offsetWidth - 183 + 'px';
		leftBarDocObj.style.height = contentDocObj.offsetHeight + 173 + 'px';
	}
	else
	{
		//alert('content: ' + contentDocObj.offsetHeight + ' left: ' + leftBarDocObj.offsetHeight);
	
		leftBarDocObj.style.height = contentDocObj.offsetHeight + 'px';
		//alert('leftBar: ' + leftBarDocObj.offsetHeight);
		//alert('content: ' + contentDocObj.offsetHeight);
	}
}