



<!-- STEP ONE: Paste this code into the BODY of your HTML document  -->

<!-- Original:  Altan (snow@altan.hr) -->
<!-- Web Site:  http://www.altan.hr/snow -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var noNEW = 25; // snow number
var speedNEW = 10; // smaller number moves the snow faster
var snowflakeNEW = "snow.gif";

var ns4upNEW = (document.layers) ? 1 : 0;  // browser sniffer
var ie4upNEW = (document.all) ? 1 : 0;
var dxNEW, xpNEW, ypNEW;    // coordinate and position variables
var amNEW, stxNEW, styNEW;  // amplitude and step variables
var iNEW, doc_widthNEW = 800, doc_heightNEW = 600;
if (ns4upNEW) {
doc_widthNEW = self.innerWidth;
doc_heightNEW = self.innerHeight;
} else if (ie4upNEW) {
doc_widthNEW = document.body.clientWidth;
doc_heightNEW = document.body.clientHeight;
}
dxNEW = new Array();
xpNEW = new Array();
ypNEW = new Array();
amNEW = new Array();
stxNEW = new Array();
styNEW = new Array();
for (iNEW = 0; iNEW < noNEW; ++ iNEW) {  
dxNEW[iNEW] = 0;                        // set coordinate variables
xpNEW[iNEW] = Math.random()*(doc_widthNEW-50);  // set position variables
ypNEW[iNEW] = Math.random()*doc_heightNEW;
amNEW[iNEW] = Math.random()*20;         // set amplitude variables
stxNEW[iNEW] = 0.02 + Math.random()/10; // set step variables
styNEW[iNEW] = 0.7 + Math.random();     // set step variables
if (ns4upNEW) {                      // set layers
if (iNEW == 0) {
document.write("<layer name=\"dot"+ iNEW +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflakeNEW + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ iNEW +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflakeNEW + "\" border=\"0\"></layer>");
   }
} else if (ie4upNEW) {
if (iNEW == 0) {
document.write("<div id=\"dot"+ iNEW +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ iNEW +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflakeNEW + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ iNEW +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ iNEW +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflakeNEW + "\" border=\"0\"></div>");
      }
   }
}
function snowNS() {  // Netscape main animation function
for (iNEW = 0; iNEW < noNEW; ++ iNEW) {  // iterate for every dot
ypNEW[iNEW] += styNEW[iNEW];
if (ypNEW[iNEW] > doc_heightNEW-50) {
xpNEW[iNEW] = Math.random()*(doc_widthNEW-amNEW[iNEW]-30);
ypNEW[iNEW] = 0;
stxNEW[iNEW] = 0.02 + Math.random()/10;
styNEW[iNEW] = 0.7 + Math.random();
doc_widthNEW = self.innerWidth;
doc_heightNEW = self.innerHeight;
}
dxNEW[iNEW] += stxNEW[iNEW];
document.layers["dot"+iNEW].top = ypNEW[iNEW];
document.layers["dot"+iNEW].left = xpNEW[iNEW] + amNEW[iNEW]*Math.sin(dxNEW[iNEW]);
}
setTimeout("snowNS()", speedNEW);
}
function snowIE() {  // IE main animation function
for (iNEW = 0; iNEW < noNEW; ++ iNEW) {  // iterate for every dot
ypNEW[iNEW] += styNEW[iNEW];
if (ypNEW[iNEW] > doc_heightNEW-50) {
xpNEW[iNEW] = Math.random()*(doc_widthNEW-amNEW[iNEW]-30);
ypNEW[iNEW] = 0;
stxNEW[iNEW] = 0.02 + Math.random()/10;
styNEW[iNEW] = 0.7 + Math.random();
doc_widthNEW = document.body.clientWidth;
doc_heightNEW = document.body.clientHeight;
}
dxNEW[iNEW] += stxNEW[iNEW];
document.all["dot"+iNEW].style.pixelTop = ypNEW[iNEW];
document.all["dot"+iNEW].style.pixelLeft = xpNEW[iNEW] + amNEW[iNEW]*Math.sin(dxNEW[iNEW]);
}
setTimeout("snowIE()", speedNEW);
}
if (ns4upNEW) {
snowNS();
} else if (ie4upNEW) {
snowIE();
}
// End -->

