<!--
function insertImg(id,path,alt)
{
  var img='<img src="'+path+'" alt="'+alt+'" />';
  if(parseInt(document.getElementById("imgBox").style.width)!=300)
  	document.getElementById("imgBox").style.width="300px";
  document.getElementById(id).innerHTML=img;
}

function sendForm(nome,azione,parametri)
{
  document.forms[nome].action=azione+parametri;
  document.forms[nome].submit();
}


function imgBig(lang,path,alt,x,y)
{
 
 if(lang="en")
	  var chiusura=" close ";
 
 else if(lang="it")
	  var chiusura=" chiudi ";
 

  var marginPopup=20;
  var windowH=y+(marginPopup*3);
  var windowW=x+(marginPopup*2);
  var Ydest=(screen.availHeight/2)-(windowH/2)-10;
  var Xdest=(screen.availWidth/2)-(windowW/2);
  var s = "left="+Xdest+",top="+Ydest+",width="+windowW+",height="+windowH;
	var popup=window.open('','popup',s);
	popup.document.open();
	alt=alt.replace(/\*/g,"'");
	popup.document.write('<html><head><title>Agriturismo Il Galampio</title><style>@import url(../popup.css);</style></head>');
	popup.document.write('<body><img src="pop/'+path+'.jpg" alt="'+alt+'" />');
	popup.document.write('<body><div>'+alt+'</div><div class="close">[ <a href="javascript:window.close();">chiudi</a> ]</div></body></html>');
	popup.document.close();
}


function meteo(str) {

        searchWin = window.open(str,'esempio1','scrollbars=no,resizable=no,width=660,height=400,status=no,location=no,toolbar=no,top=100');

//        searchWin.refer = self;

}

function visite(str) {

        searchWin = window.open(str,'esempio1','scrollbars=no,resizable=no,width=415,height=190,status=no,location=no,toolbar=no,top=200,left=200');

//        searchWin.refer = self;

}

function packaging(str) {

        searchWin = window.open(str,'esempio','scrollbars=no,resizable=no,width=310,height=181,status=no,location=no,toolbar=no');

//        searchWin.refer = self;

}



//-->

