var jsVersionPreventCache = "ci-334-e9914d7"; var pgInit = {}; pgInit.vars = { promotions: '[{"id":"2","title":"Enjoy the Journey Standard & Reembols\u00e1vel","description":"Alojamento com pequeno-almo\u00e7o inclu\u00eddo e oferta de Porto Tonic no quarto \u00e0 chegada","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.memmoprincipereal.com\/?gc=e10b23bb30cda9ff69d3d0c7c32c507a&l=pt&nrNights=1&preselect=promo7&startDay=2026-11-02","image":"https:\/\/secure.guestcentric.net\/bin\/fcfc11645df5ee21\/thumb-superior-terrace-city-view-13--1.webp"},{"id":"6","title":"Super Oferta - 10% de desconto (N\u00e3o reembols\u00e1vel)","description":"Pequeno-almo\u00e7o e vinho do Porto t\u00f4nico de cortesia - Tarifa n\u00e3o reembols\u00e1vel (Flex\u00edvel para altera\u00e7\u00e3o de datas)","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.memmoprincipereal.com\/?gc=e10b23bb30cda9ff69d3d0c7c32c507a&l=pt&nrNights=1&preselect=promo11&startDay=2026-11-05","image":"https:\/\/secure.guestcentric.net\/bin\/fcfc11645df5ee21\/thumb-_h0a5045-copy-7.webp"},{"id":"59","title":"Taste & Enjoy - Cr\u00e9dito de 50\u20ac para o restaurante","description":"Desfrute de um cr\u00e9dito de 50\u20ac para usar durante a sua estadia no restaurante do hotel","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.memmoprincipereal.com\/?gc=e10b23bb30cda9ff69d3d0c7c32c507a&l=pt&nrNights=3&preselect=promo66&startDay=2026-11-09","image":"https:\/\/secure.guestcentric.net\/bin\/fcfc11645df5ee21\/thumb-0v7a1002-2.webp"},{"id":"63","title":"Winter Sale","description":"Winter Sale - ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/book.memmoprincipereal.com\/?gc=e10b23bb30cda9ff69d3d0c7c32c507a&l=pt&nrNights=1&preselect=promo70&startDay=2026-11-01","image":"https:\/\/secure.guestcentric.net\/bin\/fcfc11645df5ee21\/thumb-superior-terrace-city-view-13--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()})}}();