var NavigatorName = navigator.appName ;

function menucurrent ( )
{
	affiche ( menu_ref ) ;
	if ( sous_menu_ref > 0 )
	{
	   document.getElementById('detail_' + menu_ref + '_' + sous_menu_ref).style.color = "red" ;
	}
	
	return ;
}

function affiche( id ) 
{
   for ( i = 1 ; i < 9 ; ++ i)
   {
      var StyleElement = document.getElementById('lien_' + i).style ;
	  
      if ( id == i ) 
	  {
         document.getElementById('detail_' + i).style.display = "inline" ;

		 StyleElement.color        = "red" ;

		 if ( NavigatorName == "Microsoft Internet Explorer")
		 {
		    StyleElement.margin       = "1px 0px 1px 0px";
 		    StyleElement.padding      = "0px 5px 3px 5px";
		 }
		 else
		 {
    		StyleElement.margin       = "1px 0px 0px 0px";
 	        StyleElement.padding      = "0px 5px 4px 5px";
		 }		 
		 StyleElement.borderTop    = "2px solid gray";
		 StyleElement.borderRight  = "2px solid gray";
		 StyleElement.borderLeft   = "2px solid gray";		 		 
		 StyleElement.borderBottom = "3px solid white";		 		 
	  }
	  else 
	  {
         document.getElementById('detail_' + i).style.display = "none";
		 
		 StyleElement.color   = "gray" ;
		 StyleElement.margin  = "2px 1px 4px 1px" ; 
 		 StyleElement.padding = "0px 5px 0px 5px" ;
		 StyleElement.border  = "1px solid gray" ;
	  }
   }
   return ;
}