navigation next prev

navigation next prev

hi there,
I'm trying to use the scrollTo plug in, maybe in the stupidest way, but i feel i'm almost there!
in my case every scrollable element has his own next-prev buttons, the script is able to extract a variable on the button click, id like to make him use it to calcolate the position of the next-prev target.
you can take a look to a live example at


here's the script i've made:

$(document).ready(function () {

$('.triangolo_top, ') .click(function () {
            var numero= $(this).attr('title');
            $('#prova').text(numero)
  
            $(window).scrollTo ('li:eq (+numero+1)', { duration:500, axis:'y'})
   
       })
});

many thanks!