var Intro = function(){
	this._beginSequence();
};
Intro.prototype._beginSequence = function(){

	//this._showBizAsUsual();
	//setTimeout(this._moveHeaders, 2000);
	//setTimeout(this._showFadedBackground, 3000);
	setTimeout(this._showEvents, 500);
	setTimeout(this._bringClarity, 10000);
}
Intro.prototype._showBizAsUsual = function(){
	$("h3").fadeTo(2000, 1);
}
Intro.prototype._showFadedBackground = function(){
	
	$(document.body).addClass("stage3");
	$("div.intro-content").fadeIn(500);
	
}
Intro.prototype._moveHeaders = function(){
	$(document.body).addClass("stage2");
	
	var oEffect = {
		left:-370
		,width:370
		,top:-100
	};
	var oEffect2 = {left:-490};
	
	$("h1").animate(oEffect,500,"swing");
	$("h3").animate(oEffect2, 500, "swing");
	
}
Intro._listCallback = function(iSequence){
	if(iSequence > 4){ 
		//return null;
		return function(){
			$($("ul.clone li")[iSequence-1]).animate({opacity:1}, 1000, "swing", window._intro._bringClarity);
		}
	
	};
	
	return function(){
		$($("ul.events li")[iSequence]).animate({top:0}, 1000, "swing", Intro._listCallback(iSequence+1));
		$($("ul.clone li")[iSequence-1]).animate({opacity:1}, 1000, "swing");
	}
}
Intro.prototype._showEvents = function(){

	var clone = $("ul.events").clone(true).addClass("clone");
	$("ul.events:first").after(clone);

	var oEffect = {top:0};
	
	$("ul.events li:first").animate(oEffect, 1000, "swing", Intro._listCallback(1));
	
}
Intro.prototype._bringClarity = function(){

	$(document.body).addClass("stage4");
	$("h4").animate({opacity:1}, 1000, "swing");
	$("#clarity").animate({opacity:1}, 500, "swing");
	
	setTimeout(function(){window.location = "mission.html";}, 4000);
}

