title: jQuery slide up open div before sliding down new one
body: <p>I have a <a href="http://jsfiddle.net/4gDVL/" rel="nofollow">fiddle</a> with my problem.  I have a list of links and each one opens a different slideshow.  What I want is, when clicking any link, check if there's an open slideshow and close it (sliding up) before the new div slides down.  The way I have it right now is sort of working but the new divs appear to slide up over the open one, instead of first closing the existing slideshow (up) and then sliding down the new one.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;body&gt;
    &lt;div id="slide1-project" class="flexslider"&gt;
      &lt;div class="close-project"&gt;Close (X)&lt;/div&gt;
      &lt;div&gt;Slideshow 1&lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div id="slide2-project" class="flexslider"&gt;
      &lt;div class="close-project"&gt;Close (X)&lt;/div&gt;
      &lt;div&gt;Slideshow 2&lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div id="slide3-project" class="flexslider"&gt;
      &lt;div class="close-project"&gt;Close (X)&lt;/div&gt;
      &lt;div&gt;Slideshow 3&lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div id="work-list"&gt;
      &lt;ul&gt;
        &lt;li class="client" id="slide1"&gt;Section1&lt;/li&gt;
        &lt;li class="client" id="slide2"&gt;Section2&lt;/li&gt;
        &lt;li class="client" id="slide3"&gt;Section3&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;&lt;!-- End work-list --&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>$(document).ready(function() {
  
    $(".close-project").click(function(){
      $(".flexslider").slideUp("slow");
      $("#work-list ul li").removeClass("current");
    });
  
    $(".client").click(function() {
      var project = this.id;
      var project_id = '#' + project + '-project';
      $(".flexslider").slideUp('slow');
      $(project_id).slideDown('slow', function() {
          $(project).addClass("current");
      });
    });
  });
  </code></pre>
  
  <p>Could someone help me correct the code?</p>
  
  <p>Also, I'd like for the link to change color when the corresponding slide is open, but it doesn't work the way it is now.  If someone could assist me with that as well I'd appreciate it.</p>