Cycle plugin dynamic goto

Cycle plugin dynamic goto

I'm trying to connect my Wordpress menu to a cycle slideshow, by hovering a menu item 1 the slideshow need to go to slide #1. The code so far: 

  1. $('.showcase div').cycle({ 
  2.     fx:    'fade', 
  3.     speed:  100,
  4.     startingSlide: 0
  5.  });

  6. $('.portfolio-menu ul li').each(function(i) {
  7. var i=i+1-1 // slide are starting with 0 
  8. $(this).attr('rel',i) // adding id to the links
  9. });
  10. $('.portfolio-menu ul li').hover(function() {
  11. $(this).addClass('hover'); // adding hover class
  12. var id = $(this).attr('rel'); // getting id
  13. $('.showcase div').cycle(id); // goto id
  14. return false
  15. }, function() {
  16. $(this).removeClass('hover')
  17. });
But i got this error: 

[cycle] unknown transition: 0 ; slideshow terminating 
[cycle] unknown transition: 1 ; slideshow terminating