title: jQuery can't get if statement to work
body: <p>I'm looking help with an If Statement. I'm trying to finalize this horizontal scrolling I have and the last bit is to not just disable scrolling when the end is reached, but to also disable (well, change color) the scroll buttons at that point as well. And change back when they are scrollable again.</p>
  
  <p><a href="http://jsfiddle.net/stfzy/83/" rel="nofollow">http://jsfiddle.net/stfzy/83/</a></p>
  
  <p>EDIT* I've updated the JQuery and have everything working except just one if statement:</p>
  
  <pre><code>$('div#arrowL').click(function(){
      if(index &lt; 0 ){ //can't scroll
          $('div#arrowL').addClass('active');
      }
  });        
  </code></pre>
  
  <p>I need to add this class back when you can't scroll left anymore. And I think the issue is with the "index &lt; 0" portion but I don't see what I need to change it to to get it to work.</p>
  
  <p>Any help is appreciated.</p>