/*
function magic(id) {
	for (i=0; i<liste.length; i++)
		document.getElementById(liste[i]).style.display = 'none';
	if (opened!=id) {
		document.getElementById(id).style.display = '';
		opened = id;
	}
	else opened='';
}
function all(open) {
	etat = open?'':'none';
	for (i=0; i<liste.length; i++)
		document.getElementById(liste[i]).style.display = etat;
}
*/

function magic(id) {
	for (i=0; i<liste.length; i++)
		document.getElementById(liste[i]).className = 'hide';
	if (opened!=id) {
		document.getElementById(id).className = 'show';
		opened = id;
	}
	else opened='';
}
function all(open) {
	etat = open?'show':'hide';
	for (i=0; i<liste.length; i++)
		document.getElementById(liste[i]).className = etat;
}
