// En haut a droite
function PubEnHautADroite ()
  {
    iNbBouquins=50;
    numBouquin=parseInt(Math.random()*iNbBouquins);

    szb = '<IMG SRC="http://www.bnains.org/livres/bouquins/';
    szbi = '<IMG SRC="http://www.bnains.org/livres/images/';
    szla = '<IMG SRC="http://www.bnains.org/order-amzn.gif" width="104" height="29" border="0" alt="" hspace="3" vspace="0">';
    szam = '<A HREF="http://www.amazon.fr/exec/obidos/ASIN/';

    switch ( numBouquin )
      {
        case 0:
          // 'Tout le monde mérite d'être riche'
          document.write ( szam+'2840014491/laboursepourl-21">' );
          document.write ( szb+'seban_petit.jpg" width="105" height="150" border="0" alt="Tout le monde mérite d\'être riche" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2840014491/laboursepourl-21">' );
          document.write ( szla+'</a>' );
          break;

        case 1:
          // Que sais-je 'La théorie moderne du portefeuille'
          document.write ( szam+'2130497683/laboursepourl-21">' );
          document.write ( szbi+'aftalion.jpg" width="92" height="140" border="0" alt="La théorie moderne du portefeuille" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2130497683/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 2:
          // Dubois 'Exercices de théorie financière et de gestion de portefeuille'
          document.write ( szam+'2804135306/laboursepourl-21">' );
          document.write ( szb+'dubois01.gif" width="92" height="140" border="0" alt="Exercices de théorie financière et de gestion de portefeuille" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2804135306/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 3:
          // Solnik 'Marchés Financiers : gestion de portefeuille et des risques'
          document.write ( szam+'2100063642/laboursepourl-21">' );
          document.write ( szbi+'solnik.jpg" width="99" height="140" border="0" alt="Marchés financiers : gestion de portefeuille et des risques" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2100063642/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 4:
          // Zweig
          document.write ( szam+'2909356159/laboursepourl-21">' );
          document.write ( szb+'zweig_01.jpg" width="98" height="140" border="0" alt="Acheter en Bourse au bon moment" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2909356159/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 5:
          // Bernstein 'Des idees capitales'
          document.write ( szam+'2130506704/laboursepourl-21">' );
          document.write ( szbi+'bernstein.jpg" width="91" height="140" border="0" alt="Des idées capitales" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2130506704/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 6:
          // 'Petit traité de manipulation à l'usage des honnêtes gens'
          document.write ( szam+'2706110449/laboursepourl-21">' );
          document.write ( szb+'joule_02a.jpg" width="91" height="140" border="0" alt="Petit traité de manipulation à l usage des honnêtes gens" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2706110449/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 7:
          // 'Analyse technique : Pratiques et méthodes'
          document.write ( szam+'2717843604/laboursepourl-21">' );
          document.write ( szb+'bechu_01.gif" width="89" height="140" border="0" alt="Analyse technique : Pratiques et méthodes" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2717843604/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 8:
          // Tvede
          document.write ( szam+'1895354374/laboursepourl-21">' );
          document.write ( szb+'tvede_01.jpg" width="97" height="150" border="0" alt="" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'1895354374/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 9:
          // 'Les chandeliers japonais'
          document.write ( szam+'2909356086/laboursepourl-21">' );
          document.write ( szb+'nison_01.jpg" width="99" height="140" border="0" alt="Les chandeliers japonais" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2909356086/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 10:
          // 'Les secrets des traders'
          document.write ( szam+'290935606X/laboursepourl-21">' );
          document.write ( szb+'schwager1.jpg" width="99" height="140" border="0" alt="Les secrets des traders" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'290935606X/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 11:
          // 'Lire un bilan, c'est simple !'
          document.write ( szam+'2702710921/laboursepourl-21">' );
          document.write ( szb+'regnard.jpg" width="99" height="140" border="0" alt="Lire un bilan, c est simple !" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2702710921/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 12:
          // Lynch 'Et si vous en saviez assez pour gagner en Bourse'
          document.write ( szam+'2909356140/laboursepourl-21">' );
          document.write ( szbi+'bernstein.jpg" width="91" height="140" border="0" alt="Et si vous en saviez assez pour gagner en Bourse ?" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2909356140/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 13:
          // Malkiel ''
          document.write ( szam+'2909356442/laboursepourl-21">' );
          document.write ( szbi+'malkiel_petit.jpg" width="92" height="140" border="0" alt="Une marche au hasard à travers la Bourse (A random walk down Wall Street)" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2921960079/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 14:
          // 'Chandeliers et autres techniques d'Extrême-Orient'
          document.write ( szam+'2909356248/laboursepourl-21">' );
          document.write ( szb+'nison_01.gif" width="99" height="140" border="0" alt="Chandeliers et autres techniques d\'Extrême-Orient" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2909356248/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 15:
          // 'Ils ont battu Wall Street'
          document.write ( szam+'2842111583/laboursepourl-21">' );
          document.write ( szb+'bass.jpg" width="99" height="140" border="0" alt="Ils ont battu Wall Street !" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2842111583/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 16:
          // 'Investir dans la valeur'
          document.write ( szam+'2909356310/laboursepourl-21">' );
          document.write ( szb+'greenwaldp.jpg" width="99" height="140" border="0" alt="Investir dans la valeur !" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2909356310/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 17:
          // 'Les structures du hasard'
          document.write ( szam+'2020092352/laboursepourl-21">' );
          document.write ( szbi+'boursin_p.jpg" width="99" height="140" border="0" alt="Les structures du hasard" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2020092352/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 18:
          // 'Les possédés de Wall Street'
          document.write ( szam+'2070325253/laboursepourl-21">' );
          document.write ( szb+'nora.jpg" width="99" height="140" border="0" alt="Les possédés de Wall Street" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2070325253/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 19:
          // 'Réussir en trading'
          document.write ( szam+'2909356329/laboursepourl-21">' );
          document.write ( szb+'tharp.jpg" width="99" height="140" border="0" alt="Réussir en trading" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2909356329/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 20:
          // 'Les bandes de Bollinger'
          document.write ( szam+'2909356345/laboursepourl-21">' );
          document.write ( szbi+'bollinger_p.jpg" width="99" height="140" border="0" alt="Les bandes de Bollinger" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2909356345/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 21:
          // 'Mais où sont les yachts des clients ?'
          document.write ( szam+'2913068081/laboursepourl-21">' );
          document.write ( szb+'schwed_p.jpg" width="98" height="152" border="0" alt="Mais où sont les yachts des clients ?" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2913068081/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 22:
          // 'La Nouvelle Finance'
          document.write ( szam+'2717846964/laboursepourl-21">' );
          document.write ( szb+'aftalion.jpg" width="90" height="140" border="0" alt="La Nouvelle Finance et la Gestion des Portefeuilles" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2717846964/laboursepourl-21">' );
          document.write ( szla );
          break;

        case 23:
          // 'Les comportements en Bourse'
          document.write ( szam+'284200504X/laboursepourl-21">' );
          document.write ( szb+'mangot.jpg" width="90" height="140" border="0" alt="Les comportements en Bourse, 6 erreurs psychologiques qui coûtent cher" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'284200504X/laboursepourl-21">' );
          document.write ( szla+'</a>' );
          break;

        default:
           // Weinstein
          document.write ( szam+'2909356027/laboursepourl-21">' );
          document.write ( szb+'stan_01.gif" width="108" height="148" border="0" alt="" hspace="3" vspace="0">' );
          document.write ( '</A><br>' );
          document.write ( szam+'2909356027/laboursepourl-21">' );
          document.write ( szla );
          break;
      }
  }

//met la banière du bas en place
function TirePubDuBasAuSort ()
  {
    return;
  }


function MessageHaut ( )
  {
    document.write( "<br><b><a href='/forums/index.php'>Visitez les forums de 'La Bourse pour les nains'</a></b>" );
  }

function MessageHautForums ( )
  {
    document.write( "<br><b><a href='/courtage/palmares.php'>Votre courtier est-il le meilleur ?</a></b>" );
  }

function MessageHautNew ( )
  {
    document.write( "<b><a href='http://vote.weborama.fr/fcgi-bin/vote.fcgi?32826' target='weborama'>Votez pour ce site au Weborama</A></b>" );
  }

function PubVerticaleDroite ( iNumPage )
  {
    iNbBannieres=7;
    numBanniere=parseInt(Math.random()*iNbBannieres);
    szBanniere = "";
    
    switch ( numBanniere )
      {
       case 0:
         // szBanniere = '<script language=javascript src="http://ads.fxclix.com/ad.aspx?pid=2557&bid=2130"></script>';
         szBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binck_120x600.gif" border="0"></a>';
         break;
   
       case 1:
         // szBanniere = '<script language=javascript src="http://ads.fxclix.com/ad.aspx?pid=2557&bid=2022"></script>';
         szBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binck_120x600.gif" border="0"></a>';
         break;
         
       case 2:
         // szBanniere = '<script language=javascript src="http://ads.fxclix.com/ad.aspx?pid=2557&bid=1933"></script>';
         szBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binck_120x600.gif" border="0"></a>';
         break;
         
       case 3:
         // szBanniere = '<script language=javascript src="http://ads.fxclix.com/ad.aspx?pid=2557&bid=1911"></script>';
         szBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binck_120x600.gif" border="0"></a>';
         break;
         
       case 4:
         // szBanniere = '<script language=javascript src="http://ads.fxclix.com/ad.aspx?pid=2557&bid=1851"></script>';
         szBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binck_120x600.gif" border="0"></a>';
         break;
         
       case 5:
         // szBanniere = '<script language=javascript src="http://ads.fxclix.com/ad.aspx?pid=2557&bid=1667"></script>';
         szBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binck_120x600.gif" border="0"></a>';
         break;
       
       case 6:
         szBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binck_120x600.gif" border="0"></a>';
         break;
         
       default:
         switch (iNumPage)
           {
             case 1 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; google_ad_slot = "3881422435"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             case 59 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; /* 160x600, RisqueCoteDroit, 20/07/09 */ google_ad_slot = "1226892656"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             case 212 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; /* 160x600, PalmaresCourtiersCoteDroit, 12/07/09 */ google_ad_slot = "8657530268"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             case 2 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; /* 160x600, MethodeCoteDroit, 10/07/09 */ google_ad_slot = "0672067691"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             case 210 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; /* 160x600, ListeaviCoteDroit, 18/07/09 */ google_ad_slot = "9339294242"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             case 121 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; /* 160x600, DerniersAvisCourtiersCoteDroit, 12/07/09 */ google_ad_slot = "1292151458"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             case 61 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; /* 160x600, CourtageDynamiqueCoteDroit, 12/07/09 */ google_ad_slot = "3744628355"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             case 6 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; /* 160x600, CourtageCoteDroit, 11/07/09 */ google_ad_slot = "9194064651"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             case 7 :
               szBanniere = '<script type="text/javascript"><!-- google_ad_client = "pub-9154682575484676"; /* 160x600, BibliograpghieCoteDroit, 11/07/09 */ google_ad_slot = "6982947348"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>';
               break;
             default :
               szBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binck_120x600.gif" border="0"></a>';
               break;
           }
         break;         
      }
    
    document.write(szBanniere);
  }

function TirePubAuSortExValueClick ( iNumPage )
  {
    szpBanniere = '<A HREF="http://oz.valueclick.com/redirect?host=hs0271719&t=std&b=indexpage&noscript=1&v=0;msizes=468x60;bso=listed" TARGET="_top"><IMG BORDER="0" WIDTH="468" HEIGHT="60" ALT="Click here to visit our sponsor" SRC="http://oz.valueclick.com/cycle?host=hs0271719&t=std&b=indexpage&noscript=1;msizes=468x60;bso=listed"></A>';
    document.write(szpBanniere);

  }

function TirePubAuSortForums ( iNumPage )
  {
    szpBanniere = '<a href="http://www.bnains.org/courtage/palmares.php"><img src="/images/pub_palmares.gif" border="0"></a>';

    document.write(szpBanniere);
  }

function TirePubAuSortEx ( iNumPage )
  {
    iNbBannieres=20;
    numBanniere=parseInt(Math.random()*iNbBannieres);
    
	
/*	
szpBanniere = '<center><script LANGUAGE="JavaScript" SRC="http://adserver.click-fr.com/print.js?l=3477&s=3601&w=468&h=60&r=20&t=0"></script><noscript><a href="http://adserver.click-fr.com/click.htm?l=3477&s=3601&b=auto&nbre=123" target="_blank"><img border=0 width=468 height=60 SRC="http://adserver.click-fr.com/print.js?l=3477&s=3601&w=468&h=60&nbre=123&t=4" alt="*** Visitez notre Sponsor ! ***"></a></noscript><font size=1><br><a href=http://www.click-fr.com target=_blank>Membre de Click-FR®, Réseau francophone Paie-Par-Click</a></font></center>';
*/

    switch ( numBanniere )
      {
       default:
         num=Math.random()*10;
         if (num<=3)
           {
             // Mot-clé 'Bourse'
             szpBanniere = '<iframe src="http://rcm-fr.amazon.fr/e/cm?t=laboursepourl-21&o=8&p=13&l=st1&mode=books-fr&search=bourse&=1&fc1=&lt1=&lc1=&bg1=&f=ifr" marginwidth="0" marginheight="0" width="468" height="60" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>';
           }
         else
           {
             if (num<=6)
               {
                 // Mot-clé 'Finance'
                 szpBanniere = '<iframe src="http://rcm-fr.amazon.fr/e/cm?t=laboursepourl-21&o=8&p=13&l=st1&mode=books-fr&search=finance&=1&fc1=&lt1=_blank&lc1=&bg1=&f=ifr" marginwidth="0" marginheight="0" width="468" height="60" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>';
               }
             else
               {
                 // szpBanniere = '<iframe src="http://rcm-fr.amazon.fr/e/cm?t=laboursepourl-21&o=8&p=26&l=ur1&category=offers&banner=12HQ49M83QMC3PCFDQG2&f=ifr" width="468" height="60" scrolling="no" border="0" style="border:none;" frameborder="0"></iframe>';
                 // szpBanniere = '<a href="http://binck.solution.weborama.fr/fcgi-bin/performance.fcgi?ID=403309&A=1&L=264252&C=9717&P=18864&T=E&URL"><img src="/Binckr_468x60.gif" border="0"></a>';
                 szpBanniere = '<a href="/courtage/redirection_binckbank.php"><img src="/Binckr_468x60.gif" border="0"></a>';
               }
           }
          break;
      }
	  
    document.write(szpBanniere);
  }

function BasDePage ( iNumZone, iNumPage, iNumAllStat, szNomPageEstat, szNomZoneEstat )
  {
    document.write( "<p align='center'>" );

    // estat
    if(_UJS)
      _estat('1000109834', szNomPageEstat , szNomZoneEstat );
    document.write ( '<NOSCRIPT>' );
    document.write ( '<A HREF="http://www.estat.com/getstats?serial=1000109834"><IMG SRC="http://perso.estat.com/m/00/1000109834?p='+szNomPageEstat+'&c='+szNomZoneEstat+'&st=0&sjs=0" BORDER="0"></A>' );
    document.write ( '</NOSCRIPT>' );
  }
