	function loadOpera(img){
		document.images["current_opera"].src=img;
		document.getElementById("divOpera").style.visibility = 'visible';
//		document.getElementById("divChiudi").style.visibility = 'visible';
	}


function Centra(larghezza, altezza) {
	document.getElementById("Layer1").style.visibility = 'visible';
	document.getElementById('Layer2').style.visibility = 'visible';

	document.getElementById("Layer1").style.left = eval((document.body.clientWidth - larghezza)/2)+'px';
	document.getElementById("Layer1").style.top = eval((document.body.clientHeight - altezza)/2)+'px';

	document.getElementById("Layer2").style.left = eval((document.body.clientWidth - larghezza)/2)+(larghezza-15)+'px';
	document.getElementById("Layer2").style.top = eval((document.body.clientHeight - altezza)/2)+'px';

}

	function visualizza(testo)
	{
		window.status = testo;
	}
	
	function openA2Usite()
	{
	   open("http://http://a2u.onlyhype.com/","_blank");
	}
	
// funzione status bar scorrevole

   //messaggio Status Bar inserito nella pagina x es: 
    var scrtxt="SABATO 18 ...è gradito indossare il  N E R O !!!";
	var lentxt=scrtxt.length;
	var width=200;
	var pos=1-width;
	function scrollStatusBar() 
	{
		pos++;
		var scroller="";
		if (pos==lentxt) {
		  pos=1-width;
		}
		if (pos<0) 
		{
		  for (var i=1; i<=Math.abs(pos); i++) {
		    scroller=scroller+" ";}
		  scroller=scroller+scrtxt.substring(0,width-i+1);
		}
		else {
		  scroller=scroller+scrtxt.substring(pos,width+pos);
		}
		window.status = scroller;
		setTimeout("scrollStatusBar()",60);
	}

//funzione alternatica x la scrollBar  e dichiarare nella pagina la variabile msg="testo messaggio" e 
                                     //  onload ="JSCTimeOutID = window.setTimeout('scrollStatusBar2(msg)',500)"
	var str=""
	function scrollStatusBar2(msg)
	{
	  if (str == "")
	  {
	     for (var ii = 0; ii < 900; ii += 50) 
	     {
	        str = str + "    "
	     }
	     str = str + msg
	  }
	  else
	  {
	     str = str.substring(2, str.length)
	  }
	  window.status = str
	  JSCTimeOutID = window.setTimeout('scrollStatusBar2(msg)',100)
	}


	function openWindow() 
	{
	    document.getElementById("Layer1").style.visibility = 'visible';
	    document.getElementById("Layer2").style.visibility = 'visible';
	}

	function closeWindow() 
	{
	    document.getElementById("Layer1").style.visibility = 'hidden';
	    document.getElementById("Layer2").style.visibility = 'hidden';
	}
	
	function closeRegistrati() 
	{
	    document.getElementById("Registrati").style.visibility = 'hidden';
//		document.getElementById("CloseRegistrati").style.visibility = 'hidden';
		document.getElementById("Layer1").style.visibility = 'visible';
	}
	
	function Centra(larghezza, altezza) {
	 document.getElementById("Layer1").style.left = (document.body.clientWidth - larghezza)/2
	 document.getElementById("Layer2").style.left = (document.body.clientWidth - larghezza)/2+(larghezza-15)
	 document.getElementById("Layer1").style.top = (570 - altezza)/2
	 document.getElementById("Layer2").style.top = (570 - altezza)/2
	 document.getElementById("Layer1").style.visibility = 'visible';
	 document.getElementById("Layer2").style.visibility = 'visible';
	 
	}

function CentraNew(larghezza, altezza) {
 document.getElementById("Layer1").style.left = (document.body.clientWidth - larghezza)/2
 document.getElementById("Layer2").style.left = (document.body.clientWidth - larghezza)/2+(larghezza-15)
 document.getElementById("Layer1").style.top = (570 - altezza)/2
 document.getElementById("Layer2").style.top = (570 - altezza)/2
 document.getElementById("Layer1").style.visibility = 'visible';
 document.getElementById("Layer2").style.visibility = 'visible';
 
	if (document.layers){ 
		document.layers['Layer1'].width=larghezza; 
		document.layers['Layer1'].pageX =(window.innerWidth/2)-(document.layers['Layer1'].width/2)-130; 
		document.layers['Layer1'].height=altezza; 
		document.layers['Layer1'].pageY =(window.innerHeight/2)-(document.layers['Layer1'].height/2)-170; 

		document.layers['Layer2'].width=larghezza; 
		document.layers['Layer2'].pageX =(window.innerWidth/2)-(document.layers['Layer2'].width/2)-130+15; 
		document.layers['Layer2'].height=altezza; 
		document.layers['Layer2'].pageY =(window.innerHeight/2)-(document.layers['Layer2'].height/2)-170; 
	} 
	else if (document.all){ 
		document.all['Layer1'].width=larghezza; 
		document.all['Layer1'].style.posLeft =(document.body.clientWidth/2)-(document.all['Layer1'].width/2)-130; 
		document.all['Layer1'].height=altezza; 
		document.all['Layer1'].style.posTop =(document.body.clientHeight/2)-(document.all['Layer1'].height/2)-170; 

		document.all['Layer2'].width=larghezza; 
		document.all['Layer2'].style.posLeft =(document.body.clientWidth/2)-(document.all['Layer2'].width/2)-130+15; 
		document.all['Layer2'].height=altezza; 
		document.all['Layer2'].style.posTop =(document.body.clientHeight/2)-(document.all['Layer2'].height/2)-170; 


	} 
	else if(document.getElementById){ 
		document.getElementById('Layer1').width=larghezza; 
		document.getElementById('Layer1').style.left =(window.innerWidth/2)-(document.getElementById('Layer1').width/2)-130; 
		document.getElementById('Layer1').height=altezza; 
		document.getElementById('Layer1').style.top =(window.innerHeight/2)-(document.getElementById('Layer1').height/2)-170; 

		document.getElementById('Layer2').width=larghezza; 
		document.getElementById('Layer2').style.left =(window.innerWidth/2)-(document.getElementById('Layer2').width/2)-130+15; 
		document.getElementById('Layer2').height=altezza; 
		document.getElementById('Layer2').style.top =(window.innerHeigh/2)-(document.getElementById('Layer2').height/2)-170; 

	} 

 document.getElementById('Layer1').style.visibility = 'visible';
 document.getElementById('Layer2').style.visibility = 'visible';

}

	
	function CentraLogin(larghezza, altezza) {
		document.getElementById("Registrati").style.visibility = 'visible';
		document.getElementById("Registrati").style.left = eval((document.body.clientWidth - larghezza)/2)+'px';
		document.getElementById("Registrati").style.top = eval((document.body.clientHeight - altezza)/2)+'px';
	}

function CentraLoginNew(larghezza, altezza) 
{
	if (document.layers){ 
		document.layers['Registrati'].width=larghezza; 
		document.layers['Registrati'].pageX =(window.innerWidth/2)-(document.layers['Registrati'].width/2); 
		document.layers['Registrati'].height=altezza; 
		document.layers['Registrati'].pageY =(window.innerHeight/2)-(document.layers['Registrati'].height/2)+10; 
	} 
	else if (document.all){ 
		document.all['Registrati'].width=larghezza; 
		document.all['Registrati'].style.posLeft =(document.body.clientWidth/2)-(document.all['Registrati'].width/2); 
		document.all['Registrati'].height=altezza; 
		document.all['Registrati'].style.posTop =(document.body.clientHeight/2)-(document.all['Registrati'].height/2)+10; 
	} 
	else if(document.getElementById){ 
		document.getElementById('Registrati').width=larghezza; 
		document.getElementById('Registrati').style.left =(window.innerWidth/2)-(document.getElementById('Registrati').width/2); 
		document.getElementById('Registrati').height=altezza; 
		document.getElementById('Registrati').style.top =(window.innerHeight/2)-(document.getElementById('Registrati').height/2)+10; 
	} 
  document.getElementById("Registrati").style.visibility = 'visible';
}

function PermettiSalva() {
	document.getElementById("Layer1").style.visibility = 'hidden';
    document.getElementById("PermettiSalva").style.visibility = 'visible';
}




function CentraSalvaNew(larghezza, altezza)
{ 
	if (document.layers){ 
		document.layers['Layer1'].width=larghezza; 
		document.layers['Layer1'].pageX =(window.innerWidth/2)-(document.layers['Layer1'].width/2)-130; 
		document.layers['Layer1'].height=altezza; 
		document.layers['Layer1'].pageY =(window.innerHeight/2)-(document.layers['Layer1'].height/2)-170; 

		document.layers['PermettiSalva'].width=larghezza; 
		document.layers['PermettiSalva'].pageX =(window.innerWidth/2)-(document.layers['PermettiSalva'].width/2)-130; 
		document.layers['PermettiSalva'].height=altezza; 
		document.layers['PermettiSalva'].pageY =(window.innerHeight/2)-(document.layers['PermettiSalva'].height/2)-170; 
	} 
	else if (document.all){ 
		document.all['Layer1'].width=larghezza; 
		document.all['Layer1'].style.posLeft =(document.body.clientWidth/2)-(document.all['Layer1'].width/2)-130; 
		document.all['Layer1'].height=altezza; 
		document.all['Layer1'].style.posTop =(document.body.clientHeight/2)-(document.all['Layer1'].height/2)-170; 

		document.all['PermettiSalva'].width=larghezza; 
		document.all['PermettiSalva'].style.posLeft =(document.body.clientWidth/2)-(document.all['PermettiSalva'].width/2)-130; 
		document.all['PermettiSalva'].height=altezza; 
		document.all['PermettiSalva'].style.posTop =(document.body.clientHeight/2)-(document.all['PermettiSalva'].height/2)-170; 


	} 
	else if(document.getElementById){ 
		document.getElementById('Layer1').width=larghezza; 
		document.getElementById('Layer1').style.left =(window.innerWidth/2)-(document.getElementById('Layer1').width/2)-130; 
		document.getElementById('Layer1').height=altezza; 
		document.getElementById('Layer1').style.top =(window.innerHeight/2)-(document.getElementById('Layer1').height/2)-170; 

		document.getElementById('PermettiSalva').width=larghezza; 
		document.getElementById('PermettiSalva').style.left =(window.innerWidth/2)-(document.getElementById('PermettiSalva').width/2)-130; 
		document.getElementById('PermettiSalva').height=altezza; 
		document.getElementById('PermettiSalva').style.top =(window.innerHeigh/2)-(document.getElementById('PermettiSalva').height/2)-170; 

	} 
} 



	function CentraSalva(larghezza, altezza) {
	 document.getElementById("Layer1").style.left = (document.body.clientWidth - 330)/2 
	 document.getElementById("Layer1").style.top = (210 - altezza)/2
	 document.getElementById("Layer1").style.visibility = 'visible';
	 
	 document.getElementById("PermettiSalva").style.left = (document.body.clientWidth - 330)/2 
	 document.getElementById("PermettiSalva").style.top = (210 - altezza)/2
	 document.getElementById("PermettiSalva").style.visibility = 'hidden';
	}
	
	function GoPage(page) 
	{
	  document.location.href = page
	}
	
	var zzonurl="../images/votebox_zzon.gif";
	var zzoffurl="../images/votebox_zzoff.gif";
	var voteurl="vota.asp";
	var baseimgurl="photos/v2209/";
	var photo="photos/v2209/img01.jpg";


	function zz_on(imgnum){
		for (i = 1; i <= imgnum; i++)document.images["zz"+i].src=zzonurl;
	}
	
	function zz_off(imgnum){
		for (i = 1; i <= imgnum; i++)document.images["zz"+i].src=zzoffurl;
	}
	
	function vote(num){
		document.VotalaFoto.voto.value=num;
		document.VotalaFoto.submit();
	}

	function submitLogin()
	{
		if (document.Login.login.value == "")
		{
			alert("Specificare l'e-mail");
			document.Login.login.focus();
			return false;
		}

		if (document.Login.password.value == "")
		{
			alert("Specificare la password");
			document.Login.password.focus();
			return false;
		}

		document.Login.submit();
	}

	function submitRegistrazione()
	{
	  	var goodEmail = document.registrazione.emailreg.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
	    if (!goodEmail)
        {
			alert("Specificare un'indirizzo di e-mail corretto.");
			document.registrazione.emailreg.focus();
		    document.registrazione.emailreg.select();
			return false;
		}	

		if (document.registrazione.pwd.value == "")
		{
			alert("Specificare la password");
			document.registrazione.pwd.focus();
			return false;
		}


		if (document.registrazione.pwd.value.length<6)
		{
			alert("Specificare una password di almeno 6 caratteri");
			document.registrazione.pwd.focus();
			return false;
		}

		if (document.registrazione.pwd.value != document.registrazione.pwd2.value)
		{
			alert("Le password non corrispondono");
			document.registrazione.pwd.value="";
			document.registrazione.pwd2.value="";
			document.registrazione.pwd.focus();
			return false;
		}


        if (!document.registrazione.consenso.checked)
		{
			alert("E' necessario accettare le condizioni per potersi registrare.");
			return false;
		}

		else
		{
			document.registrazione.submit()
		}
	}

	
	function salvaConNome(NomePagina) {  
		if (document.all) {  
			document.execCommand("SaveAs",true,NomePagina); 
		}else{  
			alert('Con il tuo Browser non funziona.');  
		} 
	} 

	
document.write('');