var overlayBackLayer,overlayFrontLayer,overlayCallback,overlayCallbackRoot,overlayCallbackParameters,busyLayer,busynewLayer,newbusyReservaLayer,requestParameters={},urlParameters={},requestCache={};if(redirecionaSubDominioClientesTurSites(),void 0===navigatorTarget)var navigatorTarget=null;var navigatorDefaultIndex="index.htm";if("undefined"==typeof navigatorCurrentPage){var e=window.location.href,a=/\/{0,}index\.(htm|html)$/gi,t=__host__.replace(/http(s)?\:\/\//,"",e);navigatorCurrentPage=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/http(s)?\:\/\//,"")).replace(/^www\./,"")).replace("provas.tursites.com.br"+__root__,"")).replace("stage.tursites.com.br"+__root__,"")).replace("apps.tursites.com.br"+__root__,"")).replace(t+__root__,"")).replace(__dominio__,"")).replace(/\/{0,}$/gi,"")).replace(/^\/{0,}/gi,"")}try{var o=e.replace("www.","");e.match(/\.htm/gim)||(o+="/index.htm"),history.state?history.pushState({url:o,requestParameters:JSON.stringify(requestParameters),navigatorCurrentPage:navigatorCurrentPage},""):(getQueryString(window.location.href),history.replaceState({url:o,requestParameters:JSON.stringify(requestParameters),navigatorCurrentPage:navigatorCurrentPage},""))}catch(r){console.log("Erro ao atualizar url: "+r)}var contagemServlets=0;function redirecionaSubDominioClientesTurSites(){-1!==window.location.href.indexOf("clientes.tursites.com.br")&&(window.location.href=__host__)}function getUrlParameter(e){return urlParameters[e]}function stringifyUrlParameters(){return JSON.stringify(urlParameters)}function stringifyRequestParameters(){return JSON.stringify(requestParameters)}function setRequestParameter(e,a){requestParameters[e]=a}function setRequestParameters(e){UTIL.iterateObject(e,function(e,a){requestParameters[a]=e})}function getRequestParameter(e){return requestParameters[e]?requestParameters[e]:""}function removeRequestParameter(e){requestParameters[e]&&(requestParameters[e]=null,delete requestParameters[e])}function checkRequestParameter(e){return void 0!==requestParameters[e]&&""!==requestParameters[e]}function requestJquery(e,a,t,o,r,n,i,s){var l={};l.__fid__=e,l.__url__=a,l.parameters=stringifyRequestParameters(),"servlet"==e&&(l.__cacheEnable__=n,l.__cacheName__=i,l.__cacheRefresh__=s,$(document).trigger("servletsCarregando"),contagemServlets++),$.post("",l,function(a){r||(requestParameters={}),"function"==typeof t&&t(a,o),"servlet"==e&&setTimeout(function(){0==--contagemServlets&&$(document).trigger("servletsCarregados")},2e3)})}function processRequestParameters(e){return e=e.replace(/%post\.([a-z0-9_]+)%/gi,function(e,a){return requestParameters[a]?requestParameters[a]:""})}function request(e,a,t,o,r){if(null!=a){var n={};if(n.url=encodeURIComponent(a),n.callback=t,n.parameters=o,n.instance=null,window.XMLHttpRequest)n.instance=new XMLHttpRequest;else try{n.instance=new ActiveXObject("Msxml2.XMLHTTP")}catch(i){try{n.instance=new ActiveXObject("Microsoft.XMLHTTP")}catch(s){n.instance=null}}if(n.instance){n.instance.onreadystatechange=function(){if(4===n.instance.readyState&&200===n.instance.status){var e=n.instance.responseText;e=e.replace(/%post\.([a-z0-9_]+)%/gi,function(e,a){var t,o;return requestParameters[o=a]?requestParameters[o]:""}),n.callback(e,n.parameters)}},n.instance.open("POST",__root__+"/",!0),n.instance.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");var l="&parameters="+encodeURIComponent(stringifyRequestParameters());r||(requestParameters={}),n.instance.send("__fid__="+e+"&__url__="+n.url+l)}else showError("This browser does not support AJAX.")}}function setPageTitle(e){document.title=e,"function"==typeof onSetPageTitle&&onSetPageTitle(e),jQuery(document).trigger("setPageTitle")}function getCurrentPage(){return navigatorCurrentPage}function openDownload(e){"undefined"!=typeof __ambientecliente__&&"webview"==__ambientecliente__?window.open("?__fid__=download&__url__="+e):window.location="?__fid__=download&__url__="+e}function openHref(e){if(!e)return console.warn("A fun\xe7\xe3o openHref requer o parametro url"),!1;document.location.href=__host__+"/"+e}function openPageInsecure(e,a,t){if("https"==(0==window.location.href.indexOf("https://")?"https":"http")){var o=__host__.replace(/^https/,"http");document.location.href=o+"/"+e}else openPage(e,a,t)}function openPageSecure(e,a,t){if("http"==(0==window.location.href.indexOf("https://")?"https":"http")){var o=__host__.replace(/^http/,"https");document.location.href=o+"/"+e}else openPage(e,a,t)}function scrollbarIsShowing(){return $(document).height()>$(window).height()}function openPage(e,a,t){var o=$(navigatorTarget).height();if($(navigatorTarget).css("min-height",o),$(navigatorTarget).html(""),showLoading($(navigatorTarget),"spinner",!1,!1),$(".loading").css("margin","40px 0"),jQuery("html,body,div").scrollTop(0),jQuery(document).trigger("openPageStart"),(e=(e=e.replace(/\/{0,}$/gi,"")).replace(/^\/{0,}/gi,"")).match(/[a-z0-9_]{1,}\.(htm|html)$/gi)||(e+="/"+navigatorDefaultIndex),-1!=window.location.href.indexOf("/redirect/true"))var r=!0;if(r&&1==sessionStorage.getItem("site_era_https")){sessionStorage.removeItem("site_era_https");var n="https://"+window.location.host+"/"+e;window.location.href=n}else r&&sessionStorage.setItem("site_era_https",1);if(requestJquery("html",e,openPageCallback,{url:e},a),navigatorCurrentPage=e.replace(/\/{0,}index\.(htm|html)$/gi,""),!0!=t){try{history.state?history.pushState({url:e,requestParameters:JSON.stringify(requestParameters),navigatorCurrentPage:navigatorCurrentPage},"",window.location.protocol+"//"+window.location.hostname+__root__+"/"+navigatorCurrentPage+getHash()):getQueryString(window.location.href)?history.replaceState({url:e,requestParameters:JSON.stringify(requestParameters),navigatorCurrentPage:navigatorCurrentPage},"",window.location.protocol+"//"+window.location.hostname+__root__+"/"+navigatorCurrentPage+"?"+getQueryString(window.location.href)):history.replaceState({url:e,requestParameters:JSON.stringify(requestParameters),navigatorCurrentPage:navigatorCurrentPage},"",window.location.protocol+"//"+window.location.hostname+__root__+"/"+navigatorCurrentPage)}catch(i){console.log("Erro ao atualizar url: "+i)}jQuery(document).trigger("openPageChangeUrl")}jQuery(document).trigger("openPageLoaded"),window.scroll(0,0)}function getQueryString(e){return -1!==e.indexOf("?")&&e.slice(window.location.href.indexOf("?")+1)}function getHash(){var e=window.location.hash.substr(1);return e?"#"+e:""}function openPageApp(e){$(navigatorTarget).hide(),openPage(e)}function openPageCallback(e,a){$(navigatorTarget).hide(),$(navigatorTarget).html(e),"function"==typeof onOpenPage&&onOpenPage(a.url),$(navigatorTarget).fadeIn(300,function(){jQuery(document).trigger("openPageFinish"),$(navigatorTarget).css("min-height","")})}function openOverlay(e,a,t,o){(e=(e=e.replace(/\/{0,}$/gi,"")).replace(/^\/{0,}/gi,"")).match(/[a-z0-9_]{1,}\.(htm|html)$/gi)||(e+="/"+navigatorDefaultIndex),requestJquery("html",e,openOverlayCallback,{callback:a,parameters:t,rootChildren:root.children},o)}function closeOverlay(e){var a=getRequestParameter("overlayScrollTop");$("#modal-overlaw").modal("hide"),root.children=overlayCallbackRootChildren,e=!1!==e,$("html, body").animate({scrollTop:a}),overlayCallback&&overlayCallback(overlayCallbackParameters,e)}function openOverlayCallback(e,a){$("body").append('<div id="modal-overlaw" class="modal fade" role="dialog"></div>'),$("#modal-overlaw").append('<div class="modal-dialog"></div>'),$("#modal-overlaw .modal-dialog").append('<div class="modal-content"></div>'),$("#modal-overlaw .modal-dialog .modal-content").append('<div class="modal-body"></div>'),$("#modal-overlaw .modal-dialog .modal-content .modal-body").append(e),setRequestParameter("overlayScrollTop",$(window).scrollTop()),$("#modal-overlaw").modal({keyboard:!1,backdrop:"static",show:!0}),$("#modal-overlaw").on("hidden.bs.modal",function(){$("#modal-overlaw").remove()}),$("#modal-overlaw").on("shown.bs.modal",function(){$("html, body").animate({scrollTop:$("#modal-overlaw").offset().top})}),a&&(overlayCallback=a.callback,overlayCallbackParameters=a.parameters,overlayCallbackRootChildren=a.rootChildren)}function generateCacheId(e){return e.replace(/["'\[\],. :{}/]/g,"")}function openServlet(e,a,t,o,r,n,i){requestJquery("servlet",e,a,t,!0,r,n,i)}function openPopup(e,a,t,o){window.open(e,"","toolbar=no,status=no,menubar=no,scrollbars="+o+"top=10,left=10,width="+a+",height="+t)}function busy(){(busyLayer=document.createElement("div")).style.position="fixed",busyLayer.style.backgroundColor="white",busyLayer.style.opacity="0.6",busyLayer.style.filter="alpha(opacity=60)",busyLayer.style.zIndex="1002",busyLayer.style.top="0",busyLayer.style.left="0",busyLayer.style.width="100%",busyLayer.style.height="100%",document.body.appendChild(busyLayer)}function idle(){document.body.removeChild(busyLayer),busyLayer=null}function busynew(){(busynewLayer=document.createElement("div")).style.position="fixed",busynewLayer.style.backgroundColor="#000000",busynewLayer.style.opacity="0.65",busynewLayer.style.filter="alpha(opacity=65)",busynewLayer.style.zIndex="1002",busynewLayer.style.top="0",busynewLayer.style.left="0",busynewLayer.style.width="100%",busynewLayer.style.height="100%",busynewLayer.innerHTML="<div style='text-align:center; width:100%; height:100%; margin-top:100px; '><img src='https://areasegura.tursites.com.br/assets/images/loading-3.gif' /><br /><p style='font-size:22px;font-weight:bold;color:#fff;'>Estamos tarifando sua reserva...<br /><br />Por favor, aguarde...</p></div>",document.body.appendChild(busynewLayer)}function idlenew(){document.body.removeChild(busynewLayer),busynewLayer=null}function busyReserva(){(newbusyReservaLayer=document.createElement("div")).style.position="fixed",newbusyReservaLayer.style.backgroundColor="#000000",newbusyReservaLayer.style.opacity="0.65",newbusyReservaLayer.style.filter="alpha(opacity=65)",newbusyReservaLayer.style.zIndex="1002",newbusyReservaLayer.style.top="0",newbusyReservaLayer.style.left="0",newbusyReservaLayer.style.width="100%",newbusyReservaLayer.style.height="100%",newbusyReservaLayer.innerHTML="<div style='text-align:center; width:100%; height:100%; margin-top:100px; '><img src='https://areasegura.tursites.com.br/assets/images/loading-3.gif' /><br /><p style='font-size:22px;font-weight:bold;color:#fff;'>Estamos processando sua reserva...<br /><br />Em alguns instantes voc\xea ser\xe1 redirecionado para nosso ambiente de pagamentos...<br /><br />Por favor, aguarde...</p></div>",document.body.appendChild(newbusyReservaLayer)}function idleReserva(){document.body.removeChild(newbusyReservaLayer),newbusyReservaLayer=null}function execPage(e,a){(e=(e=e.replace(/\/{0,}$/gi,"")).replace(/^\/{0,}/gi,"")).match(/[a-z0-9_]{1,}\.(htm|html)$/gi)||(e+="/"+navigatorDefaultIndex),requestJquery("html",e,execPageCallback,null,a)}function execPageCallback(e,a){var t=document.createElement("div");document.documentElement.appendChild(t),t.innerHTML=e,executeJavascript(t)}function startNavigator(e){if(!navigatorTarget){navigatorTarget=e.node;var a=window.location.pathname.replace(__root__,"").replace(/^\//gi,"");a.match(/[a-z0-9_]{1,}\.(htm|html)$/gi)||(a+="/"+navigatorDefaultIndex),openPage(a=(a=a.replace(/\/$/gi,"")).replace(/^\//gi,""),!0)}}function showError(e){alert(e)}function executeJavascript(e){for(var a=/clone/g,t=e.getElementsByTagName("script"),o=0;o<t.length;o++){if(t[o].src&&""!==t[o].src){var r=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.src=t[o].src,r.appendChild(n)}t[o].text&&""!==t[o].text&&"if (!('' !== '')) { if (clone) { clone.innerHTML = ''; } };"!==t[o].text&&(e.className.match(a)&&t[o].parentNode,window.eval(t[o].text))}}function loadJavascript(e,a,t,o,r,n){void 0===n&&(n="head");let i=document.getElementsByTagName(n)[0],s=document.createElement("script"),l="";s.type="text/javascript",void 0===a&&(l="?ct="+__cachetoken__+"&__fid__=customJavascript&__url__="+e),l="custom"==typeof a?"?ct="+__cachetoken__+"&__fid__=customJavascript&__url__="+e:"user"==a?"?ct="+__cachetoken__+"&__fid__=userJavascript&__url__="+e:"external"==a?e:e.search(/^http/g)>-1?e:"?ct="+__cachetoken__+"&__fid__=customJavascript&__url__="+e,-1!=navigator.appName.indexOf("Internet Explorer")?$.getScript(l).done(function(e,a){"function"==typeof t&&t()}).fail(function(e,a,t){console.log("Triggered ajaxError handler.")}):(s.async=!0,s.src=l,"true"==o||!0==o?0==$("script[src='"+l+"']").length?i.appendChild(s):"function"==typeof t&&t():i.appendChild(s),t&&(s.onreadystatechange=s.onload=function(){"function"==typeof t&&t()}))}function loadJavascriptInSync(e,a){var t,o,r=0;return!Array.isArray(e)||e.length<1?(openModalBs("O primeiro par\xe2metro deve ser um array e ter no m\xednimo um item"),!1):"function"!=typeof a?(openModalBs("O segundo par\xe2metro deve ser uma fun\xe7\xe3o"),!1):void(t=e.length,$(e).each(function(e,a){var t=!1;a.match(/lightbox/gim)&&(t=!0),loadJavascript(a,"custom",function(){r++},t)}),o=setInterval(function(){r==t&&(a(),clearInterval(o))},500))}function loadStyle(e,a){var t=document.getElementsByTagName("body")[0],o=document.createElement("link");if(o.type="text/css",o.rel="stylesheet",void 0===a)var a="sharedStyle";if("external"==a)var r=e;else var r="?ct="+__cachetoken__+"&__fid__="+a+"&__url__="+e;o.href=r,0==$("link[href='"+r+"']").length&&t.appendChild(o)}function openModal(e,a,t,o){jQuery("body").prepend('<div id="tsx_openModalMascara"></div>'),jQuery("body").prepend('<div id="tsx_openModalMoldura"></div>'),jQuery("body").prepend('<div id="tsx_openModalFechar"></div>'),jQuery("#tsx_openModalMoldura").css({position:"fixed","background-color":"white","border-radius":"8px",left:"0",top:"0",display:"none","z-index":"1999",padding:"10px"}),jQuery("#tsx_openModalMascara").css({position:"fixed",left:"0",top:"0","z-index":"1990","background-color":"#000",display:"none"}),jQuery("#tsx_openModalFechar").css({position:"fixed","background-image":"url(https://www2.tursites.com.br/cache/buscaGapnet/images/close-button.png)","background-repeat":"no-repeat",width:"29px",height:"29px","z-index":"2001",display:"none",cursor:"pointer"});var r=jQuery(document).height(),n=jQuery(document).width(),i=jQuery(window).height(),s=jQuery(window).width();jQuery("#tsx_openModalMascara").css({width:n,height:r}),jQuery("#tsx_openModalMascara").fadeTo("fast",.6);var l=jQuery(e).height(),d=jQuery(e).width();jQuery("#tsx_openModalMoldura").height(l),jQuery("#tsx_openModalMoldura").width(d);var c=(i-l)/2-10,p=(s-d)/2-10;jQuery("#tsx_openModalMoldura").css("top",c).css("left",p).show();var u=p+jQuery("#tsx_openModalMoldura").outerWidth()-17,m=c-12;s-d<30&&(u-=9),i-l<30&&(m+=9),jQuery("#tsx_openModalFechar").css("top",m+"px").css("left",u+"px").show(),jQuery("#tsx_openModalFechar").click(function(){jQuery("body").append(e.hide()),jQuery("#tsx_openModalMascara").remove(),jQuery("#tsx_openModalMoldura").remove(),jQuery("#tsx_openModalFechar").remove()}),jQuery("#tsx_openModalMascara").click(function(){jQuery("#tsx_openModalFechar").click()}),jQuery(document).keypress(function(e){27==e.keyCode&&jQuery("#tsx_openModalFechar").click()}),jQuery("#tsx_openModalMoldura").html(e.show())}function openModalBs(e,a,t,o,r,n){if((n=void 0!==n?n:{}).show=!0,!0==window.openModalBsFlagOpen)return!1;window.openModalBsFlagOpen=!0,$("document").ready(function(){if($("body").append('<div id="openModalBs" class="modal fade" role="dialog"></div>'),$("#openModalBs").append('<div class="modal-dialog"></div>'),o?($("#openModalBs").append("<style>@media (min-width: 768px){ #openModalBs .modal-content{width:"+o+"} #openModalBs .modal-dialog{width:"+o+"} }</style>"),$("#openModalBs .modal-dialog").append('<div class="modal-content" style=""></div>')):$("#openModalBs .modal-dialog").append('<div class="modal-content"></div>'),$("#openModalBs .modal-dialog .modal-content").append('<div class="modal-header"></div>'),t?($("#openModalBs .modal-dialog .modal-content .modal-header").append('<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="width:auto !important; margin-top:-9px !important"><span aria-hidden="true" style="font-size:35px">&times;</span></button>'),$("#openModalBs .modal-dialog .modal-content .modal-header").append('<h4 class="modal-title">'+t+"</h4>")):($("#openModalBs .modal-dialog .modal-content .modal-header").append('<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="width:auto !important; margin-top:-17px !important"><span aria-hidden="true" style="font-size:35px">&times;</span></button>'),$("#openModalBs .modal-dialog .modal-content .modal-header").append('<h4 class="modal-title"></h4>')),$("#openModalBs .modal-dialog .modal-content").append('<div class="modal-body"></div>'),$("#openModalBs .modal-dialog .modal-content .modal-body").append(e),$("#openModalBs .modal-dialog .modal-content").append('<div class="modal-footer"></div>'),$("#openModalBs .modal-dialog .modal-content .modal-footer").append('<button type="button" class="btn btn-default" data-dismiss="modal" style="width:auto !important">Fechar</button>'),$("#openModalBs").modal(n),$("#openModalBs").on("hidden.bs.modal",function(){window.openModalBsFlagOpen=!1,$("#openModalBs").remove()}),"function"==typeof r&&$("#openModalBs").on("hidden.bs.modal",function(e){r()}),$("#openModalBs").show(),"function"==typeof a)return a(e)})}function openModalLock(e,a,t,o){$("body").append('<div id="modal-lock" class="modal fade" role="dialog"></div>'),$("#modal-lock").append('<div class="modal-dialog"></div>'),a?($("#modal-lock").append("<style>@media (min-width: 768px){ #modal-lock .modal-dialog {width:"+a+"} }</style>"),$("#modal-lock .modal-dialog").append('<div class="modal-content" style=""></div>')):$("#modal-lock .modal-dialog").append('<div class="modal-content"></div>'),$("#modal-lock .modal-dialog .modal-content").append('<div class="modal-body"></div>'),e&&$("#modal-lock .modal-dialog .modal-content .modal-body").append(e),"function"==typeof t&&$("#modal-lock").on("show.bs.modal",function(e){t()}),$("#modal-lock").modal({show:!0,keyboard:!1,backdrop:"static"}),$("#modal-lock").on("hidden.bs.modal",function(){$("#modal-lock").remove(),"function"==typeof o&&o()})}function confirmacao(e,a,t,o,r,n){a=void 0!==a&&a,t=void 0!==t&&t,o=void 0!==o&&o,r=void 0!==r&&r,openModalBs(e,function(){var e=$("#openModalBs .modal-footer").html().replace('type="button"','type="button" id="confirmacao-sim"').replace("btn-default","btn-success").replace("Fechar","Sim"),n=$("#openModalBs .modal-footer").html().replace('type="button"','type="button" id="confirmacao-nao"').replace("btn-default","btn-danger").replace("Fechar","N\xe3o"),i=!1;$("#openModalBs .modal-footer").html(e+n),$("#openModalBs .modal-footer #confirmacao-sim").click(function(){$(this).prop("disabled",!0),i=!0,!1!=a&&("function"==typeof a?a():location.href=a)}),$("#openModalBs .modal-footer #confirmacao-nao").click(function(){i=!0,!1!=t&&("function"==typeof t?t():location.href=t)}),$("#openModalBs").on("hidden.bs.modal",function(){i||!1==r||("function"==typeof r?r():location.href=r),$(".modal").length>0&&$(".modal").is(":visible")&&$("body").addClass("modal-open")}),o&&"function"==typeof o&&o()},"Aten\xe7\xe3o",null,null,n)}function confirmacaoLgpd(e,a,t,o,r,n,i,s){var l='<p>Conhe\xe7a nossa <a href="'+__host__+'/legal/politica-de-privacidade.htm"target="_Blank" class="politica-de-privacidade-link">Pol\xedtica de Privacidade</a></p>',d={contatoDestinosCotacoes:'<label for="autorizo-receber-contato-destinos-cotacoes" class="politica-de-privacidade-label"><input type="checkbox" name="autorizo_receber_contato_destinos_cotacoes" id="autorizo-receber-contato-destinos-cotacoes" value="sim" /> Autorizo o uso destes dados para que a ag\xeancia entre em contato comigo para mais informa\xe7\xf5es sobre destinos / cota\xe7\xf5es</label>',promocoesNoticiasNovidadesTurismo:'<label for="autorizo-receber-promocoes-noticias-novidades-turismo" class="politica-de-privacidade-label"><input type="checkbox" name="autorizo_receber_promocoes_noticias_novidades_turismo" id="autorizo-receber-promocoes-noticias-novidades-turismo" value="sim" /> Autorizo o cadastro do meu e-mail para recebimento de promo\xe7\xf5es, not\xedcias, e novidades relacionadas a turismo</label>'};if(a)return alert("apijs consentimentosObrigatoriosKeys"),!1;$(e).each(function(e,a){l+=d[a]}),confirmacao(l,function(){var e=$("#autorizo-receber-contato-destinos-cotacoes").is(":checked")?"Sim":"N\xe3o",a=$("#autorizo-receber-promocoes-noticias-novidades-turismo").is(":checked")?"Sim":"N\xe3o";setRequestParameter("autorizo_receber_email",t),setRequestParameter("autorizo_receber_contato_destinos_cotacoes",e),setRequestParameter("autorizo_receber_promocoes_noticias_novidades_turismo",a),$(".wrap").css({height:"initial"}),html2canvas(document.body,{allowTaint:!0,useCORS:!0,height:$(window).height(),y:$(window).scrollTop()}).then(function(e){setTimeout(function(){var a=e.toDataURL("image/jpeg");$(".wrap").removeAttr("style"),setRequestParameter("autorizo_receber_base64image",a),$("#openModalBs").modal("hide"),openServlet("legal/salvaLgpdConsentimento.php",function(e){var a=JSON.parse(e);if(a.erro)return openModalBs("N\xe3o foi poss\xedvel enviar seu email por conta do erro relacionado a Lei Geral de Prote\xe7\xe3o de Dados (LGPD). Por favor entre em contato conosco."),!1;setRequestParameter("lgdp_html_consentimento",a.html),setRequestParameter("lgdp_id_consentimento",a.id),n()})},1e3)})},function(){i()},function(){$("#openModalBs #confirmacao-sim").removeAttr("data-dismiss"),o&&""!=o&&$("#openModalBs #confirmacao-sim").text(o),r&&""!=r&&$("#openModalBs #confirmacao-nao").text(r),loadJavascript("design/html2canvas.js")},function(){s()},{backdrop:"static",keyboard:!1})}function closeModalLock(){$("#modal-lock").modal("hide")}function keepAlive(){openServlet("api/keepAlive.php",keepAliveCallback,null,!0)}function keepAliveCallback(e,a){return!0}function postData(e,a,t){var o=document.createElement("form");for(var r in o.method="post",t&&(o.target=t),o.action=e,a){var n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",r),n.setAttribute("value",a[r]),o.appendChild(n)}document.body.appendChild(o),o.submit(),document.body.removeChild(o)}function scrollToElement(e,a,t,o){o=void 0!==o?o:0;var r=$(e).offset().top;if("top"==t)var n=r;else if("center"==t)var n=r-window.innerHeight/2;else if("bottom"==t)var n=r-window.innerHeight;else var n=r;n+=o,$("html, body").animate({scrollTop:n},a)}window.onpopstate=function(e){if(e.state){var a=e.state.url;requestParameters=JSON.parse(e.state.requestParameters),navigatorCurrentPage=e.state.navigatorCurrentPage,requestJquery("html",a,openPageCallback,{url:a,requestParameters:e.state.requestParameters},!0),jQuery(document).trigger("openPageChangeUrl"),jQuery(document).trigger("setPageTitle")}},document.builtInWrite=document.write,document.write=function(e){navigatorTarget?navigatorTarget.innerHTML=navigatorTarget.innerHTML+e:document.builtInWrite(e)},setInterval("keepAlive()",6e5),$.fn.outerHTML=function(){var e,a,t;return this.length?this[0].outerHTML||(e=this[0],(a=document.createElement("div")).appendChild(e.cloneNode(!0)),t=a.innerHTML,a=null,t):this};