/*
*  Show / hide  element by ID
*/
function display( id, distype ){
	tag = document.getElementById(id);
	if( tag.style.display != distype ){
		tag.style.display = distype;
	}else{
		tag.style.display = 'none';
	}
}

function display_block( id ) {
    display( id, 'block');
}

function display_inline( id ) {
    display( id, 'inline');
}

function adjust_layout()
{
  // Get natural heights
  var hHeight = xHeight("header");
  var cHeight = xHeight("contentcontent");
  var lHeight = xHeight("leftcontent");

  // Find the maximum height
  var maxHeight =
    Math.max(cHeight, Math.max( lHeight, xClientHeight() - hHeight ) );

  // Assign maximum height to all columns
  xHeight("content", maxHeight);
  xHeight("left", maxHeight);

  // Show the footer
  xShow("footer");
}
