text: $(document).ready(function(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),$(".react-scroller").scrollbar();var e=$(".fixed-wrap"),a=($(document).scrollTop(),$("#adaptive_instruction").length&&$("#adaptive_instruction")[0].offsetTop,$("footer").offset().top,$(document).scrollTop()),t=$(".mp-anchor"),o={};$(window).height();function i(){$(".body-promotion a").length||$(".body-promotion iframe").length?n(!0):n(!1),function(){for(key in t.each(function(e,a){o[e]=$(a).offset().top-65}),o)if(!(a>=o[key]&&o[Number(key)+1])||a<=o[Number(key)+1]){var e=$(t[key]).attr("id");c(e);break}}()}function n(t){var o=t?150:0;a<o?e.css({top:o-a}):e.css({top:0})}function c(e){setTimeout(function(){$(".list-anchors a").removeClass("active"),$('a[href="#'+e+'"]').addClass("active")},50)}function s(){$(".mp-advertisement").each(function(e,a){$(a).css("display","none"),$(a).children(".mp-adriver")[0].firstChild&&$(this).css("display","block")}),$(".mp-adriver").css({opacity:1})}function r(e,a,t){t?a.hasClass("active")?(e.removeClass("active"),a.removeClass("active")):(e.addClass("active"),a.addClass("active")):(e.removeClass("active"),a.removeClass("active"))}i(),s(),($(".body-promotion a").length||$(".body-promotion iframe").length)&&$("body").addClass("has-promo"),$(window).scroll(function(){a=$(this).scrollTop(),$(this).height(),i()}),$(window).resize(function(){a=$(this).scrollTop(),$(this).height(),i(),s()}),$(".row-drug-accordion").on("click",".accordion-title",function(){var e=$(this).children("svg").attr("class"),a=$(this).parent(".accordion-item");console.log(a.hasClass("open")),a.hasClass("open")&&"arrow-down"==e&&($(this).children("svg").replaceWith('<svg class="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"></path></svg>'),a.removeClass("open")),a.hasClass("open")||"arrow-up"!=e||($(this).children("svg").replaceWith('<svg class="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" ><path fill="currentColor" d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg>'),a.addClass("open"))}),$('a[href^="#"]').click(function(e){0==$(e.target).parent(".list-anchors").length&&0==$(e.target).parent("a").parent(".list-anchors").length||($(".navigation-dropmenu").removeClass("active"),$(".ambulance-dropmenu").removeClass("active"));var a,t=$(this).attr("href");return a=$(t).offset().top-63,window.scrollTo(0,a),!1}),$(".mp-burger-menu").on("click",".visual-menu-part",function(){$(this).hasClass("active")?($(this).children("svg").replaceWith('<span class="glyph burger"></span>'),$(this).removeClass("active"),$(".mp-burger-menu-links").removeClass("active")):($(this).addClass("active"),$(this).children(".glyph").replaceWith('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512" class="clear"><path fill="currentColor" d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"></path></svg>'),$(".mp-burger-menu-links").addClass("active"))}),$(".navigation-switcher").click(function(){$(".float-menu").css("z-index",99999),$(".ambulance-dropmenu").removeClass("active"),$(".ambulance-switcher").removeClass("active"),r($(".navigation-switcher"),$(".navigation-dropmenu"),1)}),$(".ambulance-switcher").click(function(){$(".float-menu").css("z-index",99999),$(".navigation-dropmenu").removeClass("active"),$(".navigation-switcher").removeClass("active"),r($(".ambulance-switcher"),$(".ambulance-dropmenu"),1)}),$(".navigation-dropmenu .blur-field").click(function(){$(".float-menu").css("z-index",8),r($(".navigation-switcher"),$(".navigation-dropmenu"),0)}),$(".ambulance-dropmenu .blur-field").click(function(){$(".float-menu").css("z-index",8),r($(".ambulance-switcher"),$(".ambulance-dropmenu"),0)});for(var l=0,m=["ms","moz","webkit","o"],u=0;u<m.length&&!window.requestAnimationFrame;++u)window.requestAnimationFrame=window[m[u]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[m[u]+"CancelAnimationFrame"]||window[m[u]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,a){var t=(new Date).getTime(),o=Math.max(0,16-(t-l)),i=window.setTimeout(function(){e(t+o)},o);return l=t+o,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),$(function(){-1==document.cookie.search("_accept_cookie")&&($("#cookies-alert").css("display","flex"),$("#cookie-accept").change(function(){"true"==$(this).attr("ch-status")?($(this).attr("ch-status",!1),$(".cookie-btns .accept").removeClass("active")):($(this).attr("ch-status",!0),$(".cookie-btns .accept").addClass("active"))}),$(".cookie-btns .accept").click(function(){if(!$(this).hasClass("active"))return 0;var e=new Date;e.setDate(e.getDate()+7),document.cookie="_accept_cookie=7days;expires="+e.toUTCString()+";path=/;",$("#cookies-alert").css("display","none")}),$(".cookie-btns .cancel").click(function(){var e=new Date;e.setHours(e.getHours()+1),document.cookie="_cancel_cookie=1hours;expires="+e.toUTCString()+";path=/;",$("#cookies-alert").css("display","none")})),-1!=document.cookie.search("_cancel_cookie")&&$("#cookies-alert").css("display","none")})});
  