var last = 0;

function switchinfo(i) {
	var riga = document.getElementById('riga_'+i);
	var push = document.getElementById('push_'+i);

	if (riga != null) {
		if (riga.style.display == "block") {
			riga.style.display = "none";
			push.value = "+";
			last = 0;
		} else {
			riga.style.display = "block";
			if (i != last) {
				switchinfo(last);
			}
			last = i;
			push.value = "-";
		}
	}
}

function hover(id){
	document.getElementById("elementID").style.backgroundColor = "grey";
	}
	
function makepopup(){
		var pagina;
		var width = 350;
		var height = 450;
		var left;
		var top;
		
		//left = window.screen.width/2 - width/2;
		//top = window.screen.height/2 - height/2;		
		
		pagina = window.open('','Gianfranco Pezzot','width='+width+',height='+height+',resizable=no,status=no,menubar=no,location=no,toolbar=no,scrollbars=no');



		pagina.document.close();
		pagina.focus();

	}
	
	 var left = window.screen.width/2 + 150;
	 var stile = "top=10, left="+left+", width=350, height=450, status=no, menubar=no, toolbar=no scrollbar=no";
     function Popup(apri) {
        window.open(apri, "", stile);
     }
