function getPageSizeWithScroll(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	return arrayPageSizeWithScroll;
}

function manage_takeover_size()
{
	var dimensioni_pagina;
	dimensioni_pagina = getPageSizeWithScroll();
	//alert(">>L:" + dimensioni_pagina[0] + " A:" + dimensioni_pagina[1] + "<<");
	
	var larg_centrale = 970;
	var larg_laterale = ((dimensioni_pagina[0] - larg_centrale)/2);
	var altezza = dimensioni_pagina[1];
	
	document.getElementById('takeover_left').style.width = larg_laterale + 'px';
	document.getElementById('takeover_right').style.width = larg_laterale + 'px';

	document.getElementById('takeover_left').style.height = altezza + 'px';
	document.getElementById('takeover_right').style.height = altezza + 'px';
}
