<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
var w = {};

w.minHeight = '45px';

w.maxHeight = '66px';

w.init = function () {

    w.blockTr = jQuery('.main-menu');

    w.isFixed = 0;

    w.startPos = w.blockTr.offset().top;

    w.setStop();

    w.toggleFixed();

    jQuery(document).scroll(function () {

        w.toggleFixed($(this).scrollTop());

    });

};

w.toggleFixed = function (pos) {

    w.windowPos = pos;

    if (w.windowPos &gt;= w.startPos) {

        w.changeToFixed();

    } else {

        w.removeFixed();

    }

};

w.changeToFixed = function () {

    if (w.isFixed == 0 &amp;&amp; !w.stop) {

        w.blockTr.addClass("fix_menu").css('display', 'none');

        w.isFixed = 1;

        w.blockTr.fadeIn(2000);

    }

};

w.removeFixed = function () {

    if (w.isFixed == 1) {

        w.blockTr.removeClass("fix_menu");

        w.isFixed = 0;

    }

};

w.setStop = function () {

    if (document.body.clientWidth &lt; 768) {

        w.stop = true;

    } else {

        w.stop = false;

    }

};




jQuery(document).ready(function () {

    w.init();
});</pre></body></html>