function switchLienIn(id)
{
	var d = document.getElementById(id);	
	d.style.color = "#ffffff";
	d.setAttribute('color', '#ffffff')
}

function switchLienOut(id)
{
	var d = document.getElementById(id);
	if (d) d.style.color = "#e1021c";
}

function menuFromageTopIn()
{
	var d = document.getElementById('menuFromageHaut');
	d.setAttribute('src', 'themes/fds/images/sous_menu_haut_rouge.png');
}

function menuFromageTopOut()
{
	var d = document.getElementById('menuFromageHaut');
	d.setAttribute('src', 'themes/fds/images/sous_menu_haut.png');
}

function menuFromageBottomIn()
{
	var d = document.getElementById('menuFromageBas');
	d.setAttribute('src', 'themes/fds/images/sous_menu_bas_rouge.png');
}

function menuFromageBottomOut()
{
	var d = document.getElementById('menuFromageBas');
	d.setAttribute('src', 'themes/fds/images/sous_menu_bas.png');
}

function montrerMenu(object, contexte)
{
	//top, left, bottom, right
	if (contexte == "out")
	{
		object.style.backgroundColor  = '#e1021c';
		object.childNodes[0].style.color = '#ffffff';
		object.style.border="none";
		if (object == document.getElementById('MH1'))
		{
			object.style.padding = '5px 40px 5px 20px';
			
			object.childNodes[0].style.position = 'relative';
			object.childNodes[0].style.left = '20px';
		}
		else
			object.style.padding = '5px 20px 5px 20px';		
	}
	else
	{
		object.style.backgroundColor  = '#ffffff';
		object.childNodes[0].style.color = '#e1021c';
		object.style.border="1px solid #e1021c";
		if (object == document.getElementById('MH1'))
		{
			object.style.padding = '4px 39px 4px 19px';
			object.childNodes[0].style.position = 'relative';
			object.childNodes[0].style.left = '20px';
		}
		else
			object.style.padding = '4px 19px 4px 19px';
	}
}
