// Lang5_js_2 s -->


// 客服浮窗调用，请修改以下参数
var LiveReceptionCode_ToRight=1;
//说明：浮动图标的水平方向对齐方式，1为右对齐，0为左对齐；
var LiveReceptionCode_helpimgleft=2;
//说明：浮动图标的水平方向的边距；
var LiveReceptionCode_ToBottom=0;
//说明：浮动图标的垂直方向对齐方式，1为底部对齐，0为顶部对齐；
var LiveReceptionCode_helpimgtop=105;
//说明：浮动图标的垂直方向的边距；
var LR_List_w=151;  //列表框的宽度，需要和三张图片的宽度一致[像素]
var LR_List_left=10;  //列表框中部里面文字距离左边的距离[像素]
var LR_List_lineheight=20;  //列表框中部里面文字的行高[像素]
var LR_List_upimg='/images/zxkf/k1.gif';//列表框顶部的图片网址
var LR_List_downimg='/images/zxkf/k3.gif';//列表框底部的图片网址
var LR_List_bgimg='/images/zxkf/k2.gif';//列表框中部的平铺背景图片

//请修改下面的代码里的文本内容，如 "在线" "繁忙"  等
function outputServKindlist(name,id,state)
{
	if(state>=3)
	{
		return '<tr><td height="'+LR_List_lineheight+'"></td><td><img class="kfxf_li" src="/images/zxkf/P_ico05.gif" align="absmiddle">'+unescape(name.replace(/\+/g,'%20'))+' [<a class="r" href="javascript:openZoosWindow_olist(\'chatwin\',\'&skid='+id+'&sk='+name+'&e='+name+'\')" target="_self">在线</a>]</td></tr>';
	}
	else if(state==2)
	{
		return '<tr><td height="'+LR_List_lineheight+'"></td><td><img class="kfxf_li" src="/images/zxkf/P_ico05.gif" align="absmiddle">'+unescape(name.replace(/\+/g,'%20'))+' [<a class="g" href="#"  onclick="return false;" target="_self"><font onclick=openZoosWindow_olist(\'sendnote\',\'&e='+name+'\')>正忙</font></a>]</td></tr>';
	}
	else if(state==1)
	{
		return '<tr><td height="'+LR_List_lineheight+'"></td><td><img class="kfxf_li" src="/images/zxkf/P_ico05.gif" align="absmiddle">'+unescape(name.replace(/\+/g,'%20'))+' [<a class="g" href="#"  onclick="return false;" target="_self"><font onclick=openZoosWindow_olist(\'sendnote\',\'&e='+name+'\')>离开</font></a>]</td></tr>';
	}
	else if(state==0)
	{
		return '<tr><td height="'+LR_List_lineheight+'"></td><td><img class="kfxf_li" src="/images/zxkf/P_ico01.gif" align="absmiddle">'+unescape(name.replace(/\+/g,'%20'))+' [<a class="g" href="#"  onclick="return false;" target="_self"><font onclick=openZoosWindow_olist(\'sendnote\',\'&e='+name+'\')>留言</font></a>]</td></tr>';
	}
}

//请勿修改
var LiveReceptionCode_need_help_html='<table width="'+LR_List_w+'" border="0" cellpadding="0" cellspacing="0"><tr><td><img src="'+LR_List_upimg+'" width="'+LR_List_w+'" id="LiveReceptionCode_need_help" name="LiveReceptionCode_need_help"/></td></tr><tr><td background="'+LR_List_bgimg+'"><table width="140" border="0" cellspacing="0" cellpadding="0"><tr><td width="'+LR_List_left+'" height="0"></td><td></td></tr>';


//请开始修改 部门名称
var lr_key;
//如果部门"458 套餐咨询"存在，则输出其HTML
lr_key=escape("458 套餐咨询").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
//如果部门"568 套餐咨询"存在，则输出其HTML
lr_key=escape("568 套餐咨询").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
//如果部门"高端家装咨询"存在，则输出其HTML
lr_key=escape("高端家装咨询").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
//如果部门"精品材料部"存在，则输出其HTML
lr_key=escape("精品材料部").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
//如果部门"工程部"存在，则输出其HTML
lr_key=escape("工程部").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
//如果部门"总办"存在，则输出其HTML
lr_key=escape("总办").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
//如果部门"电子商务中心"存在，则输出其HTML
lr_key=escape("电子商务中心").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
//如果部门"售后服务中心"存在，则输出其HTML
lr_key=escape("售后服务中心").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
//如果部门"工装咨询"存在，则输出其HTML
lr_key=escape("→工装咨询").toUpperCase();
if(typeof(ServerKindlist[lr_key]) != 'undefined')
	LiveReceptionCode_need_help_html+=outputServKindlist(ServerKindlist[lr_key].name,ServerKindlist[lr_key].id,ServerKindlist[lr_key].state);
	

LiveReceptionCode_need_help_html+='</table></td></tr><tr><td><img src="'+LR_List_downimg+'"  width="'+LR_List_w+'" /></td></tr></table>';
//-->


// Lang5_js_2 e -->