function bg_height(first, first_h, second, second_h)
{
    f = document.getElementById(first);
    s = document.getElementById(second);
    if(!s){
	s = document.getElementById("news_index");
	second_h = 376;
    }
    if(!s){
	s = document.getElementById("content_events");
	second_h = 103;
    }
    if(parseInt(s.offsetHeight)+parseInt(second_h) > parseInt(f.offsetHeight)+parseInt(first_h)){
	f.style.height = parseInt(s.offsetHeight) - parseInt(first_h) + parseInt(second_h) + 'px';
    }else{
	if(parseInt(f.offsetHeight)+parseInt(first_h) > parseInt(s.offsetHeight)+parseInt(second_h)){
	    s.style.height = parseInt(f.offsetHeight) + parseInt(first_h) - parseInt(second_h) + 'px';
	}
    }
}

