function ajax_auth_successful() {
    $('#logged_in_username').html('<div id="username" class="right">Hi, <a href="/profiles/'+$.cookie('profile_slug')+'/public/" >'+$.cookie('first_name')+' '+$.cookie('last_name')+'</a></div>');
    $('#logged_in_username').show();
    $('#header_v2_myfocus2').html('<div class="center"><a id="tools-link" href="/accounts/logout/next/">LOG OUT</a></div>');
    var curr_tools_link = $('#tools-link').attr('href');
    var new_tools_link = curr_tools_link + window.location.href;
    $('#tools-link').attr('href', new_tools_link);
    $('.my-focus').html('<div id="left" class="center"><a href="/profiles/" >My Focus</a>')
}
