/*!
* tablesorter pager plugin
* updated 10/25/2012
*/
;(function($){$.extend({tablesorterPager:new function(){this.defaults={container:null,ajaxUrl:null,ajaxProcessing:function(ajax){return[0,[],null]},output:"{startRow} to {endRow} of {totalRows} rows",updateArrows:true,page:0,size:10,fixedHeight:false,removeRows:false,cssFirst:".first",cssPrev:".prev",cssNext:".next",cssLast:".last",cssGoto:".gotoPage",cssPageDisplay:".pagedisplay",cssPageSize:".pagesize",cssDisabled:"disabled",totalRows:0,totalPages:0,filteredRows:0,filteredPages:0};var $this=this,pagerArrows=function(c,disable){var a="addClass",r="removeClass",d=c.cssDisabled,dis=!!disable,tp=Math.min(c.totalPages,c.filteredPages);if(c.updateArrows){$(c.cssFirst+","+c.cssPrev,c.container)[(dis||c.page===0)?a:r](d);$(c.cssNext+","+c.cssLast,c.container)[(dis||c.page===tp-1)?a:r](d)}},updatePageDisplay=function(table,c){var i,p,s,t,out,f=$(table).hasClass("hasFilters");c.filteredRows=(f)?$(table).find("tbody tr:not(.filtered)").length:c.totalRows;c.filteredPages=(f)?Math.ceil(c.filteredRows/c.size):c.totalPages;if(Math.min(c.totalPages,c.filteredPages)>0){t=(c.size*c.page>c.filteredRows);c.startRow=(t)?1:(c.size*c.page)+1;c.page=(t)?0:c.page;c.endRow=Math.min(c.filteredRows,c.totalRows,c.size*(c.page+1));out=$(c.cssPageDisplay,c.container);s=c.output.replace(/\{(page|filteredRows|filteredPages|totalPages|startRow|endRow|totalRows)\}/gi,function(m){return{"{page}":c.page+1,"{filteredRows}":c.filteredRows,"{filteredPages}":c.filteredPages,"{totalPages}":c.totalPages,"{startRow}":c.startRow,"{endRow}":c.endRow,"{totalRows}":c.totalRows}[m]});if(out[0]){out[(out[0].tagName==="INPUT")?"val":"html"](s);if($(c.cssGoto,c.container).length){t="";p=Math.min(c.totalPages,c.filteredPages);for(i=1;i<=p;i++){t+=""}$(c.cssGoto,c.container).html(t).val(c.page+1)}}}pagerArrows(c);if(c.initialized){$(table).trigger("pagerComplete",c)}},fixHeight=function(table,c){var d,h,$b=$(table.tBodies[0]);if(c.fixedHeight){$b.find("tr.pagerSavedHeightSpacer").remove();h=$.data(table,"pagerSavedHeight");if(h){d=h-$b.height();if(d>5&&$.data(table,"pagerLastSize")===c.size&&$b.find("tr:visible").length