function adatta_sfondo(){with(document){if(getElementById('schermo').clientWidth<940||getElementById('schermo').clientHeight<600)
rapporto_foto=larghezza_foto/altezza_foto;rapporto_video=getElementById('schermo').clientWidth/getElementById('schermo').clientHeight;if(rapporto_video<rapporto_foto){getElementById('foto_sfondo').style.height=getElementById('schermo').clientHeight+"px";getElementById('foto_sfondo').style.left=0-(parseFloat(getElementById('foto_sfondo').style.height)*rapporto_foto-getElementById('schermo').clientWidth)/2+"px";}else{getElementById('foto_sfondo').style.width=getElementById('schermo').clientWidth+"px";getElementById('foto_sfondo').style.top=0-(parseFloat(getElementById('foto_sfondo').style.width)*(1/rapporto_foto)-getElementById('schermo').clientHeight)/2+"px";}
getElementById('schermo').style.visibility="visible";}}
function credits(n){with(document.getElementById('dati_credits').style){if(n==1)
visibility="visible";else
visibility="hidden";}}
