!function(a){"use strict";a.fn.fusion_footer_parallax=function(){var e,o,i=a(this),t=0,r=0;i.length&&setTimeout(function(){var n="fixed"===i.css("position")?a("#wrapper").outerHeight():a("#wrapper").outerHeight()-i.outerHeight();a("body").hasClass("layout-boxed-mode")&&!a("body").hasClass("fusion-top-header")&&(t=a("body").offset().top,r=a("body").outerHeight(!0)-a("body").outerHeight()-t),i.outerHeight()+r<a(window).height()&&n>a(window).height()&&("top"===avadaParallaxFooterVars.header_position||"top"!==avadaParallaxFooterVars.header_position&&a(window).height()>a(".side-header-wrapper").height())&&Modernizr.mq("only screen and (min-width:"+parseInt(avadaParallaxFooterVars.side_header_break_point,10)+"px)")&&!Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")&&!Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)")?(a("body").hasClass("layout-boxed-mode")?i.css({position:"","margin-left":"auto","margin-right":"auto",padding:"","max-width":"var(--site_width)"}):i.css({position:"",margin:"",padding:"","max-width":""}),a("body").hasClass("layout-boxed-mode")&&!a("body").hasClass("fusion-top-header")&&i.css("bottom",r),a("#main").css("margin-bottom",i.outerHeight()+r),1<=a(".tfs-slider").length&&1==a(".tfs-slider").data("parallax")&&i.hasClass("fusion-footer-parallax")&&(e=a(".tfs-slider").parents("#sliders-container").outerHeight(),o=i.outerHeight(),e>o?a("#main").css("min-height",e+10):o>e&&a("#main").css("min-height",o+10))):(i.css({position:"relative",margin:"0",padding:"0",bottom:"0"}),a("#main").css({"margin-bottom":"","min-height":""}))},200)}}(jQuery),jQuery(document).ready(function(){jQuery(".fusion-footer-parallax").fusion_footer_parallax(),jQuery(window).on("resize fusion-parallax-footer-refresh",function(){jQuery(".fusion-footer-parallax").fusion_footer_parallax()})});