<!--
/*
Ce script une precision (image) en passant la souris sur les boutons
 et inscrit un texte dans le status.

L'image de la boite doit avoir le parametre name=tele
il faut parametrer options= nombre de boutons
L'image de la precision doit s'appeler rollover1 .. x .jpg
L'image vide doit s'appeler rolloverblank.jpg

Ex pour les liens des boutons dans la page par la suite:

<a href="produits.html" onmouseover="precis_bout('2','texte affiche dans le status'); return true"
	                    onmouseout="precis_bout('2',''); return true">
          <img SRC="boutoff2.jpg" NAME="img2" ALT="Nos produits" BORDER=0 height=24 width=173></a>

----------------------------------------------------------------------------
*/

var messageidle = "     * * *     B I E N V E N U E    s u r    C A M É L É O N . c o m     * * *  ";

if (document.images)
     {
     var options = 4;              // nombre de boutons pour la télé du haut
     var tvmenu = new Array();
     var tvgriche = new Image();
     var crochet1 = new Image();
     var crochet12 = new Image();
     var crochet0 = new Image();
     var crochet21 = new Image();
     var crochet20 = new Image();
     crochet0.src=('../g/crochet0.jpg');
     crochet1.src=('../g/crochet1.jpg');
     crochet12.src=('../g/crochet12.jpg');
     crochet20.src=('../g/crochet20.jpg');
     crochet21.src=('../g/crochet21.jpg');
     tvgriche.src=('../g/ro0.gif');
     for (g=0; g < options; g++)
          {
          var k = g + 1;
          tvmenu[g]=new Image();
          tvmenu[g].src=('../g/ro' + k + lang + '.gif');
          }
     window.status=messageidle;
     }


function VersionNavigateur(Netscape, Explorer)
     {
     if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||
        (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
        return true;
    else
         return false;
     }


function precis_bout(img,msg)
     {
     if ( (document.images) && (VersionNavigateur(3.0,4.0)) )
          {
          var indx = img - 1;
          var imgTele = 'tele';
          var bouton = 'bout' + img;
          if (msg == '')
               {
               document[imgTele].src=tvgriche.src;
               window.status=messageidle;
               }
          else
               {
               document[imgTele].src=tvmenu[indx].src;
               window.status=document[bouton].alt;
               }
          }
     return;
     }


function crochet(img,msg)
     {
     if ( (document.images) && (VersionNavigateur(3.0,4.0)) )
          {
          var indx = img - 1;
          var imgcrochet = 'crochet' + img;
          if (msg == '')
               {
               document[imgcrochet].src=crochet0.src;
               window.status=messageidle;
               }
          else
               {
               if ((img != 3) && (img != 4))
                    {
                    document[imgcrochet].src=crochet1.src;
                    }
               else
                    {
                    document[imgcrochet].src=crochet12.src;
                    }
               window.status=document[imgcrochet].alt;
               }
          }
     return;
     }

function crochetb(img,msg)
     {
     if ( (document.images) && (VersionNavigateur(3.0,4.0)) )
          {
          var indx = img - 1;
          var imgcrochet2 = 'crochet2' + img;
          if (msg == '')
               {
               document[imgcrochet2].src=crochet20.src;
               window.status=messageidle;
               }
          else
               {
               document[imgcrochet2].src=crochet21.src;
               window.status=document[imgcrochet2].alt;
               }
          }
     return;
     }

//-->
