!function(a){"use strict";a.fn.fusion_footer_parallax=function(){var b,c,d=a(this),e=0,f=0;d.length&&setTimeout(function(){var g="fixed"===d.css("position")?a("#wrapper").outerHeight():a("#wrapper").outerHeight()-d.outerHeight();a("body").hasClass("layout-boxed-mode")&&!a("body").hasClass("fusion-top-header")&&(e=a("body").offset().top,f=a("body").outerHeight(!0)-a("body").outerHeight()-e),d.outerHeight()+f<a(window).height()&&g>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")?d.css({position:"","margin-left":"auto","margin-right":"auto",padding:"","max-width":"var(--site_width)"}):d.css({position:"",margin:"",padding:"","max-width":""}),a("body").hasClass("layout-boxed-mode")&&!a("body").hasClass("fusion-top-header")&&d.css("bottom",f),a("#main").css("margin-bottom",d.outerHeight()+f),1<=a(".tfs-slider").length&&1==a(".tfs-slider").data("parallax")&&d.hasClass("fusion-footer-parallax")&&(b=a(".tfs-slider").parents("#sliders-container").outerHeight(),c=d.outerHeight(),b>c?a("#main").css("min-height",b+10):c>b&&a("#main").css("min-height",c+10))):(d.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()})});