// execute your scripts when DOM is ready. this is a good habit
var api;
$(function() {		
 
	api = $("div.home_gallery").scrollable({
	    api: true,
	    
		size: 1,

		interval: 10000,
		
		items: '.home_gallery_items',

		loop: true, 

		speed: 800,
		
		next: '#home_gallery_next',
		prev: '#home_gallery_prev',

		onBeforeSeek: function() {
			this.getItems().fadeTo(300, 0.2);		
		},

		onSeek: function() {
			this.getItems().fadeTo(300, 1);
		}
	});	
	

	
});


