/* Fonctions utilisées pour l'affichage des evenements */

function showHide(id) {
	img = document.getElementById('pic_'+id);
	row = document.getElementById('row_'+id);
	if (row.style.display == 'none') {
		row.style.display = '';
		if (img)
			img.src = '/html/themes/promenade/images/cg92/picto_moins.gif';
	} else {
		row.style.display = 'none';
		if (img)
			img.src = '/html/themes/promenade/images/cg92/picto_plus.gif';
	}
}

function showAll() {
	rowId = 0;
	while (document.getElementById('row_'+rowId)) {
		document.getElementById('row_'+rowId).style.display = '';
		if (document.getElementById('pic_'+rowId))
			document.getElementById('pic_'+rowId).src = '/html/themes/promenade/images/cg92/picto_moins.gif';
		rowId++;
	}
	document.getElementById('li_tc').className = 'first cg_EventList_Affichage_On';
	document.getElementById('li_list').className = 'last';
}

function hideAll() {
	rowId = 0;
	while (document.getElementById('row_'+rowId)) {
		document.getElementById('row_'+rowId).style.display = 'none';
		if (document.getElementById('pic_'+rowId))
			document.getElementById('pic_'+rowId).src = '/html/themes/promenade/images/cg92/picto_plus.gif';
		rowId++;
	}
	document.getElementById('li_tc').className = 'first';
	document.getElementById('li_list').className = 'last cg_EventList_Affichage_On';
}
