function adjust_cols_cb()
{
  if( !document.defaultView || 
      !document.defaultView.getComputedStyle ) return;

  var  mc= document.getElementById( 'maincontent' );
  if( mc )
  {
    var mcH= document.defaultView.
             getComputedStyle(mc,null).getPropertyValue("height");
    var rc= document.getElementById( 'rightcolumn' );
    var rcH= 0;
    if( rc )
    {
      rcH= document.defaultView.
           getComputedStyle(rc,null).getPropertyValue("height");
      if( parseFloat(rcH) < parseFloat(mcH) ) rc.style.height= mcH;
    }
    var nv= document.getElementById( 'nav' );
    if( nv )
    {
      var nvH= document.defaultView.
               getComputedStyle(nv,null).getPropertyValue("height");
      if( parseFloat(nvH) < parseFloat(mcH) )
      {
	nv.style.height= mcH;
	nvH= mcH;
      }
      if( rc && rcH != 0 && 
	  parseFloat(nvH) < parseFloat(rcH) ) nv.style.height= rcH;
    }
  }
}

function adjust_on_load()
{
  setTimeout( 'adjust_cols_cb()', 500 );
}

if( window.addEventListener )
  window.addEventListener( "load", adjust_on_load, false );
else
  document.addEventListener( "load", adjust_on_load, false );
