var PeopleDetails = function()
{
//privat
	
	var AddFriendCallback = function(response, status)
	{
		if (jQuery.trim(response) == "OK")
			jQuery("#addFriendButton").remove();
		else
			alert("Error!");
	};

//public
return {
    update_followers:function(uid,f_id,status)
    {
   	   jQuery.ajax(
		{
			url:window.location.pathname,
			type: "post",
			data: "action=update_followers&uid="+uid+"&f_id="+f_id+"&status="+status,
			success:function(r)
            {
                r=eval(r);
                if(r.code==0)
                {
                    //alert(r.msg);return;
                    $("#fblock").html(r.msg);
                }
            }
		});
    },
	AddFriend: function(id)
	{
		jQuery.ajax(
		{
			url: "/people/search",
			type: "post",
			data: "ajax=true&request=addfriend&id=" + id,
			id: id,
			success: AddFriendCallback
		});
	}
};
}();
