//************************************************************************************** //* /home3/yhekobro/public_html/cronos-expert.ru/js/libs/common/device.min.js //************************************************************************************** /*! device.js 0.1.61 */ (function(){var a,b,c,d,e,f,g,h,i,j;a=window.device,window.device={},c=window.document.documentElement,j=window.navigator.userAgent.toLowerCase(),device.ios=function(){return device.iphone()||device.ipod()||device.ipad()},device.iphone=function(){return d("iphone")},device.ipod=function(){return d("ipod")},device.ipad=function(){return d("ipad")},device.android=function(){return d("android")},device.androidPhone=function(){return device.android()&&d("mobile")},device.androidTablet=function(){return device.android()&&!d("mobile")},device.blackberry=function(){return d("blackberry")||d("bb10")||d("rim")},device.blackberryPhone=function(){return device.blackberry()&&!d("tablet")},device.blackberryTablet=function(){return device.blackberry()&&d("tablet")},device.windows=function(){return d("windows")},device.windowsPhone=function(){return device.windows()&&d("phone")},device.windowsTablet=function(){return device.windows()&&d("touch")&&!device.windowsPhone()},device.fxos=function(){return(d("(mobile;")||d("(tablet;"))&&d("; rv:")},device.fxosPhone=function(){return device.fxos()&&d("mobile")},device.fxosTablet=function(){return device.fxos()&&d("tablet")},device.meego=function(){return d("meego")},device.cordova=function(){return window.cordova&&"file:"===location.protocol},device.nodeWebkit=function(){return"object"==typeof window.process},device.mobile=function(){return device.androidPhone()||device.iphone()||device.ipod()||device.windowsPhone()||device.blackberryPhone()||device.fxosPhone()||device.meego()},device.tablet=function(){return device.ipad()||device.androidTablet()||device.blackberryTablet()||device.windowsTablet()||device.fxosTablet()},device.desktop=function(){return!device.tablet()&&!device.mobile()},device.portrait=function(){return window.innerHeight/window.innerWidth>1},device.landscape=function(){return window.innerHeight/window.innerWidth<1},device.noConflict=function(){return window.device=a,this},d=function(a){return-1!==j.indexOf(a)},f=function(a){var b;return b=new RegExp(a,"i"),c.className.match(b)},b=function(a){return f(a)?void 0:c.className+=" "+a},h=function(a){return f(a)?c.className=c.className.replace(a,""):void 0},device.ios()?device.ipad()?b("ios ipad tablet"):device.iphone()?b("ios iphone mobile"):device.ipod()&&b("ios ipod mobile"):b(device.android()?device.androidTablet()?"android tablet":"android mobile":device.blackberry()?device.blackberryTablet()?"blackberry tablet":"blackberry mobile":device.windows()?device.windowsTablet()?"windows tablet":device.windowsPhone()?"windows mobile":"desktop":device.fxos()?device.fxosTablet()?"fxos tablet":"fxos mobile":device.meego()?"meego mobile":device.nodeWebkit()?"node-webkit":"desktop"),device.cordova()&&b("cordova"),e=function(){return device.landscape()?(h("portrait"),b("landscape")):(h("landscape"),b("portrait"))},i="onorientationchange"in window,g=i?"orientationchange":"resize",window.addEventListener?window.addEventListener(g,e,!1):window.attachEvent?window.attachEvent(g,e):window[g]=e,e()}).call(this); //************************************************************************************** //* /home3/yhekobro/public_html/cronos-expert.ru/js/libs/common/jquery.imagecbox.js //************************************************************************************** // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- jQuery.fn.imagecbox_set = function (state) { return this.each(function () { id = "#" + $(this).attr("id"); $(id).prop("checked", state); if ($(id).is(":checked")) set_image($(id), $(this).data("checked_image")); else set_image($(id), $(this).data("unchecked_image")); }); // ----------------------------------------------------------------------------- function set_image(checkbox, image) { id = "#" + checkbox.attr("id") + "_img"; $(id).attr("src", image); } }; // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- jQuery.fn.imagecbox = function (options) { return this.each(function () { if ($(this).data("base_image") !== undefined) return; if ($(this).attr("id") === undefined) { do { id = Math.floor(Math.random() * 1024 * 1024); } while ($("#icb_id_" + id).length != 0); $(this).attr("id", "icb_id_" + id); } $(this).data("parent_event", options.track_parent); bi = options.image.replace(/\//g, '__').replace(/\./g, '_'); $(this).data("base_image", bi); if (!document.getElementById("__image_check_box_checked_image_" + bi)) { $("body").append(""); $("body").append(""); $("body").append(""); } p = options.image.lastIndexOf("."); iName = options.image.substr(0, p); iExt = options.image.substr(p, options.image.legth); ci = iName + "_checked" + iExt; uci = iName + "_unchecked" + iExt; oi = iName + "_over" + iExt; $(this).data("checked_image", ci); $(this).data("unchecked_image", uci); $(this).data("over_image", oi); cin = "#__image_check_box_checked_image_" + bi; ucin = "#__image_check_box_unchecked_image_" + bi; oin = "#__image_check_box_over_image_" + bi; $(this).data("checked_image_name", cin); $(this).data("unchecked_image_name", ucin); $(this).data("over_image_name", oin); $(cin).attr('src', ci); $(ucin).attr('src', uci); $(oin).attr('src', oi); init_image_checkbox($(this)); }); // ----------------------------------------------------------------------------- function init_image_checkbox(cb) { i_id = cb.attr("id") + "_img"; image_id = "#" + i_id; if (!document.getElementById(cb.attr("id") + "_img")) { cb.css("display", "none"); if (!cb.is(":checked")) cb.after(""); else cb.after(""); $(image_id).mousedown(_mousedown); $(image_id).mouseenter(_mouseenter); $(image_id).mouseleave(_mouseleave); if (cb.data("parent_event") && cb.parent() && cb.parent()[0].nodeName != 'BODY') { cb.parent().mousedown(_parentmousedown); cb.parent().mouseenter(_parentmouseenter); cb.parent().mouseleave(_parentmouseleave); } } else { if (cb.is(":checked")) $(image_id).attr("src", cb.data("checked_image")); else $(image_id).attr("src", cb.data("unchecked_image")); } }; // ----------------------------------------------------------------------------- function _mousedown(event) { id = "#" + $(this).attr("id"); id = id.substring(0, id.length - 4); over_image_name = $(id).data("over_image_name"); if ($(id).is(":checked")) { if ($(over_image_name).attr("height") && $(over_image_name).attr("width")) $(this).attr("src", $(id).data("over_image")); else $(this).attr("src", $(id).data("unchecked_image")); } else $(this).attr("src", $(id).data("checked_image")); if ($(id).attr('onclick')) $(id).click(); else $(id).prop("checked", !$(id).prop("checked")); event.stopPropagation(); }; function _parentmousedown(event) { $(this).children("input[type=checkbox]").each(function () { over_image_name = $(this).data("over_image_name"); id = "#" + $(this).attr("id"); image_id = id + "_img"; if ($(id).is(":checked")) { if ($(over_image_name).attr("height") && $(over_image_name).attr("width")) $(image_id).attr("src", $(this).data("over_image")); else $(image_id).attr("src", $(this).data("unchecked_image")); } else $(image_id).attr("src", $(this).data("checked_image")); if ($(id).attr('onclick')) $(id).click(); else $(id).prop("checked", !$(id).prop("checked")); }); event.stopPropagation(); }; // ----------------------------------------------------------------------------- function _mouseenter() { id = "#" + $(this).attr("id"); id = id.substring(0, id.length - 4); over_image_name = $(id).data("over_image_name"); if ($(over_image_name).attr("height") && $(over_image_name).attr("width")) { if (!$(id).is(":checked")) $(this).attr("src", $(id).data("over_image")); } }; function _parentmouseenter() { $(this).children("input[type=checkbox]").each(function () { over_image_name = $(this).data("over_image_name"); if ($(over_image_name).attr("height") && $(over_image_name).attr("width")) { id = "#" + $(this).attr("id"); if (!$(id).is(":checked")) $(id + "_img").attr("src", $(this).data("over_image")); } }); }; // ----------------------------------------------------------------------------- function _mouseleave() { id = "#" + $(this).attr("id"); id = id.substring(0, id.length - 4); over_image_name = $(id).data("over_image_name"); if ($(over_image_name).attr("height") && $(over_image_name).attr("width")) { if (!$(id).is(":checked")) $(this).attr("src", $(id).data("unchecked_image")); } }; function _parentmouseleave() { $(this).children("input[type=checkbox]").each(function () { over_image_name = $(this).data("over_image_name"); if ($(over_image_name).attr("height") && $(over_image_name).attr("width")) { id = "#" + $(this).attr("id"); if (!$(id).is(":checked")) $(id + "_img").attr("src", $(this).data("unchecked_image")); } }); }; // ----------------------------------------------------------------------------- }; //************************************************************************************** //* /home3/yhekobro/public_html/cronos-expert.ru/js/libs/common/main.js //************************************************************************************** /* * The dialog class */ var dialog = { ajaxManagerUrl: '/data_manager.php', frames: new Array(), closeHandlers: new Array(), waitHtml: '
', scrollWidth: 0, heightMax: $(window).height() * 5 / 6 }; /* * Open the dialog contains waiter icon. */ dialog.openWithWaiter = function () { this.open(this.waitHtml, 200); }; /* * Disable vertical scroller before show first dialog */ dialog.hideScroller = function () { if (this.frames.length) return; body = $('body'); w0 = $(window).innerWidth(); body.css('overflow-y', 'hidden'); w1 = $(window).innerWidth(); marginLeft = parseInt(body.css('margin-left'), 10); this.scrollWidth = Math.ceil((w1 - w0) / 2); marginLeft -= this.scrollWidth; body.css('margin-left', marginLeft + 'px'); try { dialog.offsetDesignElements(-this.scrollWidth); } catch (err) { } }; /* * Disable vertical scroller before show first dialog */ dialog.showScroller = function () { if (this.frames.length) return; body = $('body'); marginLeft = parseInt(body.css('margin-left'), 10); marginLeft += this.scrollWidth; body.css({'margin-left': marginLeft + 'px', 'overflow-y': 'scroll'}); try { dialog.offsetDesignElements(this.scrollWidth); } catch (err) { } }; /* * Open the dialog contains HTML code. * * html - The HTML code inserting into dialog container. * width - The width of opened dialog in pixels. */ dialog.open = function (html, width, closeHandler) { dialog.hideScroller(); dialogId = get_unique_id(); this.frames.push(dialogId); if (typeof closeHandler !== 'undefined') { this.closeHandlers.push(closeHandler); } else { this.closeHandlers.push(null); } w = $(window).width(); this.heightMax = $(window).height() * 5 / 6; h = this.heightMax; hd = $(document).height(); body = $("body"); // add white layer body.append('
'); zIndex = core.getMaxZIndex() + 1; dialogWhiteBox = $('#dialog_white_box_' + dialogId); dialogWhiteBox.css('z-index', zIndex); dialogWhiteBox.animate({opacity: '0.7'}, 500); // add dialog container body.append('
'); dialogHtml = "
" + html + "
"; dialogElement = $('#' + dialogId); zIndex++; dialogElement.html(dialogHtml); dialogElement.append("
"); dialogElement.css('width', width + 'px'); dialogElement.css('z-index', zIndex); dialogElement.screenCenter().fadeIn(); }; /* * Generate the unique ID for created dialog. */ dialog.getUniqueId = function () { do { randomIntId = Math.floor(Math.random() * Math.random() * 18954785965458745895); id = 'uid_' + randomIntId.toString(36).substr(2, 8); l = $('#' + id).length; } while (l != 0); return id; }; /* * Change the active dialog contents. * * html - The new HTML code for dialog. * width - The new width of dialog in pixels (if 'null' then width will not changing). */ dialog.change = function (html, width) { if (!this.frames.length) return; dialogId = this.frames[this.frames.length - 1]; $('#dialog_container_' + dialogId).html(html); if (width != null) $('#' + dialogId).css({width: width + 'px'}); this.center(); }; /* * Close the topmost dialog. */ dialog.close = function () { dialogId = this.frames[this.frames.length - 1]; // if define close handler execute it closeHandler = this.closeHandlers[this.closeHandlers.length - 1]; if (closeHandler !== null) { closeHandler(); } this.frames.pop(); this.closeHandlers.pop(); $('#dialog_white_box_' + dialogId).fadeOut(function () { $('#dialog_white_box_' + dialogId).remove(); }); $('#' + dialogId).fadeOut(function () { $('#' + dialogId).html('').remove(); }); this.showScroller(); }; /* * Return ID of frame element of active dialog. */ dialog.getFrameId = function () { return this.frames[this.frames.length - 1]; }; /* * Return ID of inner frame element of active dialog. */ dialog.getInnerId = function () { return "dialog_container_" + this.frames[this.frames.length - 1]; }; /* * Replace active dialog to center of screen. */ dialog.center = function () { dialogId = this.getFrameId(); $('#' + dialogId).screenCenter(); }; // ----------------------------------------------------------------------------------------------- dialog.offsetDesignElements = function (offsetX) { x = parseInt($("#header_static_container").css('left'), 10); x += offsetX; $("#header_static_container").css('left', x + 'px'); }; // ----------------------------------------------------------------------------------------------- // Header // ----------------------------------------------------------------------------------------------- var header = { ajaxManagerUrl: '/data_manager.php' }; header.cityChange = function () { currentCityId=$("#city_id").val(); cityId=$("#city_selector").val(); if (cityId!='' && currentCityId==cityId) { return; } $.post(header.ajaxManagerUrl, { section: "changeCity", city_id: cityId }, header.cityChangeComplete); }; header.cityChangeComplete=function() { window.location.reload(); }; //************************************************************************************** //* /home3/yhekobro/public_html/cronos-expert.ru/js/libs/common/core.js //************************************************************************************** // ***************************************************************************** // ****** // ****** Common procedures // ****** // ***************************************************************************** // Divs for waiting icon document.write('
'); document.write('
'); document.write(''); document.write(''); var getResult, execQueryFinish; var loading_icon = "loading_32.gif"; var loading_icon_24 = "loading_24.gif"; var _info_frames = new Array(); // ----------------------------------------------------------------------------- jQuery.fn.screenCenter = function () { w = $(window); this.css("position", "absolute"); this.css("top", (w.height() - this.height()) / 2 + w.scrollTop() + "px"); this.css("left", (w.width() - this.width()) / 2 + w.scrollLeft() + "px"); return this; } // ----------------------------------------------------------------------------- jQuery.fn.elementCenter = function (id) { e = $('#' + id); this.css("position", "absolute"); this.css("top", (e.innerHeight() - this.height()) / 2 + e.offset().top + "px"); this.css("left", (e.innerWidth() - this.width()) / 2 + e.offset().left + "px"); return this; } // ----------------------------------------------------------------------------- function mask_screen(func) { mask_width = $(window).width(); mask_height = $(document).height(); $('.grey_box').css({ top: '0px', left: '0px', width: mask_width + 'px', height: mask_height + 'px', opacity: '0.5' }).fadeIn(); $(".wait_slider").screenCenter().fadeTo('slow', '1', func); } // ----------------------------------------------------------------------------- function mask_element(id, func) { qid = '#' + id; if ($(qid).length == 0 || $('body').css('display') == 'none') func(); else { mask_width = $(qid).innerWidth(); mask_height = $(qid).innerHeight(); mask_top = $(qid).offset().top + 1; mask_left = $(qid).offset().left + 1; mask_border = $(qid).css('border'); mask_border_radius = $(qid).css('borderRadius'); $('.grey_box').css({ top: mask_top + 'px', left: mask_left + 'px', width: mask_width + 'px', height: mask_height + 'px', opacity: '0.6', border: mask_border, borderRadius: mask_border_radius }).show(); $('.wait_slider').elementCenter(id).fadeTo(300, '1', func); } } // ----------------------------------------------------------------------------- function mask_element_noicon(id, func) { mask_width = $('#' + id).innerWidth(); mask_height = $('#' + id).innerHeight(); mask_top = $('#' + id).offset().top + 1; mask_left = $('#' + id).offset().left + 1; mask_border = $('#' + id).css('border'); $('.grey_box').css({ top: mask_top + 'px', left: mask_left + 'px', width: mask_width + 'px', height: mask_height + 'px', opacity: '0.5', border: mask_border }).show(); func(); } // ----------------------------------------------------------------------------- function mask_screen_noicon(func) { mask_width = $(window).width(); mask_height = $(document).height(); $('.grey_box').offset({top: 0, left: 0}).css({ top: '0px', left: '0px', width: mask_width + 'px', height: mask_height + 'px', opacity: '0.5' }).fadeIn(300); func(); } // ----------------------------------------------------------------------------- function clear_mask() { $('.wait_slider').fadeOut(); $('.grey_box').fadeOut();//.css({width: '0px', height: '0px'}); } // ----------------------------------------------------------------------------- function execQueryCallback(data) { getResult = data; } // ----------------------------------------------------------------------------- function execQuery(url, params) { $.ajaxSetup({async: false}); $.post(url, params, execQueryCallback, 'text'); $.ajaxSetup({async: true}); return getResult; } // ----------------------------------------------------------------------------- String.prototype.trim = function () { return this.replace(/^\s*|\s*$/, ''); } // ----------------------------------------------------------------------------- function get_unique_id() { do { n = Math.floor(Math.random() * Math.random() * 18954785965458745895); id = 'uid_' + Math.floor(Math.random() * Math.random() * 18954785965458745895).toString(36).substr(2, 8); l = $('#' + id).length; } while (l != 0) return id; } // ----------------------------------------------------------------------------- function info_frame_show(title, html, info_width) { __info_show_id = get_unique_id(); _info_frames.push(__info_show_id); w = $(window).width(); h = $(window).height(); hd = $(document).height(); $("body").append('
'); $('#white_box_' + __info_show_id).css({width: w + 'px', height: hd + 'px', opacity: '0.7'}).fadeIn(); if (info_width == null) { info_width = w * 2 / 3; if (info_width > 600) info_width = 600; } if (title != '') info_html = "

" + title + "
 

"; else info_html = ''; h = h * 3 / 4; $("body").append('
'); info_html = info_html + "
" + html + "
"; $('#' + __info_show_id).html(info_html); $('#' + __info_show_id).css('width', info_width + 'px'); $('#' + __info_show_id).screenCenter().fadeIn(); } // ----------------------------------------------------------------------------- function info_frame_change(title, html, width) { __info_change_id = _info_frames[_info_frames.length - 1]; $('#info_window_container_' + __info_change_id).html(html); if (width != null) $('#' + __info_change_id).css('width', width + 'px'); if (title != '') $("#info_window_header_" + __info_change_id).html(title + "
 
"); $('#' + __info_change_id).screenCenter(); } // ----------------------------------------------------------------------------- function info_frame_close() { __info_close_id = _info_frames[_info_frames.length - 1]; _info_frames.pop(); $('#white_box_' + __info_close_id).fadeOut(function () { $('#white_box_' + __info_close_id).remove(); }); $('#' + __info_close_id).fadeOut(function () { $('#' + __info_close_id).html('').remove(); }); } // ----------------------------------------------------------------------------- function info_frame_id() { return _info_frames[_info_frames.length - 1]; } // ----------------------------------------------------------------------------- function info_frame_inner_id() { return "info_window_container_" + _info_frames[_info_frames.length - 1]; } // ----------------------------------------------------------------------------- function info_frame_center() { __info_center_id = _info_frames[_info_frames.length - 1]; $('#' + __info_center_id).screenCenter(); } // ----------------------------------------------------------------------------- function confirm_box(title, html, func, args) { $("#_show_dialog:ui-dialog").dialog("close"); $("#_show_dialog:ui-dialog").dialog("destroy"); $("#_show_dialog").attr("title", title); $("#_show_dialog").html(html); $("#_show_dialog").dialog({ modal: true, draggable: true, resizable: false, zIndex: 999999, buttons: { "Да": function () { $(this).dialog("close"); func(args); }, "Нет": function () { $(this).dialog("close"); } } }); } // ----------------------------------------------------------------------------- function _show_warning(title, text) { $("#_show_dialog:ui-dialog").dialog("close"); $("#_show_dialog:ui-dialog").dialog("destroy"); $("#_show_dialog").attr("title", title); html = "\ \
" + text + "
\
\ "; $("#_show_dialog").html(html); $("#_show_dialog").dialog({ modal: true, draggable: true, resizable: false, width: 400, dialogClass: "_info_dialogs", buttons: { "Ok": function () { $(this).dialog("close"); } } }); } // ----------------------------------------------------------------------------- function _show_info(title, text) { $("#_show_dialog:ui-dialog").dialog("close"); $("#_show_dialog:ui-dialog").dialog("destroy"); $("#_show_dialog").attr("title", title); html = "\
" + text + "
\
\ "; $("#_show_dialog").html(html); $("#_show_dialog").dialog({ modal: true, draggable: true, resizable: false, width: 400, dialogClass: "_info_dialogs", buttons: { "Ok": function () { $(this).dialog("close"); } } }); } // ----------------------------------------------------------------------------- function input_check_number(event) { event = event || window.event; target = event.target || event.srcElement; if (window.event) key = window.event.keyCode; //IE else key = event.which; //firefox if (key < 32) return true; if (key >= 48 && key <= 57) return true; if ((key == 44 || key == 46) && $(target).val().indexOf(String.fromCharCode(key)) == -1) return true; // запятая и точка return false; } // ----------------------------------------------------------------------------- function num_to_text(num) { var i = 0, type = ['Bytes', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb']; while ((num / 1000 | 0) && i < type.length - 1) { num /= 1024; i++; } return num.toFixed(2) + ' ' + type[i]; } // ----------------------------------------------------------------------------- var md5unicode = new function () { var l = 'length', h = [ '0123456789abcdef', 0x0F, 0x80, 0xFFFF, 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476 ], x = [ [0, 1, [7, 12, 17, 22]], [1, 5, [5, 9, 14, 20]], [5, 3, [4, 11, 16, 23]], [0, 7, [6, 10, 15, 21]] ], A = function (x, y, z) { return (((x >> 16) + (y >> 16) + ((z = (x & h[3]) + (y & h[3])) >> 16)) << 16) | (z & h[3]) }, B = function (s) { var n = ((s[l] + 8) >> 6) + 1, b = new Array(1 + n * 16).join('0').split(''); for (var i = 0; i < s[l]; i++)b[i >> 2] |= s.charCodeAt(i) << ((i % 4) * 8); return (b[i >> 2] |= h[2] << ((i % 4) * 8), b[n * 16 - 2] = s[l] * 8, b) }, R = function (n, c) { return (n << c) | (n >>> (32 - c)) }, C = function (q, a, b, x, s, t) { return A(R(A(A(a, q), A(x, t)), s), b) }, F = function (a, b, c, d, x, s, t) { return C((b & c) | ((~b) & d), a, b, x, s, t) }, G = function (a, b, c, d, x, s, t) { return C((b & d) | (c & (~d)), a, b, x, s, t) }, H = function (a, b, c, d, x, s, t) { return C(b ^ c ^ d, a, b, x, s, t) }, I = function (a, b, c, d, x, s, t) { return C(c ^ (b | (~d)), a, b, x, s, t) }, _ = [F, G, H, I], S = (function () { with (Math)for (var i = 0, a = [], x = pow(2, 32); i < 64; a[i] = floor(abs(sin(++i)) * x)); return a })(), X = function (n) { for (var j = 0, s = ''; j < 4; j++) s += h[0].charAt((n >> (j * 8 + 4)) & h[1]) + h[0].charAt((n >> (j * 8)) & h[1]); return s }; return function (s) { var $ = B('' + s), a = [0, 1, 2, 3], b = [0, 3, 2, 1], v = [h[4], h[5], h[6], h[7]]; for (var i, j, k, N = 0, J = 0, o = [].concat(v); N < $[l]; N += 16, o = [].concat(v), J = 0) { for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) for (k = 0; k < 4; k++, a.unshift(a.pop())) v[b[k]] = _[i]( v[a[0]], v[a[1]], v[a[2]], v[a[3]], $[N + (((j * 4 + k) * x[i][1] + x[i][0]) % 16)], x[i][2][k], S[J++] ); for (i = 0; i < 4; i++) v[i] = A(v[i], o[i]); } ; return X(v[0]) + X(v[1]) + X(v[2]) + X(v[3]); } }; // ----------------------------------------------------------------------------- var trans = []; for (var i = 0x410; i <= 0x44F; i++) trans[i] = i - 0x350; // А-Яа-я trans[0x401] = 0xA8; // Ё trans[0x451] = 0xB8; // ё function md5(str) { var ret = []; for (var i = 0; i < str.length; i++) { var n = str.charCodeAt(i); if (typeof trans[n] != 'undefined') n = trans[n]; if (n <= 0xFF) ret.push(n); } return md5unicode(String.fromCharCode.apply(null, ret)); } // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // image loader procedure // ----------------------------------------------------------------------------- var _swfu, _uploaded_files = new Array(); // ----------------------------------------------------------------------------- function _load_image(func, file_mask, uniqname) { delete _swfu; html = "\
\
\
\ "; info_frame_show('Загрузка файла', html, 302); _swfu = new SWFUpload( { upload_url: "/uploader/upload.php", flash_url: "/uploader/swfupload.swf", file_size_limit: "10 MB", file_types: file_mask, file_types_description: "Files", file_upload_limit: 1, button_placeholder_id: "_loader_button_holder", button_image_url: "/images/upload_button.png", button_width: 148, button_height: 27, button_text: "Выберите файл", button_text_style: ".uploadButtonText { color: #666666; font-size: 11px; font-weight: bold; font-family: Sans-Serif;}", button_text_left_padding: 30, button_text_top_padding: 4, button_action: SWFUpload.BUTTON_ACTION.SELECT_FILES, button_disabled: false, button_cursor: SWFUpload.CURSOR.HAND, button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT, // swfupload_loaded_handler : swfupload_loaded_function, // file_dialog_start_handler : file_dialog_start_function, file_queued_handler: _uploader_fileQueued, file_queue_error_handler: _uploader_fileQueueError, // file_dialog_complete_handler : fileDialogComplete, upload_start_handler: _uploader_uploadStart, upload_progress_handler: _uploader_uploadProgress, upload_error_handler: _uploader_uploadError, // upload_success_handler : upload_success_function, upload_complete_handler: _uploader_uploadComplete, // debug_handler : debug_function, // debug: true, custom_settings: { complete_func: func, uname: '', } } ); if (uniqname) { rnd = Math.random() * 1234567890 + (new Date).getTime(); rnd = md5(rnd.toString()); _swfu.customSettings.uname = rnd; } } // ----------------------------------------------------------------------------- function _uploader_fileQueued(file) { $("#_loader_progress_block").html("\
\ \ "); uname = _swfu.customSettings.uname; if (uname == '') { _swfu.customSettings.uname = file.name; _swfu.addFileParam(file.id, "upload_file_real_name", file.name); } else { pos = file.name.lastIndexOf('.'); if (pos != -1) { ext = file.name.substring(pos); uname = uname + ext; _swfu.customSettings.uname = uname; } _swfu.addFileParam(file.id, "upload_file_real_name", uname); } _swfu.startUpload(); } // ----------------------------------------------------------------------------- function debug_function(message) { alert(message); } // ----------------------------------------------------------------------------- function _uploader_fileQueueError() { } function _uploader_uploadStart() { } // ----------------------------------------------------------------------------- function _uploader_uploadProgress(file, bytes, total) { w100 = 300; w = parseInt(w100 * bytes / total); if (bytes == total) w = w100; $("#_loader_progress_bar").css({"width": w + "px"}); $("#_loader_progress_text").html(num_to_text(bytes) + " из " + num_to_text(total)); } // ----------------------------------------------------------------------------- function _uploader_uploadError(file, error, message) { alert(message); } // ----------------------------------------------------------------------------- function _uploader_uploadComplete(file) { complete_function = _swfu.customSettings.complete_func; $("#_loader_progress_block").after("

Идет обработка загруженного файла ...

"); complete_function(_swfu.customSettings.uname); _swfu.destroy(); } // ----------------------------------------------------------------------------- var core = {}; core.setCookie = function (cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + "; " + expires; }; core.getCookie = function (cname) { var name = cname + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1); if (c.indexOf(name) != -1) return c.substring(name.length, c.length); } return ""; }; core.isEmail = function (email) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; return regex.test(email); }; core.getMaxZIndex = function () { var highest = -999; $("*").each(function () { var current = parseInt($(this).css("z-index"), 10); // if (current == 1999999) current = 0; id = $(this).attr('id'); if (id == 'colorbox' || id == 'cboxOverlay' || id == 'cboxWrapper') current = 0; if (current && highest < current) highest = current; }); return highest; }; //************************************************************************************** //* /home3/yhekobro/public_html/cronos-expert.ru/js/libs/common/jquery.cycle2.min.js //************************************************************************************** /*! * jQuery Cycle2; version: 2.1.3 build: 20140314 * http://jquery.malsup.com/cycle2/ * Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL */ (function(e){"use strict";function t(e){return(e||"").toLowerCase()}var i="2.1.2";e.fn.cycle=function(i){var n;return 0!==this.length||e.isReady?this.each(function(){var n,s,o,c,l=e(this),r=e.fn.cycle.log;if(!l.data("cycle.opts")){(l.data("cycle-log")===!1||i&&i.log===!1||s&&s.log===!1)&&(r=e.noop),r("--c2 init--"),n=l.data();for(var a in n)n.hasOwnProperty(a)&&/^cycle[A-Z]+/.test(a)&&(c=n[a],o=a.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),r(o+":",c,"("+typeof c+")"),n[o]=c);s=e.extend({},e.fn.cycle.defaults,n,i||{}),s.timeoutId=0,s.paused=s.paused||!1,s.container=l,s._maxZ=s.maxZ,s.API=e.extend({_container:l},e.fn.cycle.API),s.API.log=r,s.API.trigger=function(e,t){return s.container.trigger(e,t),s.API},l.data("cycle.opts",s),l.data("cycle.API",s.API),s.API.trigger("cycle-bootstrap",[s,s.API]),s.API.addInitialSlides(),s.API.preInitSlideshow(),s.slides.length&&s.API.initSlideshow()}}):(n={s:this.selector,c:this.context},e.fn.cycle.log("requeuing slideshow (dom not ready)"),e(function(){e(n.s,n.c).cycle(i)}),this)},e.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0,t.slides=e(),i=i.jquery?i:t.container.find(i),t.random&&i.sort(function(){return Math.random()-.5}),t.API.add(i)},preInitSlideshow:function(){var t=this.opts();t.API.trigger("cycle-pre-initialize",[t]);var i=e.fn.cycle.transitions[t.fx];i&&e.isFunction(i.preInit)&&i.preInit(t),t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts();t.API.trigger("cycle-post-initialize",[t]);var i=e.fn.cycle.transitions[t.fx];i&&e.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var t,i=this.opts(),n=i.container;i.API.calcFirstSlide(),"static"==i.container.css("position")&&i.container.css("position","relative"),e(i.slides[i.currSlide]).css({opacity:1,display:"block",visibility:"visible"}),i.API.stackSlides(i.slides[i.currSlide],i.slides[i.nextSlide],!i.reverse),i.pauseOnHover&&(i.pauseOnHover!==!0&&(n=e(i.pauseOnHover)),n.hover(function(){i.API.pause(!0)},function(){i.API.resume(!0)})),i.timeout&&(t=i.API.getSlideOpts(i.currSlide),i.API.queueTransition(t,t.timeout+i.delay)),i._initialized=!0,i.API.updateView(!0),i.API.trigger("cycle-initialized",[i]),i.API.postInitSlideshow()},pause:function(t){var i=this.opts(),n=i.API.getSlideOpts(),s=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0,s||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),n.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=e.now()-i._lastQueue,(0>i._remainingTimeout||isNaN(i._remainingTimeout))&&(i._remainingTimeout=void 0)))},resume:function(e){var t=this.opts(),i=!t.hoverPaused&&!t.paused;e?t.hoverPaused=!1:t.paused=!1,i||(t.container.removeClass("cycle-paused"),0===t.slides.filter(":animated").length&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var n,s=this.opts(),o=s.slideCount,c=!1;"string"==e.type(t)&&(t=e.trim(t)),e(t).each(function(){var t,n=e(this);i?s.container.prepend(n):s.container.append(n),s.slideCount++,t=s.API.buildSlideOpts(n),s.slides=i?e(n).add(s.slides):s.slides.add(n),s.API.initSlide(t,n,--s._maxZ),n.data("cycle.opts",t),s.API.trigger("cycle-slide-added",[s,t,n])}),s.API.updateView(!0),c=s._preInitialized&&2>o&&s.slideCount>=1,c&&(s._initialized?s.timeout&&(n=s.slides.length,s.nextSlide=s.reverse?n-1:1,s.timeoutId||s.API.queueTransition(s)):s.API.initSlideshow())},calcFirstSlide:function(){var e,t=this.opts();e=parseInt(t.startingSlide||0,10),(e>=t.slides.length||0>e)&&(e=0),t.currSlide=e,t.reverse?(t.nextSlide=e-1,0>t.nextSlide&&(t.nextSlide=t.slides.length-1)):(t.nextSlide=e+1,t.nextSlide==t.slides.length&&(t.nextSlide=0))},calcNextSlide:function(){var e,t=this.opts();t.reverse?(e=0>t.nextSlide-1,t.nextSlide=e?t.slideCount-1:t.nextSlide-1,t.currSlide=e?0:t.nextSlide+1):(e=t.nextSlide+1==t.slides.length,t.nextSlide=e?0:t.nextSlide+1,t.currSlide=e?t.slides.length-1:t.nextSlide-1)},calcTx:function(t,i){var n,s=t;return i&&s.manualFx&&(n=e.fn.cycle.transitions[s.manualFx]),n||(n=e.fn.cycle.transitions[s.fx]),n||(n=e.fn.cycle.transitions.fade,s.API.log('Transition "'+s.fx+'" not found. Using fade.')),n},prepareTx:function(e,t){var i,n,s,o,c,l=this.opts();return 2>l.slideCount?(l.timeoutId=0,void 0):(!e||l.busy&&!l.manualTrump||(l.API.stopTransition(),l.busy=!1,clearTimeout(l.timeoutId),l.timeoutId=0),l.busy||(0!==l.timeoutId||e)&&(n=l.slides[l.currSlide],s=l.slides[l.nextSlide],o=l.API.getSlideOpts(l.nextSlide),c=l.API.calcTx(o,e),l._tx=c,e&&void 0!==o.manualSpeed&&(o.speed=o.manualSpeed),l.nextSlide!=l.currSlide&&(e||!l.paused&&!l.hoverPaused&&l.timeout)?(l.API.trigger("cycle-before",[o,n,s,t]),c.before&&c.before(o,n,s,t),i=function(){l.busy=!1,l.container.data("cycle.opts")&&(c.after&&c.after(o,n,s,t),l.API.trigger("cycle-after",[o,n,s,t]),l.API.queueTransition(o),l.API.updateView(!0))},l.busy=!0,c.transition?c.transition(o,n,s,t,i):l.API.doTransition(o,n,s,t,i),l.API.calcNextSlide(),l.API.updateView()):l.API.queueTransition(o)),void 0)},doTransition:function(t,i,n,s,o){var c=t,l=e(i),r=e(n),a=function(){r.animate(c.animIn||{opacity:1},c.speed,c.easeIn||c.easing,o)};r.css(c.cssBefore||{}),l.animate(c.animOut||{},c.speed,c.easeOut||c.easing,function(){l.css(c.cssAfter||{}),c.sync||a()}),c.sync&&a()},queueTransition:function(t,i){var n=this.opts(),s=void 0!==i?i:t.timeout;return 0===n.nextSlide&&0===--n.loop?(n.API.log("terminating; loop=0"),n.timeout=0,s?setTimeout(function(){n.API.trigger("cycle-finished",[n])},s):n.API.trigger("cycle-finished",[n]),n.nextSlide=n.currSlide,void 0):void 0!==n.continueAuto&&(n.continueAuto===!1||e.isFunction(n.continueAuto)&&n.continueAuto()===!1)?(n.API.log("terminating automatic transitions"),n.timeout=0,n.timeoutId&&clearTimeout(n.timeoutId),void 0):(s&&(n._lastQueue=e.now(),void 0===i&&(n._remainingTimeout=t.timeout),n.paused||n.hoverPaused||(n.timeoutId=setTimeout(function(){n.API.prepareTx(!1,!n.reverse)},s))),void 0)},stopTransition:function(){var e=this.opts();e.slides.filter(":animated").length&&(e.slides.stop(!1,!0),e.API.trigger("cycle-transition-stopped",[e])),e._tx&&e._tx.stopTransition&&e._tx.stopTransition(e)},advanceSlide:function(e){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+e,0>t.nextSlide?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,e>=0),!1},buildSlideOpts:function(i){var n,s,o=this.opts(),c=i.data()||{};for(var l in c)c.hasOwnProperty(l)&&/^cycle[A-Z]+/.test(l)&&(n=c[l],s=l.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),o.API.log("["+(o.slideCount-1)+"]",s+":",n,"("+typeof n+")"),c[s]=n);c=e.extend({},e.fn.cycle.defaults,o,c),c.slideNum=o.slideCount;try{delete c.API,delete c.slideCount,delete c.currSlide,delete c.nextSlide,delete c.slides}catch(r){}return c},getSlideOpts:function(t){var i=this.opts();void 0===t&&(t=i.currSlide);var n=i.slides[t],s=e(n).data("cycle.opts");return e.extend({},i,s)},initSlide:function(t,i,n){var s=this.opts();i.css(t.slideCss||{}),n>0&&i.css("zIndex",n),isNaN(t.speed)&&(t.speed=e.fx.speeds[t.speed]||e.fx.speeds._default),t.sync||(t.speed=t.speed/2),i.addClass(s.slideClass)},updateView:function(e,t){var i=this.opts();if(i._initialized){var n=i.API.getSlideOpts(),s=i.slides[i.currSlide];!e&&t!==!0&&(i.API.trigger("cycle-update-view-before",[i,n,s]),0>i.updateView)||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),e&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),0===i.updateView&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,n,s,e])},n.speed/(i.sync?2:1)),0!==i.updateView&&i.API.trigger("cycle-update-view",[i,n,s,e]),e&&i.API.trigger("cycle-update-view-after",[i,n,s]))}},getComponent:function(t){var i=this.opts(),n=i[t];return"string"==typeof n?/^\s*[\>|\+|~]/.test(n)?i.container.find(n):e(n):n.jquery?n:e(n)},stackSlides:function(t,i,n){var s=this.opts();t||(t=s.slides[s.currSlide],i=s.slides[s.nextSlide],n=!s.reverse),e(t).css("zIndex",s.maxZ);var o,c=s.maxZ-2,l=s.slideCount;if(n){for(o=s.currSlide+1;l>o;o++)e(s.slides[o]).css("zIndex",c--);for(o=0;s.currSlide>o;o++)e(s.slides[o]).css("zIndex",c--)}else{for(o=s.currSlide-1;o>=0;o--)e(s.slides[o]).css("zIndex",c--);for(o=l-1;o>s.currSlide;o--)e(s.slides[o]).css("zIndex",c--)}e(i).css("zIndex",s.maxZ-1)},getSlideIndex:function(e){return this.opts().slides.index(e)}},e.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},e.fn.cycle.version=function(){return"Cycle2: "+i},e.fn.cycle.transitions={custom:{},none:{before:function(e,t,i,n){e.API.stackSlides(i,t,n),e.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,n,s){var o=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,n,s),t.cssBefore=e.extend(o,{opacity:0,visibility:"visible",display:"block"}),t.animIn={opacity:1},t.animOut={opacity:0}}},fadeout:{before:function(t,i,n,s){var o=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,n,s),t.cssBefore=e.extend(o,{opacity:1,visibility:"visible",display:"block"}),t.animOut={opacity:0}}},scrollHorz:{before:function(e,t,i,n){e.API.stackSlides(t,i,n);var s=e.container.css("overflow","hidden").width();e.cssBefore={left:n?s:-s,top:0,opacity:1,visibility:"visible",display:"block"},e.cssAfter={zIndex:e._maxZ-2,left:0},e.animIn={left:0},e.animOut={left:n?-s:s}}}},e.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},e(document).ready(function(){e(e.fn.cycle.defaults.autoSelector).cycle()})})(jQuery),/*! Cycle2 autoheight plugin; Copyright (c) M.Alsup, 2012; version: 20130913 */ function(e){"use strict";function t(t,n){var s,o,c,l=n.autoHeight;if("container"==l)o=e(n.slides[n.currSlide]).outerHeight(),n.container.height(o);else if(n._autoHeightRatio)n.container.height(n.container.width()/n._autoHeightRatio);else if("calc"===l||"number"==e.type(l)&&l>=0){if(c="calc"===l?i(t,n):l>=n.slides.length?0:l,c==n._sentinelIndex)return;n._sentinelIndex=c,n._sentinel&&n._sentinel.remove(),s=e(n.slides[c].cloneNode(!0)),s.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),s.css({position:"static",visibility:"hidden",display:"block"}).prependTo(n.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"),s.find("*").css("visibility","hidden"),n._sentinel=s}}function i(t,i){var n=0,s=-1;return i.slides.each(function(t){var i=e(this).height();i>s&&(s=i,n=t)}),n}function n(t,i,n,s){var o=e(s).outerHeight();i.container.animate({height:o},i.autoHeightSpeed,i.autoHeightEasing)}function s(i,o){o._autoHeightOnResize&&(e(window).off("resize orientationchange",o._autoHeightOnResize),o._autoHeightOnResize=null),o.container.off("cycle-slide-added cycle-slide-removed",t),o.container.off("cycle-destroyed",s),o.container.off("cycle-before",n),o._sentinel&&(o._sentinel.remove(),o._sentinel=null)}e.extend(e.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),e(document).on("cycle-initialized",function(i,o){function c(){t(i,o)}var l,r=o.autoHeight,a=e.type(r),d=null;("string"===a||"number"===a)&&(o.container.on("cycle-slide-added cycle-slide-removed",t),o.container.on("cycle-destroyed",s),"container"==r?o.container.on("cycle-before",n):"string"===a&&/\d+\:\d+/.test(r)&&(l=r.match(/(\d+)\:(\d+)/),l=l[1]/l[2],o._autoHeightRatio=l),"number"!==a&&(o._autoHeightOnResize=function(){clearTimeout(d),d=setTimeout(c,50)},e(window).on("resize orientationchange",o._autoHeightOnResize)),setTimeout(c,30))})}(jQuery),/*! caption plugin for Cycle2; version: 20130306 */ function(e){"use strict";e.extend(e.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"
{{title}}
{{desc}}
",captionModule:"caption"}),e(document).on("cycle-update-view",function(t,i,n,s){"caption"===i.captionModule&&e.each(["caption","overlay"],function(){var e=this,t=n[e+"Template"],o=i.API.getComponent(e);o.length&&t?(o.html(i.API.tmpl(t,n,i,s)),o.show()):o.hide()})}),e(document).on("cycle-destroyed",function(t,i){var n;e.each(["caption","overlay"],function(){var e=this,t=i[e+"Template"];i[e]&&t&&(n=i.API.getComponent("caption"),n.empty())})})}(jQuery),/*! command plugin for Cycle2; version: 20130707 */ function(e){"use strict";var t=e.fn.cycle;e.fn.cycle=function(i){var n,s,o,c=e.makeArray(arguments);return"number"==e.type(i)?this.cycle("goto",i):"string"==e.type(i)?this.each(function(){var l;return n=i,o=e(this).data("cycle.opts"),void 0===o?(t.log('slideshow must be initialized before sending commands; "'+n+'" ignored'),void 0):(n="goto"==n?"jump":n,s=o.API[n],e.isFunction(s)?(l=e.makeArray(c),l.shift(),s.apply(o.API,l)):(t.log("unknown command: ",n),void 0))}):t.apply(this,arguments)},e.extend(e.fn.cycle,t),e.extend(t.API,{next:function(){var e=this.opts();if(!e.busy||e.manualTrump){var t=e.reverse?-1:1;e.allowWrap===!1&&e.currSlide+t>=e.slideCount||(e.API.advanceSlide(t),e.API.trigger("cycle-next",[e]).log("cycle-next"))}},prev:function(){var e=this.opts();if(!e.busy||e.manualTrump){var t=e.reverse?1:-1;e.allowWrap===!1&&0>e.currSlide+t||(e.API.advanceSlide(t),e.API.trigger("cycle-prev",[e]).log("cycle-prev"))}},destroy:function(){this.stop();var t=this.opts(),i=e.isFunction(e._data)?e._data:e.noop;clearTimeout(t.timeoutId),t.timeoutId=0,t.API.stop(),t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed"),t.container.removeData(),i(t.container[0],"parsedAttrs",!1),t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass)),t.slides.each(function(){e(this).removeData(),i(this,"parsedAttrs",!1)})},jump:function(e){var t,i=this.opts();if(!i.busy||i.manualTrump){var n=parseInt(e,10);if(isNaN(n)||0>n||n>=i.slides.length)return i.API.log("goto: invalid slide index: "+n),void 0;if(n==i.currSlide)return i.API.log("goto: skipping, already on slide",n),void 0;i.nextSlide=n,clearTimeout(i.timeoutId),i.timeoutId=0,i.API.log("goto: ",n," (zero-index)"),t=i.currSlidel;l++)i=s.slides[l],l==t?n=i:(o.push(i),e(i).data("cycle.opts").slideNum=c,c++);n&&(s.slides=e(o),s.slideCount--,e(n).remove(),t==s.currSlide?s.API.advanceSlide(1):s.currSlide>t?s.currSlide--:s.currSlide++,s.API.trigger("cycle-slide-removed",[s,t,n]).log("cycle-slide-removed"),s.API.updateView())}}),e(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=e(this),n=i.data("cycle-cmd"),s=i.data("cycle-context")||".cycle-slideshow";e(s).cycle(n,i.data("cycle-arg"))})}(jQuery),/*! hash plugin for Cycle2; version: 20130905 */ function(e){"use strict";function t(t,i){var n;return t._hashFence?(t._hashFence=!1,void 0):(n=window.location.hash.substring(1),t.slides.each(function(s){if(e(this).data("cycle-hash")==n){if(i===!0)t.startingSlide=s;else{var o=s>t.currSlide;t.nextSlide=s,t.API.prepareTx(!0,o)}return!1}}),void 0)}e(document).on("cycle-pre-initialize",function(i,n){t(n,!0),n._onHashChange=function(){t(n,!1)},e(window).on("hashchange",n._onHashChange)}),e(document).on("cycle-update-view",function(e,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)}),e(document).on("cycle-destroyed",function(t,i){i._onHashChange&&e(window).off("hashchange",i._onHashChange)})}(jQuery),/*! loader plugin for Cycle2; version: 20131121 */ function(e){"use strict";e.extend(e.fn.cycle.defaults,{loader:!1}),e(document).on("cycle-bootstrap",function(t,i){function n(t,n){function o(t){var o;"wait"==i.loader?(l.push(t),0===a&&(l.sort(c),s.apply(i.API,[l,n]),i.container.removeClass("cycle-loading"))):(o=e(i.slides[i.currSlide]),s.apply(i.API,[t,n]),o.show(),i.container.removeClass("cycle-loading"))}function c(e,t){return e.data("index")-t.data("index")}var l=[];if("string"==e.type(t))t=e.trim(t);else if("array"===e.type(t))for(var r=0;t.length>r;r++)t[r]=e(t[r])[0];t=e(t);var a=t.length;a&&(t.css("visibility","hidden").appendTo("body").each(function(t){function c(){0===--r&&(--a,o(d))}var r=0,d=e(this),u=d.is("img")?d:d.find("img");return d.data("index",t),u=u.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),u.length?(r=u.length,u.each(function(){this.complete?c():e(this).load(function(){c()}).on("error",function(){0===--r&&(i.API.log("slide skipped; img not loaded:",this.src),0===--a&&"wait"==i.loader&&s.apply(i.API,[l,n]))})}),void 0):(--a,l.push(d),void 0)}),a&&i.container.addClass("cycle-loading"))}var s;i.loader&&(s=i.API.add,i.API.add=n)})}(jQuery),/*! pager plugin for Cycle2; version: 20140324 */ function(e){"use strict";function t(t,i,n){var s,o=t.API.getComponent("pager");o.each(function(){var o=e(this);if(i.pagerTemplate){var c=t.API.tmpl(i.pagerTemplate,i,t,n[0]);s=e(c).appendTo(o)}else s=o.children().eq(t.slideCount-1);s.on(t.pagerEvent,function(e){t.pagerEventBubble||e.preventDefault(),t.API.page(o,e.currentTarget)})})}function i(e,t){var i=this.opts();if(!i.busy||i.manualTrump){var n=e.children().index(t),s=n,o=s>i.currSlide;i.currSlide!=s&&(i.nextSlide=s,i.API.prepareTx(!0,o),i.API.trigger("cycle-pager-activated",[i,e,t]))}}e.extend(e.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:""}),e(document).on("cycle-bootstrap",function(e,i,n){n.buildPagerLink=t}),e(document).on("cycle-slide-added",function(e,t,n,s){t.pager&&(t.API.buildPagerLink(t,n,s),t.API.page=i)}),e(document).on("cycle-slide-removed",function(t,i,n){if(i.pager){var s=i.API.getComponent("pager");s.each(function(){var t=e(this);e(t.children()[n]).remove()})}}),e(document).on("cycle-update-view",function(t,i){var n;i.pager&&(n=i.API.getComponent("pager"),n.each(function(){e(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))}),e(document).on("cycle-destroyed",function(e,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})}(jQuery),/*! prevnext plugin for Cycle2; version: 20130709 */ function(e){"use strict";e.extend(e.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),e(document).on("cycle-initialized",function(e,t){if(t.API.getComponent("next").on(t.nextEvent,function(e){e.preventDefault(),t.API.next()}),t.API.getComponent("prev").on(t.prevEvent,function(e){e.preventDefault(),t.API.prev()}),t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",n=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t.API.next()}),t.container.on(n,function(){t.API.prev()})}}),e(document).on("cycle-update-view",function(e,t){if(!t.allowWrap){var i=t.disabledClass,n=t.API.getComponent("next"),s=t.API.getComponent("prev"),o=t._prevBoundry||0,c=void 0!==t._nextBoundry?t._nextBoundry:t.slideCount-1;t.currSlide==c?n.addClass(i).prop("disabled",!0):n.removeClass(i).prop("disabled",!1),t.currSlide===o?s.addClass(i).prop("disabled",!0):s.removeClass(i).prop("disabled",!1)}}),e(document).on("cycle-destroyed",function(e,t){t.API.getComponent("prev").off(t.nextEvent),t.API.getComponent("next").off(t.prevEvent),t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),/*! progressive loader plugin for Cycle2; version: 20130315 */ function(e){"use strict";e.extend(e.fn.cycle.defaults,{progressive:!1}),e(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var n,s,o=i.API,c=o.next,l=o.prev,r=o.prepareTx,a=e.type(i.progressive);if("array"==a)n=i.progressive;else if(e.isFunction(i.progressive))n=i.progressive(i);else if("string"==a){if(s=e(i.progressive),n=e.trim(s.html()),!n)return;if(/^(\[)/.test(n))try{n=e.parseJSON(n)}catch(d){return o.log("error parsing progressive slides",d),void 0}else n=n.split(RegExp(s.data("cycle-split")||"\n")),n[n.length-1]||n.pop()}r&&(o.prepareTx=function(e,t){var s,o;return e||0===n.length?(r.apply(i.API,[e,t]),void 0):(t&&i.currSlide==i.slideCount-1?(o=n[0],n=n.slice(1),i.container.one("cycle-slide-added",function(e,t){setTimeout(function(){t.API.advanceSlide(1)},50)}),i.API.add(o)):t||0!==i.currSlide?r.apply(i.API,[e,t]):(s=n.length-1,o=n[s],n=n.slice(0,s),i.container.one("cycle-slide-added",function(e,t){setTimeout(function(){t.currSlide=1,t.API.advanceSlide(-1)},50)}),i.API.add(o,!0)),void 0)}),c&&(o.next=function(){var e=this.opts();if(n.length&&e.currSlide==e.slideCount-1){var t=n[0];n=n.slice(1),e.container.one("cycle-slide-added",function(e,t){c.apply(t.API),t.container.removeClass("cycle-loading")}),e.container.addClass("cycle-loading"),e.API.add(t)}else c.apply(e.API)}),l&&(o.prev=function(){var e=this.opts();if(n.length&&0===e.currSlide){var t=n.length-1,i=n[t];n=n.slice(0,t),e.container.one("cycle-slide-added",function(e,t){t.currSlide=1,t.API.advanceSlide(-1),t.container.removeClass("cycle-loading")}),e.container.addClass("cycle-loading"),e.API.add(i,!0)}else l.apply(e.API)})}})}(jQuery),/*! tmpl plugin for Cycle2; version: 20121227 */ function(e){"use strict";e.extend(e.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),e.extend(e.fn.cycle.API,{tmpl:function(t,i){var n=RegExp(i.tmplRegex||e.fn.cycle.defaults.tmplRegex,"g"),s=e.makeArray(arguments);return s.shift(),t.replace(n,function(t,i){var n,o,c,l,r=i.split(".");for(n=0;s.length>n;n++)if(c=s[n]){if(r.length>1)for(l=c,o=0;r.length>o;o++)c=l,l=l[r[o]]||i;else l=c[i];if(e.isFunction(l))return l.apply(c,s);if(void 0!==l&&null!==l&&l!=i)return l}return i})}})}(jQuery); //@ sourceMappingURL=jquery.cycle2.js.map //************************************************************************************** //* /home3/yhekobro/public_html/cronos-expert.ru/js/libs/common/hover.js //************************************************************************************** $(document).ready(function(){ $(".top_menu_list").hover( function () { $(".top_menu_dropdown").show(); }, function () { $(".top_menu_dropdown").hide(); } ); $(".top_menu_dropdown").hover( function () { $("this").show(); }, function () { $("this").hide(); } ); // $(".top_menu_dropdown").hover( // function () { // $(this).next('.index_scroller_node_h3').css('color':'#000'); // $(this).next('.index_scroller_node p').css('color':'#000'); // } // ); });