var jsVersionPreventCache = "ci-620-fffde89"; var pgInit = {}; pgInit.vars = { promotions: '[{"id":"234","title":"Early Booking","description":"Reserve com 20 dias de anteced\u00eancia e receba um desconto de 20%","linkLabel":"Cliquez ici pour plus de d\u00e9tails","link":"10","bookBtn":"https:\/\/book.palaciodalousa.com\/?gc=17b7a357cb66345064cdc49b903871b7&l=fr&nrNights=2&preselect=promo264&startDay=1969-12-31","image":"https:\/\/secure.guestcentric.net\/bin\/3f7ad36ee63353c3\/thumb-earlybooking-lousa-4x-2-4.webp"},{"id":"233","title":"Extended Stay","description":"Fique no m\u00ednimo 3 noites e receba um desconto de 25%","linkLabel":"Cliquez ici pour plus de d\u00e9tails","link":"10","bookBtn":"https:\/\/book.palaciodalousa.com\/?gc=17b7a357cb66345064cdc49b903871b7&l=fr&nrNights=3&preselect=promo263&startDay=2026-11-01","image":"https:\/\/secure.guestcentric.net\/bin\/3f7ad36ee63353c3\/thumb-extendedstay-lousa-4x-2-3.webp"},{"id":"223","title":"Holidays with History and Tradition","description":"Special Bank Holidays Campaign","linkLabel":"Cliquez ici pour plus de d\u00e9tails","link":"10","bookBtn":"https:\/\/book.palaciodalousa.com\/?gc=17b7a357cb66345064cdc49b903871b7&l=fr&nrNights=2&preselect=promo253&startDay=2026-01-27","image":""},{"id":"224","title":"Midweek Retreat","description":"Midweek Retreat","linkLabel":"Cliquez ici pour plus de d\u00e9tails","link":"10","bookBtn":"https:\/\/book.palaciodalousa.com\/?gc=17b7a357cb66345064cdc49b903871b7&l=fr&nrNights=2&preselect=promo254&startDay=2026-11-03","image":"https:\/\/secure.guestcentric.net\/bin\/3f7ad36ee63353c3\/thumb-palaciolousa_outdoor_23-2.webp"},{"id":"235","title":"Christmas at Pal\u00e1cio da Lous\u00e3","description":"","linkLabel":"Cliquez ici pour plus de d\u00e9tails","link":"10","bookBtn":"https:\/\/book.palaciodalousa.com\/?gc=17b7a357cb66345064cdc49b903871b7&l=fr&nrNights=2&preselect=promo265&startDay=2026-12-23","image":"https:\/\/secure.guestcentric.net\/bin\/3f7ad36ee63353c3\/thumb-dhm_menus_natal_site-2--1.webp"},{"id":"236","title":"New Year\u2019s Eve at Pal\u00e1cio da Lous\u00e3","description":"","linkLabel":"Cliquez ici pour plus de d\u00e9tails","link":"10","bookBtn":"https:\/\/book.palaciodalousa.com\/?gc=17b7a357cb66345064cdc49b903871b7&l=fr&nrNights=2&preselect=promo266&startDay=2026-12-30","image":"https:\/\/secure.guestcentric.net\/bin\/3f7ad36ee63353c3\/thumb-dhm_menus_pda_site-1--1.webp"},{"id":"117","title":"Tarif FREE","description":"Choisissez votre libert\u00e9 +info [L'h\u00f4tel enverra un lien de paiement - Annuler ou reporter]","linkLabel":"Cliquez ici pour plus de d\u00e9tails","link":"10","bookBtn":"https:\/\/book.palaciodalousa.com\/?gc=17b7a357cb66345064cdc49b903871b7&l=fr&nrNights=2&preselect=promo137&startDay=2026-11-24","image":"https:\/\/secure.guestcentric.net\/bin\/3f7ad36ee63353c3\/thumb-lobby-8--1.jpg"},{"id":"124","title":"Tarif SMART","description":"Choisissez votre libert\u00e9 +info [10% OFF - Paiement \u00e0 l'avance - Remarque]","linkLabel":"Cliquez ici pour plus de d\u00e9tails","link":"10","bookBtn":"https:\/\/book.palaciodalousa.com\/?gc=17b7a357cb66345064cdc49b903871b7&l=fr&nrNights=2&preselect=promo144&startDay=2026-11-26","image":"https:\/\/secure.guestcentric.net\/bin\/3f7ad36ee63353c3\/thumb-hotel_outdoor_gardens-36-min-2.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()})}}();