<!--

function ApriGallery(){
  try{
    if(screen.availWidth<851){
      xx=screen.availWidth-40;
      yy=screen.availHeight-40;
      x0=40/2;
      y0=40/2 - 10;
    }
    if(screen.availWidth>850){
      xx=screen.availWidth-350;
      yy=screen.availHeight-60;
      x0=350/2;
      y0=60/2 - 5;
    }
    var opt="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width="+xx+",height="+yy+",resizable=1,copyhistory=0,screenX="+x0+",screenY="+y0+"";
    win=window.open("","foto",opt);
    win.resizeTo(xx, yy);
    win.moveTo(x0, y0);
    win.location="photo/";
    win.focus();
  }catch(e){}
}

// Scritta sulla barra di stato

function Stato(str) {
	window.status=str
}

// Finestra di messaggio

function Msgbox(str) {
	alert(str)
}

// Nuova finestra html

function Aprifin(str1, str2, str3) {
	fin=window.open("",str2,str3)
	fin.document.write("<html><body><p><a href='javascript:this.close()'>")
	fin.document.write("<img src="+str1+" alt='Agriturismo Al Poggio Antico - clicca per chiudere !'>")
	fin.document.write("</a></p></body></html>")
}

// Nuova finestra html per E-mail

function Aprifinmail(str2, str3) {
	fin=window.open("",str2,str3)
	fin.document.write("<html><body bgcolor='#FFFFFF'>")
	fin.document.write("<table border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>")
        fin.document.write("<tr><td bgcolor='#FFFFFF'><a href='javascript:this.close()'>")
	fin.document.write("<img border='0' src='_immagini/burtsimpson.gif' alt='Agriturismo Al Poggio Antico - clicca per chiudere !' width='84' height='80'>")
	fin.document.write("</a></td><td bgcolor='#FFFFFF'><a href='javascript:this.close()'>")
	fin.document.write("<img border='0' src='_immagini/mailbird.gif' alt='Agriturismo Al Poggio Antico - clicca per chiudere !' width='54' height='60'>")
	fin.document.write("</a></td></tr></table>")
          
}

//-->

