/**
 * Snowfall script [0.20 / 09.12.2009]
 *
 * Copyright (c) 2009 Hristo Drumev [www.hdrumev.com]
 * The script is freely distributable under the terms of an MIT license.
 *
 * Usage: Include this file and setup options
 *
 */


( function() {

// Configuration
var options =
{
  text    : '*',                       // Text to show [for snowflakes use '*']
  count   : 30,                        // Number of objects
  color   : ['#aac', '#ddf', '#ccd'],  // Possible colors of objects
  font    : ['Times'],                 // Possible fonts of objects
  minSize : 12,                        // Minimal font size
  maxSize : 28,                        // Maximal font size
  minSpeed: 1.0,                       // Minimal motion speed
  maxSpeed: 4.0,                       // Maximal motion speed
  shake   : 3.0                        // Shake distance
}

// --------------------------------------------------------------------------

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('g p(a){q(6 b W a)3[b]=a[b];3.r=[];3.B=h.X||9.j.C;3.s=h.Y||9.j.Z;3.j=9.11(\'j\')[0];3.D=3.t.E;3.F=3.G.E;q(6 i=0;i<3.H;++i){6 c={};c.f=9.I?9.I(\'12:\\/\\/13.14.15\\/16\\/17\',\'J\'):9.18(\'J\');c.f.19=3.1a;c.k=K(3.L+5.7()*(3.m-3.L),10);6 d=c.f.M;d.t=3.t[5.n(3.D*5.7())];d.1b=3.G[5.n(3.F*5.7())];d.1c=c.k+\'l\';d.1d=\'1e\';d.N=-c.k+\'l\';d.O=-c.k+\'l\';d.1f=0;d.1g=0;d.1h=\'1i\';d.1j=1k;3.j.1l(c.f);c.o=5.7()*3.1m*3.m;c.u=3.P+5.7()*(3.1n-3.P);c.v=c.f.C;c.8=c.o+K(5.7()*(3.B-4*c.o),10);c.8=c.8>c.v?c.8-c.v:c.8;c.x=c.8;c.y=-3.m-5.7()*3.s;c.Q=3.s-1.1o*c.k;c.R=c.o/2;c.w=0;c.S=c.u/T;3.r[i]=c}6 e=3;3.1p=h.1q(g(){1r e.U.1s(e)},T)};p.1t.U=g(){q(6 i=0;i<3.H;++i){6 a=3.r[i];a.y+=a.u;z(a.y<0)1u;z(a.y>=a.Q)a.y=-3.m;a.w+=a.S;a.x=a.8+5.1v(a.w)*a.R;6 b=a.f.M;b.N=5.n(a.x)+\'l\';b.O=5.n(a.y)+\'l\'}};6 A=h.V;h.V=g(){z(1w(A)===\'g\')A();1x p(1y)};',62,97,'|||this||Math|var|random|column|document||||||element|function|window||body|size|px|maxSize|floor|deltaX|Snowfall|for|items|windowHeight|color|deltaY|width|argSin|||if|windowOnload|windowWidth|clientWidth|colors|length|fonts|font|count|createElementNS|div|parseInt|minSize|style|left|top|minSpeed|maxY|mulX|deltaSin|50|onTimer|onload|in|innerWidth|innerHeight|clientHeight||getElementsByTagName|http|www|w3|org|1999|xhtml|createElement|innerHTML|text|fontFamily|fontSize|position|absolute|padding|margin|lineHeight|1em|zIndex|9999|appendChild|shake|maxSpeed|25|timer|setInterval|return|apply|prototype|continue|sin|typeof|new|options'.split('|'),0,{}));

} )();
