(function ($) {
        $.fn.extend({
            "followDiv": function (str) {
                var _self = this;
                //            var pos;
                /*FF和IE7可以通过position:fixed来定位，*/
                //_self.css({ "position": "fixed", "z-index": "9999" }).css(pos);
                /*ie6需要动态设置距顶端高度top.*/
                //alert($.browser.msie);
                if ($.browser.msie && $.browser.version == 6) {
                    _self.css('position', 'absolute');
                    $(window).scroll(function () {
                        var topIE6 = parseInt(str) + $(window).scrollTop();
                        //_self.css('top', topIE6);
                        _self.stop().animate({ top: topIE6 }, 400);
                    });
                }
                else {
                    _self.css('top', str);
                }
                return _self; //返回this，使方法可链。
            }
        });
    })(jQuery);
    $(function(){
	
    $.get("/inc/im.txt?t="+new Date(),function(response){
    	$("body").append(response);
	$("#closeSiderIMchat").bind("click", function() {
        $("#siderIMchat_main").hide();
        $("#siderIMchat_hiddenbar").show();
    })
    $("#siderIMchat_hiddenbar").bind("mouseover", function() {
        $("#siderIMchat_hiddenbar").hide();
        $("#siderIMchat_main").show();
    })
    $('#siderIMchat').followDiv("120px");
    });
    });
    
    
