/**
 * @author Paweł Skrzypiec
 * @desc Ajax pagination
 * @version 1.0
 * @example
 * $("element").pagination({
 *
 * 		update: 'update'
 *
 * });
 * @obs With no arguments, the default is update
 * @license free
 * @param string update container
 * @contribution Paweł Skrzypiec
 *
 */
(function($){  
 $.fn.pagination = function(options) { 
	 
	options = $.extend({
		params: options.params || {},
		mode: options.mode || 'json'
		
	}, options || {});	 
	 
	activateProgress($(this)); $.post($(this).attr('href'), {}, function(data, textStatus) { getObject(options.update).html(data); deactivateProgress(); }, options.mode)
	
	return false;
	

 };  
})(jQuery);

