function entete() {

document.write("<div align='center'><center>")
document.write("<table border=0 cellspacing=0 cellpadding=0 width='100%'>")
document.write("<tr>")
document.write("<td width='50%' bgcolor='#0d0d0d'>&nbsp;</td>")
document.write("<td align='center' valign='top'><a href='forum.php?config=chas'><img src=\"images/logochasse3.jpg\"></a></td>")
document.write("<td width='50%'  bgcolor='#72b368'>&nbsp;</td>")

document.write("</tr>")
document.write("</table>")
document.write("<table background='images/degvertjaune.jpg' border=00 width='100%'>")
document.write("<tr>")
document.write("<td valign='top'><center><b><font size='3' color='#FFFFFF'>"+nomsite+"</font></b>")
document.write("<font size=2><br><img src='images/chasseurlujeeerlu.gif'><br/>")
document.write("<a href=\"aide/guide.htm\">Aide et Guide d'utilisation</a> - ")
document.write("<a href=\"search."+php3+"?config="+config+"\">Rechercher</a> - ")
document.write("<a href=\"close."+php3+"?page=membres&config="+config+"\">Liste des "+nbmembre+" membres</a> - ")
if (nompseudo=="") document.write("<a href=\"inscription."+php3+"?modification=oui&config="+config+"\">Profil</a> - ")
document.write("<a href=\"forum1."+php3+"?cat=prive&config="+config+"\">Messages Privés</a> - ")
if (nompseudo=="") document.write("<a href=\"connexion."+php3+"?config="+config+"\">Connexion</a> - ")
if (nompseudo!="") document.write("<a href=\"connexion."+php3+"?valide=1&deconnecter=Déconnexion&config="+config+"\">Déconnexion ["+nompseudo+"]</a><br>")

document.write("</font>")
document.write("</center>")
document.write("</td></tr></table></center></div>")

}

function entete2() {
document.write("<table border=0 cellPadding=0 width='95%'><tr>")
document.write("<td align='left' vAlign='middle' width='35%'>")
document.write("<a href='forum1.php?numforum=35&config=chas'><img border='0' src='images/knifemaker.gif'></a>")
document.write("</td>")
document.write("<td id='statu' align='center' vAlign='middle' width='25%'>")
document.write("<font size=1>"+datos+" - "+timos+"<br/>")
if (anniversaire!="") document.write("Joyeux anniversaire Ã  "+anniversaire+"")
document.write("</font></td>")
document.write("<td align='right' vAlign='bottom' width='45%'><font size='1' color='"+textefond+"'>")
document.write("<a href=\"forum1."+php3+"?config="+config+"&cat=recent\">Voir les nouveaux messages depuis votre dernière visite</a>")
document.write("<br>")
document.write("<a href=\"connexion."+php3+"?config="+config+"&read=oui&valide=1\">Considérer tous les messages comme lus</a>")
document.write("<br>")
document.write("<a href=\"forum1."+php3+"?config="+config+"&cat=favori\">Voir vos sujets favoris</a>")

document.write("</font></td></tr></table>")
}

function entete3() {
document.write("<center><table bordercolorlight='"+bordfonce+"' bordercolordark='"+bordclair+"' border="+bordure+" cellPadding=5 cellSpacing="+espacement+" width='98%' style='text-align: center; vertical-align: middle'><tr class='entete'>")
document.write("<td width='4%'><a href='forum1."+php3+"?cat=favori&config="+config+"'><img src='images/etoile.gif' alt='Afficher ses sujets favoris' border='0' WIDTH='24' height='24'></a></td>")
document.write("<td align='left'>Forum</td>")
if (colonnetopic!='') document.write("<td width='6%'><center>Sujets</center></td>")
document.write("<td><center>Messages</center></td>")
document.write("<td width='13%'><center>Dernier message</center></td>")
if (colonnemodo!='') document.write("<td width='13%'><center>Modérateurs</center></td></tr>")
}

function makevisible(cur,which){
if (which==0) cur.filters.alpha.opacity=100 
else cur.filters.alpha.opacity=60
} 

function ligne(colbarretexte,ampoule,cat,nomforum,description,comptedetopic,comptedeligne,finnom,findate,modoforum,topic,page) {
         nb=nb+1
         if (nb==1){fondbis=fondbis1;fond=fond1}else{fondbis=fondbis2;fond=fond2;nb=0}
         if (ampoule==0){ampoule=ampouleoff}else{ampoule=ampouleon}
         if (description!="") {
         if (description.indexOf("¤")!=-1)
         {
         tabdescription=description.split("¤")
         i=0; description="";
         while (tabdescription[i]!="") {
         description=description + "<a href='forum1."+php3+"?numforum="+cat+"&filtre=1&config="+config+"&cat="+tabdescription[i+1]+"'><font color='"+textetable+"'> "+ tabdescription[i] + "</font></a> | ";
         i++;i++
         }
         description=description.substring(0,description.length-2);

         }
            document.write("<tr bgColor='"+fond+"')><td class='bordas' width='4%'><img src='"+ampoule+"'></td>")
            document.write("<td class='bordas' width='50%'><p align='left'><font size='2'><b><a class='lien' href='forum1."+php3+"?numforum="+cat+"&amp;config="+config+"'>"+nomforum+"</a> </b></font>")
            document.write("<font color='"+textetable+"'><small><small><br>"+description+"</small></small></font></td>")
            if (colonnetopic!="") { document.write("<td class='bordas' bgColor='"+fondbis+"' width='6%' style='color: "+textetable+"'><font size='2'><center>"+comptedetopic+"</center></font></td>")}
            document.write("<td class='bordas' bgColor='"+fondbis+"' width='10%' style='color: "+textetable+"'><font size='2'><center>"+comptedeligne+"</center></font></td> <td class='bordas' style='cursor:pointer;cursor:hand' onclick='location=\"forum2."+php3+"?config="+config+"&numforum="+cat+"&topic="+topic+"&page="+page+"&basdepage=oui#bas\"'  width='13%'><center><font size='1'><span class='heuretable'>le "+findate+"</span> <br><span class='auteurtable'> par "+finnom+"</span></font></center></td>")
            if (colonnemodo!="") { document.write("<td class='bordas' width='13%'><center><font size='1'>"+modoforum+"</font></td>") }
            document.write("</tr>")
         }
          else if (nomforum!="")
         {
            if (modoforum=="") {color=rvbcolbarre} else {color=modoforum}
            if (action=="update") {color=rvbcolbarre}
            document.write("<tr bgcolor='"+color+"'><td class='bordas'  colspan='"+colplus+"'><p align='left'><font color='"+colbarretexte+"' size='2'><b><i>"+nomforum+"</i></b></font></td></tr>")
         }

}


function fintable() {
document.write("<tr><td colspan=5 bgColor='"+fond1+"' class=\"bordas\">")

document.write("</td></tr>")
document.write("</table>")


document.write("</center>")
}

function barre() {

function makevisible(cur,which){
if (which==0) cur.filters.alpha.opacity=100 
else cur.filters.alpha.opacity=60
} 
function bouton(texte,url,rem,wopen) {
   document.write("<td class='bot' width=95 height=28 onmouseout='makevisible(this,1)'")
   if (wopen==0)  document.write("onclick=\"location='"+url+"?config="+config+"'\"")
   if (wopen==1)  document.write("onclick=\"window.open('"+url+"?config="+config+"')\"")
   document.write("onmouseover='makevisible(this,0)' title=\""+rem+"\" background='images/barres/bouton"+bas+""+colbarre+".jpg'>"+texte+"</td>")
}
function bouton2(texte,url,rem,wopen,url2) {
   document.write("<td class='bot' width=95 height=28 onmouseout='makevisible(this,1)'")
   if (wopen==0)  document.write("onclick=\"location='"+url+"?config="+config+"'\"")
   if (wopen==1)  document.write("onclick=\"window.open('"+url+"?config="+config+"')\"")
   if (wopen==0)  document.write("ondragover=\"location='"+url2+"?config="+config+"'\"")
   if (wopen==1)  document.write("ondragover=\"window.open('"+url2+"?config="+config+"')\"")
   document.write("onmouseover='makevisible(this,0)' title=\""+rem+"\" background='images/barres/bouton"+bas+""+colbarre+".jpg'>"+texte+"</td>")
}


document.write("<div align='center'><table border=0 cellpadding=0 cellspacing=0 width='98%'><tr>")
document.write("<td width='46' background='images/barres/gauche"+bas+""+colbarre+".gif'><p align='right'>")
if (mp==1) {
if (mail>0) {
document.write("<a href='forum1."+php3+"?cat=prive&config="+config+"'><img src='images/mpactif.gif' alt='Lire ses messages privés' border=0 WIDTH=19 height=14></a>")
if (bas=='') document.write("<p><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' WIDTH='0' HEIGHT='0'><param name='movie' value='sound/"+sonmp+"'></object>")
   } else {
document.write("<a href='forum1."+php3+"?cat=prive&config="+config+"'><img src='images/nomail.gif' alt='Envoyer des messages privés' border=0 WIDTH=19 height=14></a>")
  }
}
document.write("</td><td background='images/barres/milieu"+bas+""+colbarre+".gif' valign='top'><div align='center'><center><table border=0 cellpadding=0 cellspacing=0><tr>")

if (modo==1) {   bouton("Modération","administration/1modo."+php3+"","AccÃ¨s au panneau d'administration du forum",0)  }
if (nompseudo=="") { bouton("Connexion","connexion."+php3+"","S'identifier",0) }
if (nompseudo!="") { bouton2("Déconnexion","connexion."+php3+"?valide=1&deconnecter=Déconnexion&config="+config+"&d=","Supprimer ses cookies",0,"connexion."+php3+"") }
if (inscr==1 && nompseudo=="")  { bouton("Inscription","inscription."+php3+"","S'inscrire pour devenir membre et pouvoir écrire des messages",0)   }
if (nompseudo!="")  { bouton("Profil","inscription."+php3+"?modification=oui&config="+config+"&d=","S'inscrire pour devenir membre et pouvoir écrire des messages",0) }
if (rech==1)   { bouton("Recherche","search."+php3+"","Faire une recherche dans l'ensemble des messages du forum",0)  }
if (connecte>1){ bouton(connecte+" connectés","online."+php3+"","Afficher la liste détaillée de l'ensemble des connectés",1)   }


document.write("</tr></table></center></div></td><td width=16 background='images/barres/droite"+bas+""+colbarre+".gif'>&nbsp; ")
document.write("</td></tr></table></div>")
if (bas=='') bas='bas'
}    
