﻿$(document).ready(function(){
	$(".tablesorter").after("<div id='pager' class='pager'><form class='clearfix' action='#'><p class='p-pagedisplay'><a href='#' class='first' >First page</a> | <a href='#' class='prev' >Previous page</a> | <a href='#' class='next' >Next page</a> | <a href='#' class='last' >Last page</a> | <label>Viewing page <input type='text' class='pagedisplay' /></label></p><p class='p-pagesize'><label for='pagesize' class='access'>Page Size</label><select class='pagesize' id='pagesize'><option value='10'>10</option><option selected='selected' value='25'>25</option><option value='50'>50</option><option  value='100'>100</option></select> per page</p></form></div>");
	// Cubic easing function borrowed from http://gsgd.co.uk/sandbox/jquery/easing/
	$.easing.easeOutCubic = function(x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	};
	
	$("#contentArea").localScroll({ easing:'easeOutCubic' });
});