title: how to get the current state of slide function in jquery
body: <p>is there a way to get the state of the slider wheather it is slideUp() or sliderDown() .</p>
  
  <p>suppose if I were to user slideToggle()</p>
  
  <pre><code>$(document).ready(function(){
    $(".flip").click(function(){
      $("#panel").slideToggle("slow",showstate);
         function showstate(){
  
  
          }
    });
  });
  </code></pre>