function popraviLayout(){
	function maximum(){
	var maximum=arguments[0];
	for (var i=1; i<arguments.length; i++){
		if (arguments[i]>arguments[i-1])
			maximum=arguments[i];
	}
	return maximum;
	}
	if (document.getElementById){
		var left=document.getElementById("left");
		var right=document.getElementById("right");
		var main=document.getElementById("main");
		if (typeof left.style.height == 'number'){
			najveci = maximum(parseInt(left.style.height),parseInt(right.style.height),parseInt(main.style.height));
		}
		else if (typeof left.offsetHeight != "undefined"){
			najveci = maximum(left.offsetHeight,right.offsetHeight,main.offsetHeight);
		}
		else return;
		left.style.height=najveci+'px';
		right.style.height=najveci+'px';
		main.style.height=najveci+'px';
	}
}
onload=popraviLayout;
onresize=function(){
		var left=document.getElementById("left");
		var right=document.getElementById("right");
		var main=document.getElementById("main");
		if (typeof left.style.height != "undefined"){
			left.style.height='auto';
			right.style.height='auto';
			main.style.height='auto';
			popraviLayout();
		}
}