﻿///<reference path='Eexin.js'>
$(function() {
    /****设置隐藏与显示*****/
    $(".MeShow_" + Eexin.UserId).show();
    $(".MeHide_" + Eexin.UserId).hide();
    ////绑定表情按钮
    Eexin.BindGetFace("a.GetFace_A");
    /***新消息提示鼠标放上去变颜色****/
    $("#NewMsgTip a").hover(function() { $(this).css("backgroundColor", "#FFFFAA"); }, function() { $(this).css("backgroundColor", "#FFFFCB"); });
    ////绑定下拉菜单的显示事件
    $("#EexinShengHuo").hover(function() { $(".MenuList").css({ top: $(this).offset().top + 20, left: $(this).offset().left }).animate({ height: '105px' }); }, function() { });
    $(".MenuList").hover(function() { }, function() { $(".MenuList").animate({ height: '0' }, function() { $(".MenuList").hide(); }); });
    /*关注话题的删除按钮*/
    $(".guanzhutag").hover(function() { $(this).find(".hot_ico").show(); }, function() { $(this).find(".hot_ico").hide(); });
    if (Eexin.UserId == "") { BindShowLoginWin(); }
    /*迷你博客中照片点击显示大图*/
    Eexin.OnClickShowBigPhoto("img.SmallBlogContentImg");
    /*右侧反馈按钮获得焦点移动*/
    $("#RightFanKuiBut").hover(function() { $(this).css("right", "0px"); }, function() { $(this).css("right", "-2px"); });
    /*发布框切换*/
    $("#PostNag li a").click(function() {
        $("#PostNag li").removeClass("selected");
        $(this).parent().addClass("selected"); $(this).blur();
        $(".xiang ul .Li_Content,.Submit_But").hide();
        $(".xiang ul .Input_" + $(this).attr("classname")).show();
        $(".But_" + $(this).attr("classname")).show();
    });
    /*设置页面默认光标的位置*/
    $(".FirstFocus").focus();

    /*搜索的自动提示*/
    $("#SearchKey").keyup(function(event) {
        Eexin.AutoComplete.LoadStart($(this), event);
        Eexin.AutoComplete.UpAndDownKey($(this), $(".AutoList"), event);
    });
});
