(function(h,d){var m=document.createElement("div");d(document);h.table=function(i,a){var n=i=d(i);a||(a={});var v=a.rowIdPrefix||"row_",w=h.func(a.rowCallback||"init_row_event")||function(){},x=h.func(a.jsonLoaded||"json_loaded")||function(){},y=d.trim(a.template||""),e=d("#"+(a.pagerId||"pagination")),z=a.pageVar||"page",A=a.pagesizeVar||"pagesize",o=a.pageSize||12,p=(a.baseUrl||"")+(e.length?"&"+A+"="+o:""),g={},j="",r={callback:function(b){q(p+"&"+(z+"="+(b+1)),j)},items_per_page:o,num_display_entries:5,
num_edge_entries:2,prev_text:"&#x4E0A;&#x4E00;&#x9875;",next_text:"&#x4E0B;&#x4E00;&#x9875;"},q=function(b,k,s){d.getJSON(b,k,function(l){g={};n.empty();for(var B=0,c;c=l.data[B++];){c=c;var f=y;for(var t in c)f=f.replace(RegExp("{"+t+"}","gm"),c[t]);m.innerHTML=f;c=d(m.firstChild);f=c[0].id.substr(v.length);g[f]=c;n.append(c)}i.trigger("update");for(var u in g)w(u,g[u]);typeof s=="function"&&s(l.total);x(l)})};this.load=function(b){b&&(j=b.jquery?b.serialize():b);q(p,j,function(k){e.length&&e.pagination(k,
r)})};this.firstLoad=function(b){e.length&&e.pagination(b,r)}}})(cmstop,jQuery);
