$(function(){typeof fine_print!="undefined"&&typeof fine_print=="string"&&(fpholder=document.getElementById("footer-fine-print"),fpholder.innerHTML=fine_print)});addEvent(document.getElementById("uf_toggle"),"click",toggleFooterLinks);addEvent(document.getElementById("uf_expandable"),"keyup",escapeExpandable);function addEvent(n,t,i){if(n){if(n.addEventListener)return n.addEventListener(t,i,{passive:!0});if(n.attachEvent)return n.attachEvent("on"+t,i)}}function toggleFooterLinks(n){let t=n.target,i=t.getAttribute("aria-expanded");i=="true"?(t.setAttribute("aria-expanded","false"),t.focus()):(t.setAttribute("aria-expanded","true"),document.getElementById("uf_expandable").querySelector("a").focus())}function escapeExpandable(n){if(n.key=="Escape"){let n=document.getElementById("uf_toggle");window.getComputedStyle(n).display!=="none"&&(n.setAttribute("aria-expanded","false"),n.focus())}}$(function(){$("#univSpots").length&&$("#univSpots").owlCarousel({autoplay:!0,autoplayTimeout:6e3,autoHeight:!1,loop:!0,autoplayHoverPause:!0,dots:!0,nav:!1,responsive:{0:{items:1},768:{items:1},980:{items:1},1199:{items:1}}});(window.location.hash==="#ww-campus"||window.location.hash==="#db-campus"||window.location.hash==="#pc-campus"||window.location.hash==="#asia-campus")&&showCampus(window.location.hash);$('a[href="#asia-campus"], a[href="#db-campus"], a[href="#pc-campus"], a[href="#ww-campus"]').click(function(){showCampus($(this).attr("href"))});t();$(window).resize(t);n();$(".degree-zoomer-small a").click(n);setTimeout(n,500);$(window).resize(n);function t(){maxHeight=-1;$(".career-box.match-height").height("auto").each(function(){maxHeight=maxHeight>$(this).height()?maxHeight:$(this).height();$h4=$(this).find("h4");leftOffset=$h4.outerWidth()/2;bottomOffset=$h4.outerHeight()/2;$h4.css("left","calc(50% - "+leftOffset+"px)").css("bottom","calc(50% - "+bottomOffset+"px)")}).height(maxHeight)}function n(){$(".degree-flip-container").each(function(){$(this).height($(this).parent().height());$(this).width($(this).parent().width());$(this).find(".degree-flip-front, .degree-flip-back, .degree-flip-back2").height($(this).parent().height());$(this).find(".degree-flip-front, .degree-flip-back, .degree-flip-back2").width($(this).parent().width())});$(".degree-zoomer-small .zoomer-caption h4, .degree-zoomer .zoomer-caption h4, .degree-zoomer .zoomer-caption .degree-flip-container").each(function(){$(this).css("position","static").css("margin-top",($(this).parent().outerHeight()-$(this).outerHeight())/2)})}degreeDetailsSettings.numCampuses==1&&goog_report_conversion(window.location)});showCampus=function(n){if(wasActive=$('a[href="'+n+'"]').hasClass("active"),$('a[href="#asia-campus"], a[href="#db-campus"], a[href="#pc-campus"], a[href="#ww-campus"]').removeClass("active").parent().removeClass("active"),wasActive)$("#asia-campus, #db-campus, #pc-campus, #ww-campus").fadeOut(1200),$("html,body").animate({scrollTop:$(".degree-campus-buttons div").offset().top},1e3,"swing");else{$('a[href="'+n+'"]').addClass("active").parent().addClass("active");$("#asia-campus, #db-campus, #pc-campus, #ww-campus").not(n).fadeOut(1200).promise().done(function(){$(n).fadeIn(1200)});var t=$(n+" .owl-carousel").data("owlCarousel");t!=null&&fireRefreshEventOnWindow();$("html,body").animate({scrollTop:$("#above-campus").offset().top},1e3,"swing")}switch(n){case"#ww-campus":degreeDetailsSettings.ConversionId=degreeDetailsSettings.ConversionConfig.WW.ConversionId;degreeDetailsSettings.ConversionLabel=degreeDetailsSettings.ConversionConfig.WW.ConversionLabel;break;case"#db-campus":degreeDetailsSettings.ConversionId=degreeDetailsSettings.ConversionConfig.DB.ConversionId;degreeDetailsSettings.ConversionLabel=degreeDetailsSettings.ConversionConfig.DB.ConversionLabel;break;case"#pc-campus":degreeDetailsSettings.ConversionId=degreeDetailsSettings.ConversionConfig.PC.ConversionId;degreeDetailsSettings.ConversionLabel=degreeDetailsSettings.ConversionConfig.PC.ConversionLabel;break;case"#asia-campus":degreeDetailsSettings.ConversionId=degreeDetailsSettings.ConversionConfig.Asia.ConversionId;degreeDetailsSettings.ConversionLabel=degreeDetailsSettings.ConversionConfig.Asia.ConversionLabel}degreeDetailsSettings.ConversionId&°reeDetailsSettings.ConversionLabel&&goog_report_conversion(window.location)};fireRefreshEventOnWindow=function(){var n=document.createEvent("HTMLEvents");n.initEvent("resize",!0,!1);window.dispatchEvent(n)};goog_snippet_vars=function(){var n=window;n.google_conversion_id=degreeDetailsSettings.ConversionId;n.google_conversion_label=degreeDetailsSettings.ConversionLabel;n.google_remarketing_only=!1};goog_report_conversion=function(){goog_snippet_vars();window.google_conversion_format="3";var n={};n.onload_callback=function(){};var t=window.google_trackConversion;typeof t=="function"&&t(n)};$(".logout").click(function(n){n.preventDefault();jQuery.ajax({url:"/action/logout",type:"POST",context:this,success:function(){window.location.reload()},error:function(){}})});$("#mezzoMenu").on("shown.bs.modal",function(){$("#mezzoMenu .slideReveal").each(function(n){$(this).addClass("active"+n)})});$("#mezzoSearch").on("shown.bs.modal",function(){$("input.search-query").focus();$("#mezzoSearch .slideReveal").each(function(n){$(this).addClass("active"+n)})});$("#mezzoMenu, #mezzoSearch").on("hidden.bs.modal",function(){$(".slideReveal").removeClass(function(n,t){return(t.match(/(^|\s)active\S+/g)||[]).join(" ")})});$(function(n){consentBanners=typeof consentBanners!="undefined"&&consentBanners instanceof Array?consentBanners:[];consentBanners.forEach(function(t){var o=new Date,i=o.toISOString();o.setTime(o.getTime()+31536e6);var r="path=/;",u="expires="+o.toUTCString()+";",f=window.location.host.indexOf("embry-riddle.com")>=0?"domain=embry-riddle.com;":"domain=erau.edu;",e="secure; SameSite=Lax;";const a=document.getElementById("bannerBackdrop"),s=document.getElementById("cookie-consent-eu"),h=document.getElementById("cookie-consent");t.country==""&&(t.country="unknown");s!=null&&s.showModal();h!=null&&h.show();function c(){for(var t="",i,n=0;n<32;n++)i=Math.random()*16|0,(n==8||n==12||n==16||n==20)&&(t+="-"),t+=(n==12?4:n==16?i&3|8:i).toString(16);return t}function l(i){n.ajax({method:"GET",url:"/action/experience/tracking/update?trackingEnabled="+i}).done(function(){console.log("updateSitecoreTracking() Succeeded. Country = "+t.country+".")}).fail(function(){console.log("updateSitecoreTracking() Failed. Country = "+t.country+".")})}t.iseu||t.consentexists||(l("true"),document.cookie='ERAU_Tracking_Consent={"categories":["necessary","analytics","targeting"],"level":["necessary","analytics","targeting"],"revision":0,"data":null,"rfc_cookie":false,"consent_date":"'+i+'","consent_uuid":"'+c()+'","last_consent_update":"'+i+'"};'+r+u+f+e);n(".cookiebanner button.acknowledge").click(function(){document.cookie='ERAU_Tracking_Banner={"acknowledged":true,"country":"'+t.country+'"};'+r+u+f+e;h!=null&&h.close()});n(".cookiebanner button.accept").click(function(){l("true");document.cookie='ERAU_Tracking_Consent={"categories":["necessary","analytics","targeting"],"level":["necessary","analytics","targeting"],"revision":0,"data":null,"rfc_cookie":false,"consent_date":"'+i+'","consent_uuid":"'+c()+'","last_consent_update":"'+i+'"};'+r+u+f+e});n(".cookiebanner button.decline").click(function(){l("false");document.cookie='ERAU_Tracking_Consent={"categories":["necessary"],"level":["necessary"],"revision":0,"data":null,"rfc_cookie":false,"consent_date":"'+i+'","consent_uuid":"'+c()+'","last_consent_update":"'+i+'"};'+r+u+f+e});n(".cookiebanner button.accept, .cookiebanner button.decline").click(function(){document.cookie='ERAU_Tracking_Banner={"acknowledged":true,"country":"'+t.country+'"};'+r+u+f+e;s!=null&&(s.close(),a.classList.remove("banner-backdrop"))})})});$(document).ready(function(){const n=document.querySelector("dialog.cookiebanner");if(n!=null){const t=()=>{const t=n.offsetHeight;document.documentElement.style.setProperty("--height-dialog",`${t}px`)},i=new ResizeObserver(t);i.observe(n)}});$(document).ready(function(n){if(typeof loadERAUVideo!="undefined"){n("body").append('