/*Swipe Events and Scrollable*/


$(document).ready(function() {

$('.swipe').addSwipeEvents(function(evt, touch) {
  					// this is triggered for any of the custom touch events
					});
				
				$.fn.handleSwipes = function() {
  					return this.each(function() {
    				var api = $(this).data("scrollable");

    			api.getRoot().addSwipeEvents().bind('swipeleft', function() {
         			api.next();
       			})
       				.bind('swiperight', function() {
         			api.prev();
       					});
  					});
				};

// initialize scrollable
	$(".scrollable").scrollable({mousewheel: true}).handleSwipes();	
				
}); //doc ready





