//************ Menu Principal ************//
Text     = '#FFFFFF' // Couleur du texte
bgcolor  = '#C0C0C0' // Couleur Arrière
bgcolor2 = '#999999' // Couleur Arrière Surbrillance
bgcolor3 = '#FFFFFF' // Couleur Bordure
PosY     = 0      // Distance entre le haut de l'écran et le menu 
LargeurM = screen.width       // Largeur
HauteurM =  30       // Hauteur 
TailleM  =   2       // Taille Font
menu = new Array
i=0
menu[i++] = 'Le club'  // <-- Titre
menu[i++] = '#'         // <-- Adresse (ici aucune)
menu[i++] = 'Manifestations'
menu[i++] = '#'
menu[i++] = 'Photos'
menu[i++] = '#'
menu[i++] = 'Notre boutique'
menu[i++] = '#'

//************ Sous-Menus ************//
bgcolor5 ='#0000FF' // Couleur Arrière
bgcolor6 ='#FF0000' // Couleur Arrière Surbrillance
bgcolor4 ='#FFFFFF' // Couleur Bordure 
EnLigne  =   0      // 1 pour ranger sur une seule ligne
LargeurS = 250      // Largeur (Inutil si EnLigne=1)
HauteurS =  20      // Hauteur
TailleS  =   1      // Taille Font
zlien    = new Array
zlien[0] = new Array
zlien[1] = new Array
zlien[2] = new Array
zlien[3] = new Array
i=0
zlien[0][i++] = 'Historique'                      // <-- Titre
zlien[0][i++] = '../html/historique.htm'   // <-- Adresse
zlien[0][i++] = 'Organigramme'                      // <-- Titre
zlien[0][i++] = '../html/organig.htm'   // <-- Adresse
zlien[0][i++] = 'Comité Organisation'                      // <-- Titre
zlien[0][i++] = '../html/comorg.htm'   // <-- Adresse
zlien[0][i++] = 'Nos sponsors'                      // <-- Titre
zlien[0][i++] = '../html/sponsor.htm'   // <-- Adresse
zlien[0][i++] = 'Vos questions'
zlien[0][i++] = '../html/formul.html'
i=0
zlien[1][i++] = 'Calendrier 2012'
zlien[1][i++] = '../html/manif.html'
zlien[1][i++] = 'Les rendez-vous mensuels'
zlien[1][i++] = '../html/mensuel.htm'
i=0
zlien[2][i++] = 'Nos albums photos'
zlien[2][i++] = '../html/albums.htm'
i=0
zlien[3][i++] = 'nouvelles Petites annonces'
zlien[3][i++] = '../html/annonce.html'
zlien[3][i++] = 'Boutique du club'
zlien[3][i++] = '../html/boutiq.html'
zlien[3][i++] = 'Adhésion'
zlien[3][i++] = '../adhesion/2012.pdf'



//************ Fin des paramètres, Début du programme ************//
if(document.getElementById) { 

document.write('<style type="text/css">')
document.write('.popper {POSITION:absolute; VISIBILITY:hidden; z-index:15;}')
document.write('.ejsmenu {color:'+Text+'; text-decoration:none; cursor:default;') //cursor:default ou hand
document.write('</style>')
document.write('<DIV style="position:relative;"><DIV class=popper id=topdeck></DIV>')

skn = document.getElementById("topdeck").style
document.onclick = function() { skn.visibility = "hidden" }
document.onmousemove = function()
{  document.getElementById('topmenu').style.top = document.body.scrollTop+PosY   
   document.getElementById('topmenu').style.visibility='visible'  
}

window.onscroll = function()
{  document.getElementById('topmenu').style.visibility='hidden'
   skn.visibility = "hidden"
}

function pop(msg,pos)
{  skn.visibility = "hidden";
   skn.top  = document.body.scrollTop+PosY+HauteurM   
   if(msg.length == 0) return
   pass = 0
   if(EnLigne)
   {  content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR="+bgcolor4+" WIDTH="+LargeurM+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=1><TR>"
      while(pass < msg.length)
      {  content += "<TD  ALIGN=center BGCOLOR="+bgcolor5+" onMouseDown='location.href=\""+msg[pass+1]+"\"'CLASS=ejsmenu onMouseOver=\"this.style.background='"+bgcolor6+"'\" onMouseOut=\"this.style.background='"+bgcolor5+"'\" HEIGHT="+HauteurS+"><FONT SIZE="+TailleS+" FACE=Verdana><B>  "+msg[pass]+"</B></FONT></TD>"
         pass+=2
      }
      content += "</TR></TABLE></TD></TR></TABLE>"
   } else
   {  skn.left = pos
      content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR="+bgcolor4+" WIDTH="+LargeurS+"><TR><TD><TABLE WIDTH="+LargeurS+" BORDER=0 CELLPADDING=0 CELLSPACING=1>"
      while(pass < msg.length)
      {  content += "<TR><TD WIDTH="+LargeurS+" BGCOLOR="+bgcolor5+" onMouseDown='location.href=\""+msg[pass+1]+"\"'CLASS=ejsmenu onMouseOver=\"this.style.background='"+bgcolor6+"'\" onMouseOut=\"this.style.background='"+bgcolor5+"'\" HEIGHT="+HauteurS+"><FONT SIZE="+TailleS+" FACE=Verdana><B>  "+msg[pass]+"</B></FONT></TD></TR>"
         pass+=2
      }
    content += "</TABLE></TD></TR></TABLE>"   
   }
   document.getElementById("topdeck").innerHTML = content
   skn.visibility = "visible"
}

document.write('<TABLE style="position:absolute;" ID=topmenu BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR='+bgcolor3+' WIDTH='+LargeurM+' HEIGHT='+HauteurM+'><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=100% HEIGHT=100%><tr>')
pass = 0
while(pass < menu.length/2)                                        
{  document.write("<TD WIDTH="+(LargeurM*2)/menu.length+" ALIGN=center BGCOLOR="+bgcolor+" onMouseDown='location.href=\""+menu[pass*2+1]+"\"' onMouseOver='this.style.background=\""+bgcolor2+"\";pop(zlien["+pass+"],"+pass*((LargeurM*2)/menu.length+1)+")' onMouseOut='this.style.background=\""+bgcolor+"\"' CLASS=ejsmenu><FONT SIZE=2 FACE=Verdana><B>"+menu[pass*2]+"</B></FONT></TD>")  
   pass++
}
document.write('</TR></TABLE></TD></TR></TABLE></DIV>')
document.getElementById('topmenu').style.top = document.body.scrollTop+PosY
} 
