<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Neue Seite 1</title>
</head>

<body>

<p>&nbsp;</p>
<pre>var no = 25;                   <span style="color: green">// number of snowflakes</span>
var speed = 10;                <span style="color: green">// the smaler, the faster snowflakes</span>
var snowflake = &quot;<span style="color: red">snow.gif</span>&quot;;    <span style="color: green">// picture source</span>
var ns4b = (document.layers) ? 1 : 0;   <span style="color: green">// Netscape4.x</span>
var b4up = (document.all) ? 1 : 0;      <span style="color: green">// MSIE4, Opera5, Netccape5</span>
var dx, xp, yp;                <span style="color: green">// coordinate and position variables</span>
var am, stx, sty;              <span style="color: green">// amplitude and step variables</span>
var snowobj;
var i, doc_width = 800, doc_height = 600;

if (ns4b) {
   doc_width  = self.innerWidth;
   doc_height = self.innerHeight;
} else if (b4up) {
   doc_width  = document.body.clientWidth;
   doc_height = document.body.clientHeight;
} else {
   b4up = 1;                   <span style="color: green">// 800x600 screen-default</span>
}<span style="color: green">// if</span>

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowobj = new Array();

for (i=0; i&lt;no; ++i) {         <span style="color: green">// iterate for every snowflake</span>
   dx[i] = 0;                  <span style="color: green">// set coordinate variables</span>
   xp[i] = Math.random()*(doc_width-50); <span style="color: green">// set position variables</span>
   yp[i] = Math.random()*doc_height;
   am[i] = Math.random()*20;             <span style="color: green">// set amplitude variables</span>
   stx[i] = 0.02 + Math.random()/10;     <span style="color: green">// set step variables</span>
   sty[i] = 0.7 + Math.random();         <span style="color: green">// set step variables</span>
   if (ns4b) {                           <span style="color: green">// set layers</span>
      document.write(&quot;&lt;LAYER NAME=\&quot;flake&quot;+ i +&quot;\&quot; LEFT=\&quot;15\&quot; &quot;
      + &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;);
   } else if (b4up) {
      document.write(&quot;&lt;DIV ID=\&quot;flake&quot;+ i +&quot;\&quot; STYLE=\&quot;&quot;
      + &quot;position:absolute; z-index:&quot;+ i +&quot;; visibility:visible; &quot;
      + &quot;top:15px; left:15px;\&quot;&gt;&lt;IMG SRC=\&quot;&quot;+ snowflake
      + &quot;\&quot; BORDER=0&gt;&lt;/DIV&gt;&quot;);
      snowobj[i] = eval (document.getElementById(&quot;flake&quot;+i).style);
   }<span style="color: green">//if</span>
}<span style="color: green">//for</span>

function snowNS() {            <span style="color: green">// Netscape4 main animation function</span>
   for (i=0; i&lt;no; ++i) {      <span style="color: green">// iterate for every snowflake</span>
      yp[i] += sty[i];
      if (yp[i] &gt; doc_height-50) {
         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();
      }<span style="color: green">//if</span>
         dx[i] += stx[i];
         document.layers[&quot;flake&quot;+i].top = yp[i];
         document.layers[&quot;flake&quot;+i].left = xp[i] 
            + am[i]*Math.sin(dx[i]);
      }<span style="color: green">//for</span>
   setTimeout(&quot;snowNS()&quot;, speed);
}<span style="color: green">//snowNS</span>

function snowDocument() {      <span style="color: green">// MSIE4, Opera5, Netscape5 main</span>
   for (i=0; i&lt;no; ++i) {      <span style="color: green">// iterate for every flake</span>
      yp[i] += sty[i];
      if (yp[i] &gt; doc_height-50) {
         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();
      }//if
      dx[i] += stx[i];
      snowobj[i].top  = yp[i];
      snowobj[i].left = xp[i] + am[i]*Math.sin(dx[i]);
   }//for
   setTimeout(&quot;snowDocument()&quot;, speed);
}//snowDocument

if (ns4b) {                   <span style="color: green">// Netscape4</span>
   snowNS();
} else if (b4up) {            <span style="color: green">// MSIE4, Opera5, Netscape5</span>
   snowDocument();
}<span style="color: green">//if</span></pre>

</body>

</html>

