$(document).ready(function(){

	$("#bucket-slider").scrollable({
		circular: true
	});
	
	$(".video-grids").scrollable();


	var tabsOptions = {}
	if (typeof tabIndex != 'undefined') {
		tabsOptions.initialIndex = tabIndex
	}

	$("ul.tabs.fix").tabs("ul.panes > li", tabsOptions);


// $("#next-product-slider").scrollable();

	$("#peppers-pane").scrollable({
		circular: true
	});

	$("#olives-pane").scrollable({
		circular: true
	});

	$("#history1").scrollable({
		circular: true
	});

	// init scrollable for products carrousel
	$("#products-slider-container ul.panes > li > div").scrollable({
		circular: true,
		items: "ul > li"
	})
	// hack to fix issue with scrollable initialisation on hiddens elements
	// http://flowplayer.org/tools/forum/35/51514
	$("#products-slider-container ul.panes > li > div ul").css('left','-940px');

});
