  var snowsrc="/tools/snow/";
  var no = 30;

  var ie4up = (document.all) ? 1 : 0;

  var dx, xp, yp;    // coordinate and position variables
  var am, stx, sty;  // amplitude and step variables
  var i, intAnimWidth, intAnimHeight;

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


  function snowIE_NS6() {  // IE and NS6 main animation function
    for (i = 0; i < no; ++ i) {  // iterate for every dot
      yp[i] += sty[i];
      if (yp[i] > intAnimHeight) {
        xp[i] = Math.random()*(intAnimWidth-am[i]-30);
        yp[i] = -50;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.7 + 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("snowIE_NS6()", 30);
  }


  function fnInitSnow () {
  
    if (ie4up) {
      intAnimWidth=document.body.clientWidth-30;
      intAnimHeight=document.body.clientHeight-30;
    } else {
      intAnimWidth=window.innerWidth-30;
      intAnimHeight=window.innerHeight-30;
    }
    
    
  
    for (i = 0; i < no; ++ i) {
      dx[i] = 0;                        // set coordinate variables
      xp[i] = Math.random()*(intAnimWidth-50);  // set position variables
      yp[i] = Math.random()*intAnimHeight;
      am[i] = Math.random()*20;         // set amplitude variables
      im[i] = snowsrc+"snow"+Math.round(4*Math.random()-0.5)+".gif";
      stx[i] = 0.02 + Math.random()/10; // set step variables
      sty[i] = 0.7 + Math.random();     // set step variables

      var Elementknoten = document.createElement("img");
        Elementknoten.id="dot"+i;
        Elementknoten.style.position="absolute";
        Elementknoten.style.left="15px";
        Elementknoten.style.top="15px";
        Elementknoten.style.visibility="visible";
        Elementknoten.style.zIndex=i;
        Elementknoten.src=im[i];
        document.getElementsByTagName("body")[0].appendChild(Elementknoten);

    }
    snowIE_NS6();
  }
