
count_to_page = 5;


$(function() {
	$(".prev img").css("opacity","0.5");
	
	var api = $("#catalog1 .body").scrollable({api: true});
	
	api.onSeek(function() {  
 		//alert(this.getIndex());
 		count_all = $("#catalog1 .item").size();
 		states = count_all - count_to_page;
 		
 		if(this.getIndex() == states) {
 			$(".next img").css("opacity","0.5");
 		} else {
 			$(".next img").css("opacity","1");
 		}
 		
		if(this.getIndex() > 0) {
			$(".prev img").css("opacity","1");
		} else { 
			$(".prev img").css("opacity","0.5");
		}
	});
});

