function resize_font() {

	var screenWidth=null; 
	var scale = null; 

	//if(netscape 4+ OR firefox or any DOM compliant post-1998 browser other than Explorer 4+) 
	if(document.layers||(document.getElementById&&!document.all)) 	{ 
		screenWidth=window.outerWidth; 
	} else if(document.all) { 	//else if(IE 4+) 
		screenWidth=document.body.clientWidth; 
	} 

	//As long as some browser was captured and the width was retrieved, above, 
	if(screenWidth != null) { 
		var scale = 1 * (screenWidth/1100); 
		if (scale < 0.82) scale = 0.82;
		if (scale > 1.3) scale = 1.3;
		
//			self.status = (scale  );

		//if(netscape 4+ OR firefox or any DOM compliant post-1998 browser other than Explorer 4+) 
		if(document.layers||(document.getElementById&&!document.all)) { 
			document.body.style.fontSize = scale + "em"; 
			window.onresize = resize_font; 
		} else if(document.all||(document.getElementById&&!document.all)) {  //else if(IE 4+) 
			document.body.style.fontSize = scale + "em"; 
			window.onresize = resize_font; 
		} 	
	} 
}


function ScaricaStatuto() {
 apri("SICOT - Statuto 28 maggio 09.pdf","Statuto");
}
function ScaricaCodiceEtico() {
 apri("Codice Etico Sicot.pdf","CodiceEtico");
}
function PosizioniAperte() {
 apri("PosizioniAperte.html","PosizioniAperte");
}
function Stage() {
 apri("Stage.html","Stage");
}
 
 
 
 
 function apri(url,finestra) {
 var width  = 800;
 var height = 600;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=yes';
 params += ', resizable=yes';
 params += ', scrollbars=yes';
 params += ', status=yes';
 params += ', toolbar=yes';
 newwin=window.open(url,finestra, params);
 if (window.focus) {newwin.focus()}
}
