var menu_courant='';

function menu_GNMBTP()
{
var html="" ;

html += '<table border=0 width=400 height=26 border=0 cellpadding=0 cellspacing=0 align="center"><tr><td><a class="menu" href="../gnmbtp/gnmbtp_mot_president.asp">Edito</a></td>' ;
html += '<td><img src="../images/img_commun/separateur_menu.gif" width="17" height="26"></td>' ;
html += '<td><a class="menu" href="../gnmbtp/gnmbtp_role_mission.asp">R&ocirc;le et mission</a></td>' ;
html += '<td><img src="../images/img_commun/separateur_menu.gif" width="17" height="26"></td>' ;
html += '<td><a class="menu" href="../gnmbtp/gnmbtp_historique.asp">Historique</a></td>' ;
html += '<td><img src="../images/img_commun/separateur_menu.gif" width="17" height="26"></td>' ;
html += '<td><a class="menu" href="../gnmbtp/gnmbtp_conseil_administration.asp">Conseil d\'administration</a></td></tr></table>' ;

return(html) ;

}

//***********************

function menu_association()
{
var html="" ;

html += '<table width=230 height=26 border=0 cellpadding=0 cellspacing=0><tr><td><a class="menu" href="../commissions/commissions_liste.asp">Commissions</a></td>' ;
html += '<td><img src="../images/img_commun/separateur_menu.gif" width="17" height="26"></td>' ;
html += '<td><a class="menu" href="../vie_association/vie_association_journee_intro.asp">Journ&eacute;es Nationales du BTP</a></td></tr></table>' ;

return(html) ;
}

//***********************

function menu_references()
{
var html="" ;

html += '<table width=230 height=26 border=0 cellpadding=0 cellspacing=0><tr>' ;
html += '<td><a class="menu" href="../references_documentaires/references_documentaires_fiche_fast.asp">FAST<sup>&copy;</sup></a></td>' ;
html += '<td><img src="../images/img_commun/separateur_menu.gif" width="17" height="26"></td>' ;
html += '<td><a class="menu" href="../references_documentaires/references_documentaires_fiche_fan.asp">FAN<sup>&copy;</sup></a></td>' ;
html += '<td><img src="../images/img_commun/separateur_menu.gif" width="17" height="26"></td>' ;
html += '<td><a class="menu" href="http://www.forsapre.net" target="_blank">FORSAPRE<sup>&copy;</sup></a></td></tr></table>' ;

return(html) ;
}

//***********************

function menu_formations()
{
var html="" ;

html += '<table width=250 height=26 border=0 cellpadding=0 cellspacing=0><tr><td><a class="menu" href="../formations/formations_liste.asp">Liste des formations</a></td>' ;
html += '<td><img src="../images/img_commun/separateur_menu.gif" width="17" height="26"></td>' ;
html += '<td><a class="menu" href="../formations/formations_planning.asp">Planning des formations</a></td></tr></table>' ;

return(html) ;
}

//***********************
function reposition_menu_haut()
{
var y;
// ET 23/12/04 correction affichage sous Mozilla FIREFOX
/*
repositionner_layer("menu_GNMBTP",20 ,35, "ancre_haut") ;
repositionner_layer("menu_association",450 ,35, "ancre_haut") ;
repositionner_layer("menu_references",225 ,35, "ancre_haut") ;
repositionner_layer("menu_formations",120 ,35, "ancre_haut") ;
*/

	y=2;
menu_repositionner_layer("menu_GNMBTP",20 ,y, "tdmenuhaut") ;
menu_repositionner_layer("menu_association",450 ,y, "tdmenuhaut") ;
menu_repositionner_layer("menu_references",225 ,y, "tdmenuhaut") ;
menu_repositionner_layer("menu_formations",120 ,y, "tdmenuhaut") ;

return  ;
}

//***********************
// ET 23/12/04 correction affichage sous Mozilla FIREFOX
function menu_repositionner_layer(id_layer, dx, dy, id_objet)
{
var objet, pos;
	objet=objet_adresse(id_objet);
	
	if (!objet) return; 
	pos=objet_position (objet);

	layer_positionner(id_layer, pos.x + dx, pos.y + dy) ;		

return  ;
}


//***********************
function initialiser_menu_haut()
{
var html="";
var x,y,l,h ;

y = 35 ; 
l = 400 ;
h = 30 ;

creer_layer_menu_haut("menu_GNMBTP",20,y,l,h,afficher_menu_GNMBTP,menu_GNMBTP()) ;
creer_layer_menu_haut("menu_association", 150,y,l,h,afficher_menu_association,menu_association()) ;
creer_layer_menu_haut("menu_references",270 ,y,300,h,afficher_menu_references,menu_references()) ;
creer_layer_menu_haut("menu_formations",270,y,l,h,afficher_menu_formations,menu_formations()) ;

reposition_menu_haut() ;

return  ;
}

//**********************
function creer_layer_menu_haut(nom_layer, x,y,l,h,fonction_affichage,contenu)
{

if (layer_adresse(nom_layer)==null)
	{
	layer_creer(nom_layer,x, y, l, h, "hidden", null);
	//layer_detruire(nom_layer);	
	}

layer_ecrire_contenu(nom_layer, contenu);
layer_cacher(nom_layer);
layer = layer_adresse(nom_layer);
if(layer)
	{
	layer.onmouseover = fonction_affichage ;
	layer.onmouseout = effacer_menu;
	//layer_definir_fond(layer.id, "#000000","","");
	}
}


//**********************
function afficher_menu_GNMBTP()
{
afficher_menu("menu_GNMBTP") ;
return(true); 
}

//**********************
function afficher_menu_association()
{
afficher_menu("menu_association") ;
return(true);
}

//**********************
function afficher_menu_references()
{
afficher_menu("menu_references") ;
return(true);
}

//**********************
function afficher_menu_formations()
{
afficher_menu("menu_formations") ;
return(true);
}

// ----------------------------------------------------------------------------
function afficher_menu(nom_menu)
{
//effacer_menu();
desafficher_menu() ;
layer_montrer(nom_menu);
menu_courant = nom_menu;
return(true);
}

var timer_menu ;

// ----------------------------------------------------------------------------
function effacer_menu(event)
{
timer_menu = window.setInterval("desafficher_menu()",500);
return(true);
}

// ----------------------------------------------------------------------------
function desafficher_menu()
{
window.clearTimeout(timer_menu) ;
if (menu_courant.length>0)
	layer_cacher(menu_courant);
menu_courant='';

return(true);
}