var pgInit = {}; pgInit.vars = { promotions: '[{"id":"61","title":"Day Spa Relax 70\u00b4","description":"alguns minutos inteiramete dedicados a si..","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo61&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-wellness-1021131_960_7203.jpg"},{"id":"60","title":"Day Spa Relax 85\u00b4","description":"Alguns minutos inteiramente dedicados a si..","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=1&preselect=promo60&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-wellness-1021131_960_7202.jpg"},{"id":"41","title":"Degusta\u00e7\u00e3o de Queijos & Vinho & Massagem ","description":"Momentos a dois! ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo41&startDay=2019-07-01","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-monte-prado-hotel-spa-293.jpg"},{"id":"64","title":"Early booking ","description":"Reserve j\u00e1! Melhor oferta online!","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo64&startDay=1970-01-01","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-hotel-monte-prado_2017-220-de-465-5.jpg"},{"id":"77","title":"Escapada Rom\u00e2ntica ","description":"Late Check Out at\u00e9 14h Garantido!","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo77&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-porsol_mp6.jpg"},{"id":"45","title":"Estadia com Jantar Inclu\u00eddo","description":"Reserve j\u00e1 a sua estadia e poupe 10%!","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo45&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-66007509_2284260675236715_3797919625711190016_n4.jpg"},{"id":"48","title":"Oferta Especial com Massagem para Dois.","description":"Fa\u00e7a uma Pausa e Relaxe no Meio da Natureza.","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo48&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-hotel-monte-prado_2017-192-de-465-2.jpg"},{"id":"36","title":"Spa Privado para Dois! ","description":"Momentos \u00fanicos...","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo36&startDay=2019-02-13","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-_mg_7570_easy-resize.com1.jpg"},{"id":"75","title":"Suite Confort ","description":"Desfrute de o melhor para si! ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo75&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-suite-1201.jpg"},{"id":"74","title":"Suite Deluxe c\/ Varanda vista montanha","description":"Desfrute de o melhor para si! ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo74&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-p2270136-hdr1.jpg"},{"id":"55","title":"SUPER FLASH SALE 72H SETEMBRO!","description":"Um Para\u00edso por descobrir! :) ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo55&startDay=2019-09-09","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-pa7.jpg"},{"id":"70","title":"Tudo incluido Light *","description":"Restaurante recomendado boa cama boa mesa.","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo70&startDay=2019-07-01","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-66007509_2284260675236715_3797919625711190016_n2.jpg"},{"id":"73","title":"Twin Confort ","description":"Desfrute de o melhor para si! ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo73&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-p2270002-hdr-editar2.jpg"},{"id":"67","title":"Twin Deluxe C\/ Varanda Vista Montanha ","description":"Desfrute de o melhor para si! ","linkLabel":"Clique para mais informa\u00e7\u00f5es","link":"10","bookBtn":"https:\/\/secure.guestcentric.net\/api\/bg\/book.php?apikey=1955d4b4adf186ba6c7cc45ded68e689&l=pt&nrNights=2&preselect=promo67&startDay=2019-02-08","image":"https:\/\/secure.guestcentric.net\/bin\/b490f458c41be649\/thumb-p22701421.jpg"}]', displayTime: 10, transitionTime: 1.5, frameworkPath: 'https://secure.guestcentric.net/js/yui/build/' }; /** * promotions gadget javascript file * @fileOverview * @author marco.lopes * @version 1.0 * @since 2008-10-28 */ (function() { if(!pgInit.vars.frameworkPath) { alert("framework path for the weather gadget not found!"); return; } //creating gadget info var gadget = {gadget: "promotionGadget", status: "waiting", start: init}; //check for Guestcentric Gadgets Stack if(!window.gcGadgetStack) { //registering gcGadgetStack gadget.status = "loading"; window.gcGadgetStack = [gadget]; gadget.start(); } else if(gcGadgetStack[gcGadgetStack.length-1].status === "loaded") { //registering gcGadgetStack gadget.status = "loading"; gcGadgetStack.push(gadget); gadget.start(); } else { //adding gadget to Guestcentric Gadgets Stack gcGadgetStack.push(gadget); } var G; //framework object /** * load necessary YUI modules * @param {Function} callback function to execute after loading the modules */ function loadYUIModules(callback) { //loading necessary files new YAHOO.util.YUILoader( { require: ["dom", "animation", "event", "json"], loadOptional: true, base: pgInit.vars.frameworkPath, onSuccess: function() { callback(); }, onFailure: function() { changeGadgetStatus(); } }).insert(); } //END OF loadYUIModules /** * changes the gadget status */ function changeGadgetStatus() { //changing the gadget status for(var i=0, li=gcGadgetStack.length; i