if($.browser.alteria){
	var dateJour = new Date();
	var debutSnow = new Date(dateJour.getFullYear(), 11, 1);
	var finSnow = new Date(dateJour.getFullYear()+1, 0, 1);	
	if((dateJour>debutSnow) && (dateJour<finSnow)){
		jQuery.preLoadImages('images/snow_1.gif', 'images/snow_2.png');
		var no = 20;
		var speed = 10;
		var dx, xp, yp;
		var am, stx, sty, strSnow;
		var i, doc_width = 0, doc_height = 0;
		function snow() {
			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();
				}
				dx[i] += stx[i];
				$("#dot" + i).css('top', yp[i]);
				$("#dot" + i).css('left', xp[i] + am[i]*Math.sin(dx[i]));
			}
			doc_width = $(window).width();
			doc_height = $(document).height();
			setTimeout("snow()", speed);
		}	
		function kilNeige(){
			doc_width = $(window).width();
			doc_height = $(document).height();
			dx = new Array();
			xp = new Array();
			yp = new Array();
			am = new Array();
			stx = new Array();
			sty = new Array();
			var snowflake = "snow_1.gif";
			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(i % 7 == 0){
					snowflake = "snow_2.png"
				}else{
					snowflake = "snow_1.gif"
				}
				strSnow = "<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src=\"images/" + snowflake + "\" border=\"0\"></div>";
				$('body').append(strSnow);
			}
			snow();
		}
		$(document).ready(function(){
			setTimeout('kilNeige()',2200);
		});
	}
}