!function(){function e(e){var t=$("body, .w-navpane-slide:not(.w-navpane)").last(),n=[{top:""},{top:function(){return $(document).height()-l.element.offset().top-l.element.outerHeight(!0)+"px"}}];e||(n[0].width="",n[1].width=function(){return t.width()});var o=t.offset().left;l.element.css(n[0]),l.element.offset({left:o}),l.element.css(n[1]),l.element.offset({left:o}),l.element.css({height:l.getHeight()+"px"}),window.container=l}function t(t){l.compressed&&t||(t&&l.element.toggleClass("expanded"),l.compressed&&($("html").css("overflow-y","scroll"),e()),l.compressed=t||!l.compressed,l.element.stop().animate({height:l.getHeight()+"px"},{step:function(){e(!0)},complete:function(){l.compressed&&$("html").css("overflow-y",""),e(),l.compressed||l.iframe[0].contentWindow.postMessage("expanded","*")}}),l.compressed||$("body, html").stop().animate({scrollTop:$(document).height()}))}function n(t,n,s,r){$=t;var a="https://"+r+"/footer_signup.php?lang="+_W.siteLang;$('#wsite-base-style, link[href^="//'+n+'/css/sites.css"]').length||$('').appendTo("head"),l.element=$("#weebly-footer-signup-container"),l.iframe=$("#weebly-footer-signup-iframe"),i()&&l.element.addClass("light"),l.element.appendTo(l.element.parent()),l.element.css({height:l.getHeight()+"px"}),e(),o(a),setTimeout(e,300)}function o(n){l.element.find(".signup-container-header").click(function(e){if(r()){e.preventDefault();var n=$(this).find("a").attr("href"),o=window.open(n,"_blank");o&&o.focus()}else{if($(this).find("a").is(e.target))return;l.element.toggleClass("expanded"),t()}}).one("mouseenter",function(){$("#weebly-footer-signup-iframe").attr("src",n)});var o;$(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(o),o=setTimeout(e,300)})}function i(){var e,t=l.element.parent().css("color").match(/[\d\.]+/g);return t.length<3?!1:(e=s(t[0],t[1],t[2]),e[2]<.57)}function s(e,t,n){e/=255,t/=255,n/=255;var o,i,s=Math.max(e,t,n),r=Math.min(e,t,n),l=(s+r)/2;if(s==r)o=i=0;else{var a=s-r;switch(i=l>.5?a/(2-s-r):a/(s+r),s){case e:o=(t-n)/a+(n>t?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return[o,i,l]}var r=function(){var e=window.matchMedia("(max-width: 480px)");return e?e.matches:!0},l={compressed:!0,shortHeight:58,tallHeight:333,mobileHeight:110,getHeight:function(){return r()?l.mobileHeight:l.compressed?l.shortHeight:l.tallHeight}};window.Weebly=window.Weebly||{},window.Weebly.footer={},window.Weebly.footer.setupContainer=n}(),_wAMD.define("site/published/footerSignup",function(){}),_wAMD.define("site/footerSignup",function(){});