/* Cynik for opiOM.net
 * TAB pour le module prochainMatch
 */
function displayBlock(id){
var elem;
elem = document.getElementById(id).style;		//get the element
elem.display="block";							//display this element

elem = document.getElementById("link"+id);		//get the link to this element
elem.className="active";						//set the "active" style to the link
}
function notDisplayBlock(id){
var elem;
elem = document.getElementById(id).style;		//get the element
elem.display="none";							//hide this element

elem = document.getElementById("link"+id);		//get the link to this element
elem.className="";								//set no style to the link
}
function isIdExist(id){
	return document.getElementById(id)!=null;
}

function fonctionMagique(id){

	switch (id) {
		case "t1":
			displayBlock("t1");
			notDisplayBlock("t2");
			notDisplayBlock("t3");
			break;
		case "t2":
			notDisplayBlock("t1");
			displayBlock("t2");
			notDisplayBlock("t3");
			break;
		case "t3":
			notDisplayBlock("t1");
			notDisplayBlock("t2");
			displayBlock("t3");
			break;
		default:
			displayBlock("t1");
			notDisplayBlock("t2");
			notDisplayBlock("t3");
			break;
	}
return false;
}