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

if (sizeof($qqs) > 0) {
?>
<div class="blockwrapper">
<?php foreach ($qqs as $qq) {
    if($qq->category == 1){
?>
	<a href="msnim:chat?contact=<?php echo $qq->account; ?>"><img src="<?php echo P_TPL?>/images/MSN.jpg" alt="MSN"><?php _e('Contact Me'); ?></a>
    <div class="space4"></div>
<?php } else if ($qq->category == 2) { ?>
	<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></a>
    <div class="space4"></div>
<?php } else if ($qq->category == 3) { ?>
	<a href="callto://<?php echo $qq->account; ?>" target="_blank"><img border="0" src="http://goodies.skype.com/graphics/skypeme_btn_small_green.gif" /></a>
	<div class="space4"></div>	
<?php } else { ?>
	<img src="http://wpa.qq.com/pa?p=4:<?php echo $qq->account; ?>:4" align=absMiddle border=0><a href="tencent://message/?uin=<?php echo $qq->account; ?>&amp;Menu=yes" target=blank><?php echo $qq->account; ?></a>
    <div class="space4"></div>
<?php } } } ?>
</div>