var anzahl = 21;
var flocke ='/_pic/flocke1.gif';
var ende=400;
var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 640, doc_height = 480;
var rab_start = -320;
var rab_botoffset = 150;
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
function schnee() {
getWH();
for (i = 0; i < anzahl; ++ i) {
yp[i] += sty[i];
if (yp[i] > ende) {
xp[i] = Math.random()*(doc_width-am[i]-473);
yp[i] = 1;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
getWH();
}
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]) + "px";
}
window.setTimeout('schnee()', 25);
}
function rabbit(i) {
document.getElementById('rab1').style.top = "500px";
document.getElementById('rab1').style.left = i + "px";
document.getElementById('rab1').style.display="block";
i-=6;
if (i>-310) window.setTimeout('rabbit('+i+')',25);
else window.setTimeout('rabwait(9)',1000);
}
function rabwait(s) {
s--;
if (s>0) window.setTimeout('rabwait('+s+')',1000);
else rabbit(rab_start);
}
function getWH() {
if (document.body && document.body.offsetWidth) {
doc_width = document.body.offsetWidth;
doc_height = document.body.offsetHeight;
}
if (document.compatMode=='CSS1Compat' && document.documentElement && document.documentElement.offsetWidth ) {
doc_width = document.documentElement.offsetWidth;
doc_height = document.documentElement.offsetHeight;
}
if (window.innerWidth && window.innerHeight) {
doc_width = window.innerWidth;
doc_height = window.innerHeight;
}
rab_start = doc_width - 320;
ende = doc_height - 50;
}
if (document.getElementById) {
getWH();
for (i = 0; i < anzahl; ++ i) {
dx[i] = 0;
xp[i] = Math.random()*(doc_width-490);
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
document.writeln('<DIV ID=\"dot'+ i +'\" STYLE=\"position: absolute; z-index: '+ (110 + i) +';\"><img src=\"'+flocke + '\" border=0></DIV>');
}
window.setTimeout('rabwait(5)',50);
window.setTimeout('schnee()',500);
}

