// www.rst.com
// author : TastoDestro di Davide Tozzoli
	window.addEvent('load',function(){
		// centrare verticalmente sito
		document.getElementById('body_est').style.marginTop = site_vertical_align(960) + "px";
	});

// centrare sito verticale
function site_vertical_align(site_height) {
	//var window_width = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
	var window_height = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
	if (window_height<=site_height) {
		return 0;
	} else {
		margine = Math.floor((window_height - site_height)/2);
		return margine;
	}
}

// cambia il background delle news spot in home
function news_back_over(id) {
	document.getElementById(id).style.backgroundColor="#f4f4f4";
}

function news_back_out(id) {
	document.getElementById(id).style.backgroundColor="#fff";
}

// link per news home
function news_go(url) {
	location.href=url;
}




