function sortit(a,b){
	return(a-b)
}
function showDiv(koji) {
	var d = document.getElementById(koji);
	d.style.visibility='visible';
	d.style.display='inline';
}
function porihtaj() {
	var kolone=new Array(3)
	kolone[0]=parseInt(document.getElementById('column_left').offsetHeight);
	kolone[1]=parseInt(document.getElementById('column_center').offsetHeight);
	kolone[2]=parseInt(document.getElementById('column_right').offsetHeight);
	kolone.sort(sortit);
	tijelo=kolone[2]+180;
	document.getElementById('mainbody').style.height=tijelo+ 'px';
	document.getElementById('mainbody').style.overflow='hidden';
	low1=tijelo+55;
	low2=tijelo+55-212;
	document.getElementById('shadow-bottom').style.top=low1+'px';
	document.getElementById('shadow-bottom-left').style.top=low2+'px';
	document.getElementById('shadow-bottom-right').style.top=low2+'px';
	showDiv("shadow-bottom");
	showDiv("shadow-bottom-left");
	showDiv("shadow-bottom-right");
}

window.onload = function() { 
	porihtaj();
}

