// JavaScript Document
// menu effect
function afficheId(baliseId){
  if (document.getElementById && document.getElementById(baliseId) != null){
	//document.getElementById('debug').innerHTML = baliseId + " block";
    document.getElementById(baliseId).style.display='block';
    }
  }
function cacheId(baliseId){
  if (document.getElementById && document.getElementById(baliseId) != null){
	//document.getElementById('debug').innerHTML = baliseId + " none";
    document.getElementById(baliseId).style.display= 'none';
	}
  }
  
// this function determines whether the event is the equivalent of the microsoft 
// mouseleave or mouseenter events. 
function isMouseLeaveOrEnter(e, handler) { 
	if (e.type != 'mouseout' && e.type != 'mouseover') return false; 
	var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ? e.toElement : e.fromElement; 
	while (reltg && reltg != handler) reltg = reltg.parentNode; 
	return (reltg != handler); 
}
