
var isNav4, isIE4;

if (parseInt(navigator.appVersion.charAt(0)) >= 4) 
{
	isNav4 = (navigator.appName == "Netscape") ? 1 : 0;
	isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}
var browName = navigator.userAgent;
browName=browName.toLowerCase();
var test=browName.indexOf("firefox");

	
    
	    
	
	
function adatta_div(){
	var larghezza=document.body.clientWidth;
	var spostamento=238+((larghezza-995)/2); 
	
	
    
	
	if (larghezza>995){

		if ((isIE4) || (test!=-1))
		{ 
		    
			
			document.all("Layer1").style.left=spostamento;
		}
		else
		{   
		    
		    
			document.getelementID("Layer1").style.left=spostamento;
			 
		}
	}
	 else {
	    if ((isIE4) || (test!=-1))
		{   
		    document.all("Layer1").style.left=238;
			
		}
		else
		{   
			
			document.getelementID("Layer1").style.left=238;
		}
	}	
	
}
