private function initDefaultIncludes()
 {
     // подключаем jQuery по умолчанию
     $this->addJSInclude(CSettingsManager::getSettingValue("jquery_path"));
     $this->addJSInclude(CSettingsManager::getSettingValue("jquery_migrate_path"));
     $this->addJSInclude("_core/jquery.cookie.js");
     $this->addJSInlineInclude("var web_root = '" . WEB_ROOT . "';");
     // ядреные модули
     $this->addJSInclude("_core/core.js");
     $this->setData("wap_mode", false);
     $this->setData("no_wap_link", CUtils::getNoWapLink());
     // подключение системы уведомлений
     $this->addJSInclude("_modules/_messages/sticky.full.js");
     $this->addCSSInclude("_modules/_messages/sticky.full.css");
     // выключение режима wap
     if (array_key_exists("nowap", $_GET)) {
         if (array_key_exists("wap_mode", $_COOKIE)) {
             if (!setcookie("wap_mode", "false", 1)) {
                 die("Ошибка работы с cookie!");
             }
             unset($_COOKIE["wap_mode"]);
         }
     }
     // включение режима wap
     if (array_key_exists("wap_mode", $_COOKIE)) {
         if ($_COOKIE["wap_mode"] == "true") {
             $this->setData("wap_mode", true);
         }
     }
     // фиксы для IE
     $this->addJSIEOnly(8, "_core/iefix8.js");
     /**
      * Пришло время помощника =)
      * Если у пользователя включена проверка ящика,
      * то подключаем скрипт проверки
      */
     if (!is_null(CSession::getCurrentUser())) {
         if (!is_null(CSession::getCurrentUser()->getPersonalSettings())) {
             $settings = CSession::getCurrentUser()->getPersonalSettings();
             if ($settings->isCheckMessages()) {
                 $this->addJSInclude("_modules/_messages/checker.js");
             }
         }
     }
     /**
      * AJAX для портала
      */
     $this->addJSInclude("_core/jquery.ajax.js");
     /**
      * Рабочие процессы - последовательности действий
      */
     $this->addJSInclude("_core/jquery.flow.js");
     /**
      * Bootstrap для красоты
      */
     $this->addJSInclude(CSettingsManager::getSettingValue("bootstrap_path") . "js/bootstrap.js");
     $this->addJSInclude("_core/datepicker/js/bootstrap-datepicker.js");
     $this->addJSInclude("_core/timepicker/js/bootstrap-timepicker.js");
     /**
      * Поиск по каталогам
      */
     $this->addJSInclude("_core/jquery.lookup.js");
     $this->addJSInclude("_core/jquery.bootbox.js");
     /**
      * Загрузка файлов
      */
     $this->addJSInclude("_core/jquery.form.js");
     $this->addJSInclude("_core/jquery.upload.js");
     $this->addJSInclude("_core/jquery.colorbox.js");
     $this->addCSSInclude("_core/jColorbox/colorbox.css");
     /**
      * Компоненты
      */
     $this->addJSInclude("_core/jquery.component.js");
     /**
      * Select 2
      */
     $this->addJSInclude('_core/select2/select2.js');
     $this->addCSSInclude('_core/select2/select2.css');
 }