function displayInviteDialog(facebookUserId, host, causeUrlName, causeTitle) {
    FB.ensureInit(function() {
        var dialog = new FB.UI.FBMLPopupDialog('Invite', '');
        var fbml = $("#inviteSelector").html();
        dialog.setFBMLContent(fbml);
        dialog.setContentWidth(630);
        dialog.setContentHeight(710);
        dialog.show();
    });
}

$(document).ready(function() {
    $(".facebookPhoto").live("click", function() {
        var src = $(this).children(".largePhoto").val();
        $("#ProfileB").attr("src", src);
        $("#userImageSrc").val(src);
    });
});
