(function(a){a.snowfall=function(c,b){function o(e,j,p,q,r){this.id=r;this.x=e;this.y=j;this.size=p;this.speed=q;this.step=0;this.stepSize=d(1,10)/100;e=a(document.createElement("div")).attr({"class":"snowfall-flakes",id:"flake-"+this.id}).css({width:this.size,height:this.size,background:b.flakeColor,position:"absolute",top:this.y,left:this.x,fontSize:0,zIndex:b.flakeIndex});if(a(c).get(0).tagName===a(document).get(0).tagName){a("body").append(e);c=a("body")}else a(c).append(e);this.element=document.getElementById("flake-"+ this.id);this.update=function(){this.y+=this.speed;this.y>k-(this.size+6)&&this.reset();this.element.style.top=this.y+"px";this.element.style.left=this.x+"px";this.step+=this.stepSize;this.x+=Math.cos(this.step);if(this.x>i-f||this.x