(function(e){"use strict";e("#menuToggle, .menu-close").on("click",function(){e("#menuToggle").toggleClass("active");e("body").toggleClass("body-push-toleft");e("#theMenu").toggleClass("menu-open")});jQuery.fn.center=function(){this.css("position","fixed");this.css("top",e(window).height()/2-this.outerHeight()/2);this.css("left",e(window).width()/2-this.outerWidth()/2);return this};e("#loader").center();e(window).resize(function(){e("#loader").center()});e(document).ready(function(){e(".accordion").dcAccordion({saveState:!1});e(".social-toggle").on("click",function(t){t.preventDefault();e(this).next().toggleClass("open-menu")});e(".post-format-video").length&&e(".post-format-video").fitVids();e("audio,video").length&&e("audio,video").mediaelementplayer();e(".blog-post-slider").length&&e(".blog-post-slider").flexslider({animation:"fade",controlNav:!1,nextText:"",prevText:"",slideshowSpeed:4e3})});e(".work_listing").length&&e(".work_listing").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return e.el.attr("title")}},zoom:{enabled:!0,duration:300}})})(jQuery);