$(function()
{
   $.easing.custom = function (x, t, b, c, d)
   {
       var s = 2;
       if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 
       return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
   };
    
    // initialize scrollable  
   oSlider = $("#slider").scrollable(
   {
      api: true,
/*      easing: 'custom',*/
      speed: 1500,
      size: '1',
      items: '#slides',
      loop: true,
      vertical: false,
      keyboard: true,
      clickable: true,
      interval: 15000
   });

   $('#sliderMenu a').click(function()
   {
      $(this).addClass('active').siblings().removeClass('active');
      oSlider.seekTo(parseInt($(this).attr('href')));
      return false;
   }).filter(':first').click();
   

});
