function prendiElementoDaId(id_elemento) {
 var elemento;
 if(document.getElementById) {
  elemento = document.getElementById(id_elemento);
 }
 else {
  elemento = document.all[id_elemento];
 }
 return elemento;
};

function swap(tipo){
	if (tipo == 0) {
		prendiElementoDaId('img0').style.display='';
		prendiElementoDaId('img2').style.display='';
		prendiElementoDaId('storia1').style.display='';
		
	
		prendiElementoDaId('img1').style.display='none';
		prendiElementoDaId('img3').style.display='none'; 		
		prendiElementoDaId('attivita1').style.display='none';						
	}
	
	else if (tipo == 1) {
		prendiElementoDaId('img1').style.display='';
		prendiElementoDaId('img3').style.display=''; 
		prendiElementoDaId('attivita1').style.display='';				
		
		prendiElementoDaId('img0').style.display='none';
		prendiElementoDaId('img2').style.display='none';
		prendiElementoDaId('storia1').style.display='none';		
	}
}
