
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;
	if(r)
	{
		rh = parseInt(r.offsetTop) + parseInt(r.offsetHeight) + 250;
	}
	if(lh>=mh || (r && rh>=mh))
	{
	  var nmh = 0;
	  if(lh >= mh)
	  {
	    nmh = lh - mh + 29;
	  }
	  if(r && (rh > lh && rh >= mh))
	  {
	    nmh = rh - mh + 200;
	  }
	  cm.style.paddingBottom = nmh + "px";
	}
	else
	{
	  cm.style.paddingBottom = "30px";
	}
	return;
}