
/*toggle = false;
snowflakes = [];
maxHeight = 100;

setTimeout( 'maxHeight=document.body.clientHeight-100;', 1000);

for( var i=0; i<100; i++)
{
	elm = document.createElement('p');
	elm.y = Math.round(-(Math.random()*1000.0));
	elm.x = Math.round(Math.random()*document.body.clientWidth);
	elm.speed = 1+Math.random()*3;
	elm.innerHTML = '*';
	elm.style.fontFamily = 'arial';
	elm.style.fontSize = Math.round(20+Math.random()*30) + 'px';
	elm.style.color = 'white';
	
	document.body.appendChild(elm);
	snowflakes.push(elm);
}

function letItSnow()
{
	for ( var i in snowflakes )
	{
		snowflakes[i].style.position = 'absolute';
		snowflakes[i].style.left = snowflakes[i].x + 'px';
		snowflakes[i].style.top = snowflakes[i].y + 'px';
		
		snowflakes[i].y += snowflakes[i].speed;
		
		if ( snowflakes[i].y > maxHeight ) snowflakes[i].y = 0;
	}
	
	setTimeout( 'letItSnow()', 50);
}

function merryChristmas()
{
	elm = document.getElementsByClassName('outer-container')[0];
	
	if ( toggle == true )
	{
		document.body.style.background = 'red';
		elm.style.background = 'red url(http://fla.fg-a.com/ctree_5a.gif) repeat';
		toggle = false;
	}
	else
	{
		document.body.style.background = 'green';
		elm.style.background = 'green url(http://fla.fg-a.com/ctree_5a.gif) repeat';
		toggle = true;
	}
	
	setTimeout( 'merryChristmas()', 1000);
	
}

merryChristmas();
letItSnow();*/

