/**
	Apply Paginate
	Just add class topaginate to ul
*/
$(function(){
	var options = {
		items:'li',
		nbElemsPerPage: 8,
		nbPagesMax:8,
		strNext: false,
		strPrev: false,
		strFirst: false,
		strLast: false,
		classSelected:'current',
		bShowBefore:false,
		bShowAfter:false
	};
	$("ul.topaginate").each(function(){
		var self = $(this);
		var oBox = self.parent().next('.paginate');
		var opts = $.extend(options,{paginateBox:oBox});
		self.paginate(opts);
	});

});
