
function openPop(name_pop) {
	var ut_width  = window.screen.availWidth;
	var ut_height = window.screen.availHeight;
	// in basso a dx
	switch(name_pop) {
		case 'note_legali' :
			var ut_x = (ut_width-50);
			var ut_y = (ut_height-50);
			window.open('pop_note_legali.html', 'note_legali', 'scrollbars=yes,width=600,height=450,' + 'left=' + ut_x + ',top=' + ut_y);
		break;
		case 'privacy' :
			var ut_x = (ut_width-50);
			var ut_y = (ut_height-50);
			window.open('pop_privacy.html', 'privacy', 'scrollbars=yes,width=600,height=450,' + 'left=' + ut_x + ',top=' + ut_y);
		break;
		case 'credits' :
			var ut_x = (ut_width-450);
			var ut_y = (ut_height-150);
			window.open('pop_credits.html', 'credits', 'scrollbars=yes,width=450,height=150,' + 'left=' + ut_x + ',top=' + ut_y);
		break;
	}
}

function redirect_lingua(lingua){
	loc_url = window.location.pathname;
	switch(lingua) {
		case 'ita' :
			newUrl = "http://www.fondazionetelecomitalia.it"+loc_url;
			location.href = newUrl;
		break;
		case 'eng' :
			newUrl = "http://www.fondazionetelecomitalia.com"+loc_url;
			location.href = newUrl;
		break;
	}
}



 

  var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-624156-13']);

  _gaq.push(['_trackPageview']);

 

  (function() {

    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

  })();

 



