function setMainRounds()
{
	
	var main_top = $('main_top');
	var main_bottom = $('main_bottom');
	var main = $('main');
	var main_height;
	var container = $('container');
	var colonnaDx = $('colonnaDx');
	var curve_bottom = $$('.bottom_curv');
	var super_footer = $('super_footer');
	
	var altezza = Math.max(colonnaDx.offsetHeight,container.offsetHeight);
	container.setStyle({'height': altezza + 'px'});
	colonnaDx.setStyle({'height': altezza + 'px'});
	
	main_height = altezza;
	main_top.setStyle(
	{
		'position': 'absolute',
		'top': '0px',
		'left': '0px',
		'z-index': '10',
		'display': 'block'
	});
	main_bottom.setStyle(
	{
		'position': 'absolute',
		'top': (main_height-40) + 'px',
		'left': '0px',
		'z-index': '10',
		'display': 'block'
	});
	super_footer.setStyle(
	{
		'top': (main_bottom.offsetTop + main_bottom.offsetHeight + 20) + 'px',
		'left': main.offsetLeft + 'px'
	});
	main.style.height = main_height+'px';
	
	// IMPOSTO VALORE TOP DELLE CURVE DEI DUE CONTENITORI
	for(var i=0;i<curve_bottom.length;i++)
	{
//		alert(i);
		var curva = curve_bottom[i];
		var genitore = curva.ancestors()[0];
//		alert(genitore.inspect());
		curva.setStyle({
			'top': (genitore.getDimensions().height -27)+'px'
		});
	}
	
}




function allFunctions()
{
	setMainRounds();
	$('loading_page').hide();
}



if (window.attachEvent)
{ 
	
	window.attachEvent("onload", allFunctions);
}
else
{ 
	window.onload=allFunctions;
}
