window.onload = Bottom;

function Bottom()
{
	koef=50;
	hc=0;
	if (document.getElementById("content_in"))		hc=document.getElementById("content_in").offsetHeight;
	if (document.getElementById("content"))			hc=document.getElementById("content").offsetHeight+100;

	height=160+hc;
	hb=157;
	
	use_height=getClientHeight();
//	alert(use_height+", "+height+", "+document.documentElement.clientHeight);
	height=use_height-height;
	if (height>0)
	{
		height-=hb;
		document.getElementById("bottom").style.paddingTop=height+"px";
	}
}

function getClientHeight()
{
  return document.compatMode=="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight;
}

