// JavaScript Document
// <![CDATA[
function dimensioni(x,y){
	window.outerWidth = x;
	window.outerHeight = y;
}
//da controllare ... logica giusta ma nn cambia subito... per cambiare l'altezza nelle risoluzioni + elevate
function auto_resize(){
	if(window.outerHeight>810){
/*		alert("OK");
		var css1 = document.styleSheets[0].cssRules[20].cssText;
		var css2 = document.styleSheets[0].cssRules[21].cssText;
		var css3 = document.styleSheets[0].cssRules[22].cssText;
		document.styleSheets[0].cssRules[20].cssText = css1.replace("413","713"); // sx_col
		document.styleSheets[0].cssRules[21].cssText = css2.replace("360","660"); // center_page
		document.styleSheets[0].cssRules[22].cssText = css3.replace("360","660"); // dx_col
*/
		var div_sx_col_class=document.getElementById("sx_col").childNodes[1].style;
		var div_center_page_class=document.getElementById("center_page").childNodes[1].style;
		var div_dx_col_class=document.getElementById("dx_col").childNodes[1].style;
		
		div_sx_col_class.height=693+"px";
		div_center_page_class.height=640+"px";
		div_dx_col_class.height=640+"px";
/*		alert((parseInt(div_sx_col.offsetHeight)+300)+"px");
		alert((parseInt(div_center_page.offsetHeight)+300)+"px");
		alert((parseInt(div_dx_col.offsetHeight)+300)+"px");
*/
	}
	else{
		if(navigator.appName!="Microsoft Internet Explorer")
		{
			var div_sx_col_class=document.getElementById("sx_col").childNodes[1].style;
			var div_center_page_class=document.getElementById("center_page").childNodes[1].style;
			var div_dx_col_class=document.getElementById("dx_col").childNodes[1].style;
		}
		else
		{
			var div_sx_col_class=document.getElementById("sx_col").childNodes[0].style;
			var div_center_page_class=document.getElementById("center_page").childNodes[0].style;
			var div_dx_col_class=document.getElementById("dx_col").childNodes[0].style;
		}
		div_sx_col_class.height=413+"px";
		div_center_page_class.height=360+"px";
		div_dx_col_class.height=360+"px";
	}
}
function SetSize(x,y){
	window.moveTo(0,0);
	window.resizeTo(x,y);
}
// ]]>