// JavaScript Document

var ani = {
	cloud1: {
		type:	'left',
		from:	0,
		to:		(screen.availWidth - 150),
		step:	1,
		delay:	250
	},
	cloud2: {
		type:	'left',
		from:	200,
		to:		(screen.availWidth - 150),
		step:	1,
		delay:	300,
		onstart: function(){
			this.style.display = 'block';
		}
	},
	cloud3: {
		type:	'right',
		from:	0,
		to:		(screen.availWidth + 150),
		step:	1,
		delay:	200
	}
};

function startAnimation(){
	
	$fx('#cloud1').fxAdd(ani.cloud1).fxRun(null,-1);
	$fx('#cloud2').fxAdd(ani.cloud2).fxRun(null,-1);
	$fx('#cloud3').fxAdd(ani.cloud3).fxRun(null,-1);
	
}
