<script type="text/javascript"> function dropmenu(id) {
      const menu = document.getElementById('menu_' + id).style;
      if (menu.display == 'none') { menu.display = 'block'; } else { menu.display = 'none'; } } </script>
<div class="main-friends">
   <div class="main-friends-top">
      <div class="main-friends-image">
         <img src="{%FAVATAR%}" alt="">
      </div>
      <div class="main-friends-author">
         {%NICK%}
      </div>
      <div class="main-friends-date">
         {%LASTVIZIT%}
      </div>
      <a href="{%URLF%}" onclick="dropmenu('1'); return false;" class="main-friends-link" title="Действия"><i>.</i><span style="text-decoration: underline;">.</span>.</a>
      <ul id="menu_1" style="display:none;">
         <div id="dropmenudiv" class="drop-friends-link">
            <ul class="ui-menu">
               <li><a href="{%URLF%}">На страницу друга</a></li>
               <li><a href="{%URL_PM%}/letter/{%FROM%}/{%ID%}">Отправить сообщение</a></li>
               <li>{%ADD_FRIEND%}</li>
            </ul>
         </div>
      </ul>
   </div>
</div>
