﻿function pager() {
    //alert(j$(".pages"));
    j$(".pages .current").wrap("<a class='current'></a>");
    //j$(".pages span").replaceWith(j$(".pages span a").get().reverse());
    j$(".pages > span").html(j$(".pages > span > a").get().reverse());
}

function init_pager() {
    
    if (typeof jQuery != 'undefined') {        
        if (typeof j$ != 'function') {
            j$ = jQuery.noConflict();
            j$(document).ready(function() { pager(); });
        }
        else 
        {            
            j$(document).ready(function() { pager(); });
        }
    }    
}
