var jsVersionPreventCache = "ci-452-e9914d7"; var pgInit = {}; pgInit.vars = { promotions: '[{"id":"176","title":"Christmas in 2 Nights","description":"Christimas in 2 Nights","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.premiumportomaia.com\/?gc=08e1f7d9408e4155aed01aa060870fd9&l=pt&nrNights=2&preselect=promo238&startDay=2026-12-23","image":"https:\/\/secure.guestcentric.net\/bin\/7ac656155624c22b\/thumb-natal-10.webp"},{"id":"177","title":"Christmas in the Night","description":"Christimas in the Night","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.premiumportomaia.com\/?gc=08e1f7d9408e4155aed01aa060870fd9&l=pt&nrNights=1&preselect=promo239&startDay=2026-12-24","image":"https:\/\/secure.guestcentric.net\/bin\/7ac656155624c22b\/thumb-natal-12.webp"},{"id":"170","title":"Flex\u00edvel | Pequeno-Almo\u00e7o","description":"Cancelamento gratuito at\u00e9 2 dias antes da chegada","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.premiumportomaia.com\/?gc=08e1f7d9408e4155aed01aa060870fd9&l=pt&nrNights=1&preselect=promo232&startDay=2026-11-14","image":"https:\/\/secure.guestcentric.net\/bin\/7ac656155624c22b\/thumb-a7406070-hdr-4.webp"},{"id":"161","title":"Last Minute Deal ","description":"Pausa para um aviso de \u00faltima hora","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.premiumportomaia.com\/?gc=08e1f7d9408e4155aed01aa060870fd9&l=pt&nrNights=1&preselect=promo223&startDay=2026-11-14","image":"https:\/\/secure.guestcentric.net\/bin\/7ac656155624c22b\/thumb-hotel-premium-maia-aerial-3-6.webp"},{"id":"171","title":"N\u00e3o Reembols\u00e1vel | Pequeno-Almo\u00e7o ","description":"","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.premiumportomaia.com\/?gc=08e1f7d9408e4155aed01aa060870fd9&l=pt&nrNights=1&preselect=promo233&startDay=2026-11-14","image":"https:\/\/secure.guestcentric.net\/bin\/7ac656155624c22b\/thumb-a7405797-hdr-2.webp"},{"id":"179","title":"The longest 2 Nights of the year ","description":"The most longs 2 Nights of the year ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.premiumportomaia.com\/?gc=08e1f7d9408e4155aed01aa060870fd9&l=pt&nrNights=2&preselect=promo241&startDay=2026-12-29","image":"https:\/\/secure.guestcentric.net\/bin\/7ac656155624c22b\/thumb-ano-novo-2026-4.webp"},{"id":"178","title":"The longest Night of the year ","description":"The most long Night of the year ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.premiumportomaia.com\/?gc=08e1f7d9408e4155aed01aa060870fd9&l=pt&nrNights=1&preselect=promo240&startDay=2026-12-31","image":"https:\/\/secure.guestcentric.net\/bin\/7ac656155624c22b\/thumb-ano-novo-2026-2.webp"}]', 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()})}}();