window.onload = HeightCorrection;
function HeightCorrection()
{
	var l = document.getElementById("clinks");
	var m = document.getElementById("cmitte");
	var r = document.getElementById("crechts");
	var cm = document.getElementById("ccontentmitte");

	lh = parseInt(l.offsetTop) + parseInt(l.offsetHeight);
	mh = parseInt(m.offsetTop) + parseInt(m.offsetHeight) - 500;
	rh = parseInt(r.offsetTop) + parseInt(r.offsetHeight);

	if(lh>=mh || rh>=mh)
	{
	  var nmh = 0;
	  if(lh>=mh)
	  {
	    nmh = lh - mh + 36;
	  }
	  if(rh > lh && rh>=mh)
	  {
	    nmh = rh - mh + 36;
	  }
	  cm.style.paddingBottom = nmh + "px";
	}
	  else
	{
	  cm.style.paddingBottom = "60px";
	}
	return;
}