

//***********************************************************************************************************************
		var no = 10;//60;
		var speed = 30;
		var snowflake1 = "images/yingTbluewhite.gif";
		var snowflake2 = "images/yingTrosewhite.gif";
		var snowflake3 = "images/yingTblackwhite.gif"
		var snowflake4 = "images/yingThom.gif";
		var snowflake5 = "images/yingTfem.gif";
		var snowflake6 = "images/yingTphom.gif";
		var snowflake7 = "images/yingTpfem.gif";
		var snowflake8 = "images/yingTaraig.gif";
		var snowflake9 = "images/yingTs15.gif";
		
		var dx, xp, yp;
		var am, stx, sty;
		var i, doc_width = 800, doc_height = 600;

		var ns4 = (document.layers) ? 1 : 0;  
var RR;

		dx = new Array();
		xp = new Array();
		yp = new Array();
		am = new Array();
		stx = new Array();
		sty = new Array();

		if (ns4 ) 
		{	doc_width = self.innerWidth;
			doc_height = self.innerHeight*2;
		} else if (ns6up)
		{	doc_width = self.outerWidth;
			doc_height = self.outerHeight*2;
		} else if (ie4up) 
		{	doc_width = document.body.clientWidth;
			doc_height = document.body.clientHeight*2;;
		}
		
		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()*20;
			stx[i] = 0.02 + Math.random()/10;
			sty[i] = 0.7 + Math.random();
			
			if (ns4 )
			 { RR=Math.random();
			 	if (RR<= 0.111) 
			 				 {		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake1+ "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   } 
				else if ((0.111<RR) && (RR<= 0.222))
				    		 { 		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake2 + "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   }
				else if ((0.222<RR ) && (RR<= 0.333))
				    		 { 		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake3 + "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   }
				else if ((0.333<RR ) && (RR<= 0.444))
				    		 { 		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake4 + "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   }
				else if ((0.444<RR ) && (RR<= 0.555))
				    		 { 		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake5 + "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   }
				else if ((0.555<RR ) && (RR<= 0.666))
				    		 { 		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake6 + "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   }
				else if ((0.666<RR ) && (RR<= 0.777))
				    		 { 		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake7 + "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   }
				else if ((0.777<RR ) && (RR<= 0.888))
				    		 { 		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake8 + "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   }
				else
				    		 { 		document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
									document.write("top=\"15\" visibility=\"show\"><img src=\"");
									document.write(snowflake9 + "\" border=\"0\" SUPPRESS=\"true\"></layer>");
							   }
			} 
			else if (ie4up || ns6up) 
			 { RR=Math.random();
			 	if (RR<= 0.111) 
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake1 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								} 
				else if ((0.111<RR) && (RR<= 0.222))
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake2 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								}
				else if ((0.222<RR ) && (RR<= 0.333))
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake3 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								}
				else if ((0.333<RR ) && (RR<= 0.444))
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake4 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								}
				else if ((0.444<RR ) && (RR<= 0.555))
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake5 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								}
				else if ((0.555<RR ) && (RR<= 0.666))
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake6 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								}
				else if ((0.666<RR ) && (RR<= 0.777))
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake7 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								}
				else if ((0.777<RR ) && (RR<= 0.888))
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake8 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								}
				else 		 
							{		document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
									document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
									document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
									document.write(snowflake8 + "\" border=\"0\" SUPPRESS=\"true\"></div>");
								}
			 }
		}

		if (ns4 || ns6up) { snowNS(); } else if (ie4up) { snowIE(); }
		
			
function snowNS() 
{
	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] = 0.02 + Math.random()/10;
			sty[i] = 0.7 + Math.random();
			if (ns4)
			{doc_width = self.innerWidth;
			 doc_height = self.innerHeight*2;
			}
			if (ns6up)
			{doc_width = self.outerWidth;
			 doc_height = self.outerHeight*2;
			}
		}
		dx[i] += stx[i];
		if (ns4)
		{	document.layers["dot"+i].top = yp[i];
			document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
		}
		if (ns6up)
		{	document.getElementById("dot"+i).style.top  = yp[i]+ "px";
			document.getElementById("dot"+i).style.left = xp[i] + am[i]*Math.sin(dx[i])+ "px";
		}
	}
	setTimeout("snowNS()", speed);
}
		
		
function snowIE() 
{
	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] = 0.02 + Math.random()/10;
			sty[i] = 0.7 + Math.random();
			doc_width = document.body.clientWidth;
			doc_height = document.body.clientHeight*2;
		}
		dx[i] += stx[i];
		document.all["dot"+i].style.pixelTop = yp[i];
		document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
	}
	setTimeout("snowIE()", speed);
}
	
