var aryMesiIT=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],aryGiorniIT=["Domenica","Luned%EC","Marted%EC","Mercoled%EC","Gioved%EC","Venerd%EC","Sabato"],aryMesiBreviIT=["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],aryGiorniBreviIT=["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],aryTratIT=["Mostra tutti i disponibili","Bed %26 Breakfast","Mezza Pensione","Pensione Completa","Solo Pernottamento"],aryGiorniEN=
["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],aryMesiEN=["January","February","March","April","May","June","July","August","September","October","November","December"],aryMesiBreviEN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aryGiorniBreviEN=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],aryTratEN=["Show any available","Bed %26 Breakfast","Half Board","Full Board","Room Only"],aryGiorniDE=["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag",
"Freitag","Samstag"],aryMesiDE=["Januar","Februar","Maerz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],aryMesiBreviDE=["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],aryGiorniBreviDE=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],aryTratDE=["Show any available","%DCbernachtung/Fr%FChst%FCck","Halbpension","Vollpension","%DCbernachtung"],aryGiorniFR=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],aryMesiFR=["Janvier",
"F%E9vrier","Mars","Avril","Mai","Juin","Juillet","Ao%FBt","Septembre","Octobre","Novembre","D%E9cembre"],aryMesiBreviFR=["janv.","f%E9vr.","mars","avr.","mai","juin","juil.","ao%FBt","sept.","oct.","nov.","d%E9c."],aryGiorniBreviFR=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],aryTratFR=["Show any available","Bed %26 Breakfast","Demi-pension","Pension compl%E8te","Seulement chambres"],aryMesiES=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],
aryGiorniES=["Domingo","Lunes","Martes","Mi%E9rcoles","Jueves","Viernes","Sabado"],aryMesiBreviES=["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],aryGiorniBreviES=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],aryTratES=["Show any available","Alojamiento y desayuno","Media pensi%F3n","Pensi%F3n completa","Solo alojamiento"],aryMesiBreviPT=["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],aryGiorniPT=["Domingo","Segunda-feira","Ter%E7a-feira","Quarta-feira",
"Quinta-feira","Sexta-feira","S%E1bado"],aryGiorniBreviPT=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],aryTratPT=["Amostras dispon\ufffdveis","Bed %26 Breakfast","Meia-pens%E3o","Pens%E3o Completa","S%F3 Pernoite"],aryGiorni=null,aryMesi=null,aryMesiBrevi=null,aryGiorniBrevi=null,aryTrat=null,aryGiorniSel=null,aryMesiSel=null,Step=1,DataArrivoGiorno="ddlArrivoGiorno",DataArrivoMese="ddlArrivoMese",DataArrivoAnno="ddlArrivoAnno",DataPartenzaGiorno="ddlPartenzaGiorno",DataPartenzaMese="ddlPartenzaMese",
DataPartenzaAnno="ddlPartenzaAnno",Persone="ddlPersone",Bambini="ddlBambini",Camere="ddlCamere",Trattamenti="ddlTrattamento",DivGiornoArrivo="dvGiornoArrivo",DivGiornoPartenza="dvGiornoPartenza",GuidStruttura="",CodLingua="EN",bolSoloMultipli=!1,intMinStay=1,intReleaseDays=0,strGiorni="0,1,2,3,4,5,6",aryGiorniChkIn=this.strGiorni.split(","),strTratSel="1,2",aryTratSel=this.strTratSel.split(","),TipoDescrGiorni=0,TipoDescrMesi=0,TipoDescrAnni=1,bolChkConfigurazione=!0,MaxCam=4,MaxAdu=6,MaxKid=4,minEtaBambini=
0,maxEtaBambini=12,aryCam=[],HttpHost="https://www.simplebooking.it",BookUrl=HttpHost+"/booking.aspx",CancUrl=HttpHost+"/booking.aspx",Calendar=HttpHost+"/Inclusioni/Popup/calendario_javascript.aspx";this.onload=function(){InizializzaModulo()};var scriptloaded=!1;
function InizializzaModulo(){this.GuidStruttura=GetObj("GUID").value;this.CodLingua=GetObj("LANG").value;if(this.GuidStruttura!=null&&this.CodLingua!=null&&this.scriptloaded==!1){try{this.aryGiorni=eval("aryGiorni"+this.CodLingua),this.aryMesi=eval("aryMesi"+this.CodLingua),this.aryMesiBrevi=eval("aryMesiBrevi"+this.CodLingua),this.aryGiorniBrevi=eval("aryGiorniBrevi"+this.CodLingua),this.aryTrat=eval("aryTrat"+this.CodLingua)}catch(a){this.aryGiorni=this.aryGiorniEN,this.aryMesi=this.aryMesiEN,this.aryMesiBrevi=
this.aryMesiBreviEN,this.aryGiorniBrevi=this.aryGiorniBreviEN}if(this.aryGiorni==null||this.aryMesi==null||this.aryMesiBrevi==null||this.aryGiorniBrevi==null||this.aryTrat==null)this.aryGiorni=this.aryGiorniEN,this.aryMesi=this.aryMesiEN,this.aryMesiBrevi=this.aryMesiBreviEN,this.aryGiorniBrevi=this.aryGiorniBreviEN,this.aryTrat=this.aryTratEN;try{this.aryMesiSel=this.TipoDescrMesi?this.TipoDescrMesi==1?this.aryMesi:this.aryMesiBrevi:this.aryMesiBrevi}catch(b){this.aryMesiSel=this.aryMesiBrevi}try{this.aryGiorniSel=
this.TipoDescrGiorni?this.TipoDescrGiorni==1?this.aryGiorni:this.aryGiorniBrevi:this.aryGiorniBrevi}catch(d){this.aryGiorniSel=this.aryGiorniBrevi}var c=GetObj(DataArrivoGiorno),e=GetObj(DataArrivoMese),g=GetObj(DataArrivoAnno),m=GetObj(DataPartenzaGiorno),h=GetObj(DataPartenzaMese),o=GetObj(DataPartenzaAnno),n=GetObj(Persone),j=GetObj(Camere),l=GetObj(Trattamenti);if(c==null&&e==null&&g==null&&m==null&&h==null&&o==null&&n==null)MostraErroreConfigurazione(),bolChkConfigurazione=!1;else{c.onchange=
function(){CheckDates()};m.onchange=function(){CheckDates()};e.onchange=function(){SetDays("0")};h.onchange=function(){SetDays("1")};g.onchange=function(){SetDays("0")};o.onchange=function(){SetDays("1")};var i=new Date;n=i.getFullYear();var p=i.getMonth(),q=i.getDate()+intReleaseDays;i=new Date(parseInt(n),parseInt(p),parseInt(q));n=i.getFullYear();p=i.getMonth();q=i.getDate();for(var f=c.options.length;f>=0;f--)c.options[f]=null;for(f=m.options.length;f>=0;f--)m.options[f]=null;for(f=1;f<=31;f++){i=
c.options.length;var k=new String(f);c.options[i]=new Option(k.length<2?"0"+k:k);c.options[i].value=k;m.options[i]=new Option(k.length<2?"0"+k:k);m.options[i].value=k}for(f=e.options.length;f>=0;f--)e.options[f]=null;for(f=h.options.length;f>=0;f--)h.options[f]=null;for(c=0;c<12;c++)i=e.options.length,e.options[i]=new Option(unescape(this.aryMesiSel[c])),e.options[i].value=c+1,h.options[i]=new Option(unescape(this.aryMesiSel[c])),h.options[i].value=c+1;try{if(this.intTipoDescrAnni)this.TipoDescrAnni=
this.intTipoDescrAnni}catch(r){this.TipoDescrAnni=1}for(f=g.options.length;f>=0;f--)g.options[f]=null;for(f=o.options.length;f>=0;f--)o.options[f]=null;for(e=0;e<3;e++)h=n+e,i=g.options.length,this.TipoDescrAnni==1?(g.options[i]=new Option(h),g.options[i].value=h,o.options[i]=new Option(h)):(c=new String(h),g.options[i]=new Option(c.substring(2,4)),g.options[i].value=h,o.options[i]=new Option(c.substring(2,4))),o.options[i].value=h;if(j!=null){for(f=j.options.length;f>=0;f--)j.options[f]=null;for(g=
1;g<=MaxCam;g++)i=j.options.length,j.options[i]=new Option(g),j.options[i].value=g;SetCamere(j)}j.onchange=function(){SetCamere(this)};try{if(this.SoloMultipli)this.bolSoloMultipli=this.SoloMultipli}catch(v){this.bolSoloMultipli=!1}try{if(this.MininumStay)this.intMinStay=this.MininumStay}catch(t){this.intMinStay=1}try{if(this.GiorniPrenotabili)this.strGiorni=this.GiorniPrenotabili;this.aryGiorniChkIn=this.strGiorni.split(",")}catch(u){this.strGiorni="0,1,2,3,4,5,6",this.aryGiorniChkIn=this.strGiorni.split(",")}try{if(this.TrattamentiSelezionati)this.strTratSel=
this.TrattamentiSelezionati;this.aryTratSel=this.strTratSel.split(",")}catch(s){this.strTratSel="1,2",this.aryTratSel=this.strTratSel.split(",")}SetDays("0",q,p+1,n);if(l!=null){for(f=l.options.length;f>=0;f--)l.options[f]=null;l.options[0]=new Option(aryTrat[0]);for(j=l.options[0].value=0;j<aryTratSel.length;j++)i=l.options.length,l.options[i]=new Option(unescape(aryTrat[aryTratSel[j]])),l.options[i].value=aryTratSel[j]}this.scriptloaded=!0}}}
function MostraErroreConfigurazione(){var a="Errore di configurazione!\n";a+="Si  verificato un errore durante l'inizializzazione del modulo di ricerca.\n";a+="Ecco un riepilogo degli oggetti mancanti:";var b=GetObj(DataArrivoGiorno),d=GetObj(DataArrivoMese),c=GetObj(DataArrivoAnno),e=GetObj(DataPartenzaGiorno),g=GetObj(DataPartenzaMese),m=GetObj(DataPartenzaAnno),h=GetObj(Persone);b==null&&(a+="\n - Selezione giorno arrivo");d==null&&(a+="\n - Selezione mese arrivo");c==null&&(a+="\n - Selezione anno arrivo");
e==null&&(a+="\n - Selezione giorno partenza");g==null&&(a+="\n - Selezione mese partenza");m==null&&(a+="\n - Selezione anno partenza");h==null&&(a+="\n - Selezione numero di persone");alert(a)}
function SetCamere(a){NCam=parseInt(a[a.selectedIndex].value,10);for(a=1;a<=MaxCam;a++){var b=document.getElementById("dvCam"+a),d=document.getElementById("dvCam"+a+"Lbl");if(b!=null)if(a<=NCam){if(PreparaDatiCamere(a),b.style.display="",d!=null)d.style.display=""}else if(EliminaDati(a),b.style.display="none",d!=null)d.style.display="none";b=document.getElementById("Cam"+a+"Bambini");b!=null&&b.options.length>0&&SetFasce(b,a)}}
function SetFasce(a,b){NKid=parseInt(a[a.selectedIndex].value,10);for(var d=1;d<=MaxKid;d++){var c=document.getElementById("dvEta"+b+d);if(c!=null)c.style.display=d<=NKid?"block":"none"}}
function PreparaDatiCamere(a){var b=document.getElementById("Cam"+a+"Adulti"),d=document.getElementById("Cam"+a+"Bambini");if(b.options.length!=MaxAdu)for(e=1;e<=MaxAdu;e++){var c=b.options.length;b.options[c]=new Option(e);b.options[c].value=e;if(aryCam.length>=a)if(e==ContaAdulti(aryCam[a-1]))b.options[c].selected=!0;else{if(e==2&&b.selectedIndex==-1)b.options[c].selected=!0}else if(e==2)b.options[c].selected=!0}if(d!=null&&d.options.length-1!=MaxKid)for(e=0;e<=MaxKid;e++)if(c=d.options.length,
d.options[c]=new Option(e),d.options[c].value=e,aryCam.length>=a&&e==ContaBambini(aryCam[a-1]))d.options[c].selected=!0,SetFasce(d,a);for(var e=1;e<=MaxKid;e++)if(b=document.getElementById("Cam"+a+"Fascia"+e),b!=null&&b.options.length!=maxEtaBambini-minEtaBambini+1)for(d=minEtaBambini;d<=maxEtaBambini;d++)if(c=b.options.length,b.options[c]=new Option(d),b.options[c].value=d,aryCam.length>=a&&d==GetFascia(aryCam[a-1],e))b.options[c].selected=!0}
function EliminaDati(a){for(var b=document.getElementById("Cam"+a+"Adulti"),d=document.getElementById("Cam"+a+"Bambini"),c=b.options.length;c>=0;c--)b.options[c]=null;if(d!=null){for(b=d.options.length;b>=0;b--)d.options[b]=null;for(d=1;d<=MaxKid;d++){b=document.getElementById("Cam"+a+"Fascia"+d);document.getElementById("dvEta"+a+d).style.display="none";for(c=b.options.length;c>=0;c--)b.options[c]=null}}}
function RecuperaCapienzaCamere(a){var b=document.getElementById("ddlPersone"),d=document.getElementById("NB"),c=document.getElementById("CAP");c.value="";a=parseInt(a[a.selectedIndex].value,10);for(var e=0,g=0,m=1;m<=a;m++){var h="",o=document.getElementById("dvCam"+m);if(o!=null&&o.style.display!="none"){var n=document.getElementById("Cam"+m+"Adulti");o=document.getElementById("Cam"+m+"Bambini");n=parseInt(n[n.selectedIndex].value,10);e+=n;for(var j=1;j<=n;j++)h+=(h.length>0?",":"")+"A";if(o!=null){o=
parseInt(o[o.selectedIndex].value,10);for(n=1;n<=o;n++)g++,j=document.getElementById("Cam"+m+"Fascia"+n),h+=(h.length>0?",":"")+j[j.selectedIndex].value}}h.length>0&&(c.value+=(c.value.length>0?"|":"")+h)}b.value=e;d.value=g;return c.value.length>0}function ContaAdulti(a){a=a.split(",");for(var b=0,d=0;d<a.length;d++)a[d]=="A"&&b++;return b}function ContaBambini(a){a=a.split(",");for(var b=0,d=0;d<a.length;d++)a[d]!="A"&&b++;return b}var wndFrm=null;
function Ricerca(){if(this.bolChkConfigurazione==!1)MostraErroreConfigurazione();else{this.GuidStruttura=GetObj("GUID").type=="hidden"?GetObj("GUID").value:GetObj("GUID")[GetObj("GUID").selectedIndex].value;wndFrm!=null&&(wndFrm.closed||wndFrm.close());var a=new String("OnlineBooking_"+this.GuidStruttura);wndFrm=window.open("",a.replace(/-/g,""),"scrollbars=no,resizable=yes,location=no,menubar=no,status=yes,width=630,height=400");a=GetObj(Camere);CheckDates();RecuperaCapienzaCamere(a);if(wndFrm!=
null){try{ImpostaLoad(wndFrm)}catch(b){wndFrm.closed||wndFrm.close(),wndFrm=window.open("","OnlineBooking_"+this.GuidStruttura,"scrollbars=no,resizable=yes,location=no,menubar=no,status=yes,width=630,height=400"),ImpostaLoad(wndFrm)}timer=setTimeout("LanciaForm()",2E3);a=this.BookUrl+"?GUID="+this.GuidStruttura+"&LANG="+this.CodLingua+"&DO=SEARCH";var d=GetObj("frm");d.target=wndFrm.name;d.action=a}}}
function ImpostaLoad(a){a.id=a.name;a.document.open();a.document.write("Loading...");a.document.close()}function LanciaForm(){this.bolChkConfigurazione==!1?MostraErroreConfigurazione():document.frm.submit()}function GetObj(a){return document.getElementById?document.getElementById(a):eval("document.all."+a)}
function ReimpostaCamere(){if(this.bolChkConfigurazione==!1)MostraErroreConfigurazione();else{var a=GetObj(Persone),b=GetObj(Camere);if(b!=null){a=a[a.selectedIndex].value;for(var d=b[b.selectedIndex].value,c=b.options.length;c>=0;c--)b.options[c]=null;for(c=1;c<=a;c++){var e=b.options.length;b.options[e]=new Option(c);b.options[e].value=c;if(c==d)b.options[e].selected=!0}}}}
function SetDays(a,b,d,c){if(this.bolChkConfigurazione==!1)MostraErroreConfigurazione();else{a=a==null?"":a;b=b==null?"":b;d=d==null?"":d;c=c==null?"":c;var e=GetObj(DataArrivoGiorno),g=GetObj(DataArrivoMese),m=GetObj(DataArrivoAnno),h=GetObj(DataPartenzaGiorno),o=GetObj(DataPartenzaMese),n=GetObj(DataPartenzaAnno),j=g,l=m;a=="1"&&(e=h,j=o,l=n);n=new Date;h=n.getDate();m=n.getMonth();n.getFullYear();var i=new Date(parseInt(c),parseInt(d)-1,parseInt(b)),p=[1,2,3,4,5,6,7,8,9,10,11,12],q=28,f=c==""?
l[l.selectedIndex].value:c;f/4==Math.round(f/4)&&(q=29);q=[31,q,31,30,31,30,31,31,30,31,30,31];f="";if(e.selectedIndex!=-1)f=e[e.selectedIndex].value;b!=""&&(f=b);if(c!="")for(var k=0;k<l.options.length;k++){if(l.options[k].value==c){l.options[k].selected=!0;c=parseInt(l.options[k].value);break}}else c=parseInt(l[l.selectedIndex].value);for(k=e.options.length;k>=0;k--)e.options[k]=null;for(l=0;l<p.length;l++)if(parseInt(p[l])==parseInt(j[j.selectedIndex].value)&&d==""||parseInt(p[l])==parseInt(d)){for(k=
0;k<q[l];k++){var r=new String(k+1),v=new Date(c,p[l]-1,r),t=!1;if(a=="1"&&!this.bolSoloMultipli)t=!0;else for(var u=0;u<aryGiorniChkIn.length;u++)if(v.getDay()==parseInt(aryGiorniChkIn[u])){t=!0;break}if(t){var s=e.options.length;e.options[s]=new Option(r.length<2?"0"+r:r);e.options[s].value=r;if(f!=""&&parseInt(f)==parseInt(e.options[s].value))e.options[s].selected=!0}}if(this.bolSoloMultipli&&(e.selectedIndex==-1||e.options[s].value<b)){SetDays(a,1,parseInt(p[l])+1,c);return}}if(e.selectedIndex==
-1){for(b=0;b<e.options.length;b++)if(parseInt(e.options[b].value)>=h){e.options[b].selected=!0;break}if(e.selectedIndex==-1)e.options[0].selected=!0}else if(e.options[e.selectedIndex].value<h&&n>i&&(a=="1"&&j.selectedIndex==m&&j.options[j.selectedIndex].value==g.options[g.selectedIndex].value||a!="1"&&j.selectedIndex==m&&j.options[j.selectedIndex].value==o.options[o.selectedIndex].value)){e.selectedIndex=-1;for(b=0;b<e.options.length;b++)if(parseInt(e.options[b].value)>=h){e.options[b].selected=
!0;break}}if(d!="")for(k=0;k<j.options.length;k++)if(j.options[k].value==d){j.options[k].selected=!0;break}a!="1"&&CheckDates();StampaStringaGiorno()}}
function StampaStringaGiorno(){if(this.bolChkConfigurazione==!1)MostraErroreConfigurazione();else{var a=GetObj(DivGiornoArrivo),b=GetObj(DivGiornoPartenza);if(a!=null&&b){var d=GetObj(DataArrivoGiorno),c=GetObj(DataArrivoMese),e=GetObj(DataArrivoAnno),g=GetObj(DataPartenzaGiorno),m=GetObj(DataPartenzaMese),h=GetObj(DataPartenzaAnno);if(d.selectedIndex!=-1&&c.selectedIndex!=-1&&e.selectedIndex!=-1)c=c.selectedIndex,d=d.options[d.selectedIndex].value,e=new Date(parseInt(e.options[e.selectedIndex].value),
parseInt(c),parseInt(d)),a.innerText=this.aryGiorniSel[e.getDay()];if(g.selectedIndex!=-1&&m.selectedIndex!=-1&&h.selectedIndex!=-1)a=m.selectedIndex,g=g.options[g.selectedIndex].value,h=new Date(parseInt(h.options[h.selectedIndex].value),parseInt(a),parseInt(g)),b.innerText=this.aryGiorniSel[h.getDay()]}}}
function CheckDates(){if(this.bolChkConfigurazione==!1)MostraErroreConfigurazione();else{var a=GetObj(DataArrivoGiorno),b=GetObj(DataArrivoMese),d=GetObj(DataArrivoAnno),c=GetObj(DataPartenzaGiorno),e=GetObj(DataPartenzaMese),g=GetObj(DataPartenzaAnno);b=b.selectedIndex;a=a.options[a.selectedIndex].value;g=g.options[g.selectedIndex].value;e=e.selectedIndex;c=c.options[c.selectedIndex].value;d=new Date(parseInt(d.options[d.selectedIndex].value),parseInt(b),parseInt(a));c=(new Date(parseInt(g),parseInt(e),
parseInt(c))).valueOf()-d.valueOf();parseInt(c/1E3/60/60/24)<this.intMinStay&&(d.setDate(d.getDate()+this.intMinStay),SetDays("1",d.getDate(),d.getMonth()+1,d.getYear()));this.StampaStringaGiorno()}}function ChkDatePrenotazione(){if(this.bolChkConfigurazione==!1)MostraErroreConfigurazione();else return this.CheckDates(),!0}var wndCal=null;
function ApriCalendario(a){DalGiornoObj=GetObj(DataArrivoGiorno);DalMeseObj=GetObj(DataArrivoMese);DalAnnoObj=GetObj(DataArrivoAnno);AlGiornoObj=GetObj(DataPartenzaGiorno);AlMeseObj=GetObj(DataPartenzaMese);AlAnnoObj=GetObj(DataPartenzaAnno);var b="";b+="/calendar.php";b+="?GUID="+this.GuidStruttura;b+="&LANG="+this.CodLingua;b+="&MESE="+(a=="0"?DalMeseObj[DalMeseObj.selectedIndex].value:AlMeseObj[AlMeseObj.selectedIndex].value);b+="&ANNO="+(a=="0"?DalAnnoObj[DalAnnoObj.selectedIndex].value:AlAnnoObj[AlAnnoObj.selectedIndex].value);
b+="&TIPO="+a;b+="&DAL_GIORNO="+DalGiornoObj[DalGiornoObj.selectedIndex].value;b+="&DAL_MESE="+DalMeseObj[DalMeseObj.selectedIndex].value;b+="&DAL_ANNO="+DalAnnoObj[DalAnnoObj.selectedIndex].value;b+="&AL_GIORNO="+AlGiornoObj[AlGiornoObj.selectedIndex].value;b+="&AL_MESE="+AlMeseObj[AlMeseObj.selectedIndex].value;b+="&AL_ANNO="+AlAnnoObj[AlAnnoObj.selectedIndex].value;wndCal!=null&&(wndCal.closed||wndCal.close());wndCal=window.open(b,"Calendar","scrollbar=yes,resizable=no,menu=no,status=no,width=160,height=161");
wndCal.focus()}function RecuperaDataDaCalendario(a,b,d,c){this.bolChkConfigurazione==!1?MostraErroreConfigurazione():SetDays(a,c,d,b)};
function OpenSimpleBooking(c,d,a){var b="31CAA7BB-3F4D-433D-AD19-742FE17173CA";a!=null&&(b=a);b!=null&&b!=""?(a="https://www.simplebooking.it/booking.aspx",a+="?GUID="+b,a+="&LANG="+(c!=null&&c!=""?c:"EN"),d!=null&&(a+="&DO="+d),window.open(a,"OnlineBooking","scrollbars=no,resizable=yes,location=no,menubar=no,status=no,width=630,height=400")):alert("Please specify a valid GUID.")};

