/**handles:simple-share-buttons-adder-ssba,songwriter-placeholders,songwriter-scroll-to-top,songwriter-menubox,songwriter-selectnav,songwriter-responsive**/ var Main=function(s,r){"use strict";return{data:{},boot:function(t){this.data=t,s(document).ready(function(){this.init()}.bind(this))},init:function(){this.listen(),this.removeP()},listen:function(){var e=this;s("body").on("click",".ssbp-wrap a",function(t){t.preventDefault(),e.engageShareButton(this)})},engageShareButton:function(t){if("mobile"===s(t).data("facebook"))r.ui({method:"share",mobile_iframe:!0,href:s(t).data("href")},function(t){});else if("copy"===s(t).data("site")||"email"===s(t).data("site")||"print"===s(t).data("site")||"pinterest"===s(t).data("site"))if("copy"===s(t).data("site")){const o=document.querySelector('[data-site="copy"]');if(navigator.clipboard.writeText(o.getAttribute("href")),o){const a=document.createElement("span");a.innerText="URL Copied!",a.className="copy-notify",a.style.opacity="1",a.style.width="100px",a.style.fontSize="12px",a.style.transition="all .6s",a.style.position="absolute",a.style.top="-24px",a.style.left="-24px",o.append(a),setTimeout(()=>{a.style.opacity="0",a.style.minWidth="0",a.style.width="0",a.style.padding="0",a.style.overflow="hidden",setTimeout(()=>{a.remove()},1e3)},1500)}}else window.location.href=s(t).attr("href");else{var e=575,i=520,e=(s(window).width()-e)/2,n,e="status=1,width=575,height=520,top="+(s(window).height()-i)/2+",left="+e;window.open(s(t).attr("href"),"share",e)}},removeP:function(){}}}(window.jQuery,window.FB); (function(t){"use strict";function e(t,e,r){return t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent?t.attachEvent("on"+e,r):void 0}function r(t,e){for(var r,n,r=0,n=t.length;rw?b[w]:f[w-b.length],(x=N.attributes.placeholder)&&((x=x.nodeValue)&&J.inArray(B,N.type)&&p(N));L=setInterval(function(){for(w=0,S=b.length+f.length;ww?b[w]:f[w-b.length],(x=N.attributes.placeholder)?(x=x.nodeValue)&&J.inArray(B,N.type)&&(N.getAttribute(U)||p(N),x===N.getAttribute(R)&&("password"!==N.type||N.getAttribute(D))||("password"===N.type&&!N.getAttribute(D)&&J.changeType(N,"text")&&N.setAttribute(D,"password"),N.value===N.getAttribute(R)&&(N.value=x),N.setAttribute(R,x))):N.getAttribute(V)&&(n(N),N.removeAttribute(R));h||clearInterval(L)},100)}J.addEventListener(t,"beforeunload",function(){H.disable()}),H.disable=H.nativeSupport?e:i,H.enable=H.nativeSupport?e:l}(this); jQuery(function(){jQuery("body").prepend('
');var r=jQuery(".scroll-top");r.hide(),jQuery(window).scroll(function(){jQuery(window).scrollTop()<20?jQuery(".scroll-top").fadeOut():jQuery(".scroll-top").fadeIn()}),r.click(function(){return jQuery("html, body").animate({scrollTop:0},300),!1})}); jQuery(document).ready(function(o){var e=o(".menu-box-wrapper").offset().top;o(window).scroll(function(){o(window).scrollTop()>e?o(".menu-box-wrapper").addClass("sticky-nav"):o(".menu-box-wrapper").removeClass("sticky-nav")})}); window.selectnav=function(){"use strict";var n=function(e,t){if((e=document.getElementById(e))&&E(e)){document.documentElement.className+=" js";var t=t||{},s=t.activeclass||"active",d="boolean"!=typeof t.autoselect||t.autoselect,u="boolean"!=typeof t.nested||t.nested,v=t.indent||"→",f=t.label||"- MENU -",m=0,h=" selected ";e.insertAdjacentHTML("afterend",g(e));var e=document.getElementById(p());return e.addEventListener&&e.addEventListener("change",n),e.attachEvent&&e.attachEvent("onchange",n),e}function n(e){var t;(e=e||window.event).target?t=e.target:e.srcElement&&(t=e.srcElement),(t=3===t.nodeType?t.parentNode:t).value&&(window.location.href=t.value)}function E(e){var e=e.nodeName.toLowerCase();return"ul"===e||"ol"===e}function p(e){for(var t=1;document.getElementById("selectnav"+t);t++);return e?"selectnav"+t:"selectnav"+(t-1)}function g(e){m++;var t=e.children.length,n="",a="",c=m-1;if(t){if(c){for(;c--;)a+=v;a+=" "}for(var o=0;o"+a+l+"",!u||(l=e.children[o].children[1])&&E(l)&&(n+=g(l)))}return 1===m&&f&&(n='"+n),1===m&&(n='"),m--,n}}};return function(e,t){n(e,t)}}(); selectnav("nav");