/**
 * This jQuery plugin displays pagination links inside the selected elements.
 *
 * @author Gabriel Birke (birke *at* d-scribe *dot* de)
 * @version 1.1
 * @param {int} maxentries Number of entries to paginate
 * @param {Object} opts Several options (see README for documentation)
 * @return {Object} jQuery Object
 */
jQuery.fn.pagination = function(options){
	options = jQuery.extend({
		items_per_page:20,
		num_display_entries:20,
		current_page:0,
		total_items:0,
		prev_text:"Vorige",
		next_text:"Volgende",
		prev_show_always:true,
		next_show_always:true,
		callback:function(){return false;}
	},options||{});
	
	return this.each(function() {
		/**
		 * Calculate the maximum number of pages
		 */
		function numPages() {
			return Math.ceil(total_items/opts.items_per_page);
		}
		
		alert('test');

	});
}


