function get(id) {
	return document.getElementById(id);
}


function init0() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("bird").style.display = "block";

	man = new jsAnimManager();

	man.registerPosition("bird");
	c2 = get("bird");
	c2.setPosition(1200,-500);
		
	cm2 = man.createAnimObject("bird");

	cm2.add({property: Prop.opacity, to: 0, duration: 1, ease: jsAnimEase.standard, onComplete: init01});

}

function init01() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("bird").style.display = "block";	

	man = new jsAnimManager();

	man.registerPosition("bird");
	c2 = get("bird");
	c2.setPosition(800,110);

	cm2 = man.createAnimObject("bird");
	
	cm2.add({property: Prop.opacity, to: 1, duration: 1, ease: jsAnimEase.standard, onComplete: init});

}

function init() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("bird").style.display = "block";	
	get("spacer1").style.display = "block";
	get("spacer2").style.display = "block";
	get("spacer3").style.display = "block";
	get("spacer3").style.display = "block";
	get("spacer4").style.display = "block";
	get("spacer5").style.display = "block";
	
	man = new jsAnimManager();
	
	man.registerPosition("bird");
	c2 = get("bird");
	c2.setPosition(800,110);
		
	man.registerPosition("spacer1");
	c4 = get("spacer1");
	c4.setPosition(800,300);
	
	man.registerPosition("spacer2");
	c5 = get("spacer2");
	c5.setPosition(800,300);
	
	man.registerPosition("spacer3");
	c7 = get("spacer3");
	c7.setPosition(800,300);
	
	man.registerPosition("spacer4");
	c9 = get("spacer4");
	c9.setPosition(800,300);
	
	man.registerPosition("spacer5");
	c15 = get("spacer5");
	c15.setPosition(800,300);
	
	cm2 = man.createAnimObject("bird");
	cm4 = man.createAnimObject("spacer1");
	cm5 = man.createAnimObject("spacer2");
	cm7 = man.createAnimObject("spacer3");
	cm9 = man.createAnimObject("spacer4");
	cm15 = man.createAnimObject("spacer5");
	
	cm2.add({property: Prop.position, to: new Pos(-1200,110), duration: 3200, ease: jsAnimEase.standard});
	cm2.add({property: Prop.opacity, duration: 1, ease: jsAnimEase.standard});
	cm15.add({property: Prop.positionSemicircle(true), to: new Pos(-15,450), duration: 1050, ease: jsAnimEase.backout(0.2), onComplete: init1});
	cm4.add({property: Prop.positionSemicircle(true), to: new Pos(-15,450), duration: 1220, ease: jsAnimEase.backout(0.2), onComplete: init2});
	cm5.add({property: Prop.positionSemicircle(true), to: new Pos(-15,450), duration: 1420, ease: jsAnimEase.backout(0.2), onComplete: init3});
	cm7.add({property: Prop.positionSemicircle(true), to: new Pos(-15,450), duration: 1640, ease: jsAnimEase.backout(0.2), onComplete: init4});


}

function init1() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("egg0").style.display = "block";	

	man = new jsAnimManager();

	man.registerPosition("egg0");
	c0 = get("egg0");
	c0.setPosition(30,150);


	cm0 = man.createAnimObject("egg0");

	cm0.add({property: Prop.position, to: new Pos(30,294), duration: 900, ease: jsAnimEase.standard});

}

function init2() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("egg2").style.display = "block";	

	man = new jsAnimManager();

	man.registerPosition("egg2");
	c6 = get("egg2");
	c6.setPosition(-50,150);


	cm6 = man.createAnimObject("egg2");

	cm6.add({property: Prop.position, to: new Pos(-50,294), duration: 900, ease: jsAnimEase.standard});

}

function init3() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("egg1").style.display = "block";	

	man = new jsAnimManager();

	man.registerPosition("egg1");
	c3 = get("egg1");
	c3.setPosition(-130,150);


	cm3 = man.createAnimObject("egg1");

	cm3.add({property: Prop.position, to: new Pos(-130,294), duration: 900, ease: jsAnimEase.standard});

}

function init4() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("egg3").style.display = "block";	

	man = new jsAnimManager();

	man.registerPosition("egg3");
	c8 = get("egg3");
	c8.setPosition(-210,150);


	cm8 = man.createAnimObject("egg3");

	cm8.add({property: Prop.position, to: new Pos(-210,294), duration: 900, ease: jsAnimEase.standard});

}

function init5() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("egg0").style.display = "block";
	get("egg0-off").style.display = "block";
	get("egg1").style.display = "block";
	get("egg1-off").style.display = "block";
	get("egg2").style.display = "block";
	get("egg2-off").style.display = "block";
	get("egg3").style.display = "block";
	get("egg3-off").style.display = "block";
	
	man = new jsAnimManager();
	
	man.registerPosition("egg1");
	c0 = get("egg1");
	c0.setPosition(40,-550);
	
	man.registerPosition("egg0-off");
	c01 = get("egg0-off");
	c01.setPosition(40,296);

	man.registerPosition("egg1");
	c3 = get("egg1");
	c3.setPosition(-220,-550);
	
	man.registerPosition("egg1-off");
	c10 = get("egg1-off");
	c10.setPosition(-220,296);
	
	man.registerPosition("egg2");
	c6 = get("egg2");
	c6.setPosition(-90,294);
	
	man.registerPosition("egg2-off");
	c12 = get("egg2-off");
	c12.setPosition(-90,296);
	
	man.registerPosition("egg3");
	c8 = get("egg3");
	c8.setPosition(-350,294);
	
	man.registerPosition("egg3-off");
	c13 = get("egg3-off");
	c13.setPosition(-350,296);

	cm0 = man.createAnimObject("egg0");
	cm01 = man.createAnimObject("egg0-off");
	cm3 = man.createAnimObject("egg1");
	cm10 = man.createAnimObject("egg1-off");
	cm6 = man.createAnimObject("egg2");
	cm12 = man.createAnimObject("egg2-off");
	cm8 = man.createAnimObject("egg3");
	cm13 = man.createAnimObject("egg3-off");

	cm0.add({property: Prop.position, to: new Pos(40,-550), duration: 1, ease: jsAnimEase.standard});
	cm01.add({property: Prop.position, to: new Pos(40,296), duration: 1, ease: jsAnimEase.standard});
	cm3.add({property: Prop.position, to: new Pos(-220,-550), duration: 1, ease: jsAnimEase.standard});
	cm10.add({property: Prop.position, to: new Pos(-220,296), duration: 1, ease: jsAnimEase.standard});
	cm6.add({property: Prop.position, to: new Pos(-90,-550), duration: 1, ease: jsAnimEase.standard});
	cm12.add({property: Prop.position, to: new Pos(-90,296), duration: 1, ease: jsAnimEase.standard});
	cm8.add({property: Prop.position, to: new Pos(-350,-550), duration: 1, ease: jsAnimEase.standard});
	cm13.add({property: Prop.position, to: new Pos(-350,296), duration: 1, ease: jsAnimEase.standard, onComplete: init6});
	
}

function init6() {
	dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	get("promo").style.display = "block";

	man = new jsAnimManager();

	man.registerPosition("promo");
	c14 = get("promo");
	c14.setPosition(-100,298);
	
	cm14 = man.createAnimObject("promo");

	cm14.add({property: Prop.Opacity, to: 1, duration: 2000, ease: jsAnimEase.standard});

}
