');var tabsContent=$('.cm-tabs-content');var self=this;$(this).hide();tabsContent.hide();if(!$('#accordion_id_'+index).length){$(this).find('>ul>li').each(function(){var id=$(this).attr('id');var content=$('.cm-tabs-content > #content_'+id).show();$(this).attr('id','hidden_tab_'+id);accordion.append('
'+$(this).text()+'
');$(content).appendTo(accordion);});$(self).before(accordion);}});$('.cm-accordion').ceAccordion('reinit',{animate:300,heightStyle:"content",activate:function(event,ui){var accordionTop=$(this).scrollTop(),headerOffset=$(ui.newHeader);if(headerOffset.length>0){if("-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)){setTimeout(function(){$('html, body').scrollTop(accordionTop+headerOffset.offset().top-10);},300);}else{$('html, body').animate({scrollTop:accordionTop+headerOffset.offset().top-10},300);}}}});var active=_.anchor;if(typeof active!=='undefined'&&$(active).length>0){$(active).click();}}else{$('.cm-accordion').accordion('destroy');$('.cm-accordion > div').each(function(index){$(this).hide();$(this).appendTo($('.cm-tabs-content'));});$('.cm-accordion').remove();$('.cm-j-tabs>ul>li').each(function(){var id=$(this).attr('id').replace('hidden_tab_','');$(this).attr('id',id);if($(this).hasClass('active')){$('#content_'+$(this).attr('id')).show();}});$('.cm-j-tabs, .cm-tabs-content').show();}},responsiveMenu:function(){var whichEvent=('ontouchstart'in document.documentElement?"touchstart":"click");if(_.isTouch&&window.navigator.msPointerEnabled){whichEvent='click';}
if($('.ty-menu__menu-btn').data('ca-responsive-menu')!==true){$('.ty-menu__menu-btn').on(whichEvent,function(e){var menu_elm=$('.cm-responsive-menu');$(this).parent(menu_elm).find('.ty-menu__item').toggle();});$('.cm-responsive-menu-toggle').on(whichEvent,function(e){$(this).toggleClass('ty-menu__item-toggle-active');$('.ty-icon-down-open',this).toggleClass('ty-icon-up-open');$(this).parent().find('.cm-responsive-menu-submenu').first().toggleClass('ty-menu__items-show');});$('.ty-menu__menu-btn').data('ca-responsive-menu',true);}
if(_.isTouch==false&&ui.winWidth()>=767){$('.cm-responsive-menu').on('mouseover mouseout',function(e){ui.detectMenuWidth(e);});}},responsiveMenuLargeTouch:function(e){var elm=$(e.target);var menuWidth=$('.cm-responsive-menu').width();if(ui.winWidth()>=767&&e.type=='touchstart'){if(elm.hasClass('cm-menu-item-responsive')||elm.closest('.cm-menu-item-responsive').length){var menuItem=elm.hasClass('cm-menu-item-responsive')?elm:elm.closest('.cm-menu-item-responsive');if(!menuItem.hasClass('is-hover-menu')&&menuItem.find('.ty-menu__submenu-items').length>0){e.preventDefault();menuItem.siblings('.cm-menu-item-responsive').removeClass('is-hover-menu');menuItem.addClass('is-hover-menu');}}
var subMenu=$('.ty-menu__submenu-items');if(subMenu.is(':visible')&&!elm.closest('.cm-menu-item-responsive').length){$('.cm-menu-item-responsive').removeClass('is-hover-menu');}}else{$('.cm-menu-item-responsive').removeClass('is-hover-menu');}
ui.detectMenuWidth(e);},detectMenuWidth:function(e){var elm=$(e.target);var menuElm=elm.parents(".cm-responsive-menu");var isHorisontalMenu=menuElm.parent().hasClass("ty-menu-vertical")?false:true;if(isHorisontalMenu){var menuWidth=menuElm.width();var menuItemElm=elm.closest('.cm-menu-item-responsive');$('.ty-menu__submenu-to-right').removeClass('ty-menu__submenu-to-right');if(menuItemElm){var submenu=$('.cm-responsive-menu-submenu',menuItemElm);if(submenu.length){var position=submenu.position().left+submenu.width();if(position>menuWidth){submenu.parent().addClass('ty-menu__submenu-to-right');}}}}},responsiveTables:function(e){var tables=$('.ty-table');if(this.winWidth()<=1006){tables.each(function(){var thTexts=[];var subTable=$(this).find('.ty-table');if(subTable.length){subTable.parent().attr('data-ca-has-sub-table','true');subTable.parent().data('caSubTableData',subTable.detach());}
$(this).find('th').each(function(){thTexts.push($(this).text());});$(this).find('tr:not(.ty-table__no-items)').each(function(){$(this).find('td:not(.ty-table-disable-convertation)').each(function(index){var $elm=$(this);if($elm.find('.ty-table__responsive-content').length==0){$elm.wrapInner('
');$elm.prepend('');}});});if(subTable.length){var $subTableElm=$(this).find('[data-ca-has-sub-table]');$subTableElm.append($subTableElm.data('caSubTableData'));$subTableElm.removeAttr('data-ca-has-sub-table');$subTableElm.removeData('caSubTableData');}});}},resizeDialog:function(){var self=this;var dlg=$('.ui-dialog');$('.ui-widget-overlay').css({'min-height':$(window).height()});$(dlg).css({'position':'absolute','width':$(window).width()-20,'left':'10px','top':'10px','max-height':'none','height':'auto','margin-bottom':'10px'});$(dlg).find('.ui-dialog-title').css({'width':$(window).width()-80});$(dlg).find('.ui-dialog-content').css({'height':'auto','max-height':'none'});$(dlg).find('.object-container').css({'height':'auto'});$(dlg).find('.buttons-container').css({'position':'relative','top':'auto','left':'0px','right':'0px','bottom':'0px','width':'auto'});},responsiveDialog:function(){var self=this;$.ceEvent('on','ce.dialogshow',function(){if(self.winWidth()<=1006){self.resizeDialog();$('body,html').scrollTop(0);}});},responsiveFilters:function(e){var filtersContent=$('.cm-horizontal-filters-content');if(this.winWidth()<=767){filtersContent.removeClass('cm-popup-box');}else{filtersContent.addClass('cm-popup-box');}}};})();$(document).ready(function(){$(window).resize(function(e){ui.winWidth();ui.responsiveTables();ui.responsiveFilters();});if(window.addEventListener){window.addEventListener('orientationchange',function(){if(ui.winWidth()<=1006){ui.resizeDialog();}
$.ceDialog('get_last').ceDialog('reload');},false);}
ui.responsiveDialog();ui.responsiveNotifications();ui.responsiveTables();ui.responsiveFilters();$.ceEvent('on','ce.ajaxdone',function(){ui.responsiveTables();ui.responsiveMenu();ui.responsiveFilters();if(ui.winWidth()<=1006){ui.resizeDialog();}});ui.responsiveMenu();$('.cm-responsive-menu').on('touchstart',function(e){ui.responsiveMenuLargeTouch(e);});});$.ceEvent('on','ce.tab.init',function(){$(window).resize(function(e){ui.responsiveTabs();});ui.responsiveTabs();ui.responsiveScroll();});}(Tygh,Tygh.$));var $buoop={vs:{i:9,f:5,o:12,s:5,n:9}};$buoop.ol=window.onload;window.onload=function(){try{if($buoop.ol)$buoop.ol();}catch(e){}
var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("src","//browser-update.org/update.js");document.body.appendChild(e);};window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.8.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:w(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},q.cssanimations=function(){return F("animationName")},q.csstransforms=function(){return!!F("transform")},q.csstransforms3d=function(){var a=!!F("perspective");return a&&"webkitPerspective"in g.style&&w("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e
",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f-1)&&!(navigator.userAgent.toLowerCase().indexOf("win64;")>-1));return isTouch;}
function isiPhone(){return((navigator.userAgent.toLowerCase().indexOf("iphone")>-1)||(navigator.userAgent.toLowerCase().indexOf("ipod")>-1));}
function isie(){return((navigator.userAgent.toLowerCase().indexOf("msie")>-1));}
var originalScrollerHomeWidth;var originalHomepageBannersHeight;var originalSideBannersHeight;var is_resize_once=true;function vs_resize(){var windowWidth=window.innerWidth||document.documentElement.clientWidth;if($(".product-main-info").length){if(windowWidth>768&&windowWidth<=1006){var containerW=$(".product-main-info").width();var infoW=$('.product-info').width();$(".image-wrap").css('width',containerW-infoW);if($(".cm-image-gallery-wrapper>div").hasClass("owl-carousel")){var galleryW=containerW-infoW-89;$(".cm-image-gallery-wrapper").css('width',galleryW);}}else if(windowWidth>1006||windowWidth<=768){$(".image-wrap").css('width','');if($(".cm-image-gallery-wrapper>div").hasClass("owl-carousel")){$(".cm-image-gallery-wrapper").css('width','395px');}}}
if($('.vs-multi-scroller-wrapper').length){if(windowWidth<=768){$('.vs-multi-scroller-ul').hide();$('.vs-multi-scroller').show();$('.vs-multi-scroller .vs-multi-scroller-title').show();}else{$(".vs-multi-scroller-wrapper").each(function(){var self_wrap=$(this);if(self_wrap.data("rendered")==true){self_wrap.find('.vs-multi-scroller-ul').show();self_wrap.find('.vs-multi-scroller .vs-multi-scroller-title').hide();self_wrap.find(".vs-multi-scroller-ul .active").removeClass("active");self_wrap.find(".vs-multi-scroller").hide();self_wrap.find(".item-0").addClass("active");self_wrap.find(".content-tab-0").show();}})}}
if($(".tygh-header").hasClass("front_page")&&!isiPhone()){if(windowWidth>1006){$(".dropdown-hybrid > li").addClass("front-drophover");$(".dropdown-hybrid .adropdown-fullwidth").show();}else{$(".dropdown-hybrid > li").removeClass("front-drophover");$(".dropdown-hybrid").removeClass("drophover");}}
if(windowWidth<=1006){var menu_categ=$(document).find('.dropdown-hybrid>li');var main_menu=$(document).find('.vs-main-menu-content');$('.dropdown-hybrid-column .adropdown-vertical_li').hoverIntent({over:function(){},out:function(){},timeout:0});$('.dropdown-hybrid>li').hoverIntent({over:function(){},out:function(){},timeout:300});if(!isTouchDevice()&&is_resize_once==true){is_resize_once=false;var menu_categ=$(document).find('.dropdown-hybrid>li');var main_menu=$(document).find('.vs-main-menu-content');$('.vs-main-menu-title').click(function(e){main_menu.toggle();menu_categ.removeClass("drophover");e.stopPropagation();})
$('.dropdown-hybrid>li>a').click(function(e){var self=$(this);if(self.hasClass("drop")){self.parent().toggleClass("drophover");main_menu.hide();e.stopPropagation();}})}
$(document).click(function(e){var jelm=$(e.target);var elm=e.target;if(!jelm.hasClass('ty-sidebox__icon-hide')&&!jelm.hasClass('ty-sidebox__icon-open')&&!jelm.hasClass('vs-title-toggle')){menu_categ.removeClass("drophover");main_menu.hide();e.stopPropagation();}})}else{if(!isTouchDevice()){function hm_hoverIn(){var self=$(this);self.addClass("drophover");self.find('.vs_lazy_additional').each(function(){startLoadImg($(this));})}
function hm_hoverOut(){var self=$(this);self.removeClass("drophover");}
$('.dropdown-hybrid-column .adropdown-vertical_li').hoverIntent({over:hm_hoverIn,out:hm_hoverOut,timeout:300});$('.dropdown-hybrid>li').hoverIntent({over:hm_hoverIn,out:hm_hoverOut,timeout:300});}}}
function resize_scroller(container,banner){var container=$(".tygh-content").find(container);var parent=container.parent();var parentWidth=parent.width();var banner=parent.find(banner);var bannerWidth=banner.width();var containerNewWidth=parentWidth-bannerWidth-10;container.css("width",containerNewWidth);}
var windowWidth=window.innerWidth||document.documentElement.clientWidth;(function(_,$){$.ceEvent('on','ce.commoninit',function(context){if($(".tygh-header").hasClass("front_page")&&windowWidth>1006&&!isiPhone()){$(".dropdown-hybrid > li").addClass("front-drophover");}
var win=$(window);if(windowWidth>1006){if(isTouchDevice()){$('.dropdown-hybrid>li a.drop').click(function(event){var self=$(this);var li_parent=self.parent();li_parent.find('.drophover').removeClass('drophover');li_parent.toggleClass("drophover");});$('.adropdown-vertical_li.dir>a').click(function(event){var self=$(this);var li_parent=self.parent();var ul_parent=li_parent.parent();if(self.hasClass("drop")){li_parent.toggleClass("drophover");}else if(!li_parent.hasClass("drophover")){event.preventDefault();ul_parent.find('.drophover').removeClass('drophover');li_parent.addClass("drophover");li_parent.find(".vs_lazy_additional").each(function(){startLoadImg($(this));})}})}}});}(Tygh,Tygh.$));$(function(){if(windowWidth<=1006&&isTouchDevice()){var menu_categ=$(document).find('.dropdown-hybrid>li');var main_menu=$(document).find('.vs-main-menu-content');$('.vs-main-menu-title').click(function(e){main_menu.toggle();menu_categ.removeClass("drophover");e.stopPropagation();})
$('.dropdown-hybrid>li>a').click(function(e){var self=$(this);if(self.hasClass("drop")){self.parent().toggleClass("drophover");main_menu.hide();e.stopPropagation();}})};});(function(_,$){$.ceEvent('on','ce.commoninit',function(context){$(".vs-multi-scroller-wrapper").each(function(){var self_wrap=$(this);if(self_wrap.data("rendered")!=true){self_wrap.prepend("");$(".vs-multi-scroller",self_wrap).each(function(index){var self=$(this);var title=$(".vs-multi-scroller-title",self).html();$("ul",self_wrap).append(""+title+"");$(".vs-multi-scroller-title",self).hide();self.addClass("content-tab-"+index);self.hide();})
self_wrap.find(".item-0").addClass("active");self_wrap.find(".content-tab-0").show();$("li a",self_wrap).click(function(){var self=$(this);var className=self.attr("class");self.parent().siblings().removeClass("active");$(".vs-multi-scroller",self_wrap).hide();$(".content-"+className,self_wrap).show();self.parent().addClass("active");})
self_wrap.data("rendered",true);}})})}(Tygh,Tygh.$));(function(_,$){$.ceEvent('on','ce.commoninit',function(context){var imageTimer;var iterations=0;function gallery(current,last){var next=$(current).nextAll('img').first();if(next.length==0){var next=$(current).prevAll(".primary");}
if(next.length!=0){if(next.hasClass('vs_lazy_additional')){next[0].src=next.data("src");next.removeAttr("data-src");next.removeClass('vs_lazy_additional');iterations=0;loadNextImg(next,current,last);}else{if(last!==null){last.removeClass("last-active");}
$(current).removeClass("active").addClass("last-active");next.addClass("active");}}
imageTimer=setTimeout(function(){gallery(next,current);},1500);}
function loadNextImg(img,current,last){iterations+=1;if(completeImg(img.get(0))){$(last).removeClass("last-active");$(current).removeClass("active").addClass("last-active");img.addClass("active");}else if(iterations<=100){setTimeout(loadNextImg(img,current,last),100);}else{$(last).removeClass("last-active");$(current).removeClass("active").addClass("last-active");img.addClass("active");}}
function completeImg(img){var width;width=typeof img.naturalWidth;if(width!=="undefined"&&img.naturalWidth===0){return false;}
return true;}
$('.vs-image-auto-scroller').hover(function(){if(!isTouchDevice()){var windowWidth=window.innerWidth||document.documentElement.clientWidth;if(windowWidth>1246){var self=$(this);var current=$("img.primary",self);var currentW=current.width();var additonalM=(currentW/2)*(-1);if(self.find("img.additional").first().css('margin-left')=="0px"){$("img.additional",this).css('margin-left',additonalM);}
if($("img.additional",self).length){self.addClass("animating");gallery(current,null);}}}},function(){var self=$(this);self.removeClass("animating");$("img",self).removeClass("active").removeClass("last-active");$(".primary",self).addClass("active");clearTimeout(imageTimer);})});}(Tygh,Tygh.$));(function($){var $w=$(window);$.fn.visible=function(partial,hidden,direction){if(this.length<1)
return;var $t=this.length>1?this.eq(0):this,t=$t.get(0),vpWidth=$w.width(),vpHeight=$w.height(),direction=(direction)?direction:'both',clientSize=hidden===true?t.offsetWidth*t.offsetHeight:true;if(typeof t.getBoundingClientRect==='function'){var rec=t.getBoundingClientRect(),tViz=rec.top>=0&&rec.top0&&rec.bottom<=vpHeight,lViz=rec.left>=0&&rec.left0&&rec.right<=vpWidth,vVisible=partial?tViz||bViz:tViz&&bViz,hVisible=partial?lViz||lViz:lViz&&rViz;if(direction==='both')
return clientSize&&vVisible&&hVisible;else if(direction==='vertical')
return clientSize&&vVisible;else if(direction==='horizontal')
return clientSize&&hVisible;}else{var viewTop=$w.scrollTop(),viewBottom=viewTop+vpHeight,viewLeft=$w.scrollLeft(),viewRight=viewLeft+vpWidth,offset=$t.offset(),_top=offset.top,_bottom=_top+$t.height(),_left=offset.left,_right=_left+$t.width(),compareTop=partial===true?_bottom:_top,compareBottom=partial===true?_top:_bottom,compareLeft=partial===true?_right:_left,compareRight=partial===true?_left:_right;if(direction==='both')
return!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop))&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));else if(direction==='vertical')
return!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop));else if(direction==='horizontal')
return!!clientSize&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));}};})(jQuery);function startLoadImg(img){img[0].src=img.data("src");img.removeAttr("data-src");img.removeClass("vs_lazy_additional");img.removeClass("vs_lazy_mobile");iterations=0;img.data('iterations',0)
if(loadImg(img)){return true;}}
function loadImg(img){var imgType=typeof img;iterations+=1;if(completeImg(img.get(0))){return true;}else if(iterations<=100&&imgType!=="undefined"){setTimeout(function(){loadImg(img);},100);}}
function completeImg(img){var width;width=typeof img.naturalWidth;if(width!=="undefined"&&img.naturalWidth===0){return false;}
return true;}
function check_visible(){if(windowWidth>1006||!isTouchDevice()){var allMods=$(".csstransforms .animate").not(".come-in").not(".already-visible");allMods.each(function(i,el){var el=$(el);if(el.visible(true)){if($('.vs_lazy_additional',el).length){$('.vs_lazy_additional',el).each(function(){startLoadImg($(this));})
el.addClass("already-visible");}else{el.addClass("already-visible");}}});var allMods=$(".csstransforms .animate.already-visible");allMods.each(function(i,el){var el=$(el);if(el.visible(true)){if($('.vs_lazy_mobile',el).length){$('.vs_lazy_mobile',el).each(function(){startLoadImg($(this));})
el.addClass("already-visible");}else{el.addClass("already-visible");}}});}}
function vs_lazy_load(){var allMods=$(".vs_lazy_additional").not(".additional");allMods.each(function(i,el){startLoadImg($(this));});}
function check_animate(){if(windowWidth>1006||!isTouchDevice()){if($(".csstransforms").length){var allMods=$(".csstransforms .animate").not(".come-in").not(".already-visible");allMods.each(function(i,el){var el=$(el);if(el.visible(true)){if($('.vs_lazy_additional',el).length){$('.vs_lazy_additional',el).each(function(){startLoadImg($(this));})
el.addClass("come-in");}else{el.addClass("come-in");}}});}else{var allMods=$(".vs_lazy_additional");allMods.each(function(){var self=$(this);if(self.visible(true)){startLoadImg(self);}});}}};function iframe_load(img,iterations){iterations+=1;img.each(function(i,el){startLoadImg($(this));});if(iterations<=50&&img.length>0){setTimeout(function(){var img=$(".vs_lazy_mobile").not(".lazyOwl");iframe_load(img,iterations);},500);}}
(function(_,$){$.ceEvent('on','ce.commoninit',function(context){var win=$(window);vs_resize();if($("html#tygh_html").length){var iterations=0;var img=$(".vs_lazy_mobile").not(".lazyOwl");iframe_load(img,iterations);}
win.resize(vs_resize);$(window).scroll(function(){var scrollTop=200;if($(window).scrollTop()>=scrollTop&&windowWidth>1006){$('.top-menu-grid,.et-sticky-menu').addClass('floating');enabled=false;var enabled_1=$('.et-sticky-menu.floating').css("position");var enabled_2=$('.top-menu-grid.floating').css("position");if(enabled_1=="fixed"||enabled_2=="fixed"){var enabled=true;}
if($(".tygh-header").hasClass("front_page")&&!isiPhone()&&enabled){if(windowWidth>1006){$(".dropdown-hybrid > li").removeClass("front-drophover");$(".dropdown-hybrid").removeClass("drophover");}}}else{$('.top-menu-grid,.et-sticky-menu').removeClass('floating');if($(".tygh-header").hasClass("front_page")&&!isiPhone()){if(windowWidth>1006){$(".dropdown-hybrid > li").addClass("front-drophover");$(".dropdown-hybrid .adropdown-fullwidth").show();}}}})
$(document).ready(function(){check_visible();})
var allModsOne=$(".csstransforms .animate").not(".come-in").not(".already-visible");win.scroll(function(event){var allModsTwo=$(".vs_lazy_mobile").not(".lazyOwl");var allModsOne=$(".csstransforms .animate").not(".come-in").not(".already-visible");check_animate_scroll(allModsOne,allModsTwo);function check_animate_scroll(allModsOne,allModsTwo){if(windowWidth>1006||!isTouchDevice()){if($(".csstransforms").length){if(!isTouchDevice()){allModsOne.each(function(i,el){var el=$(el);if(el.visible(true)){if(isie()&&$('.vs_lazy_additional',el).length){$('.vs_lazy_additional',el).each(function(){startLoadImg($(this));})
el.addClass("come-in");}else{el.addClass("come-in");}}});}}else if(!isTouchDevice()||isie()){var allMods=$(".vs_lazy_additional");allModsTwo.each(function(){var self=$(this);if(self.visible(true)){startLoadImg(self);allModsTwo=allModsTwo.not($(this));}});}}
allModsTwo.each(function(i,el){var el=$(el);if(el.visible(true)){startLoadImg($(this));allModsTwo=allModsTwo.not($(this));}});};});if($(".vs-grid-table-wrapper").length){var self=$(this);$(">div",self).width();}});}(Tygh,Tygh.$));(function(_,$){$.ceEvent('on','ce.commoninit',function(context){if(!isTouchDevice()){$(window).scroll(function(){if($(this).scrollTop()>100){$('#scroll-up').fadeIn();}else{$('#scroll-up').fadeOut();}});}
$('#scroll-up').click(function(){$('html,body').animate({scrollTop:'0px'},'1000');return false;});});}(Tygh,Tygh.$));function getIEVersion(){var match=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return match?parseInt(match[1]):undefined;}
$(function(){var IE=getIEVersion();if(IE!==undefined){$("html").addClass('ie'+IE);}
if(IE!==undefined&&isTouchDevice()){$("html").addClass('touchIE');}});(function(_,$){$.ceEditor('handlers',{editorName:'ckeditor',params:null,run:function(elm,params){CKEDITOR_BASEPATH=_.current_location+'/js/addons/ecl_full_ckeditor/lib/ckeditor/';if(typeof(window.CKEDITOR)=='undefined'){$.ceEditor('state','loading');return $.getScript('js/addons/ecl_full_ckeditor/lib/ckeditor/ckeditor.js',function(){$.ceEditor('state','loaded');elm.ceEditor('run',params);});}
if(!this.params){this.params={bodyClass:'wysiwyg-content',filebrowserBrowseUrl:_.current_location+'/js/lib/elfinder/elfinder.ckeditor.html',filebrowserWindowWidth:'600',filebrowserWindowHeight:'500',allowedContent:true};if(typeof params!=='undefined'&¶ms[this.editorName]){$.extend(this.params,params[this.editorName]);}}
this.params.removePlugins='save';if(_.area=='C'){this.params.toolbar=[['Format','Font','FontSize','Bold','Italic','Underline','TextColor','BGColor','-','Table','-','NumberedList','BulletedList','Indent','Outdent','JustifyLeft','JustifyCenter','JustifyRight']]}
this.params.on={change:function(e){elm.ceEditor('changed',CKEDITOR.instances[elm.prop('id')].getData());}};this.params.entities=false;CKEDITOR.dtd.$removeEmpty['span']=false;CKEDITOR.dtd.$removeEmpty['i']=false;CKEDITOR.replace(elm.prop('id'),this.params);},destroy:function(elm){if(typeof(CKEDITOR.instances[elm.prop('id')])!='undefined'){CKEDITOR.instances[elm.prop('id')].destroy();}},updateTextFields:function(elm){if(typeof(window.CKEDITOR)!='undefined'){if(typeof(CKEDITOR.instances[elm.prop('id')])!='undefined'){CKEDITOR.instances[elm.prop('id')].updateElement();}}},recover:function(elm){$.ceEditor('run',elm);},val:function(elm,value){if(typeof(value)=='undefined'){return CKEDITOR.instances[elm.prop('id')].getData();}else{CKEDITOR.instances[elm.prop('id')].setData(value);}
return true;},disable:function(elm,value){if(typeof(window.CKEDITOR)!='undefined'){CKEDITOR.instances[elm.prop('id')].setReadOnly(value);}
$(elm).prop('disabled',value);}});$.widget("ui.dialog",$.ui.dialog,{_allowInteraction:function(event){if(this._super(event)){return true;}
if(event.target.ownerDocument!=this.document[0]){return true;}
if($(event.target).closest(".cke_dialog").length){return true;}
if($(event.target).closest(".cke").length){return true;}},_moveToTop:function(event,silent){if(!event||!this.options.modal){this._super(event,silent);}}});}(Tygh,Tygh.$));(function(_,$){$(document).ready(function(){$(_.doc).on('click','.cm-news-subscribe',function(e){var elms=$(this).parents('.subscription-container').find('.cm-news-subscribe');var params='';if(elms.length>0){elms.each(function(){if($(this).prop('name').length>0){if($(this).prop('checked')){params+=$(this).prop('name')+'='+$(this).val()+'&';}}});}
if(!params){params='mailing_lists=';}
$.ceAjax('request',fn_url('checkout.subscribe_customer?'+params),{method:'post',result_ids:'subsciption*'});});});}(Tygh,Tygh.$));(function(_,$){$.ceEvent('on','ce.history_load',function(url){if(typeof(ga)!='undefined'){ga('send','pageview',url.replace('!',''));}});}(Tygh,Tygh.$));"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,o){var i={init:function(e,o){var i=this;i.$elem=t(o),i.options=t.extend({},t.fn.owlCarousel.options,i.$elem.data(),e),i.userOptions=e,i.loadContent()},loadContent:function(){function e(t){var e,o="";if("function"==typeof i.options.jsonSuccess)i.options.jsonSuccess.apply(this,[t]);else{for(e in t.owl)t.owl.hasOwnProperty(e)&&(o+=t.owl[e].item);i.$elem.html(o)}i.logIn()}var o,i=this;"function"==typeof i.options.beforeInit&&i.options.beforeInit.apply(this,[i.$elem]),"string"==typeof i.options.jsonPath?(o=i.options.jsonPath,t.getJSON(o,e)):i.logIn()},logIn:function(){var t=this;t.$elem.data({"owl-originalStyles":t.$elem.attr("style"),"owl-originalClasses":t.$elem.attr("class")}),t.$elem.css({opacity:0}),t.orignalItems=t.options.items,t.checkBrowser(),t.wrapperWidth=0,t.checkVisible=null,t.setVars()},setVars:function(){var t=this;return 0===t.$elem.children().length?!1:(t.baseClass(),t.eventTypes(),t.$userItems=t.$elem.children(),t.itemsAmount=t.$userItems.length,t.wrapItems(),t.$owlItems=t.$elem.find(".owl-item"),t.$owlWrapper=t.$elem.find(".owl-wrapper"),t.playDirection="next",t.prevItem=0,t.prevArr=[0],t.currentItem=0,t.customEvents(),void t.onStartup())},onStartup:function(){var t=this;t.updateItems(),t.calculateAll(),t.buildControls(),t.updateControls(),t.response(),t.moveEvents(),t.stopOnHover(),t.owlStatus(),t.options.transitionStyle!==!1&&t.transitionTypes(t.options.transitionStyle),t.options.autoPlay===!0&&(t.options.autoPlay=5e3),t.play(),t.$elem.find(".owl-wrapper").css("display","block"),t.$elem.is(":visible")?t.$elem.css("opacity",1):t.watchVisibility(),t.onstartup=!1,t.eachMoveUpdate(),"function"==typeof t.options.afterInit&&t.options.afterInit.apply(this,[t.$elem])},eachMoveUpdate:function(){var t=this;t.options.lazyLoad===!0&&t.lazyLoad(),t.options.autoHeight===!0&&t.autoHeight(),t.onVisibleItems(),"function"==typeof t.options.afterAction&&t.options.afterAction.apply(this,[t.$elem])},updateVars:function(){var t=this;"function"==typeof t.options.beforeUpdate&&t.options.beforeUpdate.apply(this,[t.$elem]),t.watchVisibility(),t.updateItems(),t.calculateAll(),t.updatePosition(),t.updateControls(),t.eachMoveUpdate(),"function"==typeof t.options.afterUpdate&&t.options.afterUpdate.apply(this,[t.$elem])},reload:function(){var t=this;e.setTimeout(function(){t.updateVars()},0)},watchVisibility:function(){var t=this;return t.$elem.is(":visible")!==!1?!1:(t.$elem.css({opacity:0}),e.clearInterval(t.autoPlayInterval),e.clearInterval(t.checkVisible),void(t.checkVisible=e.setInterval(function(){t.$elem.is(":visible")&&(t.reload(),t.$elem.animate({opacity:1},200),e.clearInterval(t.checkVisible))},500)))},wrapItems:function(){var t=this;t.$userItems.wrapAll('').wrap('
'),t.$elem.find(".owl-wrapper").wrap('
'),t.wrapperOuter=t.$elem.find(".owl-wrapper-outer"),t.$elem.css("display","block")},baseClass:function(){var t=this,e=t.$elem.hasClass(t.options.baseClass),o=t.$elem.hasClass(t.options.theme);e||t.$elem.addClass(t.options.baseClass),o||t.$elem.addClass(t.options.theme)},updateItems:function(){var e,o,i=this;if(i.options.responsive===!1)return!1;if(i.options.singleItem===!0)return i.options.items=i.orignalItems=1,i.options.itemsCustom=!1,i.options.itemsDesktop=!1,i.options.itemsDesktopSmall=!1,i.options.itemsTablet=!1,i.options.itemsTabletSmall=!1,i.options.itemsMobile=!1,!1;if(e=t(i.options.responsiveBaseWidth).width(),e>(i.options.itemsDesktop[0]||i.orignalItems)&&(i.options.items=i.orignalItems),i.options.itemsCustom!==!1)for(i.options.itemsCustom.sort(function(t,e){return t[0]-e[0]}),o=0;o
i.itemsAmount&&i.options.itemsScaleUp===!0&&(i.options.items=i.itemsAmount)},response:function(){var o,i,n=this;return n.options.responsive!==!0?!1:(i=t(e).width(),n.resizer=function(){t(e).width()!==i&&(n.options.autoPlay!==!1&&e.clearInterval(n.autoPlayInterval),e.clearTimeout(o),o=e.setTimeout(function(){i=t(e).width(),n.updateVars()},n.options.responsiveRefreshRate))},void t(e).resize(n.resizer))},updatePosition:function(){var t=this;t.jumpTo(t.currentItem),t.options.autoPlay!==!1&&t.checkAp()},appendItemsSizes:function(){var e=this,o=0,i=e.itemsAmount-e.options.items;e.$owlItems.each(function(n){var s=t(this);s.css({width:e.itemWidth}).data("owl-item",Number(n)),(n%e.options.items===0||n===i)&&(n>i||(o+=1)),s.data("owl-roundPages",o)})},appendWrapperSizes:function(){var t=this,e=t.$owlItems.length*t.itemWidth;t.$owlWrapper.css({width:2*e,left:0}),t.appendItemsSizes()},calculateAll:function(){var t=this;t.calculateWidth(),t.appendWrapperSizes(),t.loops(),t.max()},calculateWidth:function(){var t=this;t.itemWidth=Math.round(t.$elem.width()/t.options.items)},max:function(){var t=this,e=-1*(t.itemsAmount*t.itemWidth-t.options.items*t.itemWidth);return t.options.items>t.itemsAmount?(t.maximumItem=0,e=0,t.maximumPixels=0):(t.maximumItem=t.itemsAmount-t.options.items,t.maximumPixels=e),e},min:function(){return 0},loops:function(){var e,o,i,n=this,s=0,a=0;for(n.positionsInArray=[0],n.pagesInArray=[],e=0;e').toggleClass("clickable",!e.browser.isTouch).appendTo(e.$elem)),e.options.pagination===!0&&e.buildPagination(),e.options.navigation===!0&&e.buildButtons()},buildButtons:function(){var e=this,o=t('');e.owlControls.append(o),e.buttonPrev=t("",{"class":"owl-prev",html:e.options.navigationText[0]||""}),e.buttonNext=t("",{"class":"owl-next",html:e.options.navigationText[1]||""}),o.append(e.buttonPrev).append(e.buttonNext),o.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(t){t.preventDefault()}),o.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(o){o.preventDefault(),t(this).hasClass("owl-next")?e.next():e.prev()})},buildPagination:function(){var e=this;e.paginationWrapper=t(''),e.owlControls.append(e.paginationWrapper),e.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(o){o.preventDefault(),Number(t(this).data("owl-page"))!==e.currentItem&&e.goTo(Number(t(this).data("owl-page")),!0)})},updatePagination:function(){var e,o,i,n,s,a,r=this;if(r.options.pagination===!1)return!1;for(r.paginationWrapper.html(""),e=0,o=r.itemsAmount-r.itemsAmount%r.options.items,n=0;n",{"class":"owl-page"}),a=t("",{text:r.options.paginationNumbers===!0?e:"","class":r.options.paginationNumbers===!0?"owl-numbers":""}),s.append(a),s.data("owl-page",o===n?i:n),s.data("owl-roundPages",e),r.paginationWrapper.append(s));r.checkPagination()},checkPagination:function(){var e=this;return e.options.pagination===!1?!1:void e.paginationWrapper.find(".owl-page").each(function(){t(this).data("owl-roundPages")===t(e.$owlItems[e.currentItem]).data("owl-roundPages")&&(e.paginationWrapper.find(".owl-page").removeClass("active"),t(this).addClass("active"))})},checkNavigation:function(){var t=this;return t.options.navigation===!1?!1:void(t.options.rewindNav===!1&&(0===t.currentItem&&0===t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.addClass("disabled")):0===t.currentItem&&0!==t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.removeClass("disabled")):t.currentItem===t.maximumItem?(t.buttonPrev.removeClass("disabled"),t.buttonNext.addClass("disabled")):0!==t.currentItem&&t.currentItem!==t.maximumItem&&(t.buttonPrev.removeClass("disabled"),t.buttonNext.removeClass("disabled"))))},updateControls:function(){var t=this;t.updatePagination(),t.checkNavigation(),t.owlControls&&(t.options.items>=t.itemsAmount?t.owlControls.hide():t.owlControls.show())},destroyControls:function(){var t=this;t.owlControls&&t.owlControls.remove()},next:function(t){var e=this;if(e.isTransition)return!1;if(e.currentItem+=e.options.scrollPerPage===!0?e.options.items:1,e.currentItem>e.maximumItem+(e.options.scrollPerPage===!0?e.options.items-1:0)){if(e.options.rewindNav!==!0)return e.currentItem=e.maximumItem,!1;e.currentItem=0,t="rewind"}e.goTo(e.currentItem,t)},prev:function(t){var e=this;if(e.isTransition)return!1;if(e.options.scrollPerPage===!0&&e.currentItem>0&&e.currentItem=s.maximumItem?t=s.maximumItem:0>=t&&(t=0),s.currentItem=s.owl.currentItem=t,s.options.transitionStyle!==!1&&"drag"!==i&&1===s.options.items&&s.browser.support3d===!0?(s.swapSpeed(0),s.browser.support3d===!0?s.transition3d(s.positionsInArray[t]):s.css2slide(s.positionsInArray[t],1),s.afterGo(),s.singleItemTransition(),!1):(n=s.positionsInArray[t],s.browser.support3d===!0?(s.isCss3Finish=!1,o===!0?(s.swapSpeed("paginationSpeed"),e.setTimeout(function(){s.isCss3Finish=!0},s.options.paginationSpeed)):"rewind"===o?(s.swapSpeed(s.options.rewindSpeed),e.setTimeout(function(){s.isCss3Finish=!0},s.options.rewindSpeed)):(s.swapSpeed("slideSpeed"),e.setTimeout(function(){s.isCss3Finish=!0},s.options.slideSpeed)),s.transition3d(n)):o===!0?s.css2slide(n,s.options.paginationSpeed):"rewind"===o?s.css2slide(n,s.options.rewindSpeed):s.css2slide(n,s.options.slideSpeed),void s.afterGo()))},jumpTo:function(t){var e=this;"function"==typeof e.options.beforeMove&&e.options.beforeMove.apply(this,[e.$elem]),t>=e.maximumItem||-1===t?t=e.maximumItem:0>=t&&(t=0),e.swapSpeed(0),e.browser.support3d===!0?e.transition3d(e.positionsInArray[t]):e.css2slide(e.positionsInArray[t],1),e.currentItem=e.owl.currentItem=t,e.afterGo()},afterGo:function(){var t=this;t.prevArr.push(t.currentItem),t.prevItem=t.owl.prevItem=t.prevArr[t.prevArr.length-2],t.prevArr.shift(0),t.prevItem!==t.currentItem&&(t.checkPagination(),t.checkNavigation(),t.eachMoveUpdate(),t.options.autoPlay!==!1&&t.checkAp()),"function"==typeof t.options.afterMove&&t.prevItem!==t.currentItem&&t.options.afterMove.apply(this,[t.$elem])},stop:function(){var t=this;t.apStatus="stop",e.clearInterval(t.autoPlayInterval)},checkAp:function(){var t=this;"stop"!==t.apStatus&&t.play()},play:function(){var t=this;return t.apStatus="play",t.options.autoPlay===!1?!1:(e.clearInterval(t.autoPlayInterval),void(t.autoPlayInterval=e.setInterval(function(){t.next(!0)},t.options.autoPlay)))},swapSpeed:function(t){var e=this;"slideSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.slideSpeed)):"paginationSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.paginationSpeed)):"string"!=typeof t&&e.$owlWrapper.css(e.addCssSpeed(t))},addCssSpeed:function(t){return{"-webkit-transition":"all "+t+"ms ease","-moz-transition":"all "+t+"ms ease","-o-transition":"all "+t+"ms ease",transition:"all "+t+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(t){return{"-webkit-transform":"translate3d("+t+"px, 0px, 0px)","-moz-transform":"translate3d("+t+"px, 0px, 0px)","-o-transform":"translate3d("+t+"px, 0px, 0px)","-ms-transform":"translate3d("+t+"px, 0px, 0px)",transform:"translate3d("+t+"px, 0px,0px)"}},transition3d:function(t){var e=this;e.$owlWrapper.css(e.doTranslate(t))},css2move:function(t){var e=this;e.$owlWrapper.css({left:t})},css2slide:function(t,e){var o=this;o.isCssFinish=!1,o.$owlWrapper.stop(!0,!0).animate({left:t},{duration:e||o.options.slideSpeed,complete:function(){o.isCssFinish=!0}})},checkBrowser:function(){var t,i,n,s,a=this,r="translate3d(0px, 0px, 0px)",l=o.createElement("div");l.style.cssText=" -moz-transform:"+r+"; -ms-transform:"+r+"; -o-transform:"+r+"; -webkit-transform:"+r+"; transform:"+r,t=/translate3d\(0px, 0px, 0px\)/g,i=l.style.cssText.match(t),n=null!==i&&i.length>=1,s="ontouchstart"in e||e.navigator.msMaxTouchPoints,a.browser={support3d:n,isTouch:s}},moveEvents:function(){var t=this;(t.options.mouseDrag!==!1||t.options.touchDrag!==!1)&&(t.gestures(),t.disabledEvents())},eventTypes:function(){var t=this,e=["s","e","x"];t.ev_types={},t.options.mouseDrag===!0&&t.options.touchDrag===!0?e=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:t.options.mouseDrag===!1&&t.options.touchDrag===!0?e=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:t.options.mouseDrag===!0&&t.options.touchDrag===!1&&(e=["mousedown.owl","mousemove.owl","mouseup.owl"]),t.ev_types.start=e[0],t.ev_types.move=e[1],t.ev_types.end=e[2]},disabledEvents:function(){var e=this;e.$elem.on("dragstart.owl",function(t){t.preventDefault()}),e.$elem.on("mousedown.disableTextSelect",function(e){return t(e.target).is("input, textarea, select, option")})},gestures:function(){function i(t){if(void 0!==t.touches)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(void 0===t.touches){if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY};if(void 0===t.pageX)return{x:t.clientX,y:t.clientY}}}function n(e){"on"===e?(t(o).on(l.ev_types.move,a),t(o).on(l.ev_types.end,r)):"off"===e&&(t(o).off(l.ev_types.move),t(o).off(l.ev_types.end))}function s(o){var s,a=o.originalEvent||o||e.event;if(3===a.which)return!1;if(!(l.itemsAmount<=l.options.items)){if(l.isCssFinish===!1&&!l.options.dragBeforeAnimFinish)return!1;if(l.isCss3Finish===!1&&!l.options.dragBeforeAnimFinish)return!1;l.options.autoPlay!==!1&&e.clearInterval(l.autoPlayInterval),l.browser.isTouch===!0||l.$owlWrapper.hasClass("grabbing")||l.$owlWrapper.addClass("grabbing"),l.newPosX=0,l.newRelativeX=0,t(this).css(l.removeTransition()),s=t(this).position(),p.relativePos=s.left,p.offsetX=i(a).x-s.left,p.offsetY=i(a).y-s.top,n("on"),p.sliding=!1,p.targetElement=a.target||a.srcElement}}function a(n){var s,a,r=n.originalEvent||n||e.event;l.newPosX=i(r).x-p.offsetX,l.newPosY=i(r).y-p.offsetY,l.newRelativeX=l.newPosX-p.relativePos,"function"==typeof l.options.startDragging&&p.dragging!==!0&&0!==l.newRelativeX&&(p.dragging=!0,l.options.startDragging.apply(l,[l.$elem])),(l.newRelativeX>8||l.newRelativeX<-8)&&l.browser.isTouch===!0&&(void 0!==r.preventDefault?r.preventDefault():r.returnValue=!1,p.sliding=!0),(l.newPosY>10||l.newPosY<-10)&&p.sliding===!1&&t(o).off("touchmove.owl"),s=function(){return l.newRelativeX/5},a=function(){return l.maximumPixels+l.newRelativeX/5},l.newPosX=Math.max(Math.min(l.newPosX,s()),a()),l.browser.support3d===!0?l.transition3d(l.newPosX):l.css2move(l.newPosX)}function r(o){var i,s,a,r=o.originalEvent||o||e.event;r.target=r.target||r.srcElement,p.dragging=!1,l.browser.isTouch!==!0&&l.$owlWrapper.removeClass("grabbing"),l.dragDirection=l.owl.dragDirection=l.newRelativeX<0?"left":"right",0!==l.newRelativeX&&(i=l.getNewPosition(),l.goTo(i,!1,"drag"),p.targetElement===r.target&&l.browser.isTouch!==!0&&(t(r.target).on("click.disable",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t(e.target).off("click.disable")}),s=t._data(r.target,"events").click,a=s.pop(),s.splice(0,0,a))),n("off")}var l=this,p={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};l.isCssFinish=!0,l.$elem.on(l.ev_types.start,".owl-wrapper",s)},getNewPosition:function(){var t=this,e=t.closestItem();return e>t.maximumItem?(t.currentItem=t.maximumItem,e=t.maximumItem):t.newPosX>=0&&(e=0,t.currentItem=0),e},closestItem:function(){var e=this,o=e.options.scrollPerPage===!0?e.pagesInArray:e.positionsInArray,i=e.newPosX,n=null;return t.each(o,function(s,a){i-e.itemWidth/20>o[s+1]&&i-e.itemWidth/20(o[s+1]||o[s]-e.itemWidth)&&"right"===e.moveDirection()&&(e.options.scrollPerPage===!0?(n=o[s+1]||o[o.length-1],e.currentItem=t.inArray(n,e.positionsInArray)):(n=o[s+1],e.currentItem=s+1))}),e.currentItem},moveDirection:function(){var t,e=this;return e.newRelativeX<0?(t="right",e.playDirection="next"):(t="left",e.playDirection="prev"),t},customEvents:function(){var t=this;t.$elem.on("owl.next",function(){t.next()}),t.$elem.on("owl.prev",function(){t.prev()}),t.$elem.on("owl.play",function(e,o){t.options.autoPlay=o,t.play(),t.hoverStatus="play"}),t.$elem.on("owl.stop",function(){t.stop(),t.hoverStatus="stop"}),t.$elem.on("owl.goTo",function(e,o){t.goTo(o)}),t.$elem.on("owl.jumpTo",function(e,o){t.jumpTo(o)})},stopOnHover:function(){var t=this;t.options.stopOnHover===!0&&t.browser.isTouch!==!0&&t.options.autoPlay!==!1&&(t.$elem.on("mouseover",function(){t.stop()}),t.$elem.on("mouseout",function(){"stop"!==t.hoverStatus&&t.play()}))},lazyLoad:function(){var e,o,i,n,s,a=this;if(a.options.lazyLoad===!1)return!1;for(e=0;e=a.currentItem:!0,s&&i=r?e.setTimeout(n,100):i()}var s,a=this,r=0;"DIV"===o.prop("tagName")?(o.css("background-image","url("+o.data("src")+")"),s=!0):o[0].src=o.data("src"),n()},autoHeight:function(){function o(){var o=t(s.$owlItems[s.currentItem]).height();s.wrapperOuter.css("height",o+"px"),s.wrapperOuter.hasClass("autoHeight")||e.setTimeout(function(){s.wrapperOuter.addClass("autoHeight")},0)}function i(){n+=1,s.completeImg(a.get(0))?o():100>=n?e.setTimeout(i,100):s.wrapperOuter.css("height","")}var n,s=this,a=t(s.$owlItems[s.currentItem]).find("img");void 0!==a.get(0)?(n=0,i()):o()},completeImg:function(t){var e;return t.complete?(e=typeof t.naturalWidth,"undefined"!==e&&0===t.naturalWidth?!1:!0):!1},onVisibleItems:function(){var e,o=this;for(o.options.addClassActive===!0&&o.$owlItems.removeClass("active"),o.visibleItems=[],e=o.currentItem;e=i.$userItems.length||-1===o?i.$userItems.eq(-1).after(t):i.$userItems.eq(o).before(t),void i.setVars()):!1},removeItem:function(t){var e,o=this;return 0===o.$elem.children().length?!1:(e=void 0===t||-1===t?-1:t,o.unWrap(),o.$userItems.eq(e).remove(),void o.setVars())}};t.fn.owlCarousel=function(e){return this.each(function(){if(t(this).data("owl-init")===!0)return!1;t(this).data("owl-init",!0);var o=Object.create(i);o.init(e,this),t.data(this,"owlCarousel",o)})},t.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:e,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document);(function(a){a.fn.extend({customSelect:function(c){if(typeof document.body.style.maxHeight==="undefined"){return this}var e={customClass:"customSelect",mapClass:true,mapStyle:true},c=a.extend(e,c),d=c.customClass,f=function(h,k){var g=h.find(":selected"),j=k.children(":first"),i=g.html()||" ";j.html(i);if(g.attr("disabled")){k.addClass(b("DisabledOption"))}else{k.removeClass(b("DisabledOption"))}setTimeout(function(){k.removeClass(b("Open"));a(document).off("mouseup.customSelect")},60)},b=function(g){return d+g};return this.each(function(){var g=a(this),i=a("").addClass(b("Inner")),h=a("");g.after(h.append(i));h.addClass(d);if(c.mapClass){h.addClass(g.attr("class"))}if(c.mapStyle){h.attr("style",g.attr("style"))}g.addClass("hasCustomSelect").on("render.customSelect",function(){f(g,h);g.css("width","");var k=parseInt(g.outerWidth(),10)-(parseInt(h.outerWidth(),10)-parseInt(h.width(),10));h.css({display:"inline-block"});var j=h.outerHeight();if(g.attr("disabled")){h.addClass(b("Disabled"))}else{h.removeClass(b("Disabled"))}i.css({width:k,display:"inline-block"});g.css({"-webkit-appearance":"menulist-button",width:h.outerWidth(),position:"absolute",opacity:0,height:j,fontSize:h.css("font-size")})}).on("change.customSelect",function(){h.addClass(b("Changed"));f(g,h)}).on("keyup.customSelect",function(j){if(!h.hasClass(b("Open"))){g.trigger("blur.customSelect");g.trigger("focus.customSelect")}else{if(j.which==13||j.which==27){f(g,h)}}}).on("mousedown.customSelect",function(){h.removeClass(b("Changed"))}).on("mouseup.customSelect",function(j){if(!h.hasClass(b("Open"))){if(a("."+b("Open")).not(h).length>0&&typeof InstallTrigger!=="undefined"){g.trigger("focus.customSelect")}else{h.addClass(b("Open"));j.stopPropagation();a(document).one("mouseup.customSelect",function(k){if(k.target!=g.get(0)&&a.inArray(k.target,g.find("*").get())<0){g.trigger("blur.customSelect")}else{f(g,h)}})}}}).on("focus.customSelect",function(){h.removeClass(b("Changed")).addClass(b("Focus"))}).on("blur.customSelect",function(){h.removeClass(b("Focus")+" "+b("Open"))}).on("mouseenter.customSelect",function(){h.addClass(b("Hover"))}).on("mouseleave.customSelect",function(){h.removeClass(b("Hover"))}).trigger("render.customSelect")})}})})(jQuery);(function(_,$){$.ceEvent('on','ce.commoninit',function(context){if($('.energo-searchbox').data("rendered")!=true){$('.energo-searchbox').data("rendered",true);$('.energo-searchbox').customSelect({customClass:'energo-searchbox-span'});$('.energo-searchbox-span').append('');}});}(Tygh,Tygh.$));