
  var snowsrc1="images/icon1.gif";
  var snowsrc2="images/icon2.gif";
  var snowsrc3="images/icon3.gif";
  var no = 14;

  var ns4up = (document.layers) ? 1 : 0;  
  var ie4up = (document.all) ? 1 : 0;
  var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

  var Ynull=0;
  var dx, xp, yp;    
  var am, stx, sty;  // amplitude und schritt-variablen
  var i, doc_width = 250, doc_height = 300;

  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);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*7;         
    stx[i] = 0.03 + Math.random()/10;
    sty[i] = 0.6 + Math.random();     
    if (ns4up) {                      
       document.write("<layer name=\"dot"+ i +"\" left=\"-10\" top=\"-10\" visibility=\"show\"><img src='"+snowsrc1+"' border=\"0\"></layer>");
      }
     if (ie4up||ns6up) {
       if (i < no * 0.4) {                       
                       document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: -10px; LEFT: -10px;\"><img src='"+snowsrc1+"' border=\"0\"></div>");
          }     else if (i < no *0.7) {                  
               document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: -10px; LEFT: -10px;\"><img src='"+snowsrc2+"' border=\"0\"></div>");                    
          }     else  {                  
               document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: -10px; LEFT: -10px;\"><img src='"+snowsrc3+"' border=\"0\"></div>");                    
          }     

      }
  }
    
  function snowNS() {  // Netscape main animation function
    for (i = 0; i < no; ++ i) {  // iterate for every dot
      yp[i] += sty[i];
      if (yp[i] > doc_height-50) {
        xp[i] = Math.random()*(doc_width-am[i]-30);
        yp[i] = Ynull;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.2 + Math.random();
       }
      dx[i] += stx[i];
      document.layers["dot"+i].top = yp[i];
      document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", 10);
  }

  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] > doc_height-50) {
        xp[i] = Math.random()*(doc_width-am[i]);
        yp[i] = Ynull;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.4 + Math.random();
        
      }
      dx[i] += stx[i];
      if (ie4up){
      document.all["dot"+i].style.pixelTop = yp[i];
      document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
      }
      else if (ns6up){
      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()", 12);
  }

  if (ns4up) {
    snowNS();
  } else if (ie4up||ns6up) {
    snowIE_NS6();
  }