<!--
var no = 15; // snow number
var speed = 44; // smaller number moves the snow faster
var snowflake = "/graphics/snowflakes.gif";
var Ns = document.layers;
var Ie = document.all;
var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600;
if  (Ns) 
   {doc_width = self.innerWidth;
    doc_height = self.innerHeight;
   }
else
   {doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
   }

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()*40;
     stx[i] = 0.02 + Math.random()/10;
     sty[i] = 0.7 + Math.random();
     if  (Ns)
         {document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
          document.write("top=\"15\" visibility=\"show\"><img src=\"");
          document.write(snowflake + "\" border=\"0\"></layer>");
         } 
     else 
         {document.write("<div id='dot"+ i +"' style='position:absolute; ");
          document.write("top:15; left:15;'><img src=\"");
          document.write(snowflake + "\" border=\"0\"></div>");
        }
    }

doc_height*= 4;

function snowfall() 
    {for (i = 0; i < no; ++ i)
         {yp[i] += sty[i];
          if  (yp[i] > doc_height-50) 
              {xp[i] = Math.random()*(doc_width-am[i]-30);
               yp[i] = 0;
               stx[i] = .02 + Math.random()/10;
               sty[i] = .7 + Math.random();
              }
          dx[i] += stx[i];
          var xmove = am[i]*Math.sin(dx[i]);
          c=(Ie) ? Ie["dot"+i].style : Ns["dot"+i];
          c.left=xp[i] +xmove;
          c.top=yp[i];
        }
     setTimeout("snowfall()", speed);
    }

snowfall();
// End -->


