
/*	Function to resize the height of the content so the left nav, right nav,  and content area extends
	properly.
	
	This happens on every page load.
*/
function resizeContentHeight()
{
	// grab the two DIVs that are needed for this adjustment
	var contentWrapper = document.getElementById('wrapper_content');
	var content = document.getElementById('content');

	// if contentWrapper is greater than the height of content DIV, then set content to height 
	// of the contentWrapper DIV
	if(contentWrapper.offsetHeight > content.offsetHeight)
		content.style.height = contentWrapper.offsetHeight + 'px';
}



function toggleLeftNavItem(rootId, subMenuId)
{
    var root = document.getElementById(rootId);
    var subMenu = document.getElementById(subMenuId);
   
    if(subMenu.style.display == 'none')
    {
        root.className = 'expanded';
        subMenu.style.display = 'block';
    }
    else
    {
        root.className = 'collapsed';
        subMenu.style.display = 'none';
    }
    
    resizeContentHeight();
}