var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); if (typeof Fox == 'undefined') { Fox = {}; Fox.Strings = { add: function (object) { jQuery.extend(this, object); return this; } }; Fox.Options = { // Fox.Options.add('key', {...}); add: function (key, data) { var o = {}; o[key] = data; jQuery.extend(this, o); return this; }, // Return by copy: Fox.Options.get('key'); // Return by reference: Fox.Options['key']; get: function (key) { return jQuery.extend({}, this[key]); } }; } (function () { Fox.Strings.add( { JCANCEL: "Отмена", COM_FOXCONTACT_BROWSE_FILES: "Обзор файлов", COM_FOXCONTACT_FAILED: "Ошибка", COM_FOXCONTACT_SUCCESS: "Успешно", COM_FOXCONTACT_NO_RESULTS_MATCH: "Нет результатов", COM_FOXCONTACT_REMOVE_ALT: "Удалить", COM_FOXCONTACT_REMOVE_TITLE: "Удалить данный файл" } ); Date.monthNames = ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"]; Date.dayNames = ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"]; Date.monthNumbers = { "Январь": 0, "Февраль": 1, "Март": 2, "Апрель": 3, "Май": 4, "Июнь": 5, "Июль": 6, "Август": 7, "Сентябрь": 8, "Октябрь": 9, "Ноябрь": 10, "Декабрь": 11 }; // Calendar default options Fox.Options.add('calendar', { dayOfWeekStart: JSON.parse("1"), lang: 'dynamic', step: 60, i18n: { dynamic: { months: Date.monthNames, dayOfWeek: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"] } } }); Fox.Options.add('chosen', { disable_search_threshold: 10, allow_single_deselect: true, no_results_text: Fox.Strings['COM_FOXCONTACT_NO_RESULTS_MATCH'] }); })(); // Emulate "placeholder" feature on outdated browsers jQuery(document).ready(function ($) { // Create a new input object, then test if the placeholder attribute is an option inside that object. // It will be an option in browsers that support placeholder text, and absent in those that don’t. if (!('placeholder' in document.createElement('input'))) { // Avoid the query string ?_=random at the end of the url $.ajaxSetup({cache: true }); $.getScript('' + '/media/com_foxcontact/js/placeholder.min.js'); } }); /* Reset button | Reset input */ jQuery(document).ready(function ($) { if ($('.fox_form .reset-button').length) { // Avoid the query string ?_=random at the end of the url $.ajaxSetup({cache: true }); $.getScript('' + '/media/com_foxcontact/js/reset.min.js'); } }); /* Captcha begin */ function ReloadFCaptcha(id) { var image = document.getElementById(id); // Generates a unique id with an 8 digits fixed length var uniqueid = Math.floor(Math.random() * Math.pow(10, 8)); image.src = image.src.replace(/uniqueid=[0-9]{8}/, "uniqueid=" + uniqueid); } function BuildReloadButton(id) { document.getElementById(id).src = document.getElementById(id).src.replace("transparent.gif", "reload-16.png"); } /* Captcha end */ /* Enable the following function if you want to enable autofocus to the first input of the first form in the page */ /* jQuery(document).ready(function ($) { jQuery('.fox_form').find('input[type=text]').filter(':visible:first').focus(); }); */ } /* playback timings (ms): captures_list: 318.632 exclusion.robots: 0.093 exclusion.robots.policy: 0.082 cdx.remote: 0.067 esindex: 0.008 LoadShardBlock: 199.025 (3) PetaboxLoader3.datanode: 170.563 (5) load_resource: 771.883 (2) PetaboxLoader3.resolve: 647.474 (2) */