var jsVersionPreventCache = "ci-601-57976e3"; var pgInit = {}; pgInit.vars = { promotions: '[{"id":"38","title":"Dinner Offer Campaign","description":"Dinner included every day of your reservation! ","linkLabel":"Click for more info","link":"10","bookBtn":"https:\/\/book.baratahotels.com\/?gc=d3d61fecd3ff0855a15968c327f4e0e8&l=en&nrNights=3&preselect=promo64&startDay=2026-10-10","image":"https:\/\/secure.guestcentric.net\/bin\/9d8b1f1b63292598\/thumb-campanha-agosto-sol-e-mar-1.webp"},{"id":"40","title":"New Year's Eve 2026 Package","description":"Accommodation with breakfast included + New Year's Eve Gala Dinner","linkLabel":"Click for more info","link":"10","bookBtn":"https:\/\/book.baratahotels.com\/?gc=d3d61fecd3ff0855a15968c327f4e0e8&l=en&nrNights=3&preselect=promo66&startDay=2026-12-29","image":"https:\/\/secure.guestcentric.net\/bin\/9d8b1f1b63292598\/thumb-sol-e-mar-banner-website-2.webp"},{"id":"19","title":"Double \/ Twin Room","description":"Balcony Sea View | For cancellations see terms and conditions","linkLabel":"Click for more info","link":"10","bookBtn":"https:\/\/book.baratahotels.com\/?gc=d3d61fecd3ff0855a15968c327f4e0e8&l=en&nrNights=3&preselect=promo38&startDay=2026-11-21","image":"https:\/\/secure.guestcentric.net\/bin\/9d8b1f1b63292598\/thumb-webp.net-resizeimage-3-23.jpg"},{"id":"36","title":"Premium Top Floor","description":"Balcony with Sea View | For cancellations see terms and conditions","linkLabel":"Click for more info","link":"10","bookBtn":"https:\/\/book.baratahotels.com\/?gc=d3d61fecd3ff0855a15968c327f4e0e8&l=en&nrNights=3&preselect=promo58&startDay=2026-11-21","image":"https:\/\/secure.guestcentric.net\/bin\/9d8b1f1b63292598\/thumb-junior-suite-3-4.webp"},{"id":"37","title":"Premium Triple Top Floor","description":"Balcony with Sea View | For cancellations see terms and conditions","linkLabel":"Click for more info","link":"10","bookBtn":"https:\/\/book.baratahotels.com\/?gc=d3d61fecd3ff0855a15968c327f4e0e8&l=en&nrNights=3&preselect=promo62&startDay=2026-11-21","image":"https:\/\/secure.guestcentric.net\/bin\/9d8b1f1b63292598\/thumb-junior-suite-3-4.webp"},{"id":"21","title":"Single Room","description":"Balcony Sea View | For cancellations see terms and conditions","linkLabel":"Click for more info","link":"10","bookBtn":"https:\/\/book.baratahotels.com\/?gc=d3d61fecd3ff0855a15968c327f4e0e8&l=en&nrNights=3&preselect=promo40&startDay=2026-11-21","image":"https:\/\/secure.guestcentric.net\/bin\/9d8b1f1b63292598\/thumb-17-copiar5.jpg"},{"id":"20","title":"Triple room","description":"Sea View Balcony | For cancellations see terms and conditions","linkLabel":"Click for more info","link":"10","bookBtn":"https:\/\/book.baratahotels.com\/?gc=d3d61fecd3ff0855a15968c327f4e0e8&l=en&nrNights=3&preselect=promo39&startDay=2026-11-21","image":"https:\/\/secure.guestcentric.net\/bin\/9d8b1f1b63292598\/thumb-10-copiar7.jpg"}]', displayTime: 10, transitionTime: 1.5, frameworkPath: 'https://secure.guestcentric.net/js/yui/build/', staticHost: "https:\/\/secure.guestcentric.net" }; !function(){"use strict";if(void 0!==window.pgInit&&pgInit.vars){var e={gadget:"promotionGadget",status:"waiting",start:function(){try{if(!pgInit)return;!function(){if(window.gcGa4ClientHandoff||document.getElementById("gc-ga4-client-handoff"))return;var e="undefined"!=typeof pgInit&&pgInit.vars&&pgInit.vars.staticHost||"undefined"!=typeof securePath&&securePath||"";if(!e)return;var t="undefined"!=typeof jsVersionPreventCache&&jsVersionPreventCache||"",i=document.createElement("script");i.id="gc-ga4-client-handoff",i.async=!0,i.src=e+"/js/gadgets/ga4ClientHandoff.min.js"+(t?"?v="+encodeURIComponent(t):""),document.head.appendChild(i)}(),t(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i()}catch(e){return t(),!1}}};window.gcGadgetStack?"loaded"===gcGadgetStack[gcGadgetStack.length-1].status?(e.status="loading",gcGadgetStack.push(e),e.start()):gcGadgetStack.push(e):(e.status="loading",window.gcGadgetStack=[e],e.start()),window.vars=window.vars||[]}function t(){for(var e=0,t=gcGadgetStack.length;e1){for(i=Math.floor(Math.random()*e.length);i===r.oldPromotionIndex;)i=Math.floor(Math.random()*e.length);r.oldPromotionIndex=i}return e[i]},this.openPromotion=function(){var e=r.link+"&url="+encodeURIComponent(window.location.toString()),t=window.self!==window.top,i=t?window.open("","_blank"):null;if(!t||i){!function(e,t){window.gcGa4ClientHandoff?window.gcGa4ClientHandoff.navigate(e,t):t(e)}(e,function(e){if(i)try{i.location=e}catch(t){window.open(e,"_blank")}else window.open(e,"_self")})}else window.open(e,"_blank")},this.build()}function o(e,t,i,n,o){if(n<=0)return e.style.opacity=String(i),void(o&&o());var a=null;requestAnimationFrame(function r(d){null===a&&(a=d);var s=(d-a)/n;s>1&&(s=1);var l=function(e){var t=1-e;return 1-t*t*t}(s),c=t+(i-t)*l;e.style.opacity=String(c),s<1?requestAnimationFrame(r):o&&o()})}}();