//funzione per aprire i link esterni in una nuova finestra
	function nuova_finestra(pagina) {
		window.open(pagina,'Galleria','scrollbars=yes,resizable=yes,status=yes,location=yes,toolbar=yes');
		}
//funzione per l'ingrandimento delle immagini in una pop up 		

function apri(url_foto,des_foto){
		addr="/include/fullsize.htm?"+url_foto+"&"+escape(des_foto)
		alt=350
		lar=500
		rszb=(document.layers)?1:0;
		props='height='+alt+',width='+lar+',top='+parseInt((screen.availHeight-alt)/2)+',left='+parseInt((screen.availWidth-lar)/2)+',scrollbars=0,resizable='+rszb+',toolbar=0,menubar=0,location=0,status=0';
		window.open(addr,'_blank',props);
	}

//funzione per aprire una finestra piccola e centrata
	
function apriPopupCentrata(nome, titolo, lar, alt, feat){
        var wdt = screen.width;
        var hgt = screen.height;
        var x = Math.round( (wdt / 2) - (lar / 2) );
        var y = Math.round( (hgt / 2) - (alt / 2) );
        window.open(nome, titolo, 'width=' + lar + ',height=' + alt + ',left=' + x + ',screenX=' + x + ',top=' + y + ',screenY=' + y + ',' + feat); 
}

//Mostra nascondi righe di tabella
function mostra_nascondi(id_riga){
	var IE=(window.navigator.userAgent.indexOf('MSIE')>-1)?1:0;
	document.getElementById(id_riga).style.display=(document.getElementById(id_riga).style.display=='none')?((IE)?'block':'table-row'):'none';
}
