
function makeFit() {
 //Script to make sure all divs flow with the content of the page
 var pContent = document.getElementById('content');
 var lNav = document.getElementById('leftBar');
 var rNav = document.getElementById('rightBar');
 var cheight = pContent.offsetHeight;	//Height of content div takes to the top padding
 var lheight = lNav.offsetHeight;	//Height of left nav
 var rheight = rNav.offsetHeight;	//Height of right nav

//alert("Left: "+lheight+" Content: "+cheight+" Right: "+rheight);

 nmax = Math.max(lheight,rheight);
 mheight = Math.max(nmax,cheight);
 

 //Now set heights on all divs the same
 pContent.style.height = mheight-19+"px";
 lNav.style.height = mheight+"px";
 rNav.style.height = mheight+"px";
}

