function followInbyFollwer(a){//(a:maybe userid)
	$("#tips1" + a).show();
    $("#tips2" + a).hide()
}

function followInUser1(a){//(a:maybe userid)
    $("#fol" + a).hide();
    $("#ufol" + a).show()
}
function followInUser2(a){//(a:maybe userid)
    $("#fol" + a).hide().next().eq(0).hide();
    $("#ufol" + a).show();
}

function followInUser3(a){//(a:maybe userid)
    $("#fol" + a).hide();
    $("#ufol" + a).show();
     $("select").css("visibility", "");
}

function followInbyFollwer_v1(a){//(a:maybe userid)
    $("#tips1" + a).hide();
    $("#tips2" + a).show()
}

function followInFollwer(a){//(a:maybe userid)
    $("#tips" + a).hide();
    $("#npointer").text($("#npointer").text() - 1)
}

function followInUser(a){//(a:maybe userid)
    setTimeout("window.location.reload()", 1000)
}

function ufollowInUser(a){//(a:maybe userid)
    setTimeout("window.location.reload()", 1000)
}

function followInSeach(a){//(a:maybe userid)
    $("#fol" + a).show();
    $("#ufol" + a).hide()
}

function newFriendsFollow(b, a){//(b:maybe:uid,)
    $("#fol" + b).html('<img src="http://site.tongxueimg.com/v4/k/images/ico_valid.gif" alt="" align="absmiddle" />\u5173\u6ce8\u4e2d')
}

function followInChannel(b, a){
    $("#tips2" + a).replaceWith('<span class="follow ed">\u5173\u6ce8\u4e2d</span>')
}

function followInChannel1(a){
    setTimeout("window.location.reload()", 1000)
}

function followInReply(b, a){
    if (typeof(oTwitter) == "object" && pid == 1) {
        oTwitter.getData()
    }
    else {
        $("#tips2" + a).hide()
    }
}

function followAppyInUser(){
    $("#applyed").show();
    $("#apply").hide()
}

function cancelAppyInUser(){
    $("#applyed").hide();
    $("#apply").show()
}

function cancelInUser(){
    $("#msgMention").hide()
}

function blockInByFollower(a){
    $("#" + a).hide()
}

function allowInUser(a){
    $("#" + a).hide()
}

function allowInConfirm(a){
    window.setTimeout("window.location.reload()", 1000)
}

function getFollowerData(d, e, a, c){//(d:uid,e:follow(d,a),a:I don't know! c:uname)
	ye_msg_2.open("\u5904\u7406\u4e2d,\u8bf7\u7a0d\u5019...", 60, 2);
    if (txweb.user.isLogin == false) {
        window.location.href = txweb.user.loginURL
    }
    else {
        var b = "/ajax/addFollowerData.php";
        $.ajaxSetup({
            cache: false
        });
        $.getJSON(b, {
            uId: d
        }, function(f){
            if (f.result == "follow") {
                $("#followtip").hide();
                ye_msg.open("\u5173\u6ce8\u6210\u529f\uff01", 1, 1);
				
                e(d, a)
            }
            else {
                if (f.result == "followfail") {
                    ye_msg.open("\u5173\u6ce8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                }
                else {
                    if (f.result == "followover") {
                        ye_msg.open("\u4f60\u7684\u5173\u6ce8\u6570\u5f02\u5e38\u589e\u957f\uff0c\u5982\u6709\u7591\u95ee\uff0c\u8bf7\u4e0e\u5ba2\u670d\u4eba\u5458\u8054\u7cfb\u3002", 4, 4)
                    }
                    else {
                        if (f.result == "followed") {
                            ye_msg.open("\u4f60\u5df2\u7ecf\u5173\u6ce8\u4e86\u8fd9\u4e2a\u7528\u6237\uff01", 1, 3)
                        }
                        else {
                            if (f.result == "apply") {
                                ye_msg.open("\u4f60\u7684\u7533\u8bf7\u5df2\u7ecf\u53d1\u9001\uff0c\u4ed6\u540c\u610f\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u6d4f\u89c8\u4ed6\u7684\u6d88\u606f\u4e86", 1, 3)
                            }
                            else {
                                if (f.result == "applyfail") {
                                    ye_msg.open("\u8be5\u7528\u6237\u8bbe\u7f6e\u4e86\u9690\u79c1\u4fdd\u62a4\uff0c\u53d1\u9001\u5173\u6ce8\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 3)
                                }
                                else {
                                    if (f.result == "blocked") {
                                        ye_msg.open("\u4f60\u5df2\u7ecf\u88ab\u8be5\u7528\u6237\u5c4f\u853d\u4e86\uff01", 1, 3)
                                    }
                                    else {
                                        if (f.result == "followedmax") {
                                            ye_msg.open("\u4f60\u5173\u6ce8\u7684\u4eba\u6570\u5df2\u7ecf\u5230\u8fbe\u6700\u5927\u9650\u5ea6", 1, 3)
                                        }
                                        else {
                                            if (f.result == "noLogin") {
                                                ye_msg.open("\u8bf7\u5148\u767b\u5f55\uff01", 1, 3)
                                            }
                                            else {
                                                ye_msg.open("\u5173\u6ce8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                                            }
                                        }
                                    }
                                }
                            }
                        }
						
                    }
                }
            }
			ye_msg_2.closer(1);
			$("select").css("visibility", "");
        })
    }
}

function delFollowerData(b, c){//(d:uid, c:success(b))
    ye_msg_2.open("\u5904\u7406\u4e2d,\u8bf7\u7a0d\u5019...", 60, 2);
    if (txweb.user.isLogin == false) {
        window.location.href = txweb.user.loginURL
    }
    else {
        var a = "/ajax/delFollowerData.php";
        $.ajaxSetup({
            cache: false
        });
        $.getJSON(a, {
            uId: b
        }, function(d){
            if (d.result == "success") {
                if (d.showtip == "true") {
                    $("#followtip").show()
                }
                ye_msg.open("\u505c\u6b62\u5173\u6ce8\u6210\u529f\uff01", 1, 1);
                c(b)
            }
            else {
                if (d.result == "fail") {
                    ye_msg.open("\u505c\u6b62\u5173\u6ce8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                }
                else {
                    if (d.result == "noLogin") {
                        ye_msg.open("\u8bf7\u5148\u767b\u5f55\uff01", 1, 3)
                    }
                    else {
                        ye_msg.open("\u505c\u6b62\u5173\u6ce8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                    }
                }
            }
        ye_msg_2.closer(1);
		})
    }
}

function delFocusByData(e, d){//(e:{str:string,id:id},d:success(e.id))
    if (txweb.user.isLogin == false) {
        window.location.href = txweb.user.loginURL
    }
    else {
        var a = e ? e : {}, c = a.mid || "";
        str = a.str || "";
        id = a.id || "";
        var b = "../follow/delFocusByData.php";
        $.ajaxSetup({
            cache: false
        });
        $.getJSON(b, {
            mid: c
        }, function(f){
            if (f.result == "success") {
                if (str == "") {
                    str = "\u64cd\u4f5c\u6210\u529f\uff0c\u4ed6\u4e0d\u518d\u5173\u6ce8\u4f60\uff01"
                }
                ye_msg.open(str, 2, 1);
                d(id)
            }
            else {
                if (f.result == "fail") {
                    ye_msg.open("\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                }
                else {
                    if (f.result == "noLogin") {
                        ye_msg.open("\u8bf7\u5148\u767b\u5f55\uff01", 1, 3)
                    }
                    else {
                        ye_msg.open("\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01",1, 2)
                    }
                }
            }
        })
    }
}

function getFollowerApplyData(b, c){//(b:mid,c:success())
    if (txweb.user.isLogin == false) {
        window.location.href = txweb.user.loginURL
    }
    else {
        var a = "/ajax/addFollowerApplyData.php";
        $.ajaxSetup({
            cache: false
        });
        $.getJSON(a, {
            uId: b
        }, function(d){
            if (d.result == "success") {
                c()
            }
            else {
                if (d.result == "fail") {
                    ye_msg.open("\u7533\u8bf7\u5173\u6ce8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                }
                else {
                    if (d.result == "followed") {
                        ye_msg.open("\u4f60\u5df2\u7ecf\u5173\u6ce8\u4ed6\u4e86\uff01", 1, 3)
                    }
                    else {
                        if (d.result == "blocked") {
                            ye_msg.open("\u4f60\u5df2\u7ecf\u88ab\u8be5\u7528\u6237\u5c4f\u853d\u4e86\uff01", 1, 3)
                        }
                        else {
                            if (d.result == "followedmax") {
                                ye_msg.open("\u4f60\u5173\u6ce8\u7684\u4eba\u6570\u5df2\u7ecf\u5230\u8fbe\u6700\u5927\u9650\u5ea6", 1, 3)
                            }
                            else {
                                if (d.result == "noLogin") {
                                    ye_msg.open("\u8bf7\u5148\u767b\u5f55\uff01", 1, 3)
                                }
                                else {
                                    ye_msg.open("\u7533\u8bf7\u5173\u6ce8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                                }
                            }
                        }
                    }
                }
            }
        })
    }
}

function delFollowerApplyData(b, c){//(b:mid,c:success())
    if (txweb.user.isLogin == false) {
        window.location.href = txweb.user.loginURL
    }
    else {
        var a = "/ajax/delFollowerApplyData.php";
        $.ajaxSetup({
            cache: false
        });
        $.getJSON(a, {
            uId: b
        }, function(d){
            if (d.result == "success") {
                c(b)
            }
            else {
                if (d.result == "fail") {
                    ye_msg.open("\u505c\u6b62\u5173\u6ce8\u7533\u8bf7\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                }
                else {
                    if (d.result == "noLogin") {
                        ye_msg.open("\u8bf7\u5148\u767b\u5f55\uff01", 1, 3)
                    }
                    else {
                        ye_msg.open("\u505c\u6b62\u5173\u6ce8\u7533\u8bf7\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                    }
                }
            }
        })
    }
}

function allowFollowData(e, d){//(e:{str:string,id:id},d:success(id))
	if (txweb.user.isLogin == false) {
        window.location.href = txweb.user.loginURL
    }
    else {
        var a = e ? e : {}, c = a.mid || "";
        str = a.str || "";
        id = a.id || "";
        var b = "/ajax/allowFollowData.php";
        $.ajaxSetup({
            cache: false
        });
        $.getJSON(b, {
            mid: c
        }, function(f){
        	
            if (f.result == "success") {
                if (str == "") {
                    str = "\u64cd\u4f5c\u6210\u529f!"
                }
                ye_msg.open(str, 1, 1);
                d(id);
            }
            else {
                if (f.result == "fail") {
                    ye_msg.open("\u5173\u6ce8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                }
                else {
                    if (f.result == "followover") {
                        ye_msg.open("\u5bf9\u65b9\u5e10\u53f7\u5173\u6ce8\u6570\u5f02\u5e38\u589e\u957f\uff0c\u6682\u65f6\u4e0d\u80fd\u5173\u6ce8\u5176\u4ed6\u4eba\uff0c\u5982\u6709\u7591\u95ee\uff0c\u8bf7\u4e0e\u5ba2\u670d\u4eba\u5458\u8054\u7cfb\u3002", 4, 3)
                    }
                    else {
                        if (f.result == "noLogin") {
                            ye_msg.open("\u8bf7\u5148\u767b\u5f55\uff01", 1, 3)
                        }
                        else {
                            ye_msg.open("\u5173\u6ce8\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                        }
                    }
                }
            }
        })
    }
}

function refuseFollowApplyData(e, d){//(e:{str:string,id:id},d:success(id))
    if (txweb.user.isLogin == false) {
        window.location.href = txweb.user.loginURL
    }
    else {
        var a = e ? e : {}, c = a.mid || "";
        str = a.str || "";
        id = a.id || "";
        var b = "/ajax/refuseFollowApplyData.php";
        $.ajaxSetup({
            cache: false
        });
        $.getJSON(b, {
            mid: c
        }, function(f){
            if (f.result == "success") {
                if (str == "") {
                    str = "\u64cd\u4f5c\u6210\u529f!"
                }
                ye_msg.open(str, 1, 1);
                d(id)
            }
            else {
                if (f.result == "fail") {
                    ye_msg.open("\u62d2\u7edd\u5173\u6ce8\u7533\u8bf7\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                }
                else {
                    if (f.result == "noLogin") {
                        ye_msg.open("\u8bf7\u5148\u767b\u5f55\uff01", 1, 3)
                    }
                    else {
                        ye_msg.open("\u62d2\u7edd\u5173\u6ce8\u7533\u8bf7\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u64cd\u4f5c\uff01", 1, 2)
                    }
                }
            }
        })
    }
};
