With the new version of jQuery out (1.2), some specific code is no longer working ... The lt and gt method are now deprecated ... Here is the modification to the pageTrim method :
function pageTrim(){ if (!spread || spread.constructor != Function ) { spread = spread || 5; } $("li:not(.noTrim)",pager).show(); if (curPage - spread - 1 > 0){ $("li:not(.noTrim)",pager).slice(0,curPage-spread-1).hide(); } $("li:not(.noTrim)",pager).slice(curPage+spread+1+1).hide(); }