// JavaScript Document pour SRFPH
// Auteur Carine LAVAL
// Date 29/05/2006 16:18
// Source : http://css.alsacreations.com/xmedia/exemples/deroulant/menu-horizontal.htm

var iex  = (document.all);
var cestfait = false;

function montre(nomCel) {
	var d = document.getElementById(nomCel);
	
	for (var i = 1; i<=4; i++) 
	{
		if (document.getElementById('smenu'+i)) 
		{
			document.getElementById('smenu'+i).style.display='none';
		}
	}
	if (d) {d.style.display='block';}
}

function montreQue(nomCel) {
	var d = document.getElementById(nomCel);
	
	if (d) 
	{
		d.style.display='block';
	}
}

function cacheQue(nomCel) {
	var d = document.getElementById(nomCel);
	
	if (d) {d.style.display='none';}
}

function suivre_souris(nomCel, e) {
	
  	var d = document.getElementById(nomCel);
	
	if ( (d) && (!cestfait) )
	{
		if ( iex == undefined ) 
		{
			var y = e.pageY - 20;
			d.style.top = y + 'px';
		}
		else if ((iex) && (event != null) )
		{
			d.style.top = (event.y) - 20; 
		}
		
		cestfait = true;
	}
}