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) + 120;
	if(lh>=mh || rh>=mh)
	{
	  var nmh = 0;
	  if(lh>=mh && lh>=rh)
	  {
	    nmh = lh - mh + 64;
	  }
	  if(rh > lh && rh>=mh)
	  {
	    nmh = rh - mh + 64;
	  }
	  cm.style.paddingBottom = nmh + "px";
	}
	  else
	{
	  cm.style.paddingBottom = "30px";
	}
	return;
}
window.onload = HeightCorrection;