//here you place the ids of every element you want.
var ids_forum=new Array('blocco_forum01','blocco_forum02');

function switchid_forum(id_forum){	
	hideallids_forum();
	showdiv_forum(id_forum);
}

function hideallids_forum(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids_forum.length;i++){
		hidediv_forum(ids_forum[i]);
	}		  
}

function hidediv_forum(id_forum) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id_forum).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id_forum.display = 'none';
		}
		else { // IE 4
			document.all.id_forum.style.display = 'none';
		}
	}
}

function showdiv_forum(id_forum) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id_forum).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id_forum.display = 'block';
		}
		else { // IE 4
			document.all.id_forum.style.display = 'block';
		}
	}
}
function switchclass_forum(id_forum,id_forum2){
	if (document.getElementById(id_forum).className == 'menu') { // DOM3 = IE5, NS6
		document.getElementById(id_forum).className= 'click';
		document.getElementById(id_forum2).className= 'menu';
	}
	else {
	}
}