function enablePageable(id) {
	var page = 1;
	
	if($(id+".pageable ul li").length == 0) 
		$(id+".pageable").hide();
		
	if($(id+".pageable ul li").length <= 1)
		$(id+".pageable .controls").hide();
	
	$(id+".pageable ul li").hide();
	$(id+".pageable ul li:first-child").show();
	$(id+".pageable .prev").click(function(){

		// Hide the previous
		$(id+".pageable ul li").hide();
		if(page == 1) page = $(id+".pageable ul li").length;
		else page--;
		
		// Show the previous article
		$(id+".pageable ul li:nth-child("+page+")").show();
		
		
	});
	$(id+".pageable .next").click(function(){
		
		// Hide the previous
		$(id+".pageable ul li").hide();
		
		// If page reach the max
		if(page == $(id+".pageable ul li").length) page = 1;
		else page++;
		
		// Show the previous article
		$(id+".pageable ul li:nth-child("+page+")").show();
		
	});
}
