// JavaScript Document
/*function centra(centrando, dim)
{
	var altz= screen.availHeight;
	var largz= screen.availWidth;
	var Sn=((Number(largz)-dim-10)/2)+"px";
	if(Sn<0){Sn="0px"};
	document.getElementById(centrando).style.left=Sn;
}*/
posFotoX=20;
function posiziona()
{
	//document.getElementById('interno').style.left="0px";
	var lungo=document.images.length

	for(i=0; i<lungo; i++)
	{
		
		if(document.images[i].id)
		{
			
		document.images[i].style.position="absolute"
		posizioneX=document.images[i].style.left=posFotoX+"px"
		dimX=(document.images[i].width);
		dimY=(document.images[i].height);
		posFotoX+=Number(dimX+30);
		//posFotoY=Number((450-dimY)/2);
		//posizioneY=document.images[i].style.top=posFotoY+"px"
		}
	}	
	
}
function inGra(qualeId)
{
	var chiusura="<a href=\"javascript:inGra('chiudi');\"<strong>X</strong> - Chiudi</a>";
	if(qualeId=="chiudi")
	{
		document.getElementById('fotoGra').style.visibility="hidden";
		document.getElementById('fotoGra').innerHTML=chiusura;
		return;
	}
	fotoId="<img src=\"img/gra/"+qualeId.slice(1)+".jpg\">";
	document.getElementById('fotoGra').style.visibility="visible";
	document.getElementById('fotoGra').innerHTML=fotoId+"<br>"+chiusura;
}