// JavaScript Document
var stato= new Array();
var num_elementi=2;
 
if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switch{display:block;}')
document.write('</style>')
}
 
function modifica(elem){
	if (stato[elem]=="none") stato[elem]="block";
	else stato[elem]="none";
	document.getElementById('sc'+elem).style.display=stato[elem];
}
function modifica_all(num){
   for(i=1;i<=num_elementi;i++){
   stato[i]="none";
	if (num==0) stato[i]="block";   
     modifica(i);
   }
}