horizontal jquery arrows navigation next previous

horizontal jquery arrows navigation next previous

Hello,
I'm trying to implante right and left arrows navigation on my horizontal webpage but the problem nothing happens when I click on arrows. Here's my fiddle in case of :  http://jsfiddle.net/jarod51/StZR4/9/

Do you have any idea how to solve it ?

My jquery code is : 
  1. $(document).ready(function() { var $item = $('div.slide'), //Cache your DOM selector visible = 1, //Set the number of items that will be visible index = 0, //Starting index endIndex = ( $item.length / visible ) - 1; $('.flscrolld').click(function(){ if(index < endIndex ){ index++; $item.animate({'left':'-=300px'}); } }); $('.flscrolll').click(function(){ if(index > 0){ index--; $item.animate({'left':'+=300px'}); } }); });

I defined my previous and next arrows like that in my css :
  1. .flscroll {
  2.         display:block;
  3.         height: 83px;
  4.         opacity: 0.8;
  5.         position: fixed;
  6.         top: 40%;
  7.         z-index: 1000;
  8.     }
  9.     .ie8 .flscroll {
  10.         filter: alpha(opacity=80);
  11.     }
  12.     #flscrollg {
  13.         background: url(images/sprite.png) no-repeat 50px -100px;
  14.         left: -30px;
  15.         padding-left: 50px;
  16.         width: 52px;
  17.     }
  18.     #flscrolld {
  19.         background: url(images/sprite.png) no-repeat left -200px;
  20.         padding-right: 50px;
  21.         right: -30px;
  22.         width: 53px;
  23.     }
the structure of my html looks like that :

  1. <!--the menu-->
  2.   <div id="banner">
  3.  <ul>
  4.          <li><a href="#home">Home</a></li>  
  5.          <li><a href="#newsletter">Newsletter</a></li>  
  6.          <li><a href="#directions">Directions &amp; Opening Hours</a></li>  
  7.          <li><a href="#contact">Contact us</a></li>
  8. </ul>
  9. </div>
  10. <!--end of the menu-->

  11. <!--arrows nav-->
  12.         <a href="#1" title="Page precédente" class="flscroll" id="flscrollg">&nbsp;</a>
  13.         <a href="#1" title="Page suivante" class="flscroll" id="flscrolld">&nbsp;</a>
  14. <!--end arrows-->

  15.         <div id="wrap">
  16.         
  17. <div id="slide">
  18.         <div id="home" class="panel item1">
  19.         <div class="inner inner1"></div>
  20.         </div>
  21. </div>

  22. <div id="slide">
  23.         <div id="newsletter" class="panel item2">
  24.         <div class="inner inner2"></div>
  25.         <div class="inner-lev1 inner2a"></div>
  26.         <div class="inner-lev2 inner2b"></div>
  27.         </div>
  28.         </div>
  29. </div>
Regards,
Jarod.