Simplify my jQuery

Simplify my jQuery

Hey!

I'm fairly new to jQuery and I have a rather simple question.
I'm making a accordion-like solution to sign up for a subscription, and what I have now is:
  1. $(function() {
  2.     $('.next').click(function() {
  3.         $('.content_1').fadeOut({display: 'none'});
  4.         $('.content_2').fadeIn({display: 'block'}, {duration:3000, queue: true});
  5.         $('.footer_1').animate({width: '14px'}, 'slow');
  6.         $('.footer_2').animate({width: '561px'}, 'slow');
  7.     }); 
  8. $(function() {
  9.     $('.next2').click(function() {
  10.         $('.content_2').fadeOut({display: 'none'});
  11.         $('.content_3').fadeIn({display: 'block'}, {duration:3000, queue: true});
  12.         $('.footer_2').animate({width: '14px'}, 'slow');
  13.         $('.footer_3').animate({width: '561px'}, 'slow');
  14.     });
And so it continues for 5 more "pages"
Is there a way to make this with only one single "block" of code ?
Regards