<html>

<head>
<meta http-equiv="Content-Language" content="de">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>var no</title>
</head>

<body>

<p>var no = 35; // number of snowflakes<br>
var speed = 10; // the smaler, the faster move snowflakes<br>
var snowflake = &quot;http://www.tanzen-in-kiel.de/cms_2_7/media/image/snow.gif&quot;; // 
picture source<br>
var ns4b = (document.layers) ? 1 : 0; // Netscape4.x<br>
var b4up = (document.all) ? 1 : 0; // MSIE4, Opera5, Netccape5<br>
var dx, xp, yp; // coordinate and position variables<br>
var am, stx, sty; // amplitude and step variables<br>
var snowobj;<br>
var i, doc_width = 800, doc_height = 600; // 800x600 screen-default<br>
<br>
if (ns4b) {<br>
doc_width = self.innerWidth;<br>
doc_height = self.innerHeight;<br>
} else if (b4up) {<br>
doc_width = document.body.clientWidth;<br>
doc_height = document.body.clientHeight;<br>
} else {<br>
doc_width = window.innerWidth;<br>
doc_height = window.innerHeight;<br>
b4up = 1;<br>
}// if<br>
<br>
dx = new Array();<br>
xp = new Array();<br>
yp = new Array();<br>
am = new Array();<br>
stx = new Array();<br>
sty = new Array();<br>
snowobj = new Array();<br>
<br>
for (i=0; i&lt;no; ++i) { // iterate for every snowflake<br>
dx[i] = 0; // set coordinate variables<br>
xp[i] = Math.random()*(doc_width-50); // set position variables<br>
yp[i] = Math.random()*doc_height;<br>
am[i] = Math.random()*20; // set amplitude variables<br>
stx[i] = 0.02 + Math.random()/10; // set step variables<br>
sty[i] = 0.7 + Math.random(); // set step variables<br>
if (ns4b) { // set layers<br>
document.write(&quot;&lt;LAYER NAME=\&quot;flake&quot;+ i +&quot;\&quot; LEFT=\&quot;15\&quot; TOP=\&quot;15\&quot; VISIBILITY=\&quot;show\&quot;&gt;&lt;IMG 
SRC=\&quot;&quot;+ snowflake +&quot;\&quot; BORDER=0&gt;&lt;/LAYER&gt;&quot;);<br>
} else if (b4up) {<br>
document.write(&quot;&lt;DIV ID=\&quot;flake&quot;+ i +&quot;\&quot; STYLE=\&quot;position:absolute; z-index:&quot;+ i 
+&quot;; visibility:visible; top:15px; left:15px;\&quot;&gt;&lt;IMG SRC=\&quot;&quot;+ snowflake +&quot;\&quot; 
BORDER=0&gt;&lt;/DIV&gt;&quot;);<br>
snowobj[i] = eval (document.getElementById(&quot;flake&quot;+i).style);<br>
}//if<br>
}//for<br>
<br>
function snowNS() { // Netscape4 main animation function<br>
for (i=0; i&lt;no; ++i) { // iterate for every snowflake<br>
yp[i] += sty[i];<br>
if (yp[i] &gt; doc_height-50) {<br>
xp[i] = Math.random()*(doc_width-am[i]-30);<br>
yp[i] = 0;<br>
stx[i] = 0.02 + Math.random()/10;<br>
sty[i] = 0.7 + Math.random();<br>
}//if<br>
dx[i] += stx[i];<br>
document.layers[&quot;flake&quot;+i].top = yp[i];<br>
document.layers[&quot;flake&quot;+i].left = xp[i] + am[i]*Math.sin(dx[i]);<br>
}//for<br>
setTimeout(&quot;snowNS()&quot;, speed);<br>
}//snowNS<br>
<br>
function snowDocument() { // MSIE4, Opera5, Netscape5 main animation function<br>
for (i=0; i&lt;no; ++i) { // iterate for every flake<br>
yp[i] += sty[i];<br>
if (yp[i] &gt; doc_height-50) {<br>
xp[i] = Math.random()*(doc_width-am[i]-30);<br>
yp[i] = 0;<br>
stx[i] = 0.02 + Math.random()/10;<br>
sty[i] = 0.7 + Math.random();<br>
}//if<br>
dx[i] += stx[i];<br>
snowobj[i].top = yp[i];<br>
snowobj[i].left = xp[i] + am[i]*Math.sin(dx[i]);<br>
}//for<br>
setTimeout(&quot;snowDocument()&quot;, speed);<br>
}//snowDocument<br>
<br>
if (ns4b) { // Netscape4<br>
snowNS();<br>
} else if (b4up) { // MSIE4, Opera5, Netscape5<br>
snowDocument();<br>
}//if</p>

</body>

</html>

