function init(){window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop,n=document.querySelector(".head-block");t>300?classie.add(n,"smaller"):classie.has(n,"smaller")&&classie.remove(n,"smaller")})}function hasScrolled(){var n=$(this).scrollTop();Math.abs(lastScrollTop-n)<=delta||(n>lastScrollTop&&n>navbarHeight?$(".head-block, body").removeClass("nav-down").addClass("nav-up"):n+$(window).height()<$(document).height()&&$(".head-block, body").removeClass("nav-up").addClass("nav-down"),lastScrollTop=n)}var didScroll;$(".mfp-close").click(function(){url=$(".ug-videoplayer-youtube iframe").attr("src");VID_REGEX=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/;youtubeID=url.match(VID_REGEX)[1];$(".ug-videoplayer-youtube iframe").attr("src","https://www.youtube.com/embed/"+youtubeID+"?controls=2&showinfo=true&rel=0&autoplay=0&enablejsapi=1&origin=https%3A%2F%2Fexecutivespeakers.com&widgetid=1")});$(document).ready(function(){$("select:not(.ignore)").niceSelect()});window.onload=init();var lastScrollTop=0,delta=5,navbarHeight=$(".head-block").outerHeight();$(window).scroll(function(){didScroll=!0});setInterval(function(){didScroll&&(hasScrolled(),didScroll=!1)},250);$(document).ready(function(){$(".field input").val("");$(".input-effect input").focusout(function(){""!=$(this).val()?$(this).addClass("has-content"):$(this).removeClass("has-content")})});$(document).ready(function(){$(".featured-clients").slick({dots:!1,infinite:!0,slidesToShow:6,slidesToScroll:1,autoplay:!0,autoplaySpeed:2e3,responsive:[{breakpoint:991,settings:{slidesToShow:4,slidesToScroll:1,infinite:!0,dots:!1}},{breakpoint:767,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:575,settings:{slidesToShow:2,slidesToScroll:1}}]});$(".keystone-speakers-slider").slick({dots:!1,lazyLoad:"ondemand",infinite:!0,slidesToShow:4,slidesToScroll:1,autoplay:!1,autoplaySpeed:2e3,responsive:[{breakpoint:991,settings:{slidesToShow:3,slidesToScroll:1,infinite:!0,dots:!1}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:575,settings:{slidesToShow:1,slidesToScroll:1}}]});$(".home-slider").slick({autoplay:!0,autoplaySpeed:1e4,responsive:[{breakpoint:991,settings:{adaptiveHeight:!0}},{breakpoint:767,settings:{dots:!0,slidesToShow:1}}]});$(".speaker-slider").slick({autoplay:!0,autoplaySpeed:5e3,responsive:[{breakpoint:991,settings:{adaptiveHeight:!0}},{breakpoint:767,settings:{dots:!0,slidesToShow:1}}]});$(".testimonial-slider").slick({dots:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:2e3})});$(document).ready(function(){$(".accordion-toggle").on("click",function(n){n.preventDefault();var t=$(this),i=t.next(".accordion-content");t.toggleClass("open");i.slideToggle(250)})});$(document).ready(function(){!function(){for(var r,i,t=document.querySelectorAll(".youtube"),n=0;n<t.length;n++)r="https://img.youtube.com/vi/"+t[n].dataset.embed+"/hqdefault.jpg",i=new Image,i.src=r,i.addEventListener("load",void t[n].appendChild(i)),t[n].addEventListener("click",function(){var n=document.createElement("iframe");n.setAttribute("frameborder","0");n.setAttribute("allowfullscreen","");n.setAttribute("src","https://www.youtube.com/embed/"+this.dataset.embed+"?rel=0&showinfo=0&autoplay=0");this.innerHTML="";this.appendChild(n)})}()});$(document).ready(function(){$(function(n){n(".lazy").lazy({effect:"fadeIn",effectTime:500,threshold:0})});$(".speakertab ul li a, .slick-arrow").click(function(){$("img.lazy").lazy({bind:"event",effect:"fadeIn",effectTime:500,delay:0})});$(".menu-btn").click(function(){$("body").addClass("clickButtonReveal");$(".menu-close").click(function(){$("body").removeClass("clickButtonReveal")})})});$(".myspeackers-list-dp").click(function(){$(".myspeackers-list-dp").not("body").removeClass("sp-bar-open");$("body").toggleClass("sp-bar-open")});$(document).ready(function(){$(window).scroll(function(){$(this).scrollTop()>100?$(".scrollup").fadeIn():$(".scrollup").fadeOut()});$(".scrollup").click(function(){return $("html, body").animate({scrollTop:0},600),!1})});$(document).ready(function(){var n=$(window).width();n<=1024&&$('a.clickTop[href^="#getIdeas"]').click(function(){var n=$(this.hash);return 0==n.length&&(n=$('a.clickTop[name="'+this.hash.substr(1)+'"]')),0==n.length&&(n=$("html")),$("html, body").animate({scrollTop:n.offset().top-280},500),!1});n<=767?$('a.clickTop[href^="#getIdeas"]').click(function(){var n=$(this.hash);return 0==n.length&&(n=$('a.clickTop[name="'+this.hash.substr(1)+'"]')),0==n.length&&(n=$("html")),$("html, body").animate({scrollTop:n.offset().top-235},500),!1}):$('a.clickTop[href^="#getIdeas"]').click(function(){var n=$(this.hash);return 0==n.length&&(n=$('a.clickTop[name="'+this.hash.substr(1)+'"]')),0==n.length&&(n=$("html")),$("html, body").animate({scrollTop:n.offset().top-140},500),!1})});$(document).ready(function(){var n=function(n,t,i){var r=n.outerHeight(),u=t.offset().top;i.scrollTop()>=u?(t.height(r),n.addClass("is-sticky")):(n.removeClass("is-sticky"),t.height("auto"))};$('[data-toggle="sticky-onscroll"]').each(function(){var t=$(this),i=$("<div>").addClass("sticky-wrapper-new");t.before(i);t.addClass("sticky");$(window).on("scroll.sticky-onscroll resize.sticky-onscroll",function(){n(t,i,$(this))});n(t,i,$(window))})});$(document).ready(function(){$("a.scrollLink").click(function(){$("a.scrollLink").removeClass("active");$(this).closest("a.scrollLink").addClass("active")});$("a.scrollLink").click(function(){$("body").removeClass("position");$(this).closest("body").addClass("position")});$("a.scrollLink").click(function(n){n.preventDefault();$("html, body").animate({scrollTop:$($(this).attr("href")).offset().top-240},500)})});$(document).ready(function(){$(".popupgallery").each(function(){$(this).magnificPopup({delegate:"a.popup-with-zoom-anim",type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,preloader:!1,midClick:!0,removalDelay:300,mainClass:"my-mfp-zoom-in",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}})})});$(".slider-for").slick({slidesToShow:1,slidesToScroll:1,arrows:!0,fade:!0,asNavFor:".slider-nav"});$(".slider-nav").slick({slidesToShow:4,slidesToScroll:1,asNavFor:".slider-for",dots:!1,arrows:!1,centerMode:!1,autoplay:!0,autoplaySpeed:1e4,focusOnSelect:!0,responsive:[{breakpoint:991,settings:{slidesToShow:3,slidesToScroll:1,infinite:!0,dots:!1}},{breakpoint:767,settings:{slidesToShow:3,slidesToScroll:1}}]})