$(document).ready(function() {

  $(".slidetabs").tabs(".banners li > a", {
    // enable "cross-fading" effect
    effect: 'fade',
    fadeOutSpeed: "slow",
    rotate: true // start from the beginning after the last tab
  // use the slideshow plugin. It accepts its own configuration
  }).slideshow({ autoplay: true }); 

  $("#menu .tabs").tabs(".panel", {
    tabs: 'li',
    // event:'mouseover',
    // enable "cross-fading" effect
    effect: 'fade',
    fadeOutSpeed: "slow",
    rotate: true // start from the beginning after the last tab
  // use the slideshow plugin. It accepts its own configuration
  }); 
  
  // custom easing called "custom"
  $.easing.custom = function (x, t, b, c, d) {
	  var s = 1.70158; 
	  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;
  }
  
  $("#services_and_links").scrollable({ easing: 'custom', size: 4, speed: 1200, circular: true, mousewheel: true}).autoscroll({steps: 1, interval: 7500});
});
