wfx=new Array(3000);                                            wcolortext=new Array(3000)
wcolorfx=new Array(3000);                                  wnom=new Array(3000)
wgrade=new Array(3000) ;                                     wcaractere=new Array(3000)
wimage=new Array(3000) ;                                     wdimx=new Array(3000)
wdimy=new Array(3000) ;                                       whomepage=new Array(3000)
wicq=new Array(3000)  ;                                        wsignature=new Array(3000)
wcolorombre=new Array(3000)  ;                                        wepaisseurglow=new Array(3000)

function affect(code, fx,colortext,colorfx,colorombre,epaisseurglow,nom,grade,caractere,image,dimx,dimy,homepage,icq,signature)
{
wfx[code]=fx;                                            wcolortext[code]=colortext
wcolorfx[code]=colorfx;                                  wnom[code]=nom
wgrade[code]=grade ;                                     wcaractere[code]=caractere
wimage[code]=image ;                                     wdimx[code]=dimx
wdimy[code]=dimy ;                                       whomepage[code]=homepage
wicq[code]=icq  ;                                        wsignature[code]=signature
wcolorombre[code]=colorombre ;                           wepaisseurglow[code]=epaisseurglow
}
function makevisible(cur,which){
if (which==0) cur.filters.alpha.opacity=100 
else cur.filters.alpha.opacity=60} 

function longo(nbvotes) {
         largeur=nbvotes/total*400
         document.write ("<table height='20'><tr><td style='border: 1 solid #000000'  width='"+largeur+"' bgcolor='#0099CC'>&nbsp;</td><td style='font-size: 10; font-weight: bold; color: $textetable'>"+nbvotes+"<br><i>"+(Math.round(100*nbvotes/total))+"%</i></td></tr></table>")
}

function entete() {

document.write("<div align='center'><center>")
document.write("<table border=0 width='95%'><tr><td align='left' vAlign='top' width='50%'>"+logo+"</td>")
document.write("<td noWrap vAlign='top' width='50%'><img border='0' src='"+dosopen+"' WIDTH='16' HEIGHT='11'> &nbsp;&nbsp; <font size='1'><a class='lien' href='forum."+php3+"?config="+config+"'>Forum</a><br>")
document.write("<img border=0 src='images/tline.gif' WIDTH=12 HEIGHT=12><img border=0  src='"+dosopen+"' WIDTH=16 HEIGHT=11> &nbsp;&nbsp; <a class='lien' href='forum1."+php3+"?numforum="+numforum+"&cat="+cat+"&amp;config="+config+"'>"+nomforum+"</a> <br>")
document.write("<img border=0 src='images/tline3.gif' WIDTH=24 HEIGHT=12><img border=0 src='"+dosopen+"' WIDTH=16 HEIGHT=11> &nbsp;&nbsp;"+sujet+" <p align='center'>")
document.write("<a href='message."+php3+"?numforum="+numforum+"&cat="+cat+"&config="+config+"'><img border=0 src='"+newpic1+"'></a>&nbsp;&nbsp;")
if (fermeture=="A") {document.write("<a href='message."+php3+"?numforum="+numforum+"&topic="+topic+"&page="+pagenum+"&cat="+cat+"&config="+config+"'><img border=0 src='"+addpic+"'></a>")}
document.write("</font></td></tr></table></center></div>")

}
function startable() {
document.write("<div align='center'><div align='center'><center><table border='"+bordure+"' class='bordas' cellPadding=4 cellSpacing='"+espacement+"'  width='98%' style='font-size: 12; vertical-align: top'>")
document.write("<tr><td class='bordas2' bgcolor='"+colentetefond+"' width='10%'><font color='"+textetable+"' size='1'><b>Auteur</b></font></td>")
document.write("<td class='bordas2' bgcolor='"+colentetefond+"' style='font-size: 10; font-weight: bold; color: "+textetable+"' width='90%'>Sujet : "+sujet+"</td></tr>")

}

function baspage(){

dosopen="images/open.gif"
document.write("<table align='center' border=0 width='95%'><tr><td><br></td><td width='20%'>")
if (fermeture=="A") {document.write("<a href='message."+php3+"?numforum="+numforum+"&topic="+topic+"&page="+pagenum+"&cat="+cat+"&config="+config+"'><img border=0 src='"+addpic+"'></a><br>")}
document.write("<a href='message."+php3+"?numforum="+numforum+"&cat="+cat+"&config="+config+"'><img border=0 src='"+newpic1+"'></a></td>")


document.write("<td><img border='0' src='"+dosopen+"' WIDTH=16 HEIGHT=11> &nbsp;&nbsp; <font size='1'><a class='lien' href='forum."+php3+"?config="+config+"'>Forum</a><br>")
document.write("<img border=0 src='images/tline.gif' WIDTH=12 HEIGHT=12> <img border=0 src='"+dosopen+"' WIDTH=16 HEIGHT=11> &nbsp;&nbsp; <a class='lien' href='forum1."+php3+"?numforum="+numforum+"&cat="+cat+"&config="+config+"'>"+nomforum+"</a> <br>")
document.write("<img border=0 src='images/tline3.gif' WIDTH=24 HEIGHT=12><img border=0 src='"+dosopen+"' WIDTH=16 HEIGHT=11> &nbsp;&nbsp;"+sujet+" <p align='center'></td>")

document.write("<td align='right' ><img onclick='add(1)' style='cursor:pointer;cursor:hand;' src='images/boulebleu.gif' alt='Répondre rapidement (Raccourci possible : touche du clavier'>&nbsp;"+liste+"</td></tr><tr>")
document.write("<td colSpan='3' style='font-size: 10'><p align='center'><br><b>Options: <a class='lien' style='cursor:help'")
document.write(" onclick=\"if (confirm('Fermer le sujet')) {location='close."+php3+"?numforum="+numforum+"&topic="+topic+"&amp;cat="+cat+"&amp;config="+config+"'}\">Fermer ce sujet</a> | ")
document.write("<a class='lien' style='cursor:help' onclick=\"if (confirm('Effacer le sujet')) {location='close."+php3+"?numforum="+numforum+"&topic="+topic+"&amp;cat="+cat+"&amp;effacer=oui&amp;config="+config+"'}\">Effacer ce sujet</a>  |  <a class='lien' style='cursor:help' onclick=\"if (confirm('Déplacer le sujet')) {location='close."+php3+"?page=movetopic&numforum="+numforum+"&topic="+topic+"&cat="+cat+"&config="+config+"'}\">Déplacer ce sujet</a> </b> </td>  </tr></table>")
}

function paging(page){
if (nombre==1) {clearTimeout(id)}
nombre=1; id=setTimeout("location='forum2."+php3+"?numforum="+numforum+"&config='+config+'&cat='+cat+'&topic='+topic+'&page='+document.tos.page.value",1000)
document.tos.fpage.value=document.tos.page.value+"/"+maxpage
}

function pagingbas(page){
if (nombre==1) {clearTimeout(id)}
nombre=1;id=setTimeout("location='forum2."+php3+"?numforum="+numforum+"&config='+config+'&cat='+cat+'&topic='+topic+'&page='+document.tosbas.pagebas.value",1000)
document.tosbas.fpagebas.value=document.tosbas.pagebas.value+"/"+maxpage

}


function ligne(ligne,code,smiley,dat,heure,num,message,ln) {

if (smiley>=50) {smiley=smiley-50;deviation=1} else {deviation=0;}

fx=wfx[code];                                            colortext=wcolortext[code]
colorfx=wcolorfx[code];                                  nom=wnom[code]
grade=wgrade[code] ;                                     caractere=wcaractere[code]
image=wimage[code] ;                                     dimx=wdimx[code]
dimy=wdimy[code] ;                                       homepage=whomepage[code]
icq=wicq[code]  ;                                        signature=wsignature[code]
colorombre=wcolorombre[code] ;                            epaisseurglow=wepaisseurglow[code]

if (noimgpseudo==1) {dimx=0;dimy=0;image='';}
nb=nb+1
if (shosign=="shosign") {message=message+"<center><br> _____________________<br><br> "+signature+"</center>"}
table1="<table class='bordas2' width='102%' cellpadding='4' cellspacing='0' style='margin:-5;font-size:12 ; font-family: Verdana;border: 1 solid "+bordclair+";background-color: "+colbarreicone+"'><tr><td>"
table2="</td></tr></table><table><tr height=5><td></td></tr></table>"



fxhtml="<table CELLPADDING=3 style='filter:"
if (colortext=="") {colortext=textetable ;}
if (smiley==18 && carrerouge==0) {message="Message Indisponible"}
if (navigateur!="4") {
   if (fx.indexOf('lueur',0)==-1 && colorfx.length==6) {fxhtml=fxhtml+" glow(color=  #"+colorfx+" , strength="+epaisseurglow+") "}
   if (fx.indexOf('flou',0)!=-1) {fxhtml=fxhtml+" Blur(Add=1, Direction=270, Strength=13) "}
   espace="";if (fx.indexOf('ombre',0)!=-1) {fxhtml=fxhtml+" DropShadow(Color=#"+colorombre+", OffX=1, OffY=1, Positive=1)" ; espace="&nbsp;&nbsp;" }
   if (fx.indexOf('italique',0)!=-1) {italique=";font-style: italic";} else {italique="";}
   fxhtml=fxhtml+italique+"'><tr><td><font color='#"+colortext+"'><strong><small>"+espace+nom.toUpperCase()+"</small></strong></font></td></tr></table>"
   }
   else
   {
   if (nb==1) {fond=fond1} else {fond=fond2;nb=0}
   if (nb==1) {fondgauche=fondgauche1} else {fondgauche=fondgauche2;nb=0}
   fxhtml="<b><font color="+textetable+">"+nom.toUpperCase()+"</font></b>"
}

parta="<table width='100%' cellpadding='0' cellspacing='0' border='0' > <tr><td width='50%' style='font-size: 12'><A NAME='nb"+ln+"'></A>"+fxhtml+"</td>"
   parta=parta+"<td align='right' width='50%'><img src='images/icon"+smiley+".gif' width='15' height='15'></td></tr> </table>     <table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td style='font-size: 10; color: "+textetable+"' height='20'>"+grade+"</td></tr><tr> "
   parta=parta+"<td style='font-size: 10; color: "+textetable+"'>"+caractere+"</td></tr><tr> <td><br>"

	longueur=image.length;txt=image.substring(longueur-3,longueur)

	if (txt!="swf") {
	   if (xfonctionflashpseudo==1 ) {	   parta=parta+"<img src='"+image+"' width='"+dimx+"' height='"+dimy+"'>"}
	}
	else
	{
   doc="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' WIDTH='"+dimx+"' HEIGHT='"+dimy+"'>"
   doc= doc + "<param name='salign' value='LB'><param name='movie' value='"+image+"'><embed src='"+image+"' quality='high' type='application/x-shockwave-flash' width='"+dimx+"' height='"+dimy+"'></embed>   </object>"
   if (xfonctionflashpseudo!=1 ) {doc=""}
   parta=parta+doc

   }

   parta=parta+"</td></tr></table></td> "

   partb=""+table1+"<font color='"+texteicone+"'>Posté le  "+dat+" à "+heure+"&nbsp;&nbsp;&nbsp;  <a target='_blank' href='close."+php3+"?page=profilbdd&nom="+nom+"&amp;config="+config+"'><img alt='Qui est-ce ?' border='0' src='upload/dc()djromain()profil2.gif' width='62' height='18' ></a>&nbsp;&nbsp;&nbsp;<a href='message."+php3+"?numforum="+numforum+"&num="+num+"&amp;cat="+cat+"&amp;config="+config+"&amp;page="+pagez+"'>"
   partb=partb+"<img alt='Editer le message' border='0' src='upload/dc()djromain()editer2.gif' width='62' height='18'></a>&nbsp; <a href='message."+php3+"?numforum="+numforum+"&cat="+cat+"&amp;topic="+topic+"&amp;num="+num+"&amp;repondre=oui&amp;config="+config+"&amp;page="+pagez+"'><img alt='Repondre à ce message' border='0' src='upload/dc()djromain()citer2.gif' width='62' height='18'></a> &nbsp;&nbsp;"
   partb=partb+"<span onclick=\"if (confirm('Effacer le message')) {A"+ligne+".innerHTML='&nbsp;';document.getElementById('B"+ligne+"').innerHTML='   <iframe border=no src=creertopic."+php3+"?direct=2numforum="+numforum+"&cat="+cat+"&topic="+topic+"&supprimer=oui&edition=oui&num="+num+"&config="+config+"&amp;page="+pagez+" width=100% height=40</iframe>    ' }\" ><img alt='Supprimer le message' border='0' src='upload/dc()djromain()effacer2.gif' width='62' height='18'></span>&nbsp;&nbsp;"

if (modo==1 && deviation=="") {
   partb=partb+"<span onclick=\"document.getElementById('A"+ligne+"').innerHTML='   <iframe border=no src=close."+php3+"?topic="+topic+"&page=deviation&num="+num+"&config="+config+" width=100% height=140</iframe>    ' \" ><img alt='Classer le message en déviation' border='0' src='images/boutons/boutondeviation.gif' width='32' height='15'></span>&nbsp;&nbsp;"

}
if (modo==1 && deviation!="") {
   partb=partb+"<span onclick=\"document.getElementById('A"+ligne+"').innerHTML='   <iframe border=no src=close."+php3+"?topic="+topic+"&page=deviation&num="+num+"&config="+config+" width=100% height=140</iframe>    ' \" ><img alt='Déclasser le message du mode déviation' border='0' src='images/boutons/boutondeviation2.gif' width='32' height='15'></span>&nbsp;&nbsp;"

}

   if (mp==1){partb=partb+"&nbsp;<a href='message."+php3+"?cat=37&config="+config+"&destinataire="+nom+"'><img alt='Envoyer un message privé à "+nom+"' border=0 src='upload/dc()djromain()mp2.gif' width='62' height='18'></a> &nbsp;&nbsp;  "}

   if (homepage!==""){partb=partb+"<a href='"+homepage+"' target='_blank'><img alt='site de "+nom+"' border='0' src='upload/dc()djromain()web2.gif'  width=62 height=18></a>&nbsp; &nbsp;"}

   if (icq>1000){partb=partb+"<img src='http://web.icq.com/whitepages/online?icq="+icq+"&img=22' width='18' height='18'>&nbsp;&nbsp;"}
   partb=partb+"<a href='close."+php3+"?action=warning&numforum="+numforum+"&topic="+topic+"&num="+num+"&cat="+cat+"&config="+config+"&page="+pagez+"'><img alt='Avertir les modérateurs' border='0' src='upload/dc()djromain()alerter2.gif'  width='62' height='18'></a>&nbsp;&nbsp;"
   partb=partb+"</small></font>"+table2+message+"</td></tr>"

if (codemembre==code) {membre=parta;}
if (deviation!="1" || nodeviation=="") {
if (navigateur!="4") {
   eval("A"+ligne+".innerHTML=parta");
   eval("B"+ligne+".innerHTML=partb");
} else {
   document.write("<tr bgColor='"+fond+"'> <td class='bordas2' bgColor='"+fondgauche+"' valign='top' width='10%'>"+parta+"</td>")
   document.write("<td class='bordas2' width='90%' valign='top' style='color: "+textetable+"'>"+partb+"</td></tr>")
}
}

if ((deviation =="1" && nodeviation!="") || tel==code) {
if (navigateur!="4") {
   eval("A"+ligne+".innerHTML=''");
   eval("B"+ligne+".innerHTML=''");
} else {
//   document.write("<tr bgColor='"+fond+"'> <td class='bordas2' bgColor='"+fondgauche+"' valign='top' width='10%'>"+parta+"</td>")
 //  document.write("<td class='bordas2' width='90%' valign='top' style='color: "+textetable+"'>"+partb+"</td></tr>")
}
}


if (basdepage=="oui" && nb<15){ this.scrollBy(0,20000000)}
if (gonum<num) {location='#nb'+gonum }




}

function ligne2(liner) {
for (line=1;line<=liner;line++)
    {
    nb=nb+1
    if (nb==1) {fond=fond1} else {fond=fond2;nb=0}
    if (nb==1) {fondgauche=fondgauche1} else {fondgauche=fondgauche2;nb=0}
    document.write("<tr  bgColor='"+fond+"'> <td class='bordas2' bgColor='"+fondgauche+"' valign='top' width='10%'><div id='A"+line+"' >")
    if (basdepage=="oui"){document.write ("<img width=1 height=2900>")}
    document.write(" </div></td> <td width='90%' class='bordas2' valign='top' style='color: "+textetable+"'><div id='B"+line+"'></div></td></tr>")
    }

    document.write("<tr  bgColor='"+fond+"'> <td class='bordas2' bgColor='"+fondgauche+"' valign='top' width='10%'><div id='addleft' >")
    document.write(" </div></td> <td width='90%' class='bordas2' valign='top' style='color: "+textetable+"'><div id='addright'></div></td></tr>")


}

function barre() {
document.write("<div align='center'>")
document.write("<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 ondragend=\"location='forum2."+php3+"?direct=1&cat=37&config="+config+"&topic="+mail+"&basdepage=oui#bas'\" href='forum1."+php3+"?cat=prive&amp;config="+config+"'><img src='images/mpactif.gif' alt='Lire ses messages privés' border='0' WIDTH='19' height='14'></a>")

         if (bas=="" && son==1) { document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' WIDTH='0' HEIGHT='0'><param name='movie' value='sound/"+sonmp+"'></object>") }
      }
   else
      {
          if (bas!="") {   document.write("<a href='forum1."+php3+"?cat=prive&amp;config="+config+"'><img src='images/nomail.gif' alt='Envoyer des messages privés' border='0' WIDTH='19' height='14'></a>")}
          if (bas=="" && fav==0) {   document.write("<a href='forum2."+php3+"?addfavori=1&topic="+topic+"&page="+pager+"&numforum="+numforum+"&cat="+cat+"&config="+config+"'><img border=0 alt='Ajouter à vos favoris' src='images/etoile.gif'></a>")}
          if (bas=="" && fav==1) {   document.write("<a href='forum2."+php3+"?addfavori=0&topic="+topic+"&page="+pager+"&numforum="+numforum+"&cat="+cat+"&config="+config+"'><img border=0 alt='Retirer de vos favoris' src='images/etoileinterdit.gif'></a>")}
      }
   }

   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=&#39;" +url+ "?config=" +config+"&#39;   '")}
   if (wopen==1) { document.write("onclick='window.open(&#39;" +url+ "?config=" +config+"&#39;)   '")}
   document.write("onmouseover='makevisible(this,0)' title=\""+rem+"\" background='images/barres/bouton"+bas+colbarre+".jpg'>"+texte+"</td>")
   }

   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 (maxpage>1) {
   document.write("<td><form name='tos"+bas+"'><img src='images/barres/flechegauche1"+bas+colbarre+".jpg' class='bot' onclick='tos"+bas+".page"+bas+".value=1;paging"+bas+"(tos"+bas+".page"+bas+".value)'")
   document.write("onmouseout='makevisible(this,1)' onmouseover='makevisible(this,0)' width=20 height=28></td>")
   document.write("<td><img src='images/barres/flechegauche2"+bas+colbarre+".jpg' class='bot' onclick='if (tos"+bas+".page"+bas+".value &gt;1) {tos"+bas+".page"+bas+".value--;paging"+bas+"(tos"+bas+".page"+bas+".value)}'")
   document.write("onmouseout='makevisible(this,1)' onmouseover='makevisible(this,0)' width=20 height=28></td>")
   document.write("<td><input type='hidden' name='page"+bas+"' value='"+pager+"'><input type='text' name='fpage"+bas+"' size='4' style='background-color: "+rvbcolbarre+";color: "+colpagetexte+"; text-align: center' value='"+pager+"/"+maxpage+"'></td>")
   document.write("<td><img src='images/barres/flechedroite2"+bas+colbarre+".jpg' class='bot' onclick='if (tos"+bas+".page"+bas+".value*1 < maxpage) {tos"+bas+".page"+bas+".value++;paging"+bas+"(tos"+bas+".page"+bas+".value)}'")

   document.write("onmouseout='makevisible(this,1)' onmouseover='makevisible(this,0)' width=20 height=28></td>")

   document.write("<td><img src='images/barres/flechedroite1"+bas+colbarre+".jpg' class='bot' onclick='tos"+bas+".page"+bas+".value=maxpage;paging"+bas+"(tos"+bas+".page"+bas+".value)' onmouseout='makevisible(this,1)'")
   document.write("onmouseover='makevisible(this,0)' width=20 height=28></td><td></form></td><td width='30'>&nbsp;</td>")
   }


   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, modifier son profil",0) }
   if (nompseudo!="") { bouton("Déconnexion","connexion."+php3+"?valide=1&deconnecter=Deconnexion&config="+config+"&d=","Supprimer ses cookies",0) }
   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'><img src='images/barres/droite"+bas+colbarre+".gif' width=16 height=28></td> </tr></table>")

document.write("</div>")
if (bas=="") {bas="bas"}

}


