function toggleGares() {
	
	var el = document.getElementById("coucheGares");
	
	if (el != null)
	{
		if ( el.style.display != 'block' ) 
		{
			el.style.display = 'block';
			indeXys_creerCookie("afficherGares","block",7);
		}
		else 
		{
			el.style.display = 'none';
			indeXys_creerCookie("afficherGares","-",7);
		}
	}
}

function updateGares()
{
	var elCoucheGares = document.getElementById("coucheGares");
	var elCheckboxCoucheGares = document.getElementById("checkboxCoucheGares");
	
	if (elCoucheGares != null)
	{
		if ( indeXys_lireCookie("afficherGares") != 'block' ) 
		{
			elCoucheGares.style.display = 'none';

			if (elCheckboxCoucheGares != null)
			{
				elCheckboxCoucheGares.checked = false;
			}
			
			indeXys_creerCookie("afficherGares","-",7);
		}
		else 
		{
			elCoucheGares.style.display = 'block';

			if (elCheckboxCoucheGares != null)
			{
				elCheckboxCoucheGares.checked = true;
			}
			
			indeXys_creerCookie("afficherGares","block",7);
		}
	}
}

function toggleCategorie(categorie)
{	
	var elOn = document.getElementById(categorie + "On");
	var elOff = document.getElementById(categorie + "Off");
	
	if (elOn != null
			&& elOff != null)
	{
		if ( elOn.style.display != 'none' )
		{
			elOn.style.display = 'none';
			elOff.style.display = 'block';
			indeXys_creerCookie(categorie + "On","none",7);
		}
		else
		{
			elOn.style.display = 'block';
			elOff.style.display = 'none';
			indeXys_creerCookie(categorie + "On","-",7);
		}
	}
}

function updateCategorie(categorie)
{	
	var elOn = document.getElementById(categorie + "On");
	var elOff = document.getElementById(categorie + "Off");
	
	if (elOn != null
			&& elOff != null)
	{
		if (indeXys_lireCookie(categorie + "On") != 'none' )
		{
			elOn.style.display = 'block';
			elOff.style.display = 'none';
			indeXys_creerCookie(categorie + "On","-",7);
		}
		else
		{
			elOn.style.display = 'none';
			elOff.style.display = 'block';
			indeXys_creerCookie(categorie + "On","none",7);
		}
	}
}
