/******************************************************************************************/
// SnowScript for IE, Mozilla and many more!
// © RoterFruchtZwerg 2003

  var imgNum = 0;
  var snowImg = new Array();

  snowImg[0] ="<span style=\"color: #AAAAAA; font-size: 8pt;\">*</span>";
  snowImg[1] ="<span style=\"color: #AABBCC; font-size: 10pt;\">*</span>";

  snowImg[0] ="<img src=\"/common/images/icons/schnee1.gif\" alt=\"*\"/>";
  snowImg[1] ="<img src=\"/common/images/icons/schnee2.gif\" alt=\"*\" />";


  var no = 50;
  var dx, xp, yp;
  var am, stx, sty;
  var i, doc_width = 800, doc_height = 1200;
  
  doc_width = window.innerWidth ? window.innerWidth : document.body.clientWidth;
  doc_height = window.innerHeight ? window.innerHeight : 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) {

    imgNum = imgNum?0:1;
    var snowsrc = snowImg[imgNum];

    dx[i] = 0;               
    xp[i] = Math.random()*(doc_width-60);  
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*10;     
    stx[i] = 0.02 + Math.random()/10; 
    sty[i] = 0.7 + Math.random();    
    document.write("<div id=\"dot"+ i +"\" style=\"position: absolute; z-index: "+ i +"; visibility: visible; top: 1px; left: 1px; width:12px;\">"+snowsrc+"</div>");
  }

  function snow() {  
    for (i = 0; i < no; ++ i) {  
      yp[i] += sty[i];
      if (yp[i] > doc_height-20) {
        xp[i] = Math.random()*(doc_width-am[i]-20);
        yp[i] = 0;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.7 + Math.random()*2;
        doc_width = window.innerWidth ? window.innerWidth : document.body.clientWidth;
        doc_height = window.innerHeight ? window.innerHeight : document.body.clientHeight;
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top = Math.round(yp[i])+"px";
      document.getElementById("dot"+i).style.left = Math.round(xp[i] + am[i]*Math.sin(dx[i]))+"px";
    }
    setTimeout("snow()", 60);
  }

  snow();


// SnowScript for IE, Mozilla and many more!
// © RoterFruchtZwerg 2003
/******************************************************************************************/
