Combining jquery show/hide scripts

Combining jquery show/hide scripts

I have 2 scripts that I am using and I haven't been able to figure out how to basically merge them into 1. any help would be much appreciated since I've come to a brick wall:

The first script is a show/hide when pressing a Expand all and collapse all button:

  
  1. $(".hide").click(function(){
  2. $(".screentitle").hide();
  3. });
  4. $(".show").click(function(){
  5. $(".screentitle").show();
  6. });
  7. The second code I use is the image swap for slideToggle:
  8. $(".chaptertitle").live("click", function(){
  9. $(".screentitle", this).slideToggle("fast");
  10. var $img = $(".img-swap", this);
  11. if ($img.attr('src').indexOf("plus.png") > -1) {
  12. $img.attr('src', $img.attr('src').replace('plus', 'minus'));
  13. return false;
  14. } else {
  15. $img.attr('src', $img.attr('src').replace('minus', 'plus'));