var fusion={fusionResizeWidth:0,fusionResizeHeight:0,toBool:function(i){return 1===i||"1"===i||!0===i||"true"===i||"on"===i},restArguments:function(i,e){return e=null==e?i.length-1:+e,function(){for(var n,t=Math.max(arguments.length-e,0),u=Array(t),r=0;r<t;r++)u[r]=arguments[r+e];switch(e){case 0:return i.call(this,u);case 1:return i.call(this,arguments[0],u);case 2:return i.call(this,arguments[0],arguments[1],u)}for(n=Array(e+1),r=0;r<e;r++)n[r]=arguments[r];return n[e]=u,i.apply(this,n)}},debounce:function(i,e,n){var t,u,r,o,s,f=this;return r=function(e,n){t=null,n&&(u=i.apply(e,n))},(o=this.restArguments(function(o){return t&&clearTimeout(t),n?(s=!t,t=setTimeout(r,e),s&&(u=i.apply(this,o))):t=f.delay(r,e,this,o),u})).cancel=function(){clearTimeout(t),t=null},o}};fusion.delay=fusion.restArguments(function(i,e,n){return setTimeout(function(){return i.apply(null,n)},e)}),jQuery(document).ready(function(){var i=fusion.debounce(function(){fusion.fusionResizeWidth!==jQuery(window).width()&&(jQuery(window).trigger("fusion-resize-horizontal"),fusion.fusionResizeWidth=jQuery(window).width()),fusion.fusionResizeHeight!==jQuery(window).height()&&(jQuery(window).trigger("fusion-resize-vertical"),fusion.fusionResizeHeight=jQuery(window).height())},250);fusion.fusionResizeWidth=jQuery(window).width(),fusion.fusionResizeHeight=jQuery(window).height(),jQuery(window).on("resize",i)});