<?php
if (!defined('IN_CONTEXT')) die('access violation error!');

if(($show_name) != 1){

if (sizeof($qqs) > 0) {
?>

<div class="qq_list_con">
<ul>
<?php foreach ($qqs as $qq) {
    if($qq->category == 1){
?>
	<li><a href="msnim:chat?contact=<?php echo $qq->account; ?>"><img src="<?php echo P_TPL_WEB; ?>/images/MSN.jpg" alt="MSN"><?php if($show_acct) echo $qq->account; ?></a></li>

<?php } else if ($qq->category == 2) { ?>
	<li><a href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid=<?php echo $qq->account; ?>&amp;site=cntaobao&amp;s=1&amp;charset=utf-8" target=_blank><img alt="" src="http://amos.im.alisoft.com/online.aw?v=2&amp;uid=<?php echo $qq->account; ?>&amp;site=cntaobao&amp;s=1&amp;charset=utf-8" border=0><?php if($show_acct) echo $qq->account; ?></a></li>

<?php } else if ($qq->category == 3) { ?>
	<li><a href="callto://<?php echo $qq->account; ?>" target="_blank"><img border="0" src="http://goodies.skype.com/graphics/skypeme_btn_small_green.gif" /></a></li>

<?php } else { ?>
	<li><a href="tencent://message/?uin=<?php echo $qq->account; ?>&amp;Menu=yes" target=blank><img src="http://wpa.qq.com/pa?p=4:<?php echo $qq->account; ?>:4" align=absMiddle border=0><?php if($show_acct) echo $qq->account; ?></a></li>

<?php } } ?>
</ul>
</div>
<div class="list_bot"></div>

<div class="blankbar"></div>
<?php } ?>

<script>
<?php if($show_acct){ ?>
$(".qq_list_con>a").width($(".qq_list_con").width()/2);
<?php }
else{?>
$(".qq_list_con>a").width($(".qq_list_con").width()/6);
<?php }?>
</script>
<?php }?>




<?php
if(($show_acct != 1) && ($show_name) == 1){

if (sizeof($qqs) > 0) {
?>

<div class="qq_list_con">
<ul>
<?php foreach ($qqs as $qq) {
    if($qq->category == 1){
?>
	<li><a href="msnim:chat?contact=<?php echo $qq->account; ?>"><img src="<?php echo P_TPL_WEB; ?>/images/MSN.jpg" alt="MSN"><?php if($show_name) echo $qq->qqname; ?></a></li>
    
<?php } else if ($qq->category == 2) { ?>
	<li><a href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid=<?php echo $qq->account; ?>&amp;site=cntaobao&amp;s=1&amp;charset=utf-8" target=_blank><img alt="" src="http://amos.im.alisoft.com/online.aw?v=2&amp;uid=<?php echo $qq->account; ?>&amp;site=cntaobao&amp;s=1&amp;charset=utf-8" border=0><?php if($show_name) echo $qq->qqname; ?></a></li>

<?php } else if ($qq->category == 3) { ?>
	<li><a href="callto://<?php echo $qq->account; ?>" target="_blank"><img border="0" src="http://goodies.skype.com/graphics/skypeme_btn_small_green.gif" /><?php if($show_name) echo $qq->qqname; ?></a></li>
  
<?php } else { ?>
	<li><a href="tencent://message/?uin=<?php echo $qq->account; ?>&amp;Menu=yes" target=blank><img src="http://wpa.qq.com/pa?p=4:<?php echo $qq->account; ?>:4" align=absMiddle border=0><?php if($show_name) echo $qq->qqname; ?></a></li>
   
<?php } } ?>
</ul>
	</div>
<div class="list_bot"></div>
<div class="blankbar"></div>
<?php } ?>

<script>
<?php if($show_name){ ?>
$(".qq_list_con>a").width($(".qq_list_con").width()/2);
<?php }
else{?>
$(".qq_list_con>a").width($(".qq_list_con").width()/6);
<?php }?>
</script>
<?php }?>




<?php
if(($show_acct == 1) && ($show_name) == 1){

if (sizeof($qqs) > 0) {
?>

<div class="qq_list_con">
<ul>
<?php foreach ($qqs as $qq) {
    if($qq->category == 1){
?>
	<li><a href="msnim:chat?contact=<?php echo $qq->account; ?>"><img src="<?php echo P_TPL_WEB; ?>/images/MSN.jpg" alt="MSN"><?php echo $qq->qqname.'('.$qq->account.')'; ?></a></li>

<?php } else if ($qq->category == 2) { ?>
	<li><a href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid=<?php echo $qq->account; ?>&amp;site=cntaobao&amp;s=1&amp;charset=utf-8" target=_blank><img alt="" src="http://amos.im.alisoft.com/online.aw?v=2&amp;uid=<?php echo $qq->account; ?>&amp;site=cntaobao&amp;s=1&amp;charset=utf-8" border=0><?php echo $qq->qqname.'('.$qq->account.')'; ?></a></li>

<?php } else if ($qq->category == 3) { ?>
	<li><a href="callto://<?php echo $qq->account; ?>" target="_blank"><img border="0" src="http://goodies.skype.com/graphics/skypeme_btn_small_green.gif" /><?php echo $qq->qqname.'('.$qq->account.')'; ?></a></li>

<?php } else { ?>
	<li><a href="tencent://message/?uin=<?php echo $qq->account; ?>&amp;Menu=yes" target=blank><img src="http://wpa.qq.com/pa?p=4:<?php echo $qq->account; ?>:4" align=absMiddle border=0><?php echo $qq->qqname.'('.$qq->account.')'; ?></a></li>

<?php } } ?>
</ul>
</div>
<div class="list_bot"></div>
<div class="blankbar"></div>
<?php } ?>

<?php }?>


