
<script type="text/javascript" src="{%$rootdir%}js/float.js"></script>
<link href="{%$rootdir%}espcms_includes/im/im_public.css" rel="stylesheet" type="text/css" />
<link href="{%$rootdir%}espcms_includes/im/sky.css" rel="stylesheet" type="text/css" />

<div id="right-float-box" class="im_floatonline">
	<div class="float-box-content">
		<div class="toptitle">在线客服</div>
		<div class="addlist">
			<ul>
				{%forlist from=$array key=i%}
					{%if $array[i].call_type==1%}
						{%if $array[i].call_style==1 || $array[i].call_style==0 %}
							<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].call_code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].call_code%}:52" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
						{%elseif $array[i].call_style==2%}
							<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].call_code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].call_code%}:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
						{%elseif $array[i].call_style==3%}
							<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].call_code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].call_code%}:53" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
						{%/if%}
					{%elseif $array[i].call_type==2%}
						{%if $array[i].call_style==1 || $array[i].call_style==0 %}
						<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={%$array[i].call_code%}&site=cntaobao&s=1&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={%$array[i].call_code%}&site=cntaobao&s=1&charset=utf-8"/></a></li>
						{%elseif $array[i].call_style==2%}
						<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={%$array[i].call_code%}&site=cntaobao&s=2&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={%$array[i].call_code%}&site=cntaobao&s=2&charset=utf-8"/></a></li>
						{%/if%}
					{%elseif $array[i].call_type==3%}
						{%if $array[i].call_style==102%}
						<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].call_code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].call_code%}&s=102"></a></li>
						{%elseif $array[i].call_style==101%}
						<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].call_code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].call_code%}&s=101"></a></li>
						{%elseif $array[i].call_style==1 || $array[i].call_style==0 %}
						<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].call_code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].call_code%}&s=1"></a></li>
						{%elseif $array[i].call_style==2%}
						<li>{%$array[i].call_name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].call_code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].call_code%}&s=2"></a></li>
						{%/if%}
					{%elseif $array[i].call_type==4%}
						<li class="displaynone">{%$array[i].call_code%}</li>
					{%/if%}
				{%/forlist%}
			</ul>
		</div>
		<div class="serverbotton">
			<ul>
				<li><a class="button red" href="javascript:closeim();">关闭窗口</a></li>
				{%if $wxread.filename%}
				<li><img src="{%$wxread.filename|zoom(120,120,'',3)%}"</li>
				<li>体验微信请扫一扫</li>
				{%/if%}

			</ul>
		</div>
	</div>
</div>

<script type="text/javascript">
	var imcookies = cookie('ImisCloseType');
	if (imcookies){
		$('#right-float-box').removeClass().addClass('displaynone');
		$('#float-bottom').removeClass().addClass('displaynone');
	}
	$("#right-float-box").float({position:"rm",delay:500});
</script>