var online = new Array();
$(function() {
                siderIMchatWidgetsetGoTop();
                $(window).scroll(function() { siderIMchatWidgetsetGoTop(); });
                function siderIMchatWidgetsetGoTop() {
                    $('#online').animate({ top: $(document).scrollTop() + 100 }, 10);
                }
                $("#online .bd ul li.onlinekf,.sl_ckf").click(function() {
                    $("#onlinekf #iconDivMain1 > div").click();
                    return false;
                });
                
                $("#JS_liveChat").click(function() {
                    if ($(this).hasClass("current")) {
                        $(this).removeClass("current");
                        $("#JS_liveChatBody").hide();
                    }
                    else {
                        $(this).addClass("current");
                        $("#JS_liveChatBody").show();
                    }
                });

for (var i in online) {
                     if (online[i] == '1') {
                         $("#suggest" + i).addClass("on");
                     } else {
                         if ($("#suggest" + i).hasClass("on") == true) {
                             $("#suggest" + i).removeClass("on");
                         }
                     }
                 }

$("#online .ft").html($("#barinfo").html());
            });

