function statut(text) {
if (window.defaultStatus) window.defaultStatus ='CLOS HENRI - VINEYARD - Nouvelle Zélande'
 //if(self.name==top.name) { location.href="index.html" }
}

function getdElement(d,nm) {
  if(nm == '') return null;
  return d.getElementById?d.getElementById(nm):(d.all?d.all(nm):null)
}
function getElement(nm) { return getdElement(document,nm) }

function set800() {
 if (navigator.appName.indexOf('Microsoft')!=-1) {
 if (screen.availHeight>=600) if (screen.availWidth>=800) window.resizeTo(800,600)  }
}

function setOn(no){
	setOff(no)
	var item=getElement('mnu'+no)
	if (item) item.className='mnuON'
}
function setOff(no){
 for ( var i=1; i<12; i++){
	var item=getElement('mnu'+i)
	if (item){ if (no!=i) item.className='mnuOFF' }
 }
}

 function setM(s){
	if (s=='') s='../images/'
	var item = document.images['imenu']
	if (item) item.src=s+'menu.en.gif'
 }
 function setTitre(){
   var txt =getElement('txttitre')
   if (txt) {
      var t = getElement('titre')
      if (t) t.innerHTML =txt.innerHTML;
   }
 }

function affTitre(texte){
 var i = getElement('titre')
 if (i) i.innerHTML=texte;
}

function preloadImages(){
// onload="preloadImages('images/m1.gif', ... , 'images/m42.gif')" 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

var nouveau;
function photo(nom, width, height){
 if (nouveau) {	if ( !nouveau.closed ) nouveau.close(); }
 nouveau =window.open('','photo','height='+height+',width='+width+',status=no,toolbar=no,menubar=no,location=no');
 nouveau.document.write('<html><body onLoad="window.focus();" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff" onclick="window.close()" scroll="no"><center><img src="'+nom+'" style="cursor:hand;" border="0" alt=""></center></body></html>');
}
function pop(nom, width, height){
 if (nouveau) {	if ( !nouveau.closed ) nouveau.close(); }
 nouveau =window.open(nom,'photo','height='+height+',width='+width+', scrollbars=yes, status=no,toolbar=no,menubar=no,location=no');
}

function stopError() { return true; }
 
window.onerror = stopError;
window.onload=statut;







