<!-- Script par PatMax - www.patmax.info --> 

// Nombre de flocons
			var nombre = 12; 
// Vitesse ou tombe les flocons
			var vitesse = 30; 
// Indiquez dans les lignes ci-dessous l'adresse de vos images
			var image1 = "http://www.patmax.info/images/flocons1.gif";
			var image2 = "http://www.patmax.info/images/flocons2.gif";
			var image3 = "http://www.patmax.info/images/flocons3.gif";
			var image4 = "http://www.patmax.info/images/flocons4.gif";
			var image5 = "http://www.patmax.info/images/flocons5.gif";
			var image6 = "http://www.patmax.info/images/flocons6.gif";
// Nombre d'images à afficher (ex: 2 affichera seulement les deux premières images ci-dessus)
			var nbre=6;

////////////////////////////////////////////
// NE PAS MODIFIER LES LIGNES CI-DESSOUS  //
////////////////////////////////////////////
			var nescape4sup = (document.layers) ? 1 : 0; 
			var ie4sup = (document.all) ? 1 : 0; 
			var pa, tm, ax; 
			var sc, ri, pts; 
			var i, doc_width = 1024, doc_height = 768;
			if (nescape4sup) 
			{
			  doc_width = self.innerWidth;
			  doc_height = self.innerHeight;
			} 
			else if (ie4sup) 
			{
			  doc_width = document.body.clientWidth;
			  doc_height = document.body.clientHeight;
			}
			  
			pa = new Array();
			tm = new Array();
			ax = new Array();
			sc = new Array();
			ri = new Array();
			pts = new Array();
			var i=0;
			for (i = 0; i < nombre; ++ i) 
			{
			  pa[i] = Math.floor(Math.random() * doc_width)+20;
			  if(pa[i]>doc_width-30) pa[i] = pa[i]-50;
			  tm[i] = 50;
			  sc[i] = Math.random()*1;
			  ax[i] = Math.random()*200-200;
			  ri[i] = 0.02 + Math.random()/10;
			  pts[i] = 0.7 + Math.random();
			  if (i == 0) 
			  {
			    document.write("<div id=\"dot"+ i +"\" style=\"position: ");
			    document.write("absolute; opacity:1; filter:alpha(opacity=100); z-index:50; visibility: ");
			    document.write("visible; top:5px; left:15px; \"><img src=\"");
			    var img = Math.floor(Math.random() * nbre)+1;
			    if(img==1) document.write(image1 + "\" border=\"0\"></div>");
			    if(img==2) document.write(image2 + "\" border=\"0\"></div>");
			    if(img==3) document.write(image3 + "\" border=\"0\"></div>");
			    if(img==4) document.write(image4 + "\" border=\"0\"></div>")
			    if(img==5) document.write(image5 + "\" border=\"0\"></div>");
			    if(img==6) document.write(image6 + "\" border=\"0\"></div>");
			  } 
			  else 
			  {
			    document.write("<div id=\"dot"+ i +"\" style=\"position: ");
			    document.write("absolute; opacity:1; filter:alpha(opacity=100); z-index:50; visibility: ");
			    document.write("visible; top:5px; left:15px; \"><img src=\"");
			    var img = Math.floor(Math.random() * nbre)+1;
			    if(img==1) document.write(image1 + "\" border=\"0\"></div>");
			    if(img==2) document.write(image2 + "\" border=\"0\"></div>");
			    if(img==3) document.write(image3 + "\" border=\"0\"></div>");
			    if(img==4) document.write(image4 + "\" border=\"0\"></div>");
			    if(img==5) document.write(image5 + "\" border=\"0\"></div>");
			    if(img==6) document.write(image6 + "\" border=\"0\"></div>");
			  }
			}
			function pluieIE() 
			{
			  doc_width = document.body.clientWidth;
			  doc_height = document.body.clientHeight;
			  for (i = 0; i < nombre; ++ i) 
			  {
			    pts[i] = 0.2 + Math.random()*3;
			    ax[i] += pts[i];
			    ri[i] = 0.08 + Math.random()/10;
			    pa[i] += ri[i] + sc[i]*Math.sin(pa[i]);
			    test=Math.floor(Math.random()*1000);
			    if (ax[i] < doc_height && test>1)
			    {
				    document.getElementById("dot"+i).style.top = Math.floor(ax[i])+"px";
			      if (pa[i] < doc_width-5) document.getElementById("dot"+i).style.left = pa[i]+"px";
			    }
			    else
			    {
			      ax[i]=0;
			      pa[i] = 50 + Math.floor(Math.random() * 800)+5;
			    }
			  }
			  setTimeout("pluieIE()", vitesse);
			}
			pluieIE();

