<div align="center" style="height: 20px;"> <a title="" onclick="$('#comm').slideToggle('slow');" class="readon"><span>Оставьте свой комментарий</span></a></div>
<div id="comm" style="display:none;">
  <style type="text/css">
.myWinSuccess {margin: 10px 0 0 0; height: 30px; width: 300px; color: green; text-align: center; }
.err {margin: 10px 0 0 0; height: 30px; width: 300px; color: #F00; text-align: center; }
#bbcodes { display:none; }
.selectors { height: 26px; width: auto; }
#commform { width: 462px; height: 250px; margin-left: 105px; }
.bb { float: left; height: 25px; width: 23px; margin:0; }
.bb1 { float: left; height: 25px; width: 5px; margin:0; }
#commbb { padding: 0px; height: 26px; width: 462px; }
#comm_mess { margin: 6px 8px 0 0; height: 140px; width: 100%; }
.textcomm { height: 140px; width: 454px; }
.commcode { padding: 4px; }
.commcode_text { background-color: #3C1B1B; font-size: 12px; height: 14px; width: 100px; text-align: center; }
.name_us { float: left; height: 22px; /*width: 120px;*/ margin-top: 0px; margin-right: 0px; margin-bottom: 4px; margin-left: 0px; padding: 2px; clear: both; }
.pass_name { float: left; height: 22px; /*width: 120px;*/ margin-top: 0px; margin-right: 0px; margin-bottom: 4px; margin-left: 0px; padding: 2px; clear: both; }
.secury {margin: 10px 0 0 4px; height: 30px; /*width: 260px;*/ float: left; }
.securityCode { background: url(/images/overlays/dark/box2-bg.png) 0px 0px; border: none;color: #DEE9ED; height: 22px; }
</style>
  <div id="commform" align="center">
    <div align="center">
      <div class="err">$ERROR$</div>
      <div id="comments-form">
        <?if($USER_LOGGED_IN$)?>
        <div id="commbb">
          <div id="bbcodes">$BBCODES$</div>
          <div class="bb"><img src="/bbcodes/b.gif" title="Жирный" onclick="simpletag('b')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/i.gif" title="Курсив" onclick="simpletag('i')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/u.gif" title="Подчеркнутый" onclick="simpletag('u')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/s.gif" title="Зачеркнутый" onclick="simpletag('s')" border="0" alt=""></div>
          <div class="bb1"><img src="/bbcodes/brkspace.gif" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/image.gif" title="Добавить Картинку" onclick="tag_image()" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/link.gif" title="Вставить ссылку" onclick="tag_url()" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/email.gif" title="Вставить email" onclick="tag_email()" border="0" alt=""></div>
          <div class="bb1"><img src="/bbcodes/brkspace.gif" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/code.gif" title="Код" onclick="simpletag('code')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/quote.gif" title="Цитата" onclick="simpletag('quote')" border="0" alt=""></div>
          <div class="bb1"><img src="/bbcodes/brkspace.gif" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/l.gif" title="По левому краю" onclick="simpletag('l')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/c.gif" title="По центру" onclick="simpletag('c')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/r.gif" title="По правому краю" onclick="simpletag('r')" border="0" alt=""></div>
          <div class="bb1"><img src="/bbcodes/brkspace.gif" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/hide.gif" title="hide" onclick="simpletag('hide')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/translit.gif" title="Транслит" onclick="simpletag('translit')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/close.gif" title="Close" onclick="closeall()" border="0" alt=""></div>
          <div class="bb1"><img src="/bbcodes/brkspace.gif" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/mp3.gif" title="Аудио" onclick="simpletag('audio')" border="0" alt=""></div>
          <div class="bb"><img src="/bbcodes/mp.gif" title="Video" onclick="simpletag('video')" border="0" alt=""></div>
          <div class="bb"><a href="javascript://" onclick="window.open('/index/17','options','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;"><img style="border: 0pt none ; margin: 0pt; padding: 0pt;" src="/bbcodes/ide.gif" title="все коды" alt=""></a></div>
          <div class="bb"><img src="/bbcodes/emo.gif" title="Cмайл" onclick="openLayerB('Sml',0,'/index/35-1-0','Полный список смайлов',250,300);return false;" border="0" alt=""></div>
        </div>
        <?else?>
        <div class="name_us">
          <input name="name" id="name" class="f_input" type="text" style="height: 22px; padding: 0 4px;" />
          <span style="display:none;">Login</span> </div>
        <div class="pass_name">
          <input name="mail" id="email" class="f_input" type="text" style="height: 22px; padding: 0 4px;" />
          <span style="display:none;">Email</span> </div>
        <?endif?>
        <div class="clear"></div>
        <div id="comm_mess">
          <div id="comments-form-comment">
            <textarea name="message" id="message" class="textcomm">$MESSAGE$</textarea>
          </div>
        </div>
        <div class="secury">$SECURITY_CODE$</div>
      </div>
    </div>
    <div class="readon" style="margin: 14px 4px 0 0; float: right; ">
      <input name="task_button" onclick="doAddComments();return false;" class="button" value="Опубликовать" type="submit" />
    </div>
  </div>
</div>