/****************************************************
* Créer le 16 juillet 2002, © Tony Martinez 		*
*   Javascript  pour le menu location & vente       *
*  modifié le 21 mars 2006                          *
*****************************************************/

var ver="n0";
       bName = navigator.appName;
       bVer = parseInt(navigator.appVersion); 
      if      (bName == "Netscape" && bVer >= 3) ver = "n3";
       else if (bName == "Netscape" && bVer == 2) ver = "n2";
       else if (bName == "Microsoft Internet Explorer" && bVer >=4) ver = "e4";
        else if (bName == "Microsoft Internet Explorer" && bVer >2) ver = "e3";     

 if (document.images) {
/**************************************************/
/*                   BOUTONS OFF                  */
/**************************************************/
rrn= new Array();
/* Sélection OFF pour la location (loca.html) */
    rrn[0]= new Image(197,19);
    rrn[0].src= "../images/design/boutons/objets/vap_off.gif";      /* sélection OFF Appartements locations */
    rrn[1] = new Image(197,19);
    rrn[1].src = "../images/design/boutons/objets/vbox_off.gif";     /* sélection OFF Place de parc/box locations */
    rrn[2] = new Image(197,19);
    rrn[2].src = "../images/design/boutons/objets/vloc_off.gif";     /* sélection OFF Locaux commerciaux locations */   
	rrn[3]= new Image(197,19);
    rrn[3].src= "../images/design/boutons/objets/vvil_off.gif";      /* sélection OFF Villas locations */
	
/* Sélection OFF pour la vente (vente.html) */ 
    rrn[4] = new Image(197,19);
    rrn[4].src = "../images/design/boutons/objets/vap_off.gif";     /* sélection OFF Appartements vente vente */
    rrn[5] = new Image(197,19);
    rrn[5].src = "../images/design/boutons/objets/vloc_off.gif";     /* sélection OFF Locaux commerciaux vente */
    rrn[6] = new Image(197,19);
    rrn[6].src = "../images/design/boutons/objets/viloc_off.gif";    /* sélection OFF Immeubles locatifs vente */
    rrn[7] = new Image(197,19);
    rrn[7].src = "../images/design/boutons/objets/vvil_off.gif";    /* sélection OFF Villas vente */
    rrn[8] = new Image(197,19);
    rrn[8].src = "../images/design/boutons/objets/vter_off.gif";    /* sélection OFF Terrains vente */
	
/**************************************************/
/*                   BOUTONS ON                  */
/**************************************************/
rrr= new Array();
/* Sélection On pour la location (loca.html) */
    rrr[0]= new Image(197,19);
    rrr[0].src= "../images/design/boutons/objets/vap_on.gif";     /* sélection ON Appartements locations */
    rrr[1] = new Image(197,19);
    rrr[1].src = "../images/design/boutons/objets/vbox_on.gif";    /* sélection ONPlace de parc/box locations*/
    rrr[2] = new Image(197,19);
    rrr[2].src = "../images/design/boutons/objets/vloc_on.gif";    /* sélection ON Locaux commerciaux locations */
    rrr[3]= new Image(197,19);
    rrr[3].src= "../images/design/boutons/objets/vvil_on.gif";     /* sélection ON Villas locations */
	
/* Sélection ON pour la vente (vente.html) */    
    rrr[4] = new Image(197,19);
    rrr[4].src = "../images/design/boutons/objets/vap_on.gif";      /* sélection ON Appartements vente */
    rrr[5] = new Image(197,19);
    rrr[5].src = "../images/design/boutons/objets/vloc_on.gif";     /* sélection ON Locaux commerciaux vente*/
	rrr[6] = new Image(197,19);
    rrr[6].src = "../images/design/boutons/objets/viloc_on.gif";    /* sélection ON Immeubles locatifs vente */
    rrr[7] = new Image(197,19);
    rrr[7].src = "../images/design/boutons/objets/vvil_on.gif";    /* sélection ON Villas vente */
	rrr[8] = new Image(197,19);
    rrr[8].src = "../images/design/boutons/objets/vter_on.gif";    /* sélection ON Terrains vente */

      }


    function changeImage(row,s)
	 {
         var h; 

        if (!document.images)
                return ;
           if (s==1)
           {
              document.images['r'+row].src = rrr[row-1].src;
           }
           else
           {
        document.images['r'+row].src = rrn[row-1].src;
           }
        }
