/**
 * Pagination functions
 *
 */

// Calculate width of pagination div, centre it, show it.
 
jQuery(document).ready(function() { 
	jQuery('.pagination').each(function() {
		var pagination_center = jQuery(this).width();
		if (pagination_center) {
			jQuery(this).css('float', 'none');
			jQuery(this).css('width', pagination_center+1);
			jQuery(this).fadeIn('slow');
		}
	});
});