//here you place the ids of every element you want.
var ids_tournament=new Array('blocco_tournament01','blocco_tournament02');

function switchid_tournament(id_tournament){	
	hideallids_tournament();
	showdiv_tournament(id_tournament);
}

function hideallids_tournament(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids_tournament.length;i++){
		hidediv_tournament(ids_tournament[i]);
	}		  
}

function hidediv_tournament(id_tournament) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id_tournament).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id_tournament.display = 'none';
		}
		else { // IE 4
			document.all.id_tournament.style.display = 'none';
		}
	}
}

function showdiv_tournament(id_tournament) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id_tournament).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id_tournament.display = 'block';
		}
		else { // IE 4
			document.all.id_tournament.style.display = 'block';
		}
	}
}
function switchclass_tournament(id_tournament,id_tournament2){
	if (document.getElementById(id_tournament).className == 'menu') { // DOM3 = IE5, NS6
		document.getElementById(id_tournament).className= 'click';
		document.getElementById(id_tournament2).className= 'menu';
	}
	else {
	}
}