$(document).bind("ready",function(){cta_boxes.init()});var cta_boxes={$ctas_video:null,init:function(){$ctas_video=$(".cta.video, .single-cta.video");$ctas_video.on("click","a",function(n){n.preventDefault();$(this).parent().addClass("playing");$(this).after('<iframe type="text/html" width="'+$(this).width()+'" height="'+$(this).height()+'" src="'+$(this).attr("href")+'" frameborder="0" allowfullscreen/>')});var n=$(window),t;enquire.register("all and (min-width: 600px)",{setup:function(){$(document).on("home_carousel_loaded",function(){cta_boxes.calcHeight()});n.on("resize",function(){clearTimeout(t);t=setTimeout(function(){n.width()>599?cta_boxes.calcHeight():($(".home-carousel").closest(".connected-cols").find(".appcta:not(.twin)").css("height","auto"),$(".home-carousel").closest(".connected-cols").find(".appcta.twin").css("height","auto"))},250)})},deferSetup:!0})},calcHeight:function(){var e=$(".home-carousel"),i=$(".home-carousel").closest(".connected-cols").find(".appcta:not(.twin)"),r=$(".home-carousel").closest(".connected-cols").find(".appcta.twin:not(.wide)"),u=$(".home-carousel").closest(".connected-cols").find(".appcta.twin.top:not(.wide)"),n=document.querySelector(".home-carousel").getBoundingClientRect().height,t=n/2,f=t*2-n;i.outerHeight(n);r.outerHeight(t);u.outerHeight(t+f)}}