(function () {
	var pars  = [0,'15'];
	var no    = pars[1];
	var speed = 20;
	snowflake = ['/.s/wid/2/flake1.gif', '/.s/wid/2/flake2.gif', '/.s/wid/2/flake3.gif', '/.s/wid/2/flake4.gif', '/.s/wid/2/flake5.gif', ];
	var dx = xp = yp = am = stx = sty = [];
	var i, scroll_value;
	var html       = document.documentElement;
	var doc_width  = document.body.clientWidth;
	var doc_height = document.body.clientHeight;
	for (i = 0; i < no; ++i) {
		dx[i] = 0;
		xp[i] = Math.random() * (doc_width - 50);
		yp[i] = Math.random() * doc_height;
		am[i] = Math.random() * 20;
		stx[i] = 0.02 + Math.random() / 10;
		sty[i] = 0.7 + Math.random();
		var P = Math.floor(Math.random() * snowflake.length);
		rndPic = snowflake[P];
		document.write('<div id=dot' + i + ' style="position:absolute; left:15px; top:15px;"><img alt="" src="' + rndPic + '" border=0></div>');
	}
	function snow_dfd() {
		for (i = 0; i < no; ++i) {
			yp[i] += sty[i];
			if (document.body.scrollTop > 0) {
				scroll_value = (doc_height + document.body.scrollTop) - 55;
			} else scroll_value = doc_height - 55;
			if (yp[i] > scroll_value) {
				xp[i] = Math.random() * (doc_width - am[i] - 30);
				yp[i] = 0;
				stx[i] = 0.02 + Math.random() / 10;
				sty[i] = 0.7 + Math.random();
			}
			dx[i] += stx[i];
			document.getElementById('dot' + i).style.top = yp[i] + 'px';
			document.getElementById('dot' + i).style.left = ((xp[i] + am[i] * Math.sin(dx[i])) - 50) + 'px';
		}
		setTimeout('window.snow_dfd()', speed);
	}
	snow_dfd();
	window.snow_dfd = snow_dfd;
})();