function move(cible,source)
{ 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+'&goal='+source;
}
function move2(cible)
{ window.location.href=cible;
}
function pic(calq,pag,alti)
{
document.write("<a href='"+pag+"'>");
document.write("<img src='images/"+calq+"1.png' border='0' name='"+calq+"' alt='"+alti+"' ");
document.write("onMouseOver=\"document."+calq+".src='images/"+calq+"2.png'\" ");
document.write("onMouseOut=\"document."+calq+".src='images/"+calq+"1.png'\" ");
document.write("onMouseDown=\"document."+calq+".src='images/"+calq+"3.png'\" ");
document.write("onMouseUp=\"document."+calq+".src='images/"+calq+"1.png'\"></a>");
}
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 on_off(calq)
{ if (document.layers)
     {	for(aa=0;aa<8;aa++)
           { document.layers['vin' + aa].visibility='hide';
           }
        document.layers['vin' + calq].visibility='show';
     }
  else
     {  for(aa=0;aa<8;aa++)
           { document.all['vin' + aa].style.visibility='hidden';
           }
        document.all['vin' + calq].style.visibility='visible';
     }
}
function on_off1(calq,last)
{ vin=calq;
  if (document.layers)
     {	for(aa=1;aa<last;aa++)
           { document.layers['vin' + aa].visibility='hide';
             document.layers['com' + aa].visibility='hide';
           }
        document.layers['vin' + calq].visibility='show';
        document.layers['com' + calq].visibility='show';
     }
  else
     {  for(aa=1;aa<last;aa++)
           { document.all['vin' + aa].style.visibility='hidden';
             document.all['com' + aa].style.visibility='hidden';
           }
        document.all['vin' + calq].style.visibility='visible';
        document.all['com' + calq].style.visibility='visible';
     }
}

function on_off2(calq)
{ if (document.layers)
     {	for(aa=0;aa<3;aa++)
           { document.layers['txt' + aa].visibility='hide';
           }
        document.layers['txt' + calq].visibility='show';
     }
  else
     {  for(aa=0;aa<3;aa++)
           { document.all['txt' + aa].style.visibility='hidden';
           }
        document.all['txt' + calq].style.visibility='visible';
     }
}

var lespages=['index.php','photos.php','vins.php','famille.php','cepages.php','infos.php'];

function pic_on(bando)
{ document.all[bando].src='images/'+bando+'nb.jpg';
}
function pic_off(bando)
{ document.all[bando].src='images/'+bando+'.jpg';
}
function allez(cible)
{ targt=lespages[cible];
  window.location.href=targt;
}
function shows(addr,lg,hi,titre)
{
photo = open('','','width='+lg+',height='+hi+',toolbar=no,scrollbar=no')
photo.document.write('<html><head><title>'+titre+'</title></head>');
photo.document.write("<body onload='javascript:self.focus()' background= 'actu/",addr,"'>");
photo.document.write("</body></html>");
}

function contact3()
{  window.location.href='courrier.php';
}
