!function(){function e(e){var t=[{top:""},{top:function(){return $(document).height()-l.element.offset().top-l.element.outerHeight(!0)+"px"}}];e||(t[0].width="",t[1].width=function(){return $(document).width()}),l.element.css(t[0]),l.element.offset({left:0}),l.element.css(t[1]),l.element.offset({left:0})}function t(t){l.compressed&&t||(t&&l.element.toggleClass("expanded"),l.compressed=t||!l.compressed,l.element.stop().animate({height:l.getHeight()+"px"},{step:function(){e(!0)},complete:function(){e(),l.compressed||l.iframe[0].contentWindow.postMessage("expanded","*")}}),l.compressed||$("body, html").stop().animate({scrollTop:$(document).height()}))}function i(t,i,o){$=t,$('link[href^="//'+i+'/css/sites.css"]').length||$('<link href="//'+i+"/css/sites.css?buildtime="+o+'" rel="stylesheet">').appendTo("head"),l.element=$("#weebly-footer-signup-container"),l.iframe=$("#weebly-footer-signup-iframe"),r()&&l.element.addClass("light"),l.element.appendTo(l.element.parent()),l.element.css({height:l.getHeight()+"px"}),e(),n(),setTimeout(e,300)}function n(){l.element.find(".signup-container-header").click(function(e){$(this).find("a").is(e.target)||(l.element.toggleClass("expanded"),t(),s())}).on("mouseenter",function(){c.hoverTimeout=setTimeout(o,250)}).on("mouseleave",function(){clearTimeout(c.hoverTimeout)});var i;$(window).on("resize",function(){e()}).on("click",function(e){l.element.is(e.target)||0!=l.element.find(e.target).length||t(!0)}).on("scroll",function(){clearTimeout(i),i=setTimeout(e,300)})}function o(){c.hovered||(c.hovered=!0)}function s(){c.expanded||(c.expanded=!0)}function r(){var e,t=l.element.parent().css("color").match(/[\d\.]+/g);return t.length<3?!1:(e=a(t[0],t[1],t[2]),e[2]<.57)}function a(e,t,i){e/=255,t/=255,i/=255;var n,o,s=Math.max(e,t,i),r=Math.min(e,t,i),a=(s+r)/2;if(s==r)n=o=0;else{var l=s-r;switch(o=a>.5?l/(2-s-r):l/(s+r),s){case e:n=(t-i)/l+(i>t?6:0);break;case t:n=(i-e)/l+2;break;case i:n=(e-t)/l+4}n/=6}return[n,o,a]}var l={compressed:!0,shortHeight:58,tallHeight:333,getHeight:function(){return l.compressed?l.shortHeight:l.tallHeight}},c={hovered:!1,expanded:!1,hoverTimeout:null};window.Weebly=window.Weebly||{},window.Weebly.footer={},window.Weebly.footer.setupContainer=i}(),_wAMD.define("site/footerSignup",function(){});