window.onload = function(e) {

			 setSize();
		
}

function altezzaDiv (elmID) {
if(document.getElementById(elmID).clientHeight) {
return document.getElementById(elmID).clientHeight;
}
else {
if(document.getElementById(elmID).offsetHeight) {
return document.getElementById(elmID).offsetHeight;
}
}
}

function setSize() {

	var altcoso = $("#fasciaCentrale").innerHeight() - 50;
	var largpag = $("body").innerWidth();
	var largright = largpag - $("#left").width() - 80;
	$("#left").css("height", altcoso+"px");
	$("#right").css("height", (altcoso-40)+"px");
	$("#right").css("width", largright+"px");

	var pos = $("#fasciaCentrale").position();
	var pos = $("#fasciaCentrale").css("margin-top");
	var altmenpx = parseInt(pos);
		
	var totalt = $("#fasciaCentrale").innerHeight() + altmenpx +20;
	$("#loghi").css("top", totalt+"px");
	$("#Linkliberi").css("top", totalt+"px");

	$("#loghi").show("slow");
	$("#Linkliberi ").show("slow");
}

$(window).resize(function(){
  // setSize();
});




