/**
 * @requires jQuery 1.6.2+
 *
 */
jQuery(function($) {

	/**
	 * content_header
	 *
	 */
	var $copy = $('#content_header ul.copy li');
	var $c_en = $('#content_header p.copy-en');
	var $text = $('#content_header p.text');
	$copy.hide();
	$c_en.hide();
	$text.hide();

	var timeline = [
		{ object: $copy.eq(0),	start: 1000,	easing: 500 },
		{ object: $copy.eq(1),	start: 2000,	easing: 200 },
		{ object: $copy.eq(2),	start: 2100,	easing: 200 },
		{ object: $copy.eq(3),	start: 2200,	easing: 200 },
		{ object: $copy.eq(4),	start: 2300,	easing: 200 },
		{ object: $copy.eq(5),	start: 2400,	easing: 200 },
		{ object: $copy.eq(6),	start: 2500,	easing: 200 },
		{ object: $copy.eq(7),	start: 2600,	easing: 200 },
		{ object: $copy.eq(8),	start: 2700,	easing: 200 },
		{ object: $copy.eq(9),	start: 2800,	easing: 200 },
		{ object: $c_en,	start: 3500,	easing: 500 },
		{ object: $text,	start: 4500,	easing: 2000 }
	];

	var contentBg = new Image();
	contentBg.src = '/resource/front-page/img/content_bg.jpg';
	$(contentBg).load(function() {
		for( i = 0; i < timeline.length; i++ ) {
			(function(i){
				setTimeout(function() {
					timeline[i].object.fadeIn(timeline[i].easing)
				}, timeline[i].start);
			})(i);
		}
	});

});

