<script type="text/javascript">
<!--
var snowsrc="gfxu/snow.gif";
var no = 50; // Anzahl der Flocken
var xmod = 0.01; // horizontale Abweichung
var ymod = 0.85; // Fallgeschwindigkeit
var dx, xp, yp;
var am, stx, sty;
var i, doc_width, doc_height;
doc_width = screen.width;
doc_height = screen.height*2.5;
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
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] = xmod + Math.random() / 10;
sty[i] = ymod + Math.random();
document.write('<div id="dot'+ i +'" style="position: absolute; z-index: '+ i +'; visibility: visible; top: 15px; left: 15px;"><img src="'+snowsrc+'" border="0"></div>');
}
function snow()
{
for (i = 0; i < no; ++ i)
{
yp[i] += sty[i];
if(yp[i] > doc_height - 180)
{
xp[i] = Math.random()*(doc_width - am[i] - 30);
yp[i] = 0;
stx[i] = xmod + Math.random() / 10;
sty[i] = ymod + Math.random();
}
dx[i] += stx[i];
document.getElementById('dot' + i).style.top = yp[i];
document.getElementById('dot' + i).style.left = xp[i] + am[i] * Math.sin(dx[i]);
}
setTimeout("snow()", 10);
}
snow();
// -->
</script>