text: !function(n){n.fn.snow=function(t){var r=n('<div id="flake" />').css({position:"absolute",top:"-50px"}).html("&#10052;"),i=n(document).height(),u=n(document).width(),t=n.extend({},{minSize:10,maxSize:20,newOn:500,flakeColor:"#FFFFFF"},t);setInterval(function(){var f=Math.random()*u-100,e=.5+Math.random(),o=t.minSize+Math.random()*t.maxSize,s=i-40,h=f-100+200*Math.random(),c=10*i+5e3*Math.random();r.clone().appendTo("body").css({left:f,opacity:e,"font-size":o,color:t.flakeColor}).animate({top:s,left:h,opacity:.2},c,"linear",function(){n(this).remove()})},t.newOn)}}(jQuery),function(n){n.ardour=n.ardour||{};n.ardour.extensions=n.ardour.extensions||{};n.ardour.extensions.plugins=n.ardour.extensions.plugins||{};n.ardour.extensions.plugins.christmas={setupSnow:function(t){t||(t="#cccccc");n.fn.snow({minSize:5,maxSize:25,newOn:350,flakeColor:t})},setupSnowman:function(){n("body").append('<div class="ardour-snow-background">&nbsp;<\/div><div class="ardour-snowman">&nbsp;<\/div>');n(".ardour-snowman").click(function(){n(this).toggleClass("ardour-snowman-expanded")})},isMobile:function(){return n(".single-column").is(":visible")},isCookiePresent:function(n){return this.getCookie(n)=="true"},getCookie:function(n){var i="; "+document.cookie,t=i.split("; "+n+"=");if(t.length==2)return t.pop().split(";").shift()},setCookie:function(n,t,i){document.cookie=n+"="+t+"; expires="+i+"; path=/"},showDecorations:function(n){n.snowEnabled&&(n.snowEnabledForMobile||!this.isMobile())&&this.setupSnow(n.snowColor);n.snowmanEnabled&&(n.snowmanEnabledForMobile||!this.isMobile())&&this.setupSnowman()},hideDecorations:function(n){this.setCookie(n.cookieName,"","Thu, 01 Jan 1970 00:00:00 UTC");window.location.reload()},register:function(t){var i=this;(t.textboxSelector&&t.textboxEnabledValue&&t.textboxDisabledValue&&n(t.textboxSelector).keyup(function(){var r=n(t.textboxSelector).val().toLowerCase();r==t.textboxEnabledValue.toLowerCase()&&(i.setCookie(t.cookieName,"true",t.cookieExpiryTime),i.showDecorations(t));r==t.textboxDisabledValue.toLowerCase()&&i.hideDecorations(t)}),!t.requireCookie||this.isCookiePresent(t.cookieName))&&setTimeout(function(){i.showDecorations(t)},1e3)}}}(jQuery,window);