function parallaxImgScroll(n){function e(){$(".parallax-img-container").each(function(){var a=$(this).width(),c=$(this).height(),n=$(this).children(),l,e,o,s,u,f,h;for(i=0;i<n.length;i++)l=$(n[i]).attr("class"),l!="parallax-move"?$(n[i]).css({"z-index":100,position:"relative"}):($(n[i]).hasData("ps-speed")?o=$(n[i]).data("ps-speed"):(e=Math.floor(Math.random()*100+1),o=e<10?"0.0"+e:"0."+e),s=$(n[i]).hasData("ps-vertical-position")?$(n[i]).data("ps-vertical-position"):Math.floor(Math.random()*(c-c/4)+1),$(n[i]).hasData("ps-horizontal-position")?(u=$(n[i]).data("ps-horizontal-position"),f=undefined):$(n[i]).hasData("ps-horizontal-position-right")?(f=$(n[i]).data("ps-horizontal-position-right"),u=undefined):(u=Math.floor(Math.random()*(a-100)+50),f=undefined),h=$(n[i]).hasData("ps-z-index")?$(n[i]).data("ps-z-index"):Math.floor(Math.random()*10+1),t.push({element:$(n[i]),scrollSpeed:o,horizontalPagePosition:u,horizontalPagePositionRight:f,verticalPagePosition:s,opacity:r.initialOpacity,privateScrolled:0}),u?$(n[i]).css({bottom:s,left:u,"z-index":h}):$(n[i]).css({bottom:s,right:f,"z-index":h}))});$(".parallax-img-container").css({position:"relative",overflow:"hidden"})}function o(){function o(n,t){return[n+t]<u?!1:[u+$(window).height()]<n?!1:!0}for(u=$(window).scrollTop(),i=0;i<t.length;i++){alpha=t[i].opacity;var n=$(t[i].element).offset().top,e=$(t[i].element).height();o(n,e)&&(f<u?(r.initialOpacity!=1?(alpha=alpha+r.opacitySpeed,alpha>1&&(alpha=1)):alpha=r.initialOpacity,t[i].privateScrolled=t[i].privateScrolled+(u-f)):u==0?(alpha=r.initialOpacity,t[i].privateScrolled=0):(r.initialOpacity!=1?(alpha=alpha-r.opacitySpeed,alpha<r.initialOpacity&&(alpha=r.initialOpacity)):alpha=r.initialOpacity,t[i].privateScrolled=t[i].privateScrolled-(f-u)),$(t[i].element).css({opacity:alpha,bottom:t[i].verticalPagePosition+t[i].privateScrolled*t[i].scrollSpeed+"px"}),t[i].opacity=alpha)}f=u}var r=$.extend({},{initialOpacity:0,opacitySpeed:.02,pageLoader:!1},n),t=[],f=0,u=0;$(document).ready(function(){if($(".parallax-move").css({opacity:0,position:"absolute"}),r.pageLoader){var n=$(window).height()/2;$("body").wrapInner("<div class='parallaxImg-page'><\/div>");$("body").css({height:"100%",width:"100%"});$("body").prepend("<div class='parallaxImg-loading-page'><\/div>");$("body").toggleClass("loadingPage");$(".parallaxImg-loading-page").css({position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:"#333"});$(".parallaxImg-loading-page").prepend("<div class='parallaxImg-loading-text'><img src='../images/loading.gif' /><\/div>");$(".parallaxImg-loading-text").css({width:"150px","margin-left":"auto","margin-right":"auto","margin-top":"-100px","text-align":"center","padding-top":n+"px"});$(".parallaxImg-page").hide()}});$(window).on("load",function(){$(".parallax-move").css({opacity:r.initialOpacity});r.pageLoader?($(".parallaxImg-loading-page").fadeOut("600",function(){$(".parallaxImg-page").fadeIn();$(this).remove();e()}),$("body").removeClass("loadingPage")):e();$(window).bind("scroll",function(){o()})})}function expandCollapse(){$(".toggleTitle").click(function(){$(this).parent().find($(".toggleContent")).slideToggle();$(this).toggleClass("active");$(".toggleContent").not($(this).parent().find($(".toggleContent"))).slideUp();$(".toggleTitle").not($(this)).removeClass("active")})}function tabsTrigger(){$(".tabsLinks a").click(function(){var t,n;$(".entries .entry").removeClass("aos-animate");t=$(this);console.log(t.text());n=t.closest(".tabsMain");n.find("> .tabsHolder > .tab").hide();n.find(" .tabsLinks a").not($(this)).removeClass("active");$(this).addClass("active");n.find("> .tabsHolder > .tab:eq("+$(this).index()+")").fadeIn("200");setTimeout(function(){AOS.init()},500)});$(".tabsMain").each(function(){$(this).find(".tabsLinks a:first").click()});$(".twoTabs .bgTabs .tabsLinks a:eq(1)").click(function(){$(this).parents(".twoTabs").find(".tabsHolder .tabsMain a:eq(0)").click()})}function customDrpDwn(){document.getElementById("myDropdown").classList.toggle("show")}function HostRedirection(){$(".redirectiondv a").not($(".maplink")).click(function(n){var e=(window.location.protocol+"//"+window.location.hostname).toString().toLowerCase(),i=$(this).attr("href"),t=i!=null&&i!==""&&i.indexOf("javascript")===-1&&i.indexOf("ContentPhotos")==-1&&i.indexOf("ContentFiles")==-1?i.toString():"",u="",r,f;t!==""&&(t.toLowerCase().indexOf("http://")>-1?u=t.substring(0,t.toLowerCase().replace("http://","").toString().indexOf("/")+7).toLowerCase():t.toLowerCase().indexOf("https://")>-1&&(u=t.substring(0,t.toLowerCase().replace("https://","").toString().indexOf("/")+8).toLowerCase()),u?e===u?window.location.href.toLowerCase().indexOf("home")<0&&window.location.href.toLowerCase().indexOf("default")<0&&(n.preventDefault(),r="_self",$(this).attr("target")!=undefined&&$(this).attr("target")!==""&&(r=$(this).attr("target")),window.open(t,r)):(n.preventDefault(),u===""?window.location.href=t:document.cookie.indexOf("DontShowRedirectionPopup")>-1?window.open(t,$(this).attr("target")):(f=GetHostSiteName(t),$("#siteName").text(f),typeof dataLayer!="undefined"&&dataLayer.push({event:"externalLink",language:$("#DataLayerLanguage").val(),segment:$("#DataLayerSegment").val(),category:$("#DataLayerCategory").val(),subCategory:$("#DataLayerSubCategory").val(),products:$("#DataLayerProducts").val(),linkName:f,"customer type":"new","login status":"no",customerID:""}),$(".popupcontinue").attr("href",t),$(this).attr("target")?$(".popupcontinue").attr("target",$(this).attr("target")):$(".popupcontinue").attr("target","_blank"),$("#aChangeHostPopUp").click())):window.location.href.toLowerCase().indexOf("home")<0&&window.location.href.toLowerCase().indexOf("default")<0&&(n.preventDefault(),r="_self",$(this).attr("target")!=undefined&&$(this).attr("target")!==""&&(r=$(this).attr("target")),window.open(t,r)))})}function GetHostSiteName(n){return n.toLowerCase().indexOf("/lebanon/")>-1?"Bank Audi Lebanon":n.toLowerCase().indexOf("/group/")>-1?"Bank Audi Group":n.toLowerCase().indexOf("/egypt/")>-1?"Bank Audi Egypt":n.toLowerCase().indexOf("/jordan/")>-1?"Bank Audi Jordan":n.toLowerCase().indexOf("/france/")>-1?"Bank Audi France":n.toLowerCase().indexOf("/sudan/")>-1?"Bank Audi Sudan":n.toLowerCase().indexOf("/basy/")>-1?"BASY Bank":n.toLowerCase().indexOf("/private/")>-1?"BANK AUDI PRIVATE BANK":n.toLowerCase().indexOf("/careers/")>-1?"Bank Audi Careers":n.toLowerCase().indexOf("tap2pay")>-1?"Tap 2 Pay":n.toLowerCase().indexOf("rewards")>-1?"Bank Audi Rewards":n.toLowerCase().indexOf("eventclub")>-1?"Bank Audi Event club":n.toLowerCase().indexOf("odeabank")>-1?"ODEABANK":n.toLowerCase().indexOf("bankaudigroup.com/iraq")>-1?"BANK AUDI - IRAQ BRANCHES":window.Resources.OutsideBankAudi}function PdfRedirect(){$("a").click(function(){var n=$(this).attr("href");if(n&&openFile(n)===!0)return window.open(n),!1})}function openFile(n){try{var t=n.substr(n.lastIndexOf(".")+1);switch(t){case"pdf":return!0;default:return!1}}catch(i){return console.log(i),!1}}var submenuTopMobile;$(window).on("beforeunload",function(){});$.fn.hasData=function(n){return typeof $(this).data(n)!="undefined"};$(document).ready(function(){function i(n){n.wrap("<div class='table-wrapper' />");var t=n.clone();t.find("td:not(:first-child), th:not(:first-child)").css("display","none");t.removeClass("responsive");n.closest(".table-wrapper").append(t);t.wrap("<div class='pinned' />");n.wrap("<div class='scrollable' />")}function r(n){n.closest(".table-wrapper").find(".pinned").remove();n.unwrap();n.unwrap()}var n=!1,t=function(){if($(window).width()<=768&&!n)return n=!0,$("table.responsive").each(function(n,t){i($(t))}),!0;n&&$(window).width()>767&&(n=!1,$("table.responsive").each(function(n,t){r($(t))}))};$(window).on("load",function(){t});$(window).bind("resize",t)});!function(n,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():n.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function t(){}var n=t.prototype;return n.on=function(n,t){if(n&&t){var i=this._events=this._events||{},r=i[n]=i[n]||[];return-1==r.indexOf(t)&&r.push(t),this}},n.once=function(n,t){if(n&&t){this.on(n,t);var i=this._onceEvents=this._onceEvents||{},r=i[n]=i[n]||{};return r[t]=!0,this}},n.off=function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return r=i.indexOf(t),-1!=r&&i.splice(r,1),this},n.emitEvent=function(n,t){var r=this._events&&this._events[n],u,i,f,e;if(r&&r.length){for(u=0,i=r[u],t=t||[],f=this._onceEvents&&this._onceEvents[n];i;)e=f&&f[i],e&&(this.off(n,i),delete f[i]),i.apply(this,t),u+=e?0:1,i=r[u];return this}},n.allOff=n.removeAllListeners=function(){delete this._events;delete this._onceEvents},t}),function(n,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(n,i)}):"object"==typeof module&&module.exports?module.exports=t(n,require("ev-emitter")):n.imagesLoaded=t(n,n.EvEmitter)}("undefined"!=typeof window?window:this,function(n,t){function e(n,t){for(var i in t)n[i]=t[i];return n}function h(n){var t=[],i;if(Array.isArray(n))t=n;else if("number"==typeof n.length)for(i=0;i<n.length;i++)t.push(n[i]);else t.push(n);return t}function i(n,t,r){return this instanceof i?("string"==typeof n&&(n=document.querySelectorAll(n)),this.elements=h(n),this.options=e({},this.options),"function"==typeof t?r=t:e(this.options,t),r&&this.on("always",r),this.getImages(),f&&(this.jqDeferred=new f.Deferred),void setTimeout(function(){this.check()}.bind(this))):new i(n,t,r)}function r(n){this.img=n}function u(n,t){this.url=n;this.element=t;this.img=new Image}var f=n.jQuery,o=n.console,s;return i.prototype=Object.create(t.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(n){var i,r,t,f,u,e;if("IMG"==n.nodeName&&this.addImage(n),this.options.background===!0&&this.addElementBackgroundImages(n),i=n.nodeType,i&&s[i]){for(r=n.querySelectorAll("img"),t=0;t<r.length;t++)f=r[t],this.addImage(f);if("string"==typeof this.options.background)for(u=n.querySelectorAll(this.options.background),t=0;t<u.length;t++)e=u[t],this.addElementBackgroundImages(e)}},s={1:!0,9:!0,11:!0},i.prototype.addElementBackgroundImages=function(n){var i=getComputedStyle(n),r,t,u;if(i)for(r=/url\((['"])?(.*?)\1\)/gi,t=r.exec(i.backgroundImage);null!==t;)u=t&&t[2],u&&this.addBackground(u,n),t=r.exec(i.backgroundImage)},i.prototype.addImage=function(n){var t=new r(n);this.images.push(t)},i.prototype.addBackground=function(n,t){var i=new u(n,t);this.images.push(i)},i.prototype.check=function(){function n(n,i,r){setTimeout(function(){t.progress(n,i,r)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",n);t.check()}):void this.complete()},i.prototype.progress=function(n,t,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;this.emitEvent("progress",[this,n,t]);this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,n);this.progressedCount==this.images.length&&this.complete();this.options.debug&&o&&o.log("progress: "+i,n,t)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred)&&(n=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[n](this))},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var n=this.getIsImageComplete();return n?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(n,t){this.isLoaded=n;this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.prototype.onload=function(){this.confirm(!0,"onload");this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror");this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},u.prototype=Object.create(r.prototype),u.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var n=this.getIsImageComplete();n&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},u.prototype.confirm=function(n,t){this.isLoaded=n;this.emitEvent("progress",[this,this.element,t])},i.makeJQueryPlugin=function(t){t=t||n.jQuery;t&&(f=t,f.fn.imagesLoaded=function(n,t){var r=new i(this,n,t);return r.jqDeferred.promise(f(this))})},i.makeJQueryPlugin(),i}),function(n){"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,document,window,navigator)}):"object"==typeof exports?n(require("jquery"),document,window,navigator):n(jQuery,document,window,navigator)}(function(n,t,i,r,u){var o=0,f=function(){var t=r.userAgent,i=/msie\s\d+/i;return 0<t.search(i)&&(t=i.exec(t).toString(),t=t.split(" ")[1],9>t)?(n("html").addClass("lt-ie9"),!0):!1}(),e;Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i=[].slice,r,u;if("function"!=typeof t)throw new TypeError;return r=i.call(arguments,1),u=function(){var f,e;return this instanceof u?(f=function(){},f.prototype=t.prototype,f=new f,e=t.apply(f,r.concat(i.call(arguments))),Object(e)===e?e:f):t.apply(n,r.concat(i.call(arguments)))},u});Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var u,r,i;if(null==this)throw new TypeError('"this" is null or not defined');if((u=Object(this),r=u.length>>>0,0===r)||(i=+t||0,Infinity===Math.abs(i)&&(i=0),i>=r))return-1;for(i=Math.max(0<=i?i:r-Math.abs(i),0);i<r;){if(i in u&&u[i]===n)return i;i++}return-1});e=function(r,f,e){var o,s;this.VERSION="2.2.0";this.input=r;this.plugin_count=e;this.old_to=this.old_from=this.update_tm=this.calc_count=this.current_plugin=0;this.raf_id=this.old_min_interval=null;this.no_diapason=this.force_redraw=this.dragging=!1;this.has_tab_index=!0;this.is_update=this.is_key=!1;this.is_start=!0;this.is_click=this.is_resize=this.is_active=this.is_finish=!1;f=f||{};this.$cache={win:n(i),body:n(t.body),input:n(r),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]};this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]};this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};o=this.$cache.input;r=o.prop("value");e={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null};"INPUT"!==o[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",o[0]);o={type:o.data("type"),min:o.data("min"),max:o.data("max"),from:o.data("from"),to:o.data("to"),step:o.data("step"),min_interval:o.data("minInterval"),max_interval:o.data("maxInterval"),drag_interval:o.data("dragInterval"),values:o.data("values"),from_fixed:o.data("fromFixed"),from_min:o.data("fromMin"),from_max:o.data("fromMax"),from_shadow:o.data("fromShadow"),to_fixed:o.data("toFixed"),to_min:o.data("toMin"),to_max:o.data("toMax"),to_shadow:o.data("toShadow"),prettify_enabled:o.data("prettifyEnabled"),prettify_separator:o.data("prettifySeparator"),force_edges:o.data("forceEdges"),keyboard:o.data("keyboard"),grid:o.data("grid"),grid_margin:o.data("gridMargin"),grid_num:o.data("gridNum"),grid_snap:o.data("gridSnap"),hide_min_max:o.data("hideMinMax"),hide_from_to:o.data("hideFromTo"),prefix:o.data("prefix"),postfix:o.data("postfix"),max_postfix:o.data("maxPostfix"),decorate_both:o.data("decorateBoth"),values_separator:o.data("valuesSeparator"),input_values_separator:o.data("inputValuesSeparator"),disable:o.data("disable"),block:o.data("block"),extra_classes:o.data("extraClasses")};o.values=o.values&&o.values.split(",");for(s in o)o.hasOwnProperty(s)&&(o[s]!==u&&""!==o[s]||delete o[s]);r!==u&&""!==r&&(r=r.split(o.input_values_separator||f.input_values_separator||";"),r[0]&&r[0]==+r[0]&&(r[0]=+r[0]),r[1]&&r[1]==+r[1]&&(r[1]=+r[1]),f&&f.values&&f.values.length?(e.from=r[0]&&f.values.indexOf(r[0]),e.to=r[1]&&f.values.indexOf(r[1])):(e.from=r[0]&&+r[0],e.to=r[1]&&+r[1]));n.extend(e,f);n.extend(e,o);this.options=e;this.update_check={};this.validate();this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null};this.init()};e.prototype={init:function(n){this.no_diapason=!1;this.coords.p_step=this.convertToPercent(this.options.step,!0);this.target="base";this.toggleInput();this.append();this.setMinMax();n?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart());this.updateScene()},append:function(){this.$cache.input.before('<span class="irs js-irs-'+this.plugin_count+" "+this.options.extra_classes+'"><\/span>');this.$cache.input.prop("readonly",!0);this.$cache.cont=this.$cache.input.prev();this.result.slider=this.$cache.cont;this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"><span class="irs-line-left"><\/span><span class="irs-line-mid"><\/span><span class="irs-line-right"><\/span><\/span><span class="irs-min">0<\/span><span class="irs-max">1<\/span><span class="irs-from">0<\/span><span class="irs-to">0<\/span><span class="irs-single">0<\/span><\/span><span class="irs-grid"><\/span><span class="irs-bar"><\/span>');this.$cache.rs=this.$cache.cont.find(".irs");this.$cache.min=this.$cache.cont.find(".irs-min");this.$cache.max=this.$cache.cont.find(".irs-max");this.$cache.from=this.$cache.cont.find(".irs-from");this.$cache.to=this.$cache.cont.find(".irs-to");this.$cache.single=this.$cache.cont.find(".irs-single");this.$cache.bar=this.$cache.cont.find(".irs-bar");this.$cache.line=this.$cache.cont.find(".irs-line");this.$cache.grid=this.$cache.cont.find(".irs-grid");"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"><\/span><span class="irs-shadow shadow-single"><\/span><span class="irs-slider single"><\/span>'),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"><\/span><span class="irs-shadow shadow-to"><\/span><span class="irs-slider from"><\/span><span class="irs-slider to"><\/span>'),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler());this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none");this.appendGrid();this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents());this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask());this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var n=this.options.max,t=this.options.to;this.options.from>this.options.min&&t===n?this.$cache.s_from.addClass("type_last"):t<n&&this.$cache.s_to.addClass("type_last")},changeLevel:function(n){switch(n){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake);this.$cache.s_from.addClass("state_hover");this.$cache.s_from.addClass("type_last");this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake);this.$cache.s_to.addClass("state_hover");this.$cache.s_to.addClass("type_last");this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake);this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer);this.$cache.s_to.removeClass("type_last");this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"><\/span>');this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask");this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove();this.$cache.cont=null;this.$cache.line.off("keydown.irs_"+this.plugin_count);this.$cache.body.off("touchmove.irs_"+this.plugin_count);this.$cache.body.off("mousemove.irs_"+this.plugin_count);this.$cache.win.off("touchend.irs_"+this.plugin_count);this.$cache.win.off("mouseup.irs_"+this.plugin_count);f&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count));this.$cache.grid_labels=[];this.coords.big=[];this.coords.big_w=[];this.coords.big_p=[];this.coords.big_x=[];cancelAnimationFrame(this.raf_id)},bindEvents:function(){if(!this.no_diapason){this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this));this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this));this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this));if(this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard)this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard"));f&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this)))}},pointerFocus:function(n){if(!this.target){var t="single"===this.options.type?this.$cache.single:this.$cache.from;n=t.offset().left;n+=t.width()/2-1;this.pointerClick("single",{preventDefault:function(){},pageX:n})}},pointerMove:function(n){this.dragging&&(this.coords.x_pointer=(n.pageX||n.originalEvent.touches&&n.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(t){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,f&&n("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(n.contains(this.$cache.cont[0],t.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(t,i){i.preventDefault();var r=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&("both"===t&&this.setTempMinInterval(),t||(t=this.target||"from"),this.current_plugin=this.plugin_count,this.target=t,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=r-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(t),f&&n("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(n,t){t.preventDefault();var i=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;2!==t.button&&(this.current_plugin=this.plugin_count,this.target=n,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(i-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(n,t){if(!(this.current_plugin!==this.plugin_count||t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)){switch(t.which){case 83:case 65:case 40:case 37:t.preventDefault();this.moveByKey(!1);break;case 87:case 68:case 38:case 39:t.preventDefault();this.moveByKey(!0)}return!0}},moveByKey:function(n){var i=this.coords.p_pointer,t=(this.options.max-this.options.min)/100,t=this.options.step/t;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*(n?i+t:i-t));this.is_key=!0;this.calc()},setMinMax:function(){if(this.options)if(this.options.hide_min_max)this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none";else{if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var n=this._prettify(this.options.min),t=this._prettify(this.options.max);this.result.min_pretty=n;this.result.max_pretty=t;this.$cache.min.html(this.decorate(n,this.options.min));this.$cache.max.html(this.decorate(t,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1);this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var n=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval);this.options.min_interval=n},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(n){var t,i;if(this.options&&(this.calc_count++,(10===this.calc_count||n)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();n=this.getHandleX();"both"===this.target&&(this.coords.p_gap=0,n=this.getHandleX());"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,n=this.getHandleX(),this.target=this.options.drag_interval?"both_one":this.chooseHandle(n));switch(this.target){case"base":t=(this.options.max-this.options.min)/100;n=(this.result.from-this.options.min)/t;t=(this.result.to-this.options.min)/t;this.coords.p_single_real=this.toFixed(n);this.coords.p_from_real=this.toFixed(n);this.coords.p_to_real=this.toFixed(t);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(n);this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(n);this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(n);this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;n=this.toFixed(n+.001*this.coords.p_handle);this.coords.p_from_real=this.convertToRealPercent(n)-this.coords.p_gap_left;this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.convertToRealPercent(n)+this.coords.p_gap_right;this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(!this.options.from_fixed&&!this.options.to_fixed){i=this.convertToRealPercent(n);n=this.result.to_percent-this.result.from_percent;var r=n/2,t=i-r,i=i+r;0>t&&(t=0,i=t+n);100<i&&(i=100,t=i-n);this.coords.p_from_real=this.calcWithStep(t);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.calcWithStep(i);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to]));this.calcMinMax();this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(0>this.coords.x_pointer||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(n){return n/(100-this.coords.p_handle)*100},convertToFakePercent:function(n){return n/100*(100-this.coords.p_handle)},getHandleX:function(){var t=100-this.coords.p_handle,n=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return 0>n?n=0:n>t&&(n=t),n},calcHandlePercent:function(){this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1);this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(n){return"single"===this.options.type?"single":n>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null);clearTimeout(this.update_tm);this.update_tm=null;this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1);this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%":(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%")),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_click=this.is_key=!1,this.callOnFinish()),this.is_finish=this.is_resize=this.is_update=!1),this.force_redraw=this.is_click=this.is_key=this.is_start=!1))},drawLabels:function(){var t,i,n,r;this.options&&(t=this.options.values.length,n=this.options.p_values,this.options.hide_from_to||("single"===this.options.type?(t?t=this.decorate(n[this.result.from]):(i=this._prettify(this.result.from),t=this.decorate(i,this.result.from)),this.$cache.single.html(t),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>99-this.labels.p_max?"hidden":"visible"):(t?(this.options.decorate_both?(t=this.decorate(n[this.result.from]),t+=this.options.values_separator,t+=this.decorate(n[this.result.to])):t=this.decorate(n[this.result.from]+this.options.values_separator+n[this.result.to]),i=this.decorate(n[this.result.from]),n=this.decorate(n[this.result.to])):(i=this._prettify(this.result.from),n=this._prettify(this.result.to),this.options.decorate_both?(t=this.decorate(i,this.result.from),t+=this.options.values_separator,t+=this.decorate(n,this.result.to)):t=this.decorate(i+this.options.values_separator+n,this.result.to),i=this.decorate(i,this.result.from),n=this.decorate(n,this.result.to)),this.$cache.single.html(t),this.$cache.from.html(i),this.$cache.to.html(n),this.calcLabels(),t=Math.min(this.labels.p_single_left,this.labels.p_from_left),i=this.labels.p_single_left+this.labels.p_single_fake,n=this.labels.p_to_left+this.labels.p_to_fake,r=Math.max(i,n),this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",r=n):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",r=Math.max(i,n))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),this.$cache.min[0].style.visibility=t<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=r>99-this.labels.p_max?"hidden":"visible")))},drawShadow:function(){var n=this.options,r=this.$cache,t="number"==typeof n.from_min&&!isNaN(n.from_min),i="number"==typeof n.from_max&&!isNaN(n.from_max),u="number"==typeof n.to_min&&!isNaN(n.to_min),f="number"==typeof n.to_max&&!isNaN(n.to_max);"single"===n.type?n.from_shadow&&(t||i)?(t=this.convertToPercent(t?n.from_min:n.min),i=this.convertToPercent(i?n.from_max:n.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,r.shad_single[0].style.display="block",r.shad_single[0].style.left=t+"%",r.shad_single[0].style.width=i+"%"):r.shad_single[0].style.display="none":(n.from_shadow&&(t||i)?(t=this.convertToPercent(t?n.from_min:n.min),i=this.convertToPercent(i?n.from_max:n.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,r.shad_from[0].style.display="block",r.shad_from[0].style.left=t+"%",r.shad_from[0].style.width=i+"%"):r.shad_from[0].style.display="none",n.to_shadow&&(u||f)?(u=this.convertToPercent(u?n.to_min:n.min),n=this.convertToPercent(f?n.to_max:n.max)-u,u=this.toFixed(u-this.coords.p_handle/100*u),n=this.toFixed(n-this.coords.p_handle/100*n),u+=this.coords.p_handle/2,r.shad_to[0].style.display="block",r.shad_to[0].style.left=u+"%",r.shad_to[0].style.width=n+"%"):r.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){if(this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart)if(this.options.scope)this.options.onStart.call(this.options.scope,this.result);else this.options.onStart(this.result)},callOnChange:function(){if(this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange)if(this.options.scope)this.options.onChange.call(this.options.scope,this.result);else this.options.onChange(this.result)},callOnFinish:function(){if(this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish)if(this.options.scope)this.options.onFinish.call(this.options.scope,this.result);else this.options.onFinish(this.result)},callOnUpdate:function(){if(this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate)if(this.options.scope)this.options.onUpdate.call(this.options.scope,this.result);else this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input");this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex");this.has_tab_index=!this.has_tab_index},convertToPercent:function(n,t){var i=this.options.max-this.options.min;return i?this.toFixed((t?n:n-this.options.min)/(i/100)):(this.no_diapason=!0,0)},convertToValue:function(n){var t=this.options.min,u=this.options.max,o=t.toString().split(".")[1],s=u.toString().split(".")[1],f,e,r=0,i=0;return 0===n?this.options.min:100===n?this.options.max:(o&&(r=f=o.length),s&&(r=e=s.length),f&&e&&(r=f>=e?f:e),0>t&&(i=Math.abs(t),t=+(t+i).toFixed(r),u=+(u+i).toFixed(r)),n=(u-t)/100*n+t,(t=this.options.step.toString().split(".")[1])?n=+n.toFixed(t.length):(n/=this.options.step,n*=this.options.step,n=+n.toFixed(0)),i&&(n-=i),i=t?+n.toFixed(t.length):this.toFixed(n),i<this.options.min?i=this.options.min:i>this.options.max&&(i=this.options.max),i)},calcWithStep:function(n){var t=Math.round(n/this.coords.p_step)*this.coords.p_step;return 100<t&&(t=100),100===n&&(t=100),this.toFixed(t)},checkMinInterval:function(n,t,i){var r=this.options;return r.min_interval?(n=this.convertToValue(n),t=this.convertToValue(t),"from"===i?t-n<r.min_interval&&(n=t-r.min_interval):n-t<r.min_interval&&(n=t+r.min_interval),this.convertToPercent(n)):n},checkMaxInterval:function(n,t,i){var r=this.options;return r.max_interval?(n=this.convertToValue(n),t=this.convertToValue(t),"from"===i?t-n>r.max_interval&&(n=t-r.max_interval):n-t>r.max_interval&&(n=t+r.max_interval),this.convertToPercent(n)):n},checkDiapason:function(n,t,i){n=this.convertToValue(n);var r=this.options;return"number"!=typeof t&&(t=r.min),"number"!=typeof i&&(i=r.max),n<t&&(n=t),n>i&&(n=i),this.convertToPercent(n)},toFixed:function(n){return n=n.toFixed(20),+n},_prettify:function(n){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(n):this.prettify(n):n},prettify:function(n){return n.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(n,t){return this.options.force_edges?(0>n?n=0:n>100-t&&(n=100-t),this.toFixed(n)):this.toFixed(n)},validate:function(){var n=this.options,t=this.result,u=n.values,f=u.length,r,i;if("string"==typeof n.min&&(n.min=+n.min),"string"==typeof n.max&&(n.max=+n.max),"string"==typeof n.from&&(n.from=+n.from),"string"==typeof n.to&&(n.to=+n.to),"string"==typeof n.step&&(n.step=+n.step),"string"==typeof n.from_min&&(n.from_min=+n.from_min),"string"==typeof n.from_max&&(n.from_max=+n.from_max),"string"==typeof n.to_min&&(n.to_min=+n.to_min),"string"==typeof n.to_max&&(n.to_max=+n.to_max),"string"==typeof n.grid_num&&(n.grid_num=+n.grid_num),n.max<n.min&&(n.max=n.min),f)for(n.p_values=[],n.min=0,n.max=f-1,n.step=1,n.grid_num=n.max,n.grid_snap=!0,r=0;r<f;r++)i=+u[r],isNaN(i)?i=u[r]:(u[r]=i,i=this._prettify(i)),n.p_values.push(i);("number"!=typeof n.from||isNaN(n.from))&&(n.from=n.min);("number"!=typeof n.to||isNaN(n.to))&&(n.to=n.max);"single"===n.type?(n.from<n.min&&(n.from=n.min),n.from>n.max&&(n.from=n.max)):(n.from<n.min&&(n.from=n.min),n.from>n.max&&(n.from=n.max),n.to<n.min&&(n.to=n.min),n.to>n.max&&(n.to=n.max),this.update_check.from&&(this.update_check.from!==n.from&&n.from>n.to&&(n.from=n.to),this.update_check.to!==n.to&&n.to<n.from&&(n.to=n.from)),n.from>n.to&&(n.from=n.to),n.to<n.from&&(n.to=n.from));("number"!=typeof n.step||isNaN(n.step)||!n.step||0>n.step)&&(n.step=1);"number"==typeof n.from_min&&n.from<n.from_min&&(n.from=n.from_min);"number"==typeof n.from_max&&n.from>n.from_max&&(n.from=n.from_max);"number"==typeof n.to_min&&n.to<n.to_min&&(n.to=n.to_min);"number"==typeof n.to_max&&n.from>n.to_max&&(n.to=n.to_max);t&&(t.min!==n.min&&(t.min=n.min),t.max!==n.max&&(t.max=n.max),(t.from<t.min||t.from>t.max)&&(t.from=n.from),(t.to<t.min||t.to>t.max)&&(t.to=n.to));("number"!=typeof n.min_interval||isNaN(n.min_interval)||!n.min_interval||0>n.min_interval)&&(n.min_interval=0);("number"!=typeof n.max_interval||isNaN(n.max_interval)||!n.max_interval||0>n.max_interval)&&(n.max_interval=0);n.min_interval&&n.min_interval>n.max-n.min&&(n.min_interval=n.max-n.min);n.max_interval&&n.max_interval>n.max-n.min&&(n.max_interval=n.max-n.min)},decorate:function(n,t){var r="",i=this.options;return i.prefix&&(r+=i.prefix),r+=n,i.max_postfix&&(i.values.length&&n===i.p_values[i.max]?(r+=i.max_postfix,i.postfix&&(r+=" ")):t===i.max&&(r+=i.max_postfix,i.postfix&&(r+=" "))),i.postfix&&(r+=i.postfix),r},updateFrom:function(){this.result.from=this.options.from;this.result.from_percent=this.convertToPercent(this.result.from);this.result.from_pretty=this._prettify(this.result.from);this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to;this.result.to_percent=this.convertToPercent(this.result.to);this.result.to_pretty=this._prettify(this.result.to);this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min;this.result.max=this.options.max;this.updateFrom();this.updateTo()},appendGrid:function(){var e,s,i,h,c;if(this.options.grid){var n=this.options,r,t=n.max-n.min,u=n.grid_num,f=4,o="";for(this.calcGridMargin(),n.grid_snap?50<t?(u=50/n.step,e=this.toFixed(n.step/.5)):(u=t/n.step,e=this.toFixed(n.step/(t/100))):e=this.toFixed(100/u),4<u&&(f=3),7<u&&(f=2),14<u&&(f=1),28<u&&(f=0),t=0;t<u+1;t++){for(s=f,i=this.toFixed(e*t),100<i&&(i=100),this.coords.big[t]=i,h=(i-e*(t-1))/(s+1),r=1;r<=s&&0!==i;r++)c=this.toFixed(i-h*r),o+='<span class="irs-grid-pol small" style="left: '+c+'%"><\/span>';o+='<span class="irs-grid-pol" style="left: '+i+'%"><\/span>';r=this.convertToValue(i);r=n.values.length?n.p_values[r]:this._prettify(r);o+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+i+'%">'+r+"<\/span>"}this.coords.big_num=Math.ceil(u+1);this.$cache.cont.addClass("irs-with-grid");this.$cache.grid.html(o);this.cacheGridLabels()}},cacheGridLabels:function(){for(var i=this.coords.big_num,t,n=0;n<i;n++)t=this.$cache.grid.find(".js-grid-text-"+n),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){for(var t=[],r=[],i=this.coords.big_num,n=0;n<i;n++)this.coords.big_w[n]=this.$cache.grid_labels[n].outerWidth(!1),this.coords.big_p[n]=this.toFixed(this.coords.big_w[n]/this.coords.w_rs*100),this.coords.big_x[n]=this.toFixed(this.coords.big_p[n]/2),t[n]=this.toFixed(this.coords.big[n]-this.coords.big_x[n]),r[n]=this.toFixed(t[n]+this.coords.big_p[n]);for(this.options.force_edges&&(t[0]<-this.coords.grid_gap&&(t[0]=-this.coords.grid_gap,r[0]=this.toFixed(t[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),r[i-1]>100+this.coords.grid_gap&&(r[i-1]=100+this.coords.grid_gap,t[i-1]=this.toFixed(r[i-1]-this.coords.big_p[i-1]),this.coords.big_x[i-1]=this.toFixed(this.coords.big_p[i-1]-this.coords.grid_gap))),this.calcGridCollision(2,t,r),this.calcGridCollision(4,t,r),n=0;n<i;n++)t=this.$cache.grid_labels[n][0],this.coords.big_x[n]!==Number.POSITIVE_INFINITY&&(t.style.marginLeft=-this.coords.big_x[n]+"%")},calcGridCollision:function(n,t,i){for(var f=this.coords.big_num,u,e,r=0;r<f;r+=n){if(u=r+n/2,u>=f)break;e=this.$cache.grid_labels[u][0];e.style.visibility=i[r]<=t[u]?"visible":"hidden"}},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(t){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=n.extend(this.options,t),this.validate(),this.updateResult(t),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),n.data(this.input,"ionRangeSlider",null),this.remove(),this.options=this.input=null)}};n.fn.ionRangeSlider=function(t){return this.each(function(){n.data(this,"ionRangeSlider")||n.data(this,"ionRangeSlider",new e(this,t,o++))})},function(){for(var r=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!i.requestAnimationFrame;++n)i.requestAnimationFrame=i[t[n]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[n]+"CancelAnimationFrame"]||i[t[n]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(n){var t=(new Date).getTime(),u=Math.max(0,16-(t-r)),f=i.setTimeout(function(){n(t+u)},u);return r=t+u,f});i.cancelAnimationFrame||(i.cancelAnimationFrame=function(n){clearTimeout(n)})}()});!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){var o=-1,r=-1,i=function(n){return parseFloat(n)||0},s=function(t){var f=1,e=n(t),u=null,r=[];return e.each(function(){var t=n(this),e=t.offset().top-i(t.css("margin-top")),o=r.length>0?r[r.length-1]:null;null===o?r.push(t):Math.floor(Math.abs(u-e))<=f?r[r.length-1]=o.add(t):r.push(t);u=e}),r},u=function(t){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?n.extend(i,t):("boolean"==typeof t?i.byRow=t:"remove"===t&&(i.remove=!0),i)},t=n.fn.matchHeight=function(i){var r=u(i),f;return r.remove?(f=this,this.css(r.property,""),n.each(t._groups,function(n,t){t.elements=t.elements.not(f)}),this):this.length<=1&&!r.target?this:(t._groups.push({elements:this,options:r}),t._apply(this,r),this)},f,e;t.version="0.7.2";t._groups=[];t._throttle=80;t._maintainScroll=!1;t._beforeUpdate=null;t._afterUpdate=null;t._rows=s;t._parse=i;t._parseOptions=u;t._apply=function(r,f){var e=u(f),o=n(r),c=[o],l=n(window).scrollTop(),a=n("html").outerHeight(!0),h=o.parents().filter(":hidden");return h.each(function(){var t=n(this);t.data("style-cache",t.attr("style"))}),h.css("display","block"),e.byRow&&!e.target&&(o.each(function(){var i=n(this),t=i.css("display");"inline-block"!==t&&"flex"!==t&&"inline-flex"!==t&&(t="block");i.data("style-cache",i.attr("style"));i.css({display:t,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=s(o),o.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||"")})),n.each(c,function(t,r){var u=n(r),f=0;if(e.target)f=e.target.outerHeight(!1);else{if(e.byRow&&u.length<=1)return void u.css(e.property,"");u.each(function(){var t=n(this),u=t.attr("style"),i=t.css("display"),r;"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");r={display:i};r[e.property]="";t.css(r);t.outerHeight(!1)>f&&(f=t.outerHeight(!1));u?t.attr("style",u):t.css("display","")})}u.each(function(){var t=n(this),r=0;e.target&&t.is(e.target)||("border-box"!==t.css("box-sizing")&&(r+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),r+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(e.property,f-r+"px"))})}),h.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||null)}),t._maintainScroll&&n(window).scrollTop(l/a*n("html").outerHeight(!0)),this};t._applyDataApi=function(){var t={};n("[data-match-height], [data-mh]").each(function(){var i=n(this),r=i.attr("data-mh")||i.attr("data-match-height");t[r]=r in t?t[r].add(i):i});n.each(t,function(){this.matchHeight(!0)})};f=function(i){t._beforeUpdate&&t._beforeUpdate(i,t._groups);n.each(t._groups,function(){t._apply(this.elements,this.options)});t._afterUpdate&&t._afterUpdate(i,t._groups)};t._update=function(i,u){if(u&&"resize"===u.type){var e=n(window).width();if(e===o)return;o=e}i?r===-1&&(r=setTimeout(function(){f(u);r=-1},t._throttle)):f(u)};n(t._applyDataApi);e=n.fn.on?"on":"bind";n(window)[e]("load",function(n){t._update(!1,n)});n(window)[e]("resize orientationchange",function(n){t._update(!0,n)})});window.onclick=function(n){var i,t,r;if(!$(n.target).hasClass("dropbtn"))for(i=document.getElementsByClassName("dropdown-content"),t=0;t<i.length;t++)r=i[t],r.classList.contains("show")&&r.classList.remove("show")};$(document).ready(function(){var t,i,r,o,s,u,n,f,e;for(expandCollapse(),t=$(".topperMenu").outerHeight(),$(".HP header").css("top",t),$(window).width()<=1200&&($("#return-to-top").click(function(){$("html, body").animate({scrollTop:"0px"},300);$(".header").removeClass("fixed")}),$(".mobileMenuToggler").click(function(){$(this).toggleClass("active");$(".menusMain").toggleClass("active");$("body").toggleClass("open")})),$("#GeographicPresenceSection g g g").click(function(){var n=$(this).attr("id");$(".mapSection .informationHolder .countryItem").removeClass("fade-in");$(".mapSection .tableCell .numberListing").hide();$(".informationHolder .countryItem[data-id="+n+"]").addClass("fade-in")}),i=$(".responsiveTable table thead tr td"),j=0;j<=i;j++)r=$(" table thead td:nth-child("+j+")").text(),$(".responsiveTable table tr td:nth-child("+j+")").replaceWith(function(){return $('<td data-title="'+r+'">').append($(this).contents())});$("#tag-search").click(function(){$(".searchHolder").toggleClass("display");$("body").toggleClass("openSearch")});$(".closeSearch").on("click",function(){$(".searchHolder").removeClass("display");$("body").removeClass("openSearch")});AOS.init();$(".cardSteps .owl-carousel").owlCarousel({loop:!1,nav:!1,responsive:{0:{items:1},600:{items:3},1100:{items:3},1400:{items:6}}});$(".faqBa .annualReportList li").length>4&&($(".faqBa .annualReportList").addClass("owl-carousel"),$(".faqBa .annualReportList").owlCarousel({loop:!1,nav:!0,margin:30,dots:!1,responsive:{0:{items:1},600:{items:3},1100:{items:3},1400:{items:4}}}));$(window).width()<992&&$(".onlineServices li ").length>3&&($(".onlineServices .listingHolder ").addClass("owl-carousel"),$(".onlineServices .owl-carousel").owlCarousel({loop:!1,nav:!0,dots:!1,responsive:{0:{items:1},600:{items:1},1e3:{items:3}}}));$(window).width()<=767&&($(".HP .grayBg.tabsSection .tabsMain .tabsLinks").wrap("<div class='scrollableMenu'><\/div>"),$(".HP .grayBg.tabsSection .tabsMain").prepend('<div class="swipeContainer"><i class="fa fa-angle-left"><\/i>Swipe<i class="fa fa-angle-right"><\/i><\/div>'),$(".calculatorTabs .tabsLinks").wrap("<div class='scrollableMenu'><\/div>"),$(".calculatorTabs .tabsMain").append('<div class="swipeContainer"><i class="fa fa-angle-left"><\/i>Swipe<i class="fa fa-angle-right"><\/i><\/div>'));$(".onlineServices li ").length>4&&($(".onlineServices .listingHolder ").addClass("owl-carousel"),$(".onlineServices .owl-carousel").owlCarousel({loop:!1,nav:!0,dots:!1,responsive:{0:{items:1},600:{items:1},1e3:{items:4}}}));setTimeout(function(){$(".announcementList li").matchHeight()},500);$(".annualReportLink li .downloadPDF").matchHeight({byRow:!0,property:"height",target:null,remove:!1});$(".siteMapParent .simpleList .simpleList>li").matchHeight({byRow:!0,property:"height",target:null,remove:!1});$(".triggerBtn").trigger("click");$(".counterBlock").length>0&&(o=$(".counterBlock .container").waypoint({handler:function(){notify(this.element.id+" hit")}}));s=$(".topperMenu").innerHeight()+30;tabsTrigger();$(".parallax-img-container").length>0&&(u={initialOpacity:1,opacitySpeed:.9,pageLoader:!1},parallaxImgScroll(u));$(".listingImage").each(function(){var n=$(this);$(".listingHolder").imagesLoaded(function(){n.removeClass("listingImageLoad")})});/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?$("body").addClass("mobile"):$("body").addClass("desktop");$(".menusMain").before("<div class='mobileMenuToggler'><span><\/span><\/div>");$(".mobileMenuToggler").click(function(){$(this).toggleClass("active");$(this).parent().find(".menusMain").slideToggle();$("body").toggleClass("open")});$(".mainMenu ul li.hasSubmenu").each(function(){$(this).append("<span class='subMenuToggle'><\/span>")});$(".subMenuToggle").click(function(){$(this).parent().find(".ddSecondLevel").slideToggle();$(this).parent().toggleClass("openSubmenu")});$(".menusMain").click(function(n){$(n.target).closest(".mainMenu ul").length===0&&($(".mobileMenuToggler").toggleClass("active"),$(".menusMain").removeClass("active"))});$(".toggleSearch").click(function(){$(".advanceSearchForm").slideToggle();$(this).toggleClass("active")});$(".anchorToggle").length>0&&(n=$(".anchorToggle").offset().top-80,$(window).scroll(function(){var t=$(window).scrollTop();$(".anchorToggle").length>0&&(t>n-60&&$(".anchorToggle.anchorFixed").length==0?$(".anchorToggle").addClass("anchorFixed"):t<n-60&&$(".anchorToggle.anchorFixed").length>0&&$(".anchorToggle").removeClass("anchorFixed"))}));$('.anchorToggle a[href^="#"]').on("click",function(){return varoffset=$(window).scrollTop()>10?$(".header").outerHeight()+$(".anchorToggle").outerHeight()-100:$(".topMenu").outerHeight()+$(".header").outerHeight()+$(".anchorToggle").outerHeight()-100,$(".anchorToggle").addClass("anchorFixed"),$(".anchorToggle a").removeClass("selected"),$(this).toggleClass("selected"),$("html, body").animate({scrollTop:$($(this).attr("href")).offset().top-varoffset},800),!1});$(".customSelect select").dropkick({mobile:!0});$(".spButton").click(function(){$(".slidingPanel").toggleClass("activeSlidingPanel");$(".overlay").toggleClass("open");$("body").toggleClass("overlayed")});$(".closeIcon").click(function(){$(this).parents(".slidingPanel").removeClass("activeSlidingPanel");$("body").removeClass("overlayed");$(".overlay").removeClass("open")});$(".slidingPanel ").mCustomScrollbar();$(".tabsLinksMain ul a").click(function(){$(".tabsLinksMain a").removeClass("active");$(this).addClass("active")});$(window).width()<=767&&($(".mobileLinksToggle").text($(".tabsLinksMain a.active").text()),$(".mobileLinksToggle").click(function(){$(".tabsLinksMain ul").slideToggle()}),$(".tabsLinksMain ul a").click(function(){$(".mobileLinksToggle").text($(".tabsLinksMain a.active").text());$(".tabsLinksMain ul").slideToggle()}),$(".bgTabs").prepend('<a href="javascript:;" class="tabSubLink"><span class="text">Select<\/span><i class="fa fa-angle-down" aria-hidden="true"><\/i><\/a>'),f=$(".bgTabs .tabsLinks a.active").text(),$(".tabSubLink span").text(f),$(".tabSubLink").click(function(){$(".bgTabs .tabsLinks ").slideToggle();$(".bgTabs .tabsLinks").toggleClass("slided");$(".bgTabs .tabSubLink i").toggleClass("fa-angle-up");var n=$(".bgTabs .tabsLinks a.active").text();$(".bgTabs .tabSubLink span").text(n)}),$(".bgTabs .tabsLinks  a").click(function(){$(".bgTabs .tabsLinks.slided").slideUp();$(".bgTabs .tabsLinks.slided").removeClass("slided");$(".bgTabs .tabSubLink span").html($(this).text());$(this).addClass("active")}),e=$(window).outerHeight()-$(".topperMenu").outerHeight(),$("header .menusMain").css("height",e));HostRedirection();PdfRedirect()});var a=0,fixedHeightMobile=$(".insideMenu ").outerHeight()+$(".topMenu").outerHeight()+$(".secondMenu").outerHeight()+$(".header").outerHeight(),scrollMobile=$(window).scrollTop();$(".header").length>0&&(submenuTopMobile=$(".header").offset().top);$(window).scroll(function(){if($(".activitiesHighlights").offset()){var n=$(".activitiesHighlights").offset().top-window.innerHeight;a==0&&$(window).scrollTop()>n&&($(".count").each(function(){var n=$(this),t=n.attr("data-count");$({countNum:n.text()}).animate({countNum:t},{duration:4e3,easing:"swing",step:function(){n.text(Math.floor(this.countNum))},complete:function(){n.text(this.countNum)}})}),a=1)}$(window).width()<=800&&($(window).scrollTop()>=fixedHeightMobile?$(".header").addClass("fixed"):$(".header").removeClass("fixed"),$(window).scrollTop()==0&&($(".HP .header").removeClass("bottomMenu"),$(".HP .header").removeClass("fixed")),scrollMobile>submenuTopMobile&&$(".header.fixed").length==0?$(".header").addClass("fixed"):scroll<submenuTopMobile&&$(".header").removeClass("fixed"))})