  <script type="text/javascript" src="/js/jquery/jquery-1.7.2.min.js?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/jquery/jquery.cookie.js?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/jquery/jquery-ui-1.8.20.custom.min.js?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/jquery/jquery.finder.js?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/hotkeys.js?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/events.js?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/app.js?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/init.js?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/i18n.js.php?<?=JS_LATEST_UPDATE?>"></script>
  <script type="text/javascript" src="/js/templates.js?<?=JS_LATEST_UPDATE?>"></script>

  <script>
    $(function() {
      hover_menu();
    });
  </script>

<?php
if (!empty($_SESSION['error_msg'])):
?>
  <div>
    <script>
      $(function() {
        $('#dialog:ui-dialog').dialog('destroy');
        $('#dialog-message').dialog({
          modal: true,
          buttons: {
            Ok: function() {
              $(this).dialog('close');
            }
          },
          create: function() {
            $(this)
            .closest('.ui-dialog')
            .find('.ui-button:first')
            .addClass('submit');
          }
        });
      });
    </script>
    <div id="dialog-message" title="">
      <p><?=htmlentities($_SESSION['error_msg'])?></p>
    </div>
  </div>
<?php
  unset($_SESSION['error_msg']);
endif;
?>