/*Etoiles*/
sparkles=40;x=ox=400;y=oy=300;swide=800;shigh=600;sleft=sdown=0;tiny=new Array();star=new Array();starv=new Array();starx=new Array();stary=new Array();tinyx=new Array();tinyy=new Array();tinyv=new Array();window.onload=function(){if(document.getElementById){for(b=0;b<sparkles;b++){a=createDiv(3,3);a.style.visibility="hidden";document.body.appendChild(tiny[b]=a);starv[b]=0;tinyv[b]=0;a=createDiv(5,5);a.style.backgroundColor="transparent";a.style.visibility="hidden";c=createDiv(1,5);d=createDiv(5,1);a.appendChild(c);a.appendChild(d);c.style.top="2px";c.style.left="0px";d.style.top="0px";d.style.left="2px";document.body.appendChild(star[b]=a)}set_width();sparkle()}};function sparkle(){if(x!=ox||y!=oy){ox=x;oy=y;for(a=0;a<sparkles;a++){if(!starv[a]){star[a].style.left=(starx[a]=x)+"px";star[a].style.top=(stary[a]=y)+"px";star[a].style.clip="rect(0px, 5px, 5px, 0px)";star[a].style.visibility="visible";starv[a]=50;break}}}for(a=0;a<sparkles;a++){if(starv[a]){update_star(a)}if(tinyv[a]){update_tiny(a)}}setTimeout("sparkle()",40)}function update_star(a){if(--starv[a]==25){star[a].style.clip="rect(1px, 4px, 4px, 1px)"}if(starv[a]){stary[a]+=1+Math.random()*3;if(stary[a]<shigh+sdown){star[a].style.top=stary[a]+"px";starx[a]+=(a%5-2)/5;star[a].style.left=starx[a]+"px"}else{star[a].style.visibility="hidden";starv[a]=0;return}}else{tinyv[a]=50;tiny[a].style.top=(tinyy[a]=stary[a])+"px";tiny[a].style.left=(tinyx[a]=starx[a])+"px";tiny[a].style.width="2px";tiny[a].style.height="2px";star[a].style.visibility="hidden";tiny[a].style.visibility="visible"}}function update_tiny(a){if(--tinyv[a]==25){tiny[a].style.width="1px";tiny[a].style.height="1px"}if(tinyv[a]){tinyy[a]+=1+Math.random()*3;if(tinyy[a]<shigh+sdown){tiny[a].style.top=tinyy[a]+"px";tinyx[a]+=(a%5-2)/5;tiny[a].style.left=tinyx[a]+"px"}else{tiny[a].style.visibility="hidden";tinyv[a]=0;return}}else{tiny[a].style.visibility="hidden"}}document.onmousemove=mouse;function mouse(a){set_scroll();y=(a)?a.pageY:event.y+sdown;x=(a)?a.pageX:event.x+sleft}function set_scroll(){if(typeof(self.pageYOffset)=="number"){sdown=self.pageYOffset;sleft=self.pageXOffset}else{if(document.body.scrollTop||document.body.scrollLeft){sdown=document.body.scrollTop;sleft=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)){sleft=document.documentElement.scrollLeft;sdown=document.documentElement.scrollTop}else{sdown=0;sleft=0}}}}window.onresize=set_width;function set_width(){if(typeof(self.innerWidth)=="number"){swide=self.innerWidth;shigh=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientWidth){swide=document.documentElement.clientWidth;shigh=document.documentElement.clientHeight}else{if(document.body.clientWidth){swide=document.body.clientWidth;shigh=document.body.clientHeight}}}}function createDiv(a,b){c=document.createElement("div");c.style.position="absolute";c.style.height=a+"px";c.style.width=b+"px";c.style.overflow="hidden";couleur="multicolore";if(couleur=="multicolore"){Rouge=Math.floor(Math.random()*256);Vert=Math.floor(Math.random()*256);Bleu=Math.floor(Math.random()*256);c.style.backgroundColor="rgb("+Rouge+","+Vert+","+Bleu+")"}else{c.style.backgroundColor=couleur}return(c)}

/*Neige*/
urlflocon="http://assoss-annuaire.hebfree.org/images/neige.gif";nombreflocons=15;voirflocons="windowheight";ie4up=(document.all)?1:0;ns6up=(document.getElementById&&!document.all)?1:0;function testIEcompatible(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}doc_width=1024,doc_height=768;if(ns6up){doc_width=self.innerWidth;doc_height=self.innerHeight}else{if(ie4up){doc_width=testIEcompatible().clientWidth;doc_height=testIEcompatible().clientHeight}}dx=new Array();xp=new Array();yp=new Array();am=new Array();stx=new Array();sty=new Array();for(i=0;i<nombreflocons;++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(ie4up||ns6up){if(i==0){document.write('<div id="dot'+i+'" style="POSITION: absolute; Z-INDEX: '+i+"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+urlflocon+'\' border="0"></div>')}else{document.write('<div id="dot'+i+'" style="POSITION: absolute; Z-INDEX: '+i+"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+urlflocon+'\' border="0"></div>')}}}function neigeIE_NS6(){doc_width=ns6up?window.innerWidth-10:testIEcompatible().clientWidth-10;doc_height=(window.innerHeight&&voirflocons=="windowheight")?window.innerHeight:(ie4up&&voirflocons=="windowheight")?testIEcompatible().clientHeight:(ie4up&&!window.opera&&voirflocons=="pageheight")?testIEcompatible().scrollHeight:testIEcompatible().offsetHeight;for(i=0;i<nombreflocons;++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()}dx[i]+=stx[i];document.getElementById("dot"+i).style.top=yp[i]+"px";document.getElementById("dot"+i).style.left=xp[i]+am[i]*Math.sin(dx[i])+"px"}snowtimer=setTimeout("neigeIE_NS6()",10)}if(ie4up||ns6up){neigeIE_NS6();
