var Prj;
if ( !Prj ) Prj = {};
Prj.FlyAway = Class.create();
Prj.FlyAway.prototype =
{
	initialize: function( id ) 
	{
		this.clone = $(id).myDeepClone();
		
		new Effect.Parallel( [
				new Effect.Move( this.clone, { x: 500, y: 180, sync: true, mode: 'absolute' } ),
				new Effect.Opacity( this.clone, { sync: true, from: 1.0, to: 0.0 } )
			],
			{
				duration: 1.0,
				afterFinish: this._afterFinish.bind( this )
			} );
	},
	
	_afterFinish: function ()
	{
		this.clone.remove();
	}
}