title: Slider not working on firefox and chrome
body: <p>I built a simple slider for a project.I tested it in chrome, and firefox and it doesn't work but it works fine IE10 release preview.
  Here is a fiddle of the slider <a href="http://jsfiddle.net/VhtWh/2/" rel="nofollow">http://jsfiddle.net/VhtWh/2/</a></p>
  
  <p>Here is the slider code</p>
  
  <pre><code>$(document).ready(function() {
  
      // Let's make the first slide visible and hide the rest
      $('#homepage-slides li').css('top','0').hide();
      $('#homepage-slides li:first').addClass('slideActive').show().find('.slide-content').animate({left: '0', opacity: 1.0}, 800);
  
      // Find all of the slides
      var slides = $('#homepage-slides li');
      var current = 0;
  
      // Set up the slideshow
          $('#homepage-slider .arrow').click(function(){
              var li          = slides.eq(current);
              var nextIndex   = 0;
  
              // Depending on whether this is the next or previous
              // arrow, calculate the index of the next slide accordingly.
  
              if($(this).hasClass('slide-right')){
                  nextIndex = current &gt;= slides.length-1 ? 0 : current+1;
              } else {
                  nextIndex = current &lt;= 0 ? slides.length-1 : current-1;
              }
  
              var next = slides.eq(nextIndex);
  
              current = nextIndex;
  
              // Show next slide and slide/fade in the content
              next.addClass('slideActive').fadeIn('slow').find('.slide-content').animate({left: '0', opacity: 1.0}, 800);
  
              // Hide all other slides and slide/fade out the content
              li.removeClass('slideActive').fadeOut('slow').find('.slide-content').animate({left: '-2400', opacity: 0}, 800);
  
              // Hide next arrow after last slide
              if ( nextIndex &gt;= slides.length-1 ) {
                  $('#homepage-slider .arrow').addClass('hide');
              }
          });
  });
  </code></pre>
  
  <p>PS: The navigation link does not highlight as set in the css in chrome and firefox, but works perfectly in IE10</p>