$(document).ready(function() {
	$('#feature_a img').css('top','0px');
	$('#feature_a h1').css('bottom','10px');
	$('#feature_a h2').css('bottom','14px');
	setTimeout('removeA();',2000);
});

function removeA() {
	$('#feature_a img').animate({
			top: "-276px"
		}, 1500, function() {
		$('#feature_a img').css('top','276px');
	});
	
	$('#feature_a h1').animate({
		bottom: "-40px"
	}, 1500);
	$('#feature_a h2').animate({
		bottom: "-36px"
	}, 1500);
	
	$('#feature_b h1').animate({
		bottom: "10px"
	}, 1500);
	$('#feature_b h2').animate({
		bottom: "14px"
	}, 1500);
			
	$('#feature_b img').animate({
			top: "0px"
		}, 1500, function() {
			setTimeout('removeB();',2000);
	});
}

function removeB() {
	$('#feature_b img').animate({
			top: "-276px"
		}, 1500, function() {
		$('#feature_b img').css('top','276px');
	});

	$('#feature_b h1').animate({
		bottom: "-40px"
	}, 1500);
	$('#feature_b h2').animate({
		bottom: "-36px"
	}, 1500);
	
	$('#feature_c h1').animate({
		bottom: "10px"
	}, 1500);
	$('#feature_c h2').animate({
		bottom: "14px"
	}, 1500);

	$('#feature_c img').animate({
			top: "0px"
		}, 1500, function() {
		setTimeout('removeC();',2000);
	});
}

function removeC() {
	$('#feature_c img').animate({
			top: "-276px"
		}, 1500, function() {
		$('#feature_c img').css('top','276px');
	});

	$('#feature_c h1').animate({
		bottom: "-40px"
	}, 1500);
	$('#feature_c h2').animate({
		bottom: "-36px"
	}, 1500);
	
	$('#feature_d h1').animate({
		bottom: "10px"
	}, 1500);
	$('#feature_d h2').animate({
		bottom: "14px"
	}, 1500);
	
	$('#feature_d img').animate({
			top: "0px"
		}, 1500, function() {
		setTimeout('removeD();',2000);
	});
}

function removeD() {
	$('#feature_d img').animate({
			top: "-276px"
		}, 1500, function() {
		$('#feature_d img').css('top','276px');
	});

	$('#feature_d h1').animate({
		bottom: "-40px"
	}, 1500);
	$('#feature_d h2').animate({
		bottom: "-36px"
	}, 1500);
	
	$('#feature_a h1').animate({
		bottom: "10px"
	}, 1500);
	$('#feature_a h2').animate({
		bottom: "14px"
	}, 1500);
	
	$('#feature_a img').animate({
			top: "0px"
		}, 1500, function() {
		setTimeout('removeA();',2000);
	});
}
