﻿(function($) { $.fn.jCarouselLite = function(o) { o = $.extend({ btnPrev: null, btnNext: null, btnGo: null, mouseWheel: false, auto: null, speed: 200, easing: null, vertical: false, circular: true, visible: 3, start: 0, scroll: 1, beforeStart: null, afterEnd: null }, o || {}); return this.each(function() { var b = false, animCss = o.vertical ? "top" : "left", sizeCss = o.vertical ? "height" : "width"; var c = $(this), ul = $("ul", c), tLi = $("li", ul), tl = tLi.size(), v = o.visible; if (o.circular) { ul.prepend(tLi.slice(tl - v - 1 + 1).clone()).append(tLi.slice(0, v).clone()); o.start += v } var f = $("li", ul), itemLength = f.size(), curr = o.start; c.css("visibility", "visible"); f.css({ overflow: "hidden", float: o.vertical ? "none" : "left" }); ul.css({ margin: "0", padding: "0", position: "relative", "list-style-type": "none", "z-index": "1" }); c.css({ overflow: "hidden", position: "relative", "z-index": "2", left: "0px" }); var g = o.vertical ? height(f) : width(f); var h = g * itemLength; var j = g * v; f.css({ width: f.width(), height: f.height() }); ul.css(sizeCss, h + "px").css(animCss, -(curr * g)); c.css(sizeCss, j + "px"); if (o.btnPrev) $(o.btnPrev).click(function() { return go(curr - o.scroll) }); if (o.btnNext) $(o.btnNext).click(function() { return go(curr + o.scroll) }); if (o.btnGo) $.each(o.btnGo, function(i, a) { $(a).click(function() { return go(o.circular ? o.visible + i : i) }) }); if (o.mouseWheel && c.mousewheel) c.mousewheel(function(e, d) { return d > 0 ? go(curr - o.scroll) : go(curr + o.scroll) }); if (o.auto) setInterval(function() { go(curr + o.scroll) }, o.auto + o.speed); function vis() { return f.slice(curr).slice(0, v) }; function go(a) { if (!b) { if (o.beforeStart) o.beforeStart.call(this, vis()); if (o.circular) { if (a <= o.start - v - 1) { ul.css(animCss, -((itemLength - (v * 2)) * g) + "px"); curr = a == o.start - v - 1 ? itemLength - (v * 2) - 1 : itemLength - (v * 2) - o.scroll } else if (a >= itemLength - v + 1) { ul.css(animCss, -((v) * g) + "px"); curr = a == itemLength - v + 1 ? v + 1 : v + o.scroll } else curr = a } else { if (a < 0 || a > itemLength - v) return; else curr = a } b = true; ul.animate(animCss == "left" ? { left: -(curr * g)} : { top: -(curr * g) }, o.speed, o.easing, function() { if (o.afterEnd) o.afterEnd.call(this, vis()); b = false }); if (!o.circular) { $(o.btnPrev + "," + o.btnNext).removeClass("disabled"); $((curr - o.scroll < 0 && o.btnPrev) || (curr + o.scroll > itemLength - v && o.btnNext) || []).addClass("disabled") } } return false } }) }; function css(a, b) { return parseInt($.css(a[0], b)) || 0 }; function width(a) { return a[0].offsetWidth + css(a, 'marginLeft') + css(a, 'marginRight') }; function height(a) { return a[0].offsetHeight + css(a, 'marginTop') + css(a, 'marginBottom') } })(jQuery);


// JScript source code



//document.write('<SCRIPT src="http://www.angel-sz.com/media/inc/qq.js" type="text/javascript"></SCRIPT>');
//document.write('<SCRIPT src="http://www.angel-sz.com/media/inc/qqonline2.html" type="text/javascript"></SCRIPT>');

//请修改以下参数
var LiveReceptionCode_ToRight = 1;
//说明：浮动图标的水平方向对齐方式，1为右对齐，0为左对齐；
var LiveReceptionCode_helpimgleft = 0;
//说明：浮动图标的水平方向的边距；
var LiveReceptionCode_ToBottom = 0;
//说明：浮动图标的垂直方向对齐方式，1为底部对齐，0为顶部对齐；
var LiveReceptionCode_helpimgtop = 30;
//说明：浮动图标的垂直方向的边距；
var LR_List_w = 160;  //列表框的宽度，需要和三张图片的宽度一致[像素]
var LR_List_left = 8;  //列表框中部里面文字距离左边的距离[像素]
var LR_List_lineheight = 25;  //列表框中部里面文字的行高[像素]
var LR_List_upimg = 'http://www.angel-sz.com/media/inc/up.gif'; //列表框顶部的图片网址
var LR_List_downimg = 'http://www.angel-sz.com/media/inc/down.gif'; //列表框底部的图片网址
var LR_List_bgimg = 'http://www.angel-sz.com/media/inc/middle.gif'; //列表框中部的平铺背景图片

//请修改下面的代码里的文本内容，如 "在线" "繁忙" "发送给" "的留言" 等
function outputOperatorlist(name, friendname, state) {
    if (state >= 3) {
        return '<tr><td height="' + LR_List_lineheight + '"></td><td>' + unescape(friendname.replace(/\+/g, '%20')) + ' [<a href="javascript:openZoosWindow_olist(\'chatwin\',\'&oname=' + name + '\')" target="_self"><font style="COLOR: red;">在线</font></a>]</td></tr>';
    }
    else if (state == 2) {
        var e = escape('发送给' + unescape(name.replace(/\+/g, '%20')) + '的留言');
        return '<tr><td height="' + LR_List_lineheight + '"></td><td>' + unescape(friendname.replace(/\+/g, '%20')) + ' [<a href="#"  onclick="return false;" target="_self"><font style="COLOR: purple;" onclick=openZoosWindow_olist(\'sendnote\',\'&e=' + name + '\')>繁忙</font></a>]</td></tr>';
    }
    else if (state == 1) {
        var e = escape('发送给' + unescape(name.replace(/\+/g, '%20')) + '的留言');
        return '<tr><td height="' + LR_List_lineheight + '"></td><td>' + unescape(friendname.replace(/\+/g, '%20')) + ' [<a href="#"  onclick="return false;" target="_self"><font style="COLOR: blue;" onclick=openZoosWindow_olist(\'sendnote\',\'&e=' + name + '\')>离开</font></a>]</td></tr>';
    }
    else if (state == 0) {
        var e = escape('发送给' + unescape(name.replace(/\+/g, '%20')) + '的留言');
        return '<tr><td height="' + LR_List_lineheight + '"></td><td>' + unescape(friendname.replace(/\+/g, '%20')) + ' [<a href="#"  onclick="return false;" target="_self"><font style="COLOR: gray;" onclick=openZoosWindow_olist(\'sendnote\',\'&e=' + name + '\')>留言</font></a>]</td></tr>';
    }
}

//以下不要修改
var LR_OperatorlistHtml ='';
if (typeof (OperatorArray) != 'undefined') {
	  LR_OperatorlistHtml +='<ul style="width:150px; margin-top:0px; margin-left:10 px;">';
    for (i = 0; i < OperatorArray.length; i++) {
        LR_OperatorlistHtml += outputOperatorlist(OperatorArray[i].name, OperatorArray[i].friendname, OperatorArray[i].state);
    }
    LR_OperatorlistHtml += '</ul>';
}


document.write('<script language="javascript" src="http://kft.zoosnet.net/JS/LsJS.aspx?siteid=KFT16592774&lng=cn"></script>');
var LR_Operatorlist_Div ="";
if(document.all || document.getElementById)
{
	LR_Operatorlist_Div = document.getElementById('LR_Operatorlist_Div') ;
}
else if(document.layers)
{
	LR_Operatorlist_Div =document.LR_Operatorlist_Div;
}
LR_Operatorlist_Div.innerHTML=LR_OperatorlistHtml;
