"),$(e.email).parent().addClass("has-error"),o=!1),e.termos&&0==e.termos.checked&&($("#msg-box-cadastro-novo").append("Você precisa aceitar os nossos termos de uso! "),o=!1),alterar_senha&&(i!=n?($(e.senha).parent().addClass("has-error"),$(e.senha_conf).parent().addClass("has-error"),$("#msg-box-cadastro-novo").append("As confirmação de senha deve ser igual a senha. "),o=!1):i.length<6&&($(e.senha).parent().addClass("has-error"),$("#msg-box-cadastro-novo").append("A senha deve ter no mínimo 6 caracteres."),o=!1)),o?($("input").removeAttr("disabled"),$("html, body").animate({scrollTop:$(document.body).offset().top},"slow"),$("#msg-box-cadastro-novo").slideUp("fast"),setTimeout(function(){e.submit()},1500)):($("html, body").animate({scrollTop:$(document.body).offset().top},"slow"),$("#msg-box-cadastro-novo").slideDown("fast"),setTimeout(function(){$("#msg-box-cadastro-novo").slideUp("fast"),$("#msg-box-cadastro-novo").html("")},5e3))}function loginWithModal(e){loginWithModalCallBack=e,$("#cadastroLoginModal").modal("show")}function loginAuth(e,t){var i={cadAuth:1,email_login:e.email_login.value,senha_login:e.senha_login.value};""!=i.email_login.trim()&&""!=i.senha_login.trim()?($("#cadastroLoginModal").find(".login").slideUp("fast"),$("#cadastroLoginModal").find(".preloader").slideDown("fast"),$.ajax({method:"POST",url:"/site/direct-includes/modulo-cadastro-ajax.php",data:i}).done(function(t){try{var i=JSON.parse(t);0==i.error?(e.reset(),"function"==typeof loginWithModalCallBack&&(loginWithModalCallBack(i.contentData),$("#cadastroLoginModal").modal("hide"))):alert(i.error_message)}catch(e){console.log("Parse failed: "+t),console.log(e),alert("Não foi possível concluir a solicitação, tente novamente em instante, se o problema persistir entre em contato."),$("#cadastroLoginModal").find(".login").slideDown("fast"),$("#cadastroLoginModal").find(".preloader").slideUp("fast")}$("#cadastroLoginModal").find(".login").slideDown("fast"),$("#cadastroLoginModal").find(".preloader").slideUp("fast")}).fail(function(e,t){console.log("Request failed: "+t),alert("Não foi possível concluir a solicitação, tente novamente em instante, se o problema persistir entre em contato."),$("#cadastroLoginModal").find(".login").slideDown("fast"),$("#cadastroLoginModal").find(".preloader").slideUp("fast")})):$(t).find(".msg-error").slideDown("fast",function(){setTimeout(function(){$(t).find(".msg-error").slideUp("fast")},5e3)})}function checkCadastroUpdate(e){var t=e.cpf.value;if(e!=document.cadastro_form)var i=(e.senha_antiga.value,e.alterar_senha.checked);else i=!0;var n=e.senha.value,o=e.senha_conf.value,s=!0;$(e).find("input-group").removeClass("has-error"),t=t.replace(".","").replace(".","").replace("-",""),0==verificaCpf(t)&&($(e.cpf).parent().addClass("has-error"),$("#contato-help").html("Insira um CPF válido!"),s=!1),1==i?(n!=o?($(e.senha).parent().addClass("has-error"),$(e.senha_conf).parent().addClass("has-error"),$("#contato-help").html("As confirmação de senha deve ser igual a senha."),s=!1):n.length<6&&($(e.senha).parent().addClass("has-error"),$(e.senha_conf).parent().addClass("has-error"),$("#contato-help").html("A senha deve ter no mínimo 6 caracteres."),s=!1),s?($("html, body").animate({scrollTop:$(document.body).offset().top},"slow"),$(".form-cadastro .alert").slideUp("fast"),$(".alert-loader").slideDown("fast"),setTimeout(function(){e.submit()},1500)):($("html, body").animate({scrollTop:$(document.body).offset().top},"slow"),$("#contato-help").slideDown("fast"),setTimeout(function(){$("#contato-help").slideUp("fast")},5e3))):($("html, body").animate({scrollTop:$(document.body).offset().top},"slow"),$(".form-cadastro .alert").slideUp("fast"),$(".alert-loader").slideDown("fast"),setTimeout(function(){e.submit()},1500))}function checkCadastro(e){var t=e.cpf.value,i=e.telefone_resid.value,n=e.telefone_comer.value,o=e.celular.value;if(e!=document.cadastro_form)var s=(e.senha_antiga.value,e.alterar_senha.checked);else s=!0;var a=e.senha.value,r=e.senha_conf.value,l=!0;e.cpf.style.backgroundColor="#f7f7f7",e.telefone_resid.style.backgroundColor="#f7f7f7",e.telefone_comer.style.backgroundColor="#f7f7f7",e.celular.style.backgroundColor="#f7f7f7",e.senha.style.backgroundColor="#f7f7f7",e.senha_conf.style.backgroundColor="#f7f7f7",""==i&&""==n&&""==o?($("#contato-help").html("Indique pelo menos um número de contato, incluindo o DDD!"),l=!1):(i.length<10&&""!=i&&($("#contato-help").html("O telefone RESIDENCIAL precisa estar em um formato válido indicado!"),l=!1),n.length<10&&""!=n&&($("#contato-help").html("O telefone COMERCIAL precisa estar em um formato válido indicado!"),l=!1),o.length<10&&""!=o&&($("#contato-help").html("O telefone CELULAR precisa estar em um formato válido indicado!"),l=!1)),""==e.genero.value&&($("#contato-help").html("Indique o seu gênero!"),l=!1),e.termos&&0==e.termos.checked&&($("#contato-help").html("Você precisa aceitar os nossos termos e condições!"),l=!1),t=t.replace(".","").replace(".","").replace("-",""),0==verificaCpf(t)&&(e.cpf.style.backgroundColor="#fedbdd",$("#contato-help").html("Insira um CPF válido!"),l=!1),1==s?(a!=r?(e.senha.style.backgroundColor="#fedbdd",e.senha_conf.style.backgroundColor="#fedbdd",$("#contato-help").html("As confirmação de senha deve ser igual a senha."),l=!1):a.length<6&&(e.senha.style.backgroundColor="#fedbdd",e.senha_conf.style.backgroundColor="#fedbdd",$("#contato-help").html("A senha deve ter no mínimo 6 caracteres."),l=!1),l?($("input").removeAttr("disabled"),$("html, body").animate({scrollTop:$(document.body).offset().top},"slow"),$(".form-cadastro .alert").slideUp("fast"),$(".alert-loader").slideDown("fast"),setTimeout(function(){e.submit()},1500)):($("html, body").animate({scrollTop:$(document.body).offset().top},"slow"),$("#contato-help").slideDown("fast"),setTimeout(function(){$("#contato-help").slideUp("fast")},5e3))):($("html, body").animate({scrollTop:$(document.body).offset().top},"slow"),$(".form-cadastro .alert").slideUp("fast"),$(".alert-loader").slideDown("fast"),setTimeout(function(){e.submit()},1500))}function achaEndereco(e,t){9==e.length&&$.ajax({type:"POST",url:"/site/direct-includes/modulo-cadastro-ajax.php",data:{cep:e,exe:1}}).done(function(e){console.log(e),"erro"!==e&&(dataArr=e.split("&"),0!=t&&($("#endereco").val(dataArr[0]),$("#bairro").val(dataArr[1]),$("#cidade").val(dataArr[2]),$("#estado").val(dataArr[3])))})}function verificaEmailAtual(){email_atual=document.getElementById("email_atual").value,email=document.getElementById("email").value,email_atual!=email?$(".email_info").html(' Ao alterar o e-mail, você será direcionado para uma tela de login e passará novamente pelo processo de ativação da sua conta.'):$(".email_info").html("")}function verificaCpf(e){var t,n;console.log(e);var o=e.replace(/[^\d]+/g,"");if(console.log(o),t=0,"00000000000"==o||"11111111111"==o||"22222222222"==o||"33333333333"==o||"44444444444"==o||"55555555555"==o||"66666666666"==o||"77777777777"==o||"88888888888"==o||"999999999999"==o)return!1;for(i=1;i<=9;i++)t+=parseInt(o.substring(i-1,i))*(11-i);if(n=10*t%11,10!=n&&11!=n||(n=0),n!=parseInt(o.substring(9,10)))return!1;for(t=0,i=1;i<=10;i++)t+=parseInt(o.substring(i-1,i))*(12-i);return n=10*t%11,10!=n&&11!=n||(n=0),n==parseInt(o.substring(10,11))}function checkSenhaReset(e){senhaPass=!0,msg="",e.senha.value!=e.senha_confirm.value&&(senhaPass=!1,msg="Confirme sua nova senha corretamente!"),e.senha.value.length<4&&(senhaPass=!1,msg="Sua nova senha deve ter no mínimo 4 caracteres!"),senhaPass?e.submit():($("#error-box-combinacao-pass").html(msg),$("#error-box-combinacao-pass").slideDown("fast",function(){setTimeout(function(){$("#error-box-combinacao-pass").slideUp()},3e3)}))}function doacaoCheckUserData(e){user_donor=e,doacaoFormFillWithLoginData()}function doacaoFormFillWithLoginData(){null!=user_donor&&null!=document.contact_form&&(console.log(user_donor),$(".btn-login-modal").slideUp("fast"),$(".nova_conta_senha").slideUp("fast"),$(".msg-saudacao h3").html(gtext("Olá")+" "+user_donor.nome+", "+gtext("é bom ter você aqui novamente")+"!"),$(".msg-saudacao").slideDown("fast"),document.contact_form.nome&&(document.contact_form.nome.value=user_donor.nome,document.contact_form.nome.readOnly=""!=user_donor.nome.trim()),document.contact_form.cpf&&(document.contact_form.cpf.value=user_donor.cpf,document.contact_form.cpf.readOnly=""!=user_donor.cpf.trim()),document.contact_form.data_nascimento&&(document.contact_form.data_nascimento.value=user_donor.data_nasc,document.contact_form.data_nascimento.readOnly=""!=user_donor.data_nasc.trim()),document.contact_form.telefone_fixo&&(document.contact_form.telefone_fixo.value=user_donor.telefone_resid,document.contact_form.telefone_fixo.readOnly=""!=user_donor.telefone_resid.trim()),document.contact_form.celular&&(document.contact_form.celular.value=user_donor.celular,document.contact_form.celular.readOnly=""!=user_donor.celular.trim()),document.contact_form.email&&(document.contact_form.email.value=user_donor.email,document.contact_form.email.readOnly=""!=user_donor.email.trim()),document.contact_form.profissao&&(document.contact_form.profissao.value=user_donor.profissao,document.contact_form.profissao.readOnly=""!=user_donor.profissao.trim()),document.contact_form.bairro&&(document.contact_form.bairro.value=user_donor.bairro,document.contact_form.bairro.readOnly=""!=user_donor.bairro.trim()),document.contact_form.endereco&&(document.contact_form.endereco.value=user_donor.endereco,document.contact_form.endereco.readOnly=""!=user_donor.endereco.trim()),document.contact_form.cep&&(document.contact_form.cep.value=user_donor.cep,document.contact_form.cep.readOnly=""!=user_donor.cep.trim()),document.contact_form.cidade&&(document.contact_form.cidade.value=user_donor.cidade,document.contact_form.cidade.readOnly=""!=user_donor.cidade.trim()),document.contact_form.uf&&(document.contact_form.uf.value=user_donor.estado,document.contact_form.uf.readOnly=""!=user_donor.estado.trim()),document.contact_form.pais&&(document.contact_form.pais.value=user_donor.pais,document.contact_form.pais.readOnly=""!=user_donor.pais.trim()))}function doacaoFormFillClean(){document.contact_form.nome&&(document.contact_form.nome.value="",document.contact_form.nome.readOnly=!1),document.contact_form.cpf&&(document.contact_form.cpf.value="",document.contact_form.cpf.readOnly=!1),document.contact_form.data_nascimento&&(document.contact_form.data_nascimento.value="",document.contact_form.data_nascimento.readOnly=!1),document.contact_form.telefone_fixo&&(document.contact_form.telefone_fixo.value="",document.contact_form.telefone_fixo.readOnly=!1),document.contact_form.celular&&(document.contact_form.celular.value="",document.contact_form.celular.readOnly=!1),document.contact_form.email&&(document.contact_form.email.value="",document.contact_form.email.readOnly=!1),document.contact_form.profissao&&(document.contact_form.profissao.value="",document.contact_form.profissao.readOnly=!1),document.contact_form.endereco&&(document.contact_form.endereco.value="",document.contact_form.endereco.readOnly=!1),document.contact_form.bairro&&(document.contact_form.bairro.value="",document.contact_form.bairro.readOnly=!1),document.contact_form.cep&&(document.contact_form.cep.value="",document.contact_form.cep.readOnly=!1),document.contact_form.cidade&&(document.contact_form.cidade.value="",document.contact_form.cidade.readOnly=!1),document.contact_form.uf&&(document.contact_form.uf.value="",document.contact_form.uf.readOnly=!1)}function sendInscricao(e){var t=$(e).find(".inscricao_ciente:checked").val();if(1!=Math.round(t))return alert("Por gentileza, confirme que concorda com as regras para inscrições do site."),!1;if(console.log(eventoInfo),2==eventoInfo.modalidade||1==eventoInfo.modalidade){if(1==$(e).find(".forma_pagamento:checked").val()){if(!Accesstage.validateCard("#contato_form_mensagem"))return $("#contato_form_mensagem").addClass("alert-danger"),!1}}if(eventoInfo.pacotes>0){var i=$(e).find(".pacoteId:checked").val();if(isNaN(i))return $("#contato_form_mensagem").html("Selecione um pacote para continuar."),$("#contato_form_mensagem").addClass("alert-danger"),$("#contato_form_mensagem").slideDown(),$("html, body").animate({scrollTop:$("#inscricao_area").offset().top-150},"slow"),!1}var n=grecaptcha.getResponse();null==n||n.trim();var o=$(e).serialize();console.log(o),$(".contact_form").slideUp("fast"),$("#contato_form_preloader").slideDown("fast"),$("html, body").animate({scrollTop:$("#inscricao_area").offset().top-100},"slow"),$("#contato_form_mensagem").removeClass("alert-success alert-danger").slideUp(),$.ajax({url:"/site/direct-includes/modulo-eventos-controller.php",type:"POST",data:o,success:function(t,i,n){grecaptcha.reset(),$("#contato_form_preloader").slideUp("fast");var o;try{o=JSON.parse(t)}catch(e){o=!1}!1===o?($("#contato_form_mensagem").addClass("alert-danger"),$("#contato_form_mensagem").html(t),$("#contato_form_mensagem").slideDown("fast"),$(".contact_form").slideDown("fast")):0==o.error?(e.reset(),$("#contato_form_mensagem").addClass("alert-success"),$("#contato_form_mensagem").html(o.message),$("#contato_form_mensagem").slideDown("fast",function(e){setTimeout(function(){$("#contato_form_mensagem").slideUp("fast"),$(".contact_form").slideDown("fast")},8e3)})):($("#contato_form_mensagem").addClass("alert-danger"),$("#contato_form_mensagem").html("Não foi possível registrar sua inscrição. Motivo: "+o.message),$("#contato_form_mensagem").slideDown("fast"),$(".contact_form").slideDown("fast"))},error:function(e,t,i){grecaptcha.reset(),alert("Não foi possível concluir o processo, tente novamente em instantes."),$("#contato_form_preloader").slideUp("fast"),$(".contact_form").slideDown("fast"),console.log("003 - Falha!"+t)}})}function inscricaoCheckUserData(e){user_donor=e,inscricaoFormFillWithLoginData()}function inscricaoFormFillWithLoginData(){null!=user_donor&&null!=document.contact_form&&(console.log(user_donor),$(".btn-login-modal").slideUp("fast"),$(".nova_conta_senha").slideUp("fast"),$(".msg-saudacao h3").html(gtext("Olá")+" "+user_donor.nome+", "+gtext("é bom ter você aqui novamente")+"!"),$(".msg-saudacao").slideDown("fast"),document.contact_form.nome&&(document.contact_form.nome.value=user_donor.nome,document.contact_form.nome.readOnly=""!=user_donor.nome.trim()),document.contact_form.cpf&&(document.contact_form.cpf.value=user_donor.cpf,document.contact_form.cpf.readOnly=""!=user_donor.cpf.trim()),document.contact_form.data_nascimento&&(document.contact_form.data_nascimento.value=user_donor.data_nasc,document.contact_form.data_nascimento.readOnly=""!=user_donor.data_nasc.trim()),document.contact_form.celular&&(document.contact_form.celular.value=user_donor.celular,document.contact_form.celular.readOnly=""!=user_donor.celular.trim()),document.contact_form.email&&(document.contact_form.email.value=user_donor.email,document.contact_form.email.readOnly=""!=user_donor.email.trim()),document.contact_form.bairro&&(document.contact_form.bairro.value=user_donor.bairro,document.contact_form.bairro.readOnly=""!=user_donor.bairro.trim()),document.contact_form.endereco&&(document.contact_form.endereco.value=user_donor.endereco,document.contact_form.endereco.readOnly=""!=user_donor.endereco.trim()),document.contact_form.cep&&(document.contact_form.cep.value=user_donor.cep,document.contact_form.cep.readOnly=""!=user_donor.cep.trim()),document.contact_form.cidade&&(document.contact_form.cidade.value=user_donor.cidade,document.contact_form.cidade.readOnly=""!=user_donor.cidade.trim()),document.contact_form.uf&&(document.contact_form.uf.value=user_donor.estado,document.contact_form.uf.readOnly=""!=user_donor.estado.trim()),document.contact_form.genero&&(document.contact_form.genero.value=user_donor.genero,document.contact_form.genero.readOnly=""!=user_donor.genero.trim()))}function doacaoFormFillClean(){document.contact_form.nome&&(document.contact_form.nome.value="",document.contact_form.nome.readOnly=!1),document.contact_form.cpf&&(document.contact_form.cpf.value="",document.contact_form.cpf.readOnly=!1),document.contact_form.data_nascimento&&(document.contact_form.data_nascimento.value="",document.contact_form.data_nascimento.readOnly=!1),document.contact_form.celular&&(document.contact_form.celular.value="",document.contact_form.celular.readOnly=!1),document.contact_form.email&&(document.contact_form.email.value="",document.contact_form.email.readOnly=!1),document.contact_form.endereco&&(document.contact_form.endereco.value="",document.contact_form.endereco.readOnly=!1),document.contact_form.bairro&&(document.contact_form.bairro.value="",document.contact_form.bairro.readOnly=!1),document.contact_form.cep&&(document.contact_form.cep.value="",document.contact_form.cep.readOnly=!1),document.contact_form.cidade&&(document.contact_form.cidade.value="",document.contact_form.cidade.readOnly=!1),document.contact_form.uf&&(document.contact_form.uf.value="",document.contact_form.uf.readOnly=!1),document.contact_form.genero&&(document.contact_form.genero.value="",document.contact_form.genero.readOnly=!1)}function isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ById(e){return document.getElementById(e)}function getBrowser(){return window.XMLHttpRequest?"mozilla":window.ActiveXObject?"ie":void 0}function doXMLRequester(){return"ie"==getBrowser()?new ActiveXObject("Microsoft.XMLHTTP"):"mozilla"==getBrowser()?new XMLHttpRequest:void 0}function bDHTMLClose(){$(".b_dhtml_zone").fadeOut()}function is_valid_email(e){var t=!1;return void 0!==e&&null!=(e=e.match(/(\w+)@(.+)\.(\w+)$/))&&(2!=e[3].length&&3!=e[3].length||(t=!0)),t}function getLabelByInputId(e){for(var t=document.getElementsByTagName("label"),i=0;i200&&t>996?$("header").hasClass("header-down")||$("header").addClass("header-down"):$("header").hasClass("header-down")&&$("header").removeClass("header-down")}function vitrineTransferSourceMenu(){var e=$(".vitrine-menu-categorias").html();$(".produtos-catalogo-filtros nav").html(e),$("#cmd-menu-principal .cmd_item_id_5").append(e)}function elmSupportAttr(e,t){return t in document.createElement(e)}function addLoadEvent(e){var t=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){t&&t(),e()}}function checkFormRequire(e,t,i){i=i||!1;var n,o,s=e.elements,a=!0;$(t).slideUp();for(var r=s.length-1;r>=0;r--)n=s[r],o=n.getAttribute("data-required"),elementValue=n.value,"true"===o?""==elementValue?(jQuery(n).addClass("error"),jQuery(getLabelByInputId(n.name)).addClass("text-danger"),a=!1):"email"==n.type?is_valid_email(elementValue)?(jQuery(n).removeClass("error"),jQuery(getLabelByInputId(n.name)).removeClass("text-danger")):(jQuery(n).addClass("error"),jQuery(getLabelByInputId(n.name)).addClass("text-danger"),a=!1):(jQuery(n).removeClass("error"),jQuery(getLabelByInputId(n.name)).removeClass("text-danger")):"email"==n.type&&""!=elementValue&&(is_valid_email(elementValue)?(jQuery(n).removeClass("error"),jQuery(getLabelByInputId(n.name)).removeClass("text-danger")):(jQuery(n).addClass("error"),jQuery(getLabelByInputId(n.name)).addClass("text-danger"),a=!1));if(a){if(!1!==i)return i(e);e.submit()}else $("html, body").animate({scrollTop:$(e).offset().top-100},"slow"),$(t).stop().slideDown("fast",function(){$("[data-loading-text]").button("reset"),setTimeout(function(){$(t).slideUp("fast")},3500)})}function sendPedidoOracao(e){element=e.elements,nome=element.c_nome.value,email=element.c_email.value,mensagem=element.c_mensagem.value,cData={sac:11,nome:nome,email:email,mensagem:mensagem},$("#contact_form").slideUp("fast"),$("#contato_form_preloader").slideDown("fast",function(t){$("html, body").animate({scrollTop:$("main").offset().top-150},"slow"),$.ajax({url:"/site/direct-includes/site-contato-exe.php",type:"POST",data:cData,success:function(t,i,n){$("#contato_form_preloader").slideUp("fast"),"ok"==t?(e.reset(),$("#contato_form_sucesso").slideDown("fast",function(e){setTimeout(function(){$("#contato_form_sucesso").slideUp("fast"),$("#contact_form").slideDown("fast")},3e4)})):(console.log("002 - Falha!"+i),$("#contact_form").slideDown("fast"),alert("Não foi possível enviar sua mensagem, tente novamente em instantes."))},error:function(e,t,i){alert("Não foi possível enviar sua mensagem, tente novamente em instantes."),$("#contato_form_preloader").slideUp("fast"),$("#contact_form").slideDown("fast"),console.log("003 - Falha!"+t)}})})}function sendContato(e){element=e.elements,nome=element.c_nome.value,email=element.c_email.value,telefone=element.c_telefone.value,mensagem=element.c_mensagem.value,area_contato=element.area_contato.value,cData={sac:1,area_contato:area_contato,nome:nome,email:email,telefone:telefone,mensagem:mensagem},$(".contact_form").slideUp("fast"),$("#contato_form_preloader").slideDown("fast",function(t){$("html, body").animate({scrollTop:$("main").offset().top-150},"slow"),$.ajax({url:"/site/direct-includes/site-contato-exe.php",type:"POST",data:cData,success:function(t,i,n){$("#contato_form_preloader").slideUp("fast"),"ok"==t?(e.reset(),$("#contato_form_sucesso").slideDown("fast",function(e){setTimeout(function(){$("#contato_form_sucesso").slideUp("fast"),$(".contact_form").slideDown("fast")},4e3)})):(console.log("002 - Falha!"+i),$(".contact_form").slideDown("fast"),alert("Não foi possível enviar sua mensagem, tente novamente em instantes."))},error:function(e,t,i){alert("Não foi possível enviar sua mensagem, tente novamente em instantes."),$("#contato_form_preloader").slideUp("fast"),$(".contact_form").slideDown("fast"),console.log("003 - Falha!"+t)}})})}function sendDoacaoContaEnergia(e){if(parseFloat($("#valor").val())<2)return alert("O valor mínimo para doação é de R$2,00."),!1;var t=$(e).serialize();$(".contact_form").slideUp("fast"),$("#contato_form_preloader").slideDown("fast",function(i){$("html, body").animate({scrollTop:$(e).offset().top-150},"slow"),$.ajax({url:"/site/direct-includes/site-contato-exe.php",type:"POST",data:t,success:function(t,i,n){$("#contato_form_preloader").slideUp("fast"),"ok"==t?(e.reset(),$("#contato_form_sucesso").slideDown("fast",function(e){setTimeout(function(){$("#contato_form_sucesso").slideUp("fast"),$(".contact_form").slideDown("fast")},4e3)})):(console.log("002 - Falha!"+i),$(".contact_form").slideDown("fast"),alert("Não foi possível concluir o processo, tente novamente em instantes."))},error:function(e,t,i){alert("Não foi possível concluir o processo, tente novamente em instantes."),$("#contato_form_preloader").slideUp("fast"),$(".contact_form").slideDown("fast"),console.log("003 - Falha!"+t)}})})}function sendDoacaoContaAgua(e){var t=parseFloat($("#valor").val());if(t<1||t>10)return alert("O valor mínimo é de R$1,00 e máximo de R$10,00 para doação."),!1;var i=$(e).serialize();$(".contact_form").slideUp("fast"),$("#contato_form_preloader").slideDown("fast",function(t){$("html, body").animate({scrollTop:$(e).offset().top-150},"slow"),$.ajax({url:"/site/direct-includes/site-contato-exe.php",type:"POST",data:i,success:function(t,i,n){$("#contato_form_preloader").slideUp("fast"),"ok"==t?(e.reset(),$("#contato_form_sucesso").slideDown("fast",function(e){setTimeout(function(){$("#contato_form_sucesso").slideUp("fast"),$(".contact_form").slideDown("fast")},4e3)})):(console.log("002 - Falha!"+i),$(".contact_form").slideDown("fast"),alert("Não foi possível concluir o processo, tente novamente em instantes."))},error:function(e,t,i){alert("Não foi possível concluir o processo, tente novamente em instantes."),$("#contato_form_preloader").slideUp("fast"),$(".contact_form").slideDown("fast"),console.log("003 - Falha!"+t)}})})}function sendDoacaoBoleto(e){var t=parseFloat($(e).find(".valor_doacao:checked").val()),i=$(e).find(".tipo_doacao:checked").val(),n=$(e).find(".boleto_doacao_mensal_confirma:checked").val() ;if(console.log(isNaN(t)),0==t)t=parseFloat($(e).find(".valor_outro").val());else{if(isNaN(t))return alert("Selecione ou informe o valor de sua doação."),!1;if(t');var l=$(e).serialize();console.log(l),$(".contact_form").slideUp("fast"),$("#contato_form_preloader").slideDown("fast"),$("html, body").animate({scrollTop:$("#doa-full").offset().top-100},"slow"),$("#contato_form_mensagem").removeClass("alert-success alert-danger").slideUp(),$.ajax({url:"/site/direct-includes/site-contato-exe.php",type:"POST",data:l,success:function(t,i,n){grecaptcha.reset(),$("#contato_form_preloader").slideUp("fast");var o;try{o=JSON.parse(t)}catch(e){o=!1}!1===o?($("#contato_form_mensagem").addClass("alert-danger"),$("#contato_form_mensagem").html(t),$("#contato_form_mensagem").slideDown("fast"),$(".contact_form").slideDown("fast")):0==o.error?(e.reset(),$("#contato_form_mensagem").addClass("alert-success"),$("#contato_form_mensagem").html(o.message),$("#contato_form_mensagem").slideDown("fast",function(e){setTimeout(function(){$("#contato_form_mensagem").slideUp("fast"),$(".contact_form").slideDown("fast")},8e3)})):($("#contato_form_mensagem").addClass("alert-danger"),$("#contato_form_mensagem").html(gtext("Não foi possível registrar sua doação.")+" "+gtext("Motivo")+": "+gtext(o.pagamento.message)),$("#contato_form_mensagem").slideDown("fast"),$(".contact_form").slideDown("fast"))},error:function(e,t,i){grecaptcha.reset(),alert(gtext("Não foi possível concluir o processo, tente novamente em instantes.")),$("#contato_form_preloader").slideUp("fast"),$(".contact_form").slideDown("fast"),console.log("003 - Falha!"+t)}})}function sendDoacaoFull(e){var t=$(e).find(".valor_doacao:checked").val(),i=$(e).find(".tipo_doacao:checked").val(),n=$(e).find(".forma_doacao:checked").val(),o=$(e).find(".doacao_mensal_confirma:checked").val(),s=$(e).find(".autorizo_contato:checked").val(),a=$(e).find(".boleto_tipo:checked").val(),r=$(e).find("#d_senha").val(),l=$(e).find("#d_senha_c").val(),c=$(e).find("#endereco_2").val(),u=$(e).find("#bairro").val(),h=$(e).find("#cidade").val(),d=$(e).find("#uf").val();if(console.log($("#valor_doacao_outro").val()),console.log(parseFloat(t)),console.log(isNaN(t)),(0==parseFloat(t)||isNaN(t))&&(t=parseFloat($("#valor_doacao_outro").val())),console.log("Novo valor: "+t),isNaN(t)){if("ja_sou_doador"!=t)return alert("Selecione ou informe o valor de sua doação."),!1}else{if(t');var f=$(e).serialize();$(".contact_form").slideUp("fast"),$("#contato_form_preloader").slideDown("fast"),$("html, body").animate({scrollTop:$("#doa-full").offset().top-100},"slow"),$("#contato_form_mensagem").removeClass("alert-success alert-danger").slideUp(),$.ajax({url:"/site/direct-includes/site-contato-exe.php",type:"POST",data:f,success:function(e,t,i){grecaptcha.reset(),$("#contato_form_preloader").slideUp("fast"),console.log(e);var o;try{o=JSON.parse(e),console.log(o)}catch(e){o=!1}if(!1===o)$("#contato_form_mensagem").addClass("alert-danger"),$("#contato_form_mensagem").html(e),$("#contato_form_mensagem").slideDown("fast"),$(".contact_form").slideDown("fast");else if(0==o.error){if(1==n){var s=o.pagamento.url_pagamento;null!=s&&""!=String(s).trim()&&window.open(s,"winBoleto","width=500,height=500,resizable=yes,scrollbars=yes")}$("#contato_form_mensagem").addClass("alert-success"),$("#contato_form_mensagem").html(o.message),$("#contato_form_mensagem").slideDown("fast",function(e){})}else $("#contato_form_mensagem").addClass("alert-danger"),$("#contato_form_mensagem").html("Não foi possível registrar sua doação. Motivo: "+o.message),$("#contato_form_mensagem").slideDown("fast"),$(".contact_form").slideDown("fast")},error:function(e,t,i){grecaptcha.reset(),alert("Não foi possível concluir o processo, tente novamente em instantes."),$("#contato_form_preloader").slideUp("fast"),$(".contact_form").slideDown("fast"),console.log("003 - Falha!"+t)}})}function gmaps_codeAddress(e,t,i){e.geocode({address:t},function(e,t){if(t==google.maps.GeocoderStatus.OK){i.setCenter(e[0].geometry.location);new google.maps.Marker({map:i,position:e[0].geometry.location,animation:google.maps.Animation.DROP,icon:"/site/images/maps-marker.png"})}else console.log("Not successful - reason: "+t)})}function gmaps_load(e,t,i,n,o){var s=new google.maps.Geocoder,a=new google.maps.LatLng(-3.7436115,-38.507744),r={center:a,zoom:17,mapTypeControl:o,zoomControl:o},l=new google.maps.Map(document.getElementById(e),r);if(0==i||0==n)gmaps_codeAddress(s,t,l);else{var c=new google.maps.LatLng(i,n);l.setCenter(c);new google.maps.Marker({map:l,position:c,animation:google.maps.Animation.DROP,icon:"/site/public/images/maps-marker.png"})}}function loadPesquisa(){0==$(".pesquisa").size()&&(clearInterval(formChecker),formChecker=null),$(".gsc-search-box").size()>0&&(console.log("form pesquisa carregado"),clearInterval(formChecker),formChecker=null,$(".gsc-search-box .gsc-input").val(termo_pesquisa),$(".gsc-search-box .gsc-search-button").trigger("click"))}function carregaCarrouselHalpTopo(){$(window).width()<480?carrouselHalpTopoAtivo||(carrouselHalpTopoAtivo=!0,$(".owl-banners-interna-middle-top").owlCarousel({loop:!1,margin:0,responsiveClass:!0,responsive:{0:{items:1,nav:!1},600:{items:4,nav:!1,margin:10},1e3:{items:4,nav:!1,loop:!1,margin:10}}})):carrouselHalpTopoAtivo&&(carrouselHalpTopoAtivo=!1,$(".owl-banners-interna-middle-top").trigger("destroy.owl.carousel"))}function ocultaMinhaDoacao(e){$("#box-doacao-detalhe-"+e).addClass("box-doacao-detalhe"),$(".glyphicon-remove"+e).fadeOut(0,function(){$(".glyphicon-zoom-in"+e).fadeIn(0)}),$("#box-doacao-detalhe-"+e).animate({height:100},100,function(){$("#box-doacao-detalhe-"+e+" .conteudo").html("")}),$("#box-doacao-detalhe-"+e).slideUp(20)}function exibeMinhaDoacao(e){$("#box-doacao-detalhe-"+e+" .conteudo").css("display","none"),$.ajax({type:"POST",url:"/site/direct-includes/modulo-doacao-ajax-controller.php",data:{ac:"pGetDoacaoDetalhes",doacaoId:e}}).done(function(t){"erro"!=t?($("#box-doacao-detalhe-"+e).removeClass("box-doacao-detalhe"),$(".box-doacao-detalhe").length>0&&$(".box-doacao-detalhe").slideUp("fast"),$(".box-doacao-detalhe .conteudo").html(""),$(".table-list-doacaos .fa-times").fadeOut(0,function(){$(".table-list-doacaos .fa-search").fadeIn(0)}),$("#box-doacao-detalhe-"+e).slideDown("fast",function(){$(".glyphicon-zoom-in"+e).fadeOut(0,function(){$(".glyphicon-remove"+e).fadeIn(0)}),$("#loader-"+e).fadeIn("fast",function(){$("#box-doacao-detalhe-"+e+" .conteudo").html(t).promise().done(function(){setTimeout(function(){$("#loader-"+e).fadeOut("fast",function(){$("#box-doacao-detalhe-"+e).css("height","auto"),$("#box-doacao-detalhe-"+e+" .conteudo").slideDown(),$("#box-doacao-detalhe-"+e).addClass("box-pedido-detalhe")})},1e3)})})})):(alert("Não possível ober os dados do pedido, tente novamente em instantes."),console.log(t))})}!function(e,t){function i(e){var t=e.length,i=le.type(e);return!le.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||"function"!==i&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}function n(e){var t=Ce[e]={};return le.each(e.match(ue)||[],function(e,i){t[i]=!0}),t}function o(e,i,n,o){if(le.acceptData(e)){var s,a,r=le.expando,l="string"==typeof i,c=e.nodeType,u=c?le.cache:e,h=c?e[r]:e[r]&&r;if(h&&u[h]&&(o||u[h].data)||!l||n!==t)return h||(c?e[r]=h=J.pop()||le.guid++:h=r),u[h]||(u[h]={},c||(u[h].toJSON=le.noop)),("object"==typeof i||"function"==typeof i)&&(o?u[h]=le.extend(u[h],i):u[h].data=le.extend(u[h].data,i)),s=u[h],o||(s.data||(s.data={}),s=s.data),n!==t&&(s[le.camelCase(i)]=n),l?null==(a=s[i])&&(a=s[le.camelCase(i)]):a=s,a}}function s(e,t,i){if(le.acceptData(e)){var n,o,s,a=e.nodeType,l=a?le.cache:e,c=a?e[le.expando]:le.expando;if(l[c]){if(t&&(s=i?l[c]:l[c].data)){le.isArray(t)?t=t.concat(le.map(t,le.camelCase)):t in s?t=[t]:(t=le.camelCase(t),t=t in s?[t]:t.split(" "));for(n=0,o=t.length;o>n;n++)delete s[t[n]];if(!(i?r:le.isEmptyObject)(s))return}(i||(delete l[c].data,r(l[c])))&&(a?le.cleanData([e],!0):le.support.deleteExpando||l!=l.window?delete l[c]:l[c]=null)}}}function a(e,i,n){if(n===t&&1===e.nodeType){var o="data-"+i.replace(Ee,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(o))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ke.test(n)?le.parseJSON(n):n)}catch(e){}le.data(e,i,n)}else n=t}return n}function r(e){var t;for(t in e)if(("data"!==t||!le.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function l(){return!0}function c(){return!1}function u(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function h(e,t,i){if(t=t||0,le.isFunction(t))return le.grep(e,function(e,n){return!!t.call(e,n,e)===i});if(t.nodeType)return le.grep(e,function(e){return e===t===i});if("string"==typeof t){var n=le.grep(e,function(e){return 1===e.nodeType});if(Be.test(t))return le.filter(t,n,!i);t=le.filter(t,n)}return le.grep(e,function(e){return le.inArray(e,t)>=0===i})}function d(e){var t=Ve.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}function p(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function f(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function m(e){var t=ot.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var i,n=0;null!=(i=e[n]);n++)le._data(i,"globalEval",!t||le._data(t[n],"globalEval"))}function v(e,t){if(1===t.nodeType&&le.hasData(e)){var i,n,o,s=le._data(e),a=le._data(t,s),r=s.events;if(r){delete a.handle,a.events={};for(i in r)for(n=0,o=r[i].length;o>n;n++)le.event.add(t,i,r[i][n])}a.data&&(a.data=le.extend({},a.data))}}function y(e,t){var i,n,o;if(1===t.nodeType){if(i=t.nodeName.toLowerCase(),!le.support.noCloneEvent&&t[le.expando]){o=le._data(t);for(n in o.events)le.removeEvent(t,n,o.handle);t.removeAttribute(le.expando)}"script"===i&&t.text!==e.text?(f(t).text=e.text,m(t)):"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),le.support.html5Clone&&e.innerHTML&&!le.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&tt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.defaultSelected=t.selected=e.defaultSelected:("input"===i||"textarea"===i)&&(t.defaultValue=e.defaultValue)}}function _(e,i){var n,o,s=0,a=typeof e.getElementsByTagName!==Y?e.getElementsByTagName(i||"*"):typeof e.querySelectorAll!==Y?e.querySelectorAll(i||"*"):t;if(!a)for(a=[],n=e.childNodes||e;null!=(o=n[s]);s++)!i||le.nodeName(o,i)?a.push(o):le.merge(a,_(o,i));return i===t||i&&le.nodeName(e,i)?le.merge([e],a):a}function b(e){tt.test(e.type)&&(e.defaultChecked=e.checked)}function w(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,o=kt.length;o--;)if((t=kt[o]+i)in e)return t;return n}function x(e,t){return e=t||e,"none"===le.css(e,"display")||!le.contains(e.ownerDocument,e)}function C(e,t){for(var i,n,o,s=[],a=0,r=e.length;r>a;a++)n=e[a],n.style&&(s[a]=le._data(n,"olddisplay"),i=n.style.display,t?(s[a]||"none"!==i||(n.style.display=""),""===n.style.display&&x(n)&&(s[a]=le._data(n,"olddisplay",S(n.nodeName)))):s[a]||(o=x(n),(i&&"none"!==i||!o)&&le._data(n,"olddisplay",o?i:le.css(n,"display"))));for(a=0;r>a;a++)n=e[a],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?s[a]||"":"none"));return e}function k(e,t,i){var n=vt.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function E(e,t,i,n,o){for(var s=i===(n?"border":"content")?4:"width"===t?1:0,a=0;4>s;s+=2)"margin"===i&&(a+=le.css(e,i+Ct[s],!0,o)),n?("content"===i&&(a-=le.css(e,"padding"+Ct[s],!0,o)),"margin"!==i&&(a-=le.css(e,"border"+Ct[s]+"Width",!0,o))):(a+=le.css(e,"padding"+Ct[s],!0,o),"padding"!==i&&(a+=le.css(e,"border"+Ct[s]+"Width",!0,o)));return a}function T(e,t,i){var n=!0,o="width"===t?e.offsetWidth:e.offsetHeight,s=ut(e),a=le.support.boxSizing&&"border-box"===le.css(e,"boxSizing",!1,s);if(0>=o||null==o){if(o=ht(e,t,s),(0>o||null==o)&&(o=e.style[t]),yt.test(o))return o;n=a&&(le.support.boxSizingReliable||o===e.style[t]),o=parseFloat(o)||0}return o+E(e,t,i||(a?"border":"content"),n,s)+"px"}function S(e){var t=Q,i=bt[e];return i||(i=D(e,t),"none"!==i&&i||(ct=(ct||le("").css("cssText","display:block !important")).appendTo(t.documentElement),t=(ct[0].contentWindow||ct[0].contentDocument).document,t.write(""),t.close(),i=D(e,t),ct.detach()),bt[e]=i),i}function D(e,t){var i=le(t.createElement(e)).appendTo(t.body),n=le.css(i[0],"display");return i.remove(),n}function P(e,t,i,n){var o;if(le.isArray(t))le.each(t,function(t,o){i||Tt.test(e)?n(e,o):P(e+"["+("object"==typeof o?t:"")+"]",o,i,n)});else if(i||"object"!==le.type(t))n(e,t);else for(o in t)P(e+"["+o+"]",t[o],i,n)}function I(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,o=0,s=t.toLowerCase().match(ue)||[];if(le.isFunction(i))for(;n=s[o++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function N(e,i,n,o){function s(l){var c;return a[l]=!0,le.each(e[l]||[],function(e,l){var u=l(i,n,o);return"string"!=typeof u||r||a[u]?r?!(c=u):t:(i.dataTypes.unshift(u),s(u),!1)}),c}var a={},r=e===Bt;return s(i.dataTypes[0])||!a["*"]&&s("*")}function $(e,i){var n,o,s=le.ajaxSettings.flatOptions||{};for(o in i)i[o]!==t&&((s[o]?e:n||(n={}))[o]=i[o]);return n&&le.extend(!0,e,n),e}function M(e,i,n){var o,s,a,r,l=e.contents,c=e.dataTypes,u=e.responseFields;for(r in u)r in n&&(i[u[r]]=n[r]);for(;"*"===c[0];)c.shift(),s===t&&(s=e.mimeType||i.getResponseHeader("Content-Type"));if(s)for(r in l)if(l[r]&&l[r].test(s)){c.unshift(r);break}if(c[0]in n)a=c[0];else{for(r in n){if(!c[0]||e.converters[r+" "+c[0]]){a=r;break}o||(o=r)}a=a||o}return a?(a!==c[0]&&c.unshift(a),n[a]):t}function A(e,t){var i,n,o,s,a={},r=0,l=e.dataTypes.slice(),c=l[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l[1])for(o in e.converters)a[o.toLowerCase()]=e.converters[o];for(;n=l[++r];)if("*"!==n){if("*"!==c&&c!==n){if(!(o=a[c+" "+n]||a["* "+n]))for(i in a)if(s=i.split(" "),s[1]===n&&(o=a[c+" "+s[0]]||a["* "+s[0]])){!0===o?o=a[i]:!0!==a[i]&&(n=s[0],l.splice(r--,0,n));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+c+" to "+n}}}c=n}return{state:"success",data:t}}function O(){try{return new e.XMLHttpRequest}catch(e){}}function j(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function L(){return setTimeout(function(){Gt=t}),Gt=le.now()}function F(e,t){le.each(t,function(t,i){for(var n=(ni[t]||[]).concat(ni["*"]),o=0,s=n.length;s>o;o++)if(n[o].call(e,t,i))return})}function H(e,t,i){var n,o,s=0,a=ii.length,r=le.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Gt||L(),i=Math.max(0,c.startTime+c.duration-t),n=i/c.duration||0,s=1-n,a=0,l=c.tweens.length;l>a;a++)c.tweens[a].run(s);return r.notifyWith(e,[c,s,i]),1>s&&l?i:(r.resolveWith(e,[c]),!1)},c=r.promise({elem:e,props:le.extend({},t),opts:le.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:Gt||L(),duration:i.duration,tweens:[],createTween:function(t,i){var n=le.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(o)return this;for(o=!0;n>i;i++)c.tweens[i].run(1);return t?r.resolveWith(e,[c,t]):r.rejectWith(e,[c,t]),this}}),u=c.props;for(z(u,c.opts.specialEasing);a>s;s++)if(n=ii[s].call(c,e,u,c.opts))return n;return F(c,u),le.isFunction(c.opts.start)&&c.opts.start.call(e,c),le.fx.timer(le.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function z(e,t){var i,n,o,s,a;for(o in e)if(n=le.camelCase(o),s=t[n],i=e[o],le.isArray(i)&&(s=i[1],i=e[o]=i[0]),o!==n&&(e[n]=i,delete e[o]),(a=le.cssHooks[n])&&"expand"in a){i=a.expand(i),delete e[n];for(o in i)o in e||(e[o]=i[o],t[o]=s)}else t[n]=s}function R(e,t,i){var n,o,s,a,r,l,c,u,h,d=this,p=e.style,f={},m=[],g=e.nodeType&&x(e);i.queue||(u=le._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,h=u.empty.fire,u.empty.fire=function(){u.unqueued||h()}),u.unqueued++,d.always(function(){d.always(function(){u.unqueued--,le.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===le.css(e,"display")&&"none"===le.css(e,"float")&&(le.support.inlineBlockNeedsLayout&&"inline"!==S(e.nodeName)?p.zoom=1:p.display="inline-block")),i.overflow&&(p.overflow="hidden",le.support.shrinkWrapBlocks||d.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(o in t)if(a=t[o],Jt.exec(a)){if(delete t[o],l=l||"toggle"===a,a===(g?"hide":"show"))continue;m.push(o)}if(s=m.length){r=le._data(e,"fxshow")||le._data(e,"fxshow",{}),"hidden"in r&&(g=r.hidden),l&&(r.hidden=!g),g?le(e).show():d.done(function(){le(e).hide()}),d.done(function(){var t;le._removeData(e,"fxshow");for(t in f)le.style(e,t,f[t])});for(o=0;s>o;o++)n=m[o],c=d.createTween(n,g?r[n]:0),f[n]=r[n]||le.style(e,n),n in r||(r[n]=c.start,g&&(c.end=c.start,c.start="width"===n||"height"===n?1:0))}}function W(e,t,i,n,o){return new W.prototype.init(e,t,i,n,o)}function B(e,t){var i,n={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)i=Ct[o],n["margin"+i]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function q(e){return le.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var U,V,Y=typeof t,Q=e.document,K=e.location,X=e.jQuery,G=e.$,Z={},J=[],ee="1.9.1",te=J.concat,ie=J.push,ne=J.slice,oe=J.indexOf,se=Z.toString,ae=Z.hasOwnProperty,re=ee.trim,le=function(e,t){return new le.fn.init(e,t,V)},ce=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ue=/\S+/g,he=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,de=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,pe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,fe=/^[\],:{}\s]*$/,me=/(?:^|:|,)(?:\s*\[)+/g,ge=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ve=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,ye=/^-ms-/,_e=/-([\da-z])/gi,be=function(e,t){return t.toUpperCase()},we=function(e){(Q.addEventListener||"load"===e.type||"complete"===Q.readyState)&&(xe(),le.ready())},xe=function(){Q.addEventListener?(Q.removeEventListener("DOMContentLoaded",we,!1),e.removeEventListener("load",we,!1)):(Q.detachEvent("onreadystatechange",we),e.detachEvent("onload",we))};le.fn=le.prototype={jquery:ee,constructor:le,init:function(e,i,n){var o,s;if(!e)return this;if("string"==typeof e){if(!(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:de.exec(e))||!o[1]&&i)return!i||i.jquery?(i||n).find(e):this.constructor(i).find(e);if(o[1]){if(i=i instanceof le?i[0]:i,le.merge(this,le.parseHTML(o[1],i&&i.nodeType?i.ownerDocument||i:Q,!0)),pe.test(o[1])&&le.isPlainObject(i))for(o in i)le.isFunction(this[o])?this[o](i[o]):this.attr(o,i[o]);return this}if((s=Q.getElementById(o[2]))&&s.parentNode){if(s.id!==o[2])return n.find(e);this.length=1,this[0]=s}return this.context=Q,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):le.isFunction(e)?n.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),le.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return ne.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=le.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return le.each(this,e,t)},ready:function(e){return le.ready.promise().done(e),this},slice:function(){return this.pushStack(ne.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(0>e?t:0);return this.pushStack(i>=0&&t>i?[this[i]]:[])},map:function(e){return this.pushStack(le.map(this,function(t,i){return e.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:ie,sort:[].sort,splice:[].splice},le.fn.init.prototype=le.fn,le.extend=le.fn.extend=function(){var e,i,n,o,s,a,r=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[1]||{},l=2),"object"==typeof r||le.isFunction(r)||(r={}),c===l&&(r=this,--l);c>l;l++)if(null!=(s=arguments[l]))for(o in s)e=r[o],n=s[o],r!==n&&(u&&n&&(le.isPlainObject(n)||(i=le.isArray(n)))?(i?(i=!1,a=e&&le.isArray(e)?e:[]):a=e&&le.isPlainObject(e)?e:{},r[o]=le.extend(u,a,n)):n!==t&&(r[o]=n));return r},le.extend({noConflict:function(t){return e.$===le&&(e.$=G),t&&e.jQuery===le&&(e.jQuery=X),le},isReady:!1,readyWait:1,holdReady:function(e){e?le.readyWait++:le.ready(!0)},ready:function(e){if(!0===e?!--le.readyWait:!le.isReady){if(!Q.body)return setTimeout(le.ready);le.isReady=!0,!0!==e&&--le.readyWait>0||(U.resolveWith(Q,[le]),le.fn.trigger&&le(Q).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===le.type(e)},isArray:Array.isArray||function(e){return"array"===le.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[se.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==le.type(e)||e.nodeType||le.isWindow(e))return!1;try{if(e.constructor&&!ae.call(e,"constructor")&&!ae.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}var i;for(i in e);return i===t||ae.call(e,i)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||Q;var n=pe.exec(e),o=!i&&[];return n?[t.createElement(n[1])]:(n=le.buildFragment([e],t,o),o&&le(o).remove(),le.merge([],n.childNodes))},parseJSON:function(i){return e.JSON&&e.JSON.parse?e.JSON.parse(i):null===i?i:"string"==typeof i&&(i=le.trim(i))&&fe.test(i.replace(ge,"@").replace(ve,"]").replace(me,""))?Function("return "+i)():(le.error("Invalid JSON: "+i),t)},parseXML:function(i){var n,o;if(!i||"string"!=typeof i)return null;try{e.DOMParser?(o=new DOMParser,n=o.parseFromString(i,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(i))}catch(e){n=t}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||le.error("Invalid XML: "+i),n},noop:function(){},globalEval:function(t){t&&le.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ye,"ms-").replace(_e,be)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var o=0,s=e.length,a=i(e);if(n){if(a)for(;s>o&&!1!==t.apply(e[o],n);o++);else for(o in e)if(!1===t.apply(e[o],n))break}else if(a)for(;s>o&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:re&&!re.call("\ufeff ")?function(e){return null==e?"":re.call(e)}:function(e){return null==e?"":(e+"").replace(he,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?le.merge(n,"string"==typeof e?[e]:e):ie.call(n,e)),n},inArray:function(e,t,i){var n;if(t){if(oe)return oe.call(t,e,i);for(n=t.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,i){var n=i.length,o=e.length,s=0;if("number"==typeof n)for(;n>s;s++)e[o++]=i[s];else for(;i[s]!==t;)e[o++]=i[s++];return e.length=o,e},grep:function(e,t,i){var n,o=[],s=0,a=e.length;for(i=!!i;a>s;s++)n=!!t(e[s],s),i!==n&&o.push(e[s]);return o},map:function(e,t,n){var o,s=0,a=e.length,r=i(e),l=[];if(r)for(;a>s;s++)null!=(o=t(e[s],s,n))&&(l[l.length]=o);else for(s in e)null!=(o=t(e[s],s,n))&&(l[l.length]=o);return te.apply([],l)},guid:1,proxy:function(e,i){var n,o,s;return"string"==typeof i&&(s=e[i],i=e,e=s),le.isFunction(e)?(n=ne.call(arguments,2),o=function(){return e.apply(i||this,n.concat(ne.call(arguments)))},o.guid=e.guid=e.guid||le.guid++,o):t},access:function(e,i,n,o,s,a,r){var l=0,c=e.length,u=null==n;if("object"===le.type(n)){s=!0;for(l in n)le.access(e,i,l,n[l],!0,a,r)}else if(o!==t&&(s=!0,le.isFunction(o)||(r=!0),u&&(r?(i.call(e,o),i=null):(u=i,i=function(e,t,i){return u.call(le(e),i)})),i))for(;c>l;l++)i(e[l],n,r?o:o.call(e[l],l,i(e[l],n)));return s?e:u?i.call(e):c?i(e[0],n):a},now:function(){return(new Date).getTime()}}),le.ready.promise=function(t){if(!U)if(U=le.Deferred(),"complete"===Q.readyState)setTimeout(le.ready);else if(Q.addEventListener)Q.addEventListener("DOMContentLoaded",we,!1),e.addEventListener("load",we,!1);else{Q.attachEvent("onreadystatechange",we),e.attachEvent("onload",we);var i=!1;try{i=null==e.frameElement&&Q.documentElement}catch(e){}i&&i.doScroll&&function e(){if(!le.isReady){try{i.doScroll("left")}catch(t){return setTimeout(e,50)}xe(),le.ready()}}()}return U.promise(t)},le.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()}),V=le(Q);var Ce={};le.Callbacks=function(e){e="string"==typeof e?Ce[e]||n(e):le.extend({},e);var i,o,s,a,r,l,c=[],u=!e.once&&[],h=function(t){for(o=e.memory&&t,s=!0,r=l||0,l=0,a=c.length,i=!0;c&&a>r;r++)if(!1===c[r].apply(t[0],t[1])&&e.stopOnFalse){o=!1;break}i=!1,c&&(u?u.length&&h(u.shift()):o?c=[]:d.disable())},d={add:function(){if(c){var t=c.length;(function t(i){le.each(i,function(i,n){var o=le.type(n);"function"===o?e.unique&&d.has(n)||c.push(n):n&&n.length&&"string"!==o&&t(n)})})(arguments),i?a=c.length:o&&(l=t,h(o))}return this},remove:function(){return c&&le.each(arguments,function(e,t){for(var n;(n=le.inArray(t,c,n))>-1;)c.splice(n,1),i&&(a>=n&&a--,r>=n&&r--)}),this},has:function(e){return e?le.inArray(e,c)>-1:!(!c||!c.length)},empty:function(){return c=[],this},disable:function(){return c=u=o=t,this},disabled:function(){return!c},lock:function(){return u=t,o||d.disable(),this},locked:function(){return!u},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!c||s&&!u||(i?u.push(t):h(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},le.extend({Deferred:function(e){var t=[["resolve","done",le.Callbacks("once memory"),"resolved"],["reject","fail",le.Callbacks("once memory"),"rejected"],["notify","progress",le.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return le.Deferred(function(i){le.each(t,function(t,s){var a=s[0],r=le.isFunction(e[t])&&e[t];o[s[1]](function(){var e=r&&r.apply(this,arguments);e&&le.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[a+"With"](this===n?i.promise():this,r?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?le.extend(e,n):n}},o={};return n.pipe=n.then,le.each(t,function(e,s){var a=s[2],r=s[3];n[s[1]]=a.add,r&&a.add(function(){i=r},t[1^e][2].disable,t[2][2].lock),o[s[0]]=function(){return o[s[0]+"With"](this===o?n:this,arguments),this},o[s[0]+"With"]=a.fireWith}),n.promise(o),e&&e.call(o,o),o},when:function(e){var t,i,n,o=0,s=ne.call(arguments),a=s.length,r=1!==a||e&&le.isFunction(e.promise)?a:0,l=1===r?e:le.Deferred(),c=function(e,i,n){return function(o){i[e]=this,n[e]=arguments.length>1?ne.call(arguments):o,n===t?l.notifyWith(i,n):--r||l.resolveWith(i,n)}};if(a>1)for(t=Array(a),i=Array(a),n=Array(a);a>o;o++)s[o]&&le.isFunction(s[o].promise)?s[o].promise().done(c(o,n,s)).fail(l.reject).progress(c(o,i,t)):--r;return r||l.resolveWith(n,s),l.promise()}}),le.support=function(){var t,i,n,o,s,a,r,l,c,u,h=Q.createElement("div");if(h.setAttribute("className","t"),h.innerHTML="
a",i=h.getElementsByTagName("*"),n=h.getElementsByTagName("a")[0], !i||!n||!i.length)return{};s=Q.createElement("select"),r=s.appendChild(Q.createElement("option")),o=h.getElementsByTagName("input")[0],n.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==h.className,leadingWhitespace:3===h.firstChild.nodeType,tbody:!h.getElementsByTagName("tbody").length,htmlSerialize:!!h.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.5/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:!!o.value,optSelected:r.selected,enctype:!!Q.createElement("form").enctype,html5Clone:"<:nav>"!==Q.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===Q.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!r.disabled;try{delete h.test}catch(e){t.deleteExpando=!1}o=Q.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),a=Q.createDocumentFragment(),a.appendChild(o),t.appendChecked=o.checked,t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,h.attachEvent&&(h.attachEvent("onclick",function(){t.noCloneEvent=!1}),h.cloneNode(!0).click());for(u in{submit:!0,change:!0,focusin:!0})h.setAttribute(l="on"+u,"t"),t[u+"Bubbles"]=l in e||!1===h.attributes[l].expando;return h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===h.style.backgroundClip,le(function(){var i,n,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",a=Q.getElementsByTagName("body")[0];a&&(i=Q.createElement("div"),i.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(i).appendChild(h),h.innerHTML="
").text(i.label)).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t):void this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var n=RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return n.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("