function adjustLayoutBy(val)
{
 var cHeight = xHeight("container");
 var rHeight = xHeight("ads");
 var maxHeight = Math.max(cHeight,rHeight);
 xHeight("container", maxHeight+val);
 xHeight("ads", maxHeight+val);
}

function adjustLayout()
{
 adjustLayoutBy(0);
}

Event.observe(window, 'load',
      function() {
 	xAddEventListener(window, "resize",
 	adjustLayout, false);
 	adjustLayout();
      }
);
