$(document).ready(function() {
	
	$('section#twitter .wrap section p:first-child').fadeIn();
	$('section#twitter .wrap section p:first-child').addClass('active');
	
	$('section#twitter article nav li.previous a').live("click", function(event) {
		
		event.preventDefault();
		
		$('section#twitter .wrap section p.active').removeClass('active').fadeOut('fast',function() {
			
			var prev 																				= $(this).prev('p');
			
			if (!(prev.length)) {
				prev																				= $('section#twitter .wrap section p:last-child');
			}
			prev.addClass('active').fadeIn();
			
		});
		
	});
	
	$('section#twitter article nav li.next a , section#twitter article p').live("click", function(event) {
		
		event.preventDefault();
		
		$('section#twitter .wrap section p.active').removeClass('active').fadeOut('fast',function() {
			
			var next 																				= $(this).next('p');
			
			if (!(next.length)) {
				next																				= $('section#twitter .wrap section p:first-child');
			}
			next.addClass('active').fadeIn();
			
		});
		
	});
	
	
	
});
