// execute your scripts when DOM is ready. this is a good habit 
$(function() {         
         
    // initialize scrollable  
  var api =  $("div#rightContent").scrollable({
    	size:1,
    	loop: true,
    	interval: 5000,
    	speed: 750,
        items: '.photos',
        
        onBeforeSeek: function() { 
            this.getItems().fadeTo(300, 0.2);
           }, 
         
        // when seek ends resume items to full transparency 
        onSeek: function() { 
            this.getItems().fadeTo(300, 1);            
            }

    });          

}); 
