$(document).ready(function(){$('.has-megamenu').hover(function(){$(this).find('.dropdown-menu').first().stop(!0,!0).slideDown(300)},function(){$(this).find('.dropdown-menu').first().stop(!0,!0).slideUp(0)});$(document).on('hover','.dropdown-menu',function(e){e.stopPropagation()})});(function($,window){var adjustAnchor=function(){var $anchor=$(':target'),fixedElementHeight=150;if($anchor.length>0){window.scrollTo(0,$anchor.offset().top-fixedElementHeight)}};$(window).on('hashchange load',function(){adjustAnchor()})})(jQuery,window);try{window.cookieconsent.initialise({"palette":{"popup":{"background":"#fff","text":"#333"},"button":{"background":"#075ebd","text":"#fff"}},"theme":"classic","content":{"message":"Este site usa cookies para melhorar a sua experiência de navegação. Continuando a navegar no site, você concorda com o uso deles.","dismiss":"Aceitar","link":"Saiba mais","href":"/universidade/politica-privacidade.aspx"}})}catch(e){}
$(document).ready(function(){voltarParaOTopo();removeLinksRelacionados();try{$('[data-toggle="tooltip"]').tooltip()}catch(ex){}
$('a[rel="external"]').attr('target','_blank')});var voltarParaOTopo=function(){$(window).scroll(function(){if($(this).scrollTop()>50){$('#topo').fadeIn()}else{$('#topo').fadeOut()}});$('#topo').click(function(){$('body,html').animate({scrollTop:0},400);return!1})}
var removeLinksRelacionados=function(){var url=window.location.href;var fileName=window.location.pathname.substring(window.location.pathname.lastIndexOf("/")+1)
var link=$("#pills-tab .nav-link").each(function(index,elem){if($(elem).attr("href")===fileName){$(elem).addClass("desativado").removeAttr("href")}})}
function centralSistemas(){try{return window.self!==window.top}catch(e){return!0}}
if(centralSistemas()){document.body.classList.add("central-aluno")}
$(document).ready(function(){$(".down").click(function(){$('html, body').animate({scrollTop:$(".scroll-up-mobile").offset().top},1500)})});$(document).ready(function(){$(".up").click(function(){$('html, body').animate({scrollTop:$(".scroll-down-mobile").offset().top},1000)})});jQuery($=>{if(window.location.hash){var hash=window.location.hash;$(hash).collapse('show')}})