

$(window).load(function() {

	initAnim();

});

function initAnim(){
	
	$('#wrapper').css('display', 'block');
	animStage_1();
}

function animStage_1()
{
	
	$('#logo1').animate({
		top: 200	
	},{queue:true, duration:2000, easing:"bounceEaseOut"});
	
	$('#logo2').delay(1000).animate({
		top: 200	
	},{queue:true, duration:2000, easing:"bounceEaseOut"});
	
	$('#logo3').delay(1600).animate({
		top: 200	
	},{queue:true, duration:2000, easing:"bounceEaseOut"}).delay(1000).queue(function(){
		animStage_2();
	});

}

function animStage_2() {

	$('#gewoon1').animate({
		top: 200	
	},{queue:true, duration:2000, easing:"cubicEaseOut"});
	
	$('#gewoon2').delay(2000).animate({
		top: 200	
	},{queue:true, duration:2000, easing:"cubicEaseOut"});
	
	$('#gewoon3').delay(3000).animate({
		top: 200	
	},{queue:true, duration:2000, easing:"cubicEaseOut"}).delay(1000).queue(function(){
		animStage_3();
	});

}

function animStage_3() {

	$('#gewoonSub1').css('display', 'block').animate({
		top: 10,
		left: 30	
	},{queue:true, duration:1000, easing:"cubicEaseOut"});
	
	$('#gewoonSub2').css('display', 'block').delay(20).animate({
		top: 50,
		left: 500
	},{queue:true, duration:1000, easing:"cubicEaseOut"});
	
	$('#gewoonSub3').css('display', 'block').delay(50).animate({
		top: 450,
		left: 450	
	},{queue:true, duration:1000, easing:"cubicEaseOut"}).delay(3000).queue(function(){
		redirect();
	});

}

function redirect(){
	window.location = "http://www.gewoonaccountants.nl/"
}
