function update_user_box(uid) {         
    if(!uid) return;
    var fbc_user;
    jQuery.ajaxSetup({async: false});
    jQuery.ajax({url:fbc_ajx_url, type:'POST', data:'fbc_ajx_action=get_user_name&user_id='+uid, success: function(resp){
        fbc_user = resp;
        }})
    jQuery.ajaxSetup({async: true});

    jQuery('#fbc_box').html(
     "<span>"
     +"<fb:profile-pic uid='loggedinuser' facebook-logo='true'></fb:profile-pic>"
     +"<br />Welcome, <fb:name uid='loggedinuser'useyou='false'></fb:name>. "
     +"You are connected with FaceBook Connect."
     +"</span>");     
    FB.XFBML.Host.parseDomTree();    
    jQuery('#mybna_notloggedin').hide();
    ar_custom_comment_form(fbc_user, 'fbcuser_'+uid+'@bootsnall.com', 'http://www.facebook.com/profile.php?id='+uid);
}   

function fbc_user_not_connected(){     
    jQuery('#fbc_box').html('<fb:login-button onlogin="update_user_box();"></fb:login-button>');
    FB.XFBML.Host.parseDomTree();
    /*
    jQuery.ajax({url:fbc_ajx_url, type:'POST', data:'fbc_ajx_action=log_out'}, function(resp){
        if(resp){
            location.href = location.href;
        }
    })
    */
}
