(function(e){function s(e){if(e instanceof jQuery){e=e[0]}var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function o(e){return e[Math.floor(Math.random()*e.length)]}function u(e,t){return Math.floor(Math.random()*(t-e+1))+e}var t=0;var n=["webkit","o","ms","moz",""];var r=n.length;for(var i=0;i30?f:30)-20+u(0,20))+"s linear 0s infinite"+", "+i+" "+u(2,4)+"s linear 0s infinite";var c=e('
');var h=u(n.minSize,n.maxSize);var p=h-Math.floor(u(0,n.minSize)/3);c.prefixedEvent("AnimationEnd",function(){if(!s(this)){e(this).remove()}}).prefixedEvent("AnimationIteration",function(t){if((e.inArray(t.animationName,n.blowAnimations)!=-1||e.inArray(t.animationName,n.swayAnimations)!=-1)&&!s(this)){e(this).remove()}}).css({"-webkit-animation":l,animation:l,"border-radius":u(n.maxSize,n.maxSize+Math.floor(Math.random()*10))+"px "+u(1,Math.floor(p/4))+"px",height:h+"px",left:Math.random()*document.documentElement.clientWidth-100+"px","margin-top":-(Math.floor(Math.random()*20)+15)+"px",width:p+"px"});r.append(c)};r.data("sakura-anim-id",requestAnimationFrame(a))}else if(t==="stop"){var f=r.data("sakura-anim-id");if(f){cancelAnimationFrame(f);r.data("sakura-anim-id",null)}setTimeout(function(){e("."+n.className).remove()},n.newOn+50)}}})(jQuery)