/*SnowFlakesBG.Start=function() {
	SnowFlakesBG.Container=$('bgMagic');
	//SnowFlakesBG.Container=document.body;
	SnowFlakesBG.createFlakes(17);
	SnowFlakesBG.Move();
}
SnowFlake.SpeedRatio=1.1;
SnowFlake.Speed={
	X:-0.3*SnowFlake.SpeedRatio,
	Y:-3*SnowFlake.SpeedRatio
}*/
/*
SnowFlake.Shapes={
	SnowFlake:'❄',
	TRIFOLIATE_SNOWFLAKE:'❅',
	CHEVRON_SNOWFLAKE:'❆'
};
SnowFlakesBG.AvailableShapes=[SnowFlake.Shapes.SnowFlake,
SnowFlake.Shapes.TRIFOLIATE_SNOWFLAKE,
SnowFlake.Shapes.CHEVRON_SNOWFLAKE
];*/

SnowFlakesBG=false;
magicBG={
	doMagic:function() {
		var settings=new FlyingObjectsSettings(
			'bgMagic','flower', ['✾','✿','❀','❁','❃'], 1.3, -3, -0.9
		);
		var AvaiableColors=['blue', 'orange', 'yellow', 'green'];
		settings.changeObj=function(flobj) {
			var tmp=flobj.currentBottom;
			flobj.currentBottom=flobj.currentLeft;
			flobj.currentLeft=tmp;
			flobj.htmlHandle.style.color=AvaiableColors[Math.rnd(0, AvaiableColors.length-1, true)];
		}
		//creating the sun
		var theSun=document.createElement('DIV');
		theSun.innerHTML='☀';
		theSun.id='the_sun';
		$('bgMagic').appendChild(theSun);
		
		SnowFlakesBG=new FlyingObjects(settings);
		SnowFlakesBG.createFlyingObjects(17);
		SnowFlakesBG.StartFlying();
	}
};

