<style>
.photosmall img { max-width: 50px; height: auto; }
.photosmallt img { max-width: 35px; height: auto; }
</style>
<?if($LEVEL$)?>
<div style="padding-left: 35px;"><table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-bottom:9px;border-top: 1px solid #DAE1E8;">
<tr><td valign="top" style="width: 40px;padding-top:5px;">
<div class="photosmallt"><?if($USER_AVATAR_URL$)?><a target="_blank" href="$PROFILE_URL$"><img src="$USER_AVATAR_URL$"></a><?else?><a target="_blank" href="$PROFILE_URL$"><img src="/new_shab/images/miniphoto.png"></a><?endif?></div></td>
<td valign="top" style="text-align: left;padding-top:5px;">
<div><a href="$PROFILE_URL$"><b>$NAME$</b></a>&nbsp;$MESSAGE$</div>
<div style="color: #969695;padding-top:5px;padding-left:1px;font-size:10px;">$DATE$ в $TIME$<?if($MODER_PANEL$)?>&nbsp;|&nbsp;<a href="javascript://" onclick="ydel('$ID$')" style="text-decoration:none;">Удалить</a><?endif?></div>
</td></tr></table></div>
<?else?>
<div style="padding-top:10px;padding-left:2px;padding-right:2px;" onmouseover="$('#ulike$ID$').toggle();$('#udel$ID$').toggle();" onmouseout="$('#ulike$ID$').toggle();$('#udel$ID$').toggle();"> 
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-top:5px;padding-bottom:5px;border-top: 1px solid #DAE1E8;">
<tr>
<td valign="top" rowspan="2" width="55px;">
<div class="avasmall2" width="50px;"><div class="photosmall" width="50px;">
<?if($USER_AVATAR_URL$)?><a target="_blank" href="$PROFILE_URL$"><img src="$USER_AVATAR_URL$"></a><?else?><a target="_blank" href="$PROFILE_URL$"><img src="/new_shab/images/miniphoto.png"></a><?endif?>
</div></div>
</td>
<td valign="top" style="text-align: left;">
<a href="$PROFILE_URL$" target="_parent"><b>$NAME$</b></a> <span id="img_msg">$MESSAGE$</span>
</td>
<td valign="top" width="21px;" style="text-align: right;">
<style>
#delbtn1, #delbtn2 {opacity:0.5;}
#delbtn1:hover, #delbtn2:hover {opacity:1.0;}
</style>
<?if($MODER_PANEL$)?><span id="udel$ID$" style="display:none;">
<span id="delbtn1"><a href="javascript://" onclick="ydel('$ID$')"><img src="/images/statusx.gif" /></a></span>
</span><?endif?>
 </td> 
</tr>
<tr>
<style>
#ulike$ID$ {opacity:0.5;color:#2B587A;}
#ulike$ID$:hover {opacity:1.0;color:#2B587A;cursor:pointer;text-decoration:none;}
.uans {background:#f1f1f1;padding-left: 5px; padding-right: 12px; padding-top: 5px; padding-bottom: 5px;text-align:left;color:#777777;border-bottom: 1px solid #DAE1E8;border-top: 1px solid #DAE1E8;}
</style>
<td colspan="3">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr> 
<td valign="bottom" align="left">
<div style="color: #969695;padding-top:5px;height:16px;font-size:10px;text-decoration:none;">$DATE$ в $TIME$&nbsp;|&nbsp;<a href="javascript:;" onclick="$('#canswer$ID$').toggle();" style="text-decoration:none;">Комментировать</a></div>
</td>
<td valign="bottom" align="right">
<div style="font-size:10px;padding-top:5px;padding-right:1px;height:16px;color:#2B587A;">
<?if($GOOD_COMMENT_URL$)?><a href="$GOOD_COMMENT_URL$" style="display:none;" id="ulike$ID$">Мне нравится <img src="/images/like.gif" /><?if($COMMENT_RATING$=0)?><?else?> $COMMENT_RATING$<?endif?></a><?else?><img src="/images/like.gif" /><?if($COMMENT_RATING$=0)?><?else?> $COMMENT_RATING$<?endif?><?endif?>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table> 
</div>
<div id="canswer$ID$" style="display:none;">
<div style="padding-bottom:5px;padding-left: 55px;">
<div class="uans">
<div><textarea style="height:38px;width:100%;" id="tanswer$ID$" class="tanswer$ID$" placeholder="Комментировать..."></textarea></div>
<div style="padding-top:5px;padding-bottom:8px;"><div class="button_blue"><input type="button" value="Отправить" onclick="toanswer('$ID$');"/></div>&nbsp;&nbsp;<span id="stserver$ID$" style="font-size:10px;padding-top:5px;display:none;">Введите текст сообщения</span>
</div></div>
</div>
</div><?endif?>