function t113_highlight(recid){var url=window.location.href;var pathname=window.location.pathname;if(url.substr(url.length-1)=="/"){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)=="/"){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)=="/"){pathname=pathname.slice(1)}
if(pathname==""){pathname="/"}
$(".t113__list_item a[href='"+url+"']").addClass("t-active");$(".t113__list_item a[href='"+url+"/']").addClass("t-active");$(".t113__list_item a[href='"+pathname+"']").addClass("t-active");$(".t113__list_item a[href='/"+pathname+"']").addClass("t-active");$(".t113__list_item a[href='"+pathname+"/']").addClass("t-active");$(".t113__list_item a[href='/"+pathname+"/']").addClass("t-active")}
function t113_showMenu(recid,pageid){var $flagmenudo="2ok";$(window).bind('scroll',function(){if($(window).scrollTop()>200){if($flagmenudo!="1ok"){$flagmenudo="1"}}
else{if($flagmenudo!="2ok"){$flagmenudo="2"}}
if($flagmenudo=="1"){$('.t113').addClass('t113__fixed');$('.t113').css('display','none');$('.t113').fadeIn("slow");$('#rec'+recid).find('.t113__space').hide();$flagmenudo="1ok"}
if($flagmenudo=="2"){$('.t113').removeClass('t113__fixed');$('#rec'+recid).find('.t113__space').show();$flagmenudo="2ok"}});var current_path=window.location.pathname.split('/').pop();if(current_path=="page"+pageid+".html"){$("#t113linktopage"+pageid).css("opacity",".7")}}
function t113_setWidth(recid){var t113timer;var el=$('#rec'+recid);$(window).resize(function(){if(t113timer){window.clearTimeout(t113timer)}
t113timer=window.setTimeout(function(){if($(window).width()>640){var w1=el.find("div[data-hook-left]").width()+20+50;el.find(".t113__list").css("padding-right",w1+"px")}else{el.find(".t113__list").css("padding-right",10+"px")}},100)});$(window).resize()}
function t678_onSuccess(form){t_onFuncLoad('t_forms__onSuccess',function(){t_forms__onSuccess(form)})}
function t389_scrollToTop(){var duration=700;var difference=window.pageYOffset;var step=10*difference/duration;var timer=setInterval(function(){difference-=step;window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if(window.pageYOffset===0){document.body.removeAttribute('data-scrollable');clearInterval(timer)}},10)}