function facebook_connect_login()
{
    // Cancel reload for explicit logins
    FB.Facebook.appSettings['reloadIfSessionStateChanged'] = false;

    // spawn off another facebox with message "you are now logging in"
    jQuery.facebox(jQuery("<div id=\"logging_in_loader\"><h1>Please wait while we log you in...</h1><p><img src=\"/c/images/ajax-loader.gif\" alt=\"loading...\" width=\"54\" height=\"55\" /></div>"));

    jQuery("#facebox a.close").hide();
    jQuery.facebox.close = function() {};

    jQuery.getJSON('http://' + tbp.signup.host + "/tools/facebook/connect/done" + 
                   '?contentType=jsonp&disableLayout=true&jsoncallback=?',function(data)
    {
        
    
if (data.status == 200)
            {
                if (jQuery.isFunction(tbp.signup.currentFaceboxCallback))
                {
                    tbp.signup.currentFaceboxCallback.call(window, data)
                }
                else
                {
                    // REFACTOR CORE/tbp.signup.prepareForm to be more reusable
                    window.location.reload();
                }
            }
            else
            {
                alert("there was a problem");
            }
    }
    ,'jsonp');
}

