function get_album_pages( user_id, category_id, page, role ) {
    $('#about_me').html("<img src='" + base_url + "images/loading.gif'>");
    $.post(
        base_url+"djalbums",
        { "user_id" : user_id, "category_id" : category_id, "page" : page, "role" : role },
        function( html_response ){
            $('#about_me').html( html_response );
            $(".lightbox").lightbox();
        },
        "html"
    );
}
function get_video_pages( user_id, page, role ) {
    $('#about_me').html("<img src='" + base_url + "images/loading.gif'>");
    $.post(
        base_url+"djpublic_videos",
        { "user_id" : user_id, "page" : page,"role" : role },
        function( html_response ){
            $('#about_me').html( html_response );
            
            var s1 = new SWFObject(base_url+'videoplayer/player-licensed.swf','player','390','350','9');
            s1.addParam('allowfullscreen','false');
            s1.addParam('allowscriptaccess','always');
            s1.addParam('flashvars','file=' + base_url + 'video/');
            s1.addParam('flashvars','autostart=true');
            s1.write('preview');
        },
        "html"
    );
}
function get_trainer_tips_pages( page ) {
    $('#about_me').html("<img src='" + base_url + "images/loading.gif'>");
    $.post(
        base_url+"get_public_trainer_tips",
        { "page" : page },
        function( html_response ){
            $('#about_me').html( html_response );
        },
        "html"
    );
}
function showTrainerTipsComments( tip_id, page ) {
    $('#about_me').html("<img src='" + base_url + "images/loading.gif'>");
    $.post( base_url+'get_public_trainer_tips_comments', { "tip_id" : tip_id, "page" : page }, function( data ) {
        $('#about_me').html( data );
    });
}
