function move(cible)
{ if (parseInt(navigator.appVersion)>3) 
     { if (navigator.appName=="Netscape") 
          { widt = window.innerWidth;
            higt = window.innerHeight;
          }
       if (navigator.appName.indexOf("Microsoft")!=-1) 
          { var html = document.body.parentNode
            widt = html.offsetWidth
            higt = html.offsetHeight;
          }
     }
  window.location.href=cible+'?res='+widt+'&hig='+higt;
}
function move2(cible)
{ window.location.href=cible;
}

function on_off(calq)
{ if (document.layers)
     {	for(aa=1;aa<8;aa++)
           { document.layers['vin' + aa].visibility='hide';
           }
        document.layers['vin' + calq].visibility='show';
     }
  else
     {  for(aa=1;aa<8;aa++)
           { document.all['vin' + aa].style.visibility='hidden';
           }
        document.all['vin' + calq].style.visibility='visible';
     }
}

var actu=0;
var lespages=['home.php','album.php','gamme.php','histoire.php','vignoble.php','actu.php'];

function pic_on(bando)
{ document.all[bando].src='images/'+bando+'nb.jpg';
}
function pic_off(bando)
{ if (bando!=actu)
     {document.all[bando].src='images/'+bando+'.jpg'; 
     }
}
function allez(cible,re,hi,ra)
{ targt=lespages[cible]+'?res='+re+'&hig='+hi;
  parent.frames[1].location=targt;
  di=ra+cible;
  for(aa=0;aa<6;aa++)
     { de=ra+aa;
       if(de!=di)
         {document.all[de].src='images/'+de+'.jpg';
         }
     }
  actu=ra+cible;
}