ScrollPane and ScrollTo plugins conflict

ScrollPane and ScrollTo plugins conflict

Hi everyone! 
This is my first attempt on using JQuery so I'm mostly doing copy/paste/tweak. 
I'm using the ScrollTo plugin to create a horizontal sliding content effect. 
It's working well. Now, one of my content needs to have a scrolling down bar. I found ScrollTo.js ( http://woork.blogspot.com/2009/08/elegant-scrollpanes-with-jquery-and.html) which is exactly what I need, but can't make it work with my previous script (still got the classic overflow:auto)

Here is the code: 

  1. <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
  2. <script type="text/javascript" src="js/jquery.scrollTo.js"></script>
  3. <script type="text/javascript" src="jScrollPane.js"></script>
  4. <script>



  5. $(document).ready(function() {

  6. $('a.panel').click(function () {

  7. $('a.panel').removeClass('selected');
  8. $(this).addClass('selected');
  9. current = $(this);
  10. $('#wrapper').scrollTo($(this).attr('href'), 800);
  11. return false;
  12. });

  13. $(window).resize(function () {
  14. resizePanel();
  15. });
  16. });

  17. function resizePanel() {

  18. width = $(window).width();
  19. height = $(window).height();

  20. mask_width = width * $('.item').length;
  21. $('#debug').html(width  + ' ' + height + ' ' + mask_width);
  22. $('#wrapper, .item').css({width: width, height: height});
  23. $('#mask').css({width: mask_width, height: height});
  24. $('#wrapper').scrollTo($('a.selected').attr('href'), 0);
  25. }
  26. /* -- here is the second script -- */
  27. $(function()
  28. {
  29. $('#section').jScrollPane();
  30. });


  31. </script>

  32. <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
  33. <script type="text/javascript" src="js/jquery.scrollTo.js"></script>
  34. <script type="text/javascript" src="jScrollPane.js"></script>
  35. <script>



  36. $(document).ready(function() {

  37. $('a.panel').click(function () {

  38. $('a.panel').removeClass('selected');
  39. $(this).addClass('selected');
  40. current = $(this);
  41. $('#wrapper').scrollTo($(this).attr('href'), 800);
  42. return false;
  43. });

  44. $(window).resize(function () {
  45. resizePanel();
  46. });
  47. });

  48. function resizePanel() {

  49. width = $(window).width();
  50. height = $(window).height();

  51. mask_width = width * $('.item').length;
  52. $('#debug').html(width  + ' ' + height + ' ' + mask_width);
  53. $('#wrapper, .item').css({width: width, height: height});
  54. $('#mask').css({width: mask_width, height: height});
  55. $('#wrapper').scrollTo($('a.selected').attr('href'), 0);
  56. }
  57. /* -- here is the second script -- */
  58. $(function()
  59. {
  60. $('#section').jScrollPane();
  61. });


  62. </script>
Do you see anything wrong? If I run the jScrollPane on its own, it works fine! 

Thank you for your help and time!