Is there a way to shorten the code?

Is there a way to shorten the code?

Hello there,
I started learning jQuery about 2 days ago using the book "jQuery Novice to Ninja" by Sitepoint.

I'm currently working on a project where I need some jQuery-fancy to work so I startet programming my first little plugin, which works flawlessly.
This is the script-code:
  1. $(document).ready(function() {
  2. $('#aboutme').hide();
  3. $('#twitter').hide();
  4. $('#contact').hide();
  5. $('#aboutmebtn').toggle(function() {
  6. $('#aboutmeimg').attr("src", "bilder/aboutme-selected.gif");
  7. $('#twitterimg').attr("src", "bilder/twitter.gif");
  8. $('#contactimg').attr("src", "bilder/contact.gif");
  9. $('#aboutme').animate({ opacity: 'toggle', paddingTop: '+=16px' }, 'slow');
  10. $('#twitter').hide();
  11. $('#contact').hide();
  12. }, function() {
  13. $('#aboutmeimg').attr("src", "bilder/aboutme.gif");
  14. $('#aboutme').animate({ opacity: 'toggle', paddingTop: '-=16px' }, 'slow');
  15. });
  16. $('#twitterbtn').toggle(function() {
  17. $('#twitterimg').attr("src", "bilder/twitter-selected.gif");
  18. $('#aboutmeimg').attr("src", "bilder/aboutme.gif");
  19. $('#contactimg').attr("src", "bilder/contact.gif");
  20. $('#twitter').animate({ opacity: 'toggle', paddingTop: '+=16px' }, 'slow');
  21. $('#aboutme').hide();
  22. $('#contact').hide();
  23. }, function() {
  24. $('#twitterimg').attr("src", "bilder/twitter.gif");
  25. $('#twitter').animate({ opacity: 'toggle', paddingTop: '-=16px' }, 'slow');
  26. });
  27. $('#contactbtn').toggle(function() {
  28. $('#contactimg').attr("src", "bilder/contact-selected.gif");
  29. $('#aboutmeimg').attr("src", "bilder/aboutme.gif");
  30. $('#twitterimg').attr("src", "bilder/twitter.gif");
  31. $('#contact').animate({ opacity: 'toggle', paddingTop: '+=16px' }, 'slow');
  32. $('#twitter').hide();
  33. $('#aboutme').hide();
  34. }, function() {
  35. $('#contactimg').attr("src", "bilder/contact.gif");
  36. $('#contact').animate({ opacity: 'toggle', paddingTop: '-=16px' }, 'slow');
  37. });
  38. });
What this thing does: It displays three images side by side and when you click one, content comes into view. Only on section of the three can be displayed at the same time.

Now I was asking myself, since this is a pretty easy task if the code isn't way too long? I'm sure there are some protips which help me getting rid of a line or two.