var themify_vars = {"version":"4.5.2","url":"https:\/\/www.otr3.com\/wp-content\/themes\/themify-float\/themify","map_key":null,"bing_map_key":null,"includesURL":"https:\/\/www.otr3.com\/wp-includes\/","isCached":"on","minify":{"css":{"themify-icons":1,"themify.framework":1,"lightbox":1,"themify-builder-style":1},"js":{"backstretch.themify-version":1,"bigvideo":1,"themify.dropdown":1,"themify.builder.script":1,"themify.scroll-highlight":1,"themify-youtube-bg":1,"themify.parallaxit":1,"themify-ticks":1}}};
var tbLocalScript = {"isAnimationActive":"1","isParallaxActive":"1","isParallaxScrollActive":"1","isStickyScrollActive":"1","animationInviewSelectors":[".module.wow",".module_row.wow",".builder-posts-wrap > .post.wow"],"backgroundSlider":{"autoplay":5000},"animationOffset":"100","videoPoster":"https:\/\/www.otr3.com\/wp-content\/themes\/themify-float\/themify\/themify-builder\/img\/blank.png","backgroundVideoLoop":"yes","builder_url":"https:\/\/www.otr3.com\/wp-content\/themes\/themify-float\/themify\/themify-builder","framework_url":"https:\/\/www.otr3.com\/wp-content\/themes\/themify-float\/themify","version":"4.5.2","fullwidth_support":"1","fullwidth_container":"body","loadScrollHighlight":"1","addons":[],"breakpoints":{"tablet_landscape":[769,"1280"],"tablet":[681,"768"],"mobile":"680"},"ticks":{"tick":30,"ajaxurl":"https:\/\/www.otr3.com\/wp-admin\/admin-ajax.php","postID":1632}};
var themifyScript = {"lightbox":{"lightboxSelector":".themify_lightbox","lightboxOn":true,"lightboxContentImages":false,"lightboxContentImagesSelector":"","theme":"pp_default","social_tools":false,"allow_resize":true,"show_title":false,"overlay_gallery":false,"screenWidthNoLightbox":600,"deeplinking":false,"contentImagesAreas":"","gallerySelector":".gallery-icon > a","lightboxGalleryOn":true},"lightboxContext":"body"};
var tbScrollHighlight = {"fixedHeaderSelector":"","speed":"900","navigation":"#main-nav, .module-menu .ui.nav","scrollOffset":"0"};
/* https://www.otr3.com/wp-content/themes/themify-float/themify/js/main.min.js?ver=4.5.2 */
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,f,d){a instanceof String&&(a=String(a));for(var g=a.length,h=0;h<g;h++){var b=a[h];if(f.call(d,b,h,a))return{i:h,v:b}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,d){a!=Array.prototype&&a!=Object.prototype&&(a[f]=d.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};
$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,d,g){if(f){d=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var h=a[g];h in d||(d[h]={});d=d[h]}a=a[a.length-1];g=d[a];f=f(g);f!=g&&null!=f&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:f})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,d){return $jscomp.findInternal(this,a,d).v}},"es6-impl","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var f=0;return $jscomp.iteratorPrototype(function(){return f<a.length?{done:!1,value:a[f++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.iteratorFromArray=function(a,f){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var d=0,g={next:function(){if(d<a.length){var h=d++;return{value:f(h,a[h]),done:!1}}g.next=function(){return{done:!0,value:void 0}};return g.next()}};g[Symbol.iterator]=function(){return g};return g};
$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6-impl","es3");!function(a){var f,d=a.event;var g=d.special.tfsmartresize={setup:function(){a(this).on("resize",g.handler)},teardown:function(){a(this).off("resize",g.handler)},handler:function(a,b){var e=this,c=arguments,l=function(){a.type="tfsmartresize";d.dispatch.apply(e,c)};f&&clearTimeout(f);b?l():f=setTimeout(l,g.threshold)},threshold:150}}(jQuery);
var Themify,ThemifyGallery;
(function(a,f,d,g){f.addEventListener("load",function(){f.loaded=!0;Themify.is_builder_active||Themify.triggerEvent(f,"resize");Themify.body[0].classList.add("page-loaded")},{once:!0,passive:!0});if("function"!==typeof f.CustomEvent){var h=function(b,a){var e=d.createEvent("CustomEvent");e.initCustomEvent(b,!1,!1,a!==g?a.detail:g);return e};h.prototype=f.Event.prototype;f.CustomEvent=h}Themify={fonts:[],cssLazy:[],jsLazy:[],body:null,is_builder_active:!1,is_builder_loaded:!1,isLoaded:null,triggerEvent:function(b,
a,c){try{var e=new f.CustomEvent(a,{detail:c})}catch(m){e=f.CustomEvent(a,{detail:c})}b.dispatchEvent(e)},UpdateQueryString:function(b,a,c){c||(c=f.location.href);var e=RegExp("([?|&])"+b+"=.*?(&|#|$)(.*)","gi");if(e.test(c))return void 0!==a&&null!==a?c.replace(e,"$1"+b+"="+a+"$2$3"):c.replace(e,"$1$3").replace(/(&|\?)$/,"");if(void 0!==a&&null!==a){var e=-1!==c.indexOf("?")?"&":"?",d=c.split("#");return c=d[0]+e+b+"="+a,d[1]&&(c+="#"+d[1]),c}return c},Init:function(){Themify.body=a("body");if("undefined"!==
typeof themify_vars){if("undefined"!==typeof tbLocalScript&&null!==tbLocalScript){var b=Themify;b.is_builder_active=d.body.classList.contains("themify_builder_active");b.is_builder_active&&(f.top.Themify.is_builder_active=!0);var e=function(e,l){if(null!==d.querySelector(".themify_builder_content div:not(.js-turn-on-builder)")){if(!b.is_builder_active){if(null===b.isLoaded){var c=d.getElementById("builder-styles-css");if(null!==c&&null===d.getElementById("themify-builder-style")){var n=d.createElement("link");
n.id="themify-builder-style";n.rel="stylesheet";n.type="text/css";n.href=tbLocalScript.builder_url+"/css/themify-builder-style.css?ver="+themify_vars.version;c.insertAdjacentElement("beforebegin",n);c=null}}if(l){c=l[0].getElementsByClassName("tb_style_generated");for(n=c.length-1;-1<n;--n)b.LoadCss(c[n].getAttribute("data-url"),!1),c[n].parentNode.removeChild(c[n]);!0===b.isLoaded&&a(f).triggerHandler("resize")}}null===b.isLoaded&&b.LoadAsync(tbLocalScript.builder_url+"/js/themify.builder.script.js",
function(){l&&a(f).triggerHandler("resize");b.isLoaded=!0},null,null,function(){return"undefined"!==typeof ThemifyBuilderModuleJs});return!0}return!1};a(d).ready(function(){tbLocalScript.isTouch=d.body.classList.contains("touch");if(!b.is_builder_active&&!1===e())b.body.on("infiniteloaded.themify",e)})}this.bindEvents()}},bindEvents:function(){var b=Themify;f.loaded?(b.domready(),b.windowload()):(a(f).load(b.windowload),a(d).ready(b.domready))},domready:function(){setTimeout(Themify.LazyLoad,10);
Themify.is_builder_active||(Themify.InitCarousel(),Themify.InitMap())},windowload:function(){for(var b=d.getElementsByClassName("shortcode"),a=b.length-1;-1<a;--a)if(b[a].classList.contains("slider")||b[a].classList.contains("post-slider"))b[a].style.height="auto",b[a].style.visibility="visible";b=d.getElementsByClassName("slideshow-wrap");for(a=b.length-1;-1<a;--a)b[a].style.height="auto",b[a].style.visibility="visible";Themify.is_builder_active||Themify.InitGallery()},LazyLoad:function(){var b=
Themify,a=b.is_builder_active||d.getElementsByClassName("fa")[0]!==g,c=b.is_builder_active||null!==d.querySelector(".module-menu[data-menu-breakpoint]");a||(a=b.checkFont("FontAwesome"));c||(c=null!==d.querySelector('span[class*="ti-"]'))||(c=null!==d.querySelector('i[class*="ti-"]'));c||(c=b.checkFont("Themify"));a&&b.LoadCss(themify_vars.url+"/fontawesome/css/font-awesome.min.css",themify_vars.version);c&&b.LoadCss(themify_vars.url+"/themify-icons/themify-icons.css",themify_vars.version);"string"===
typeof themify_vars.fontello_path&&null!==d.querySelector('i[class*="icon-"]')&&b.LoadCss(themify_vars.fontello_path);(b.is_builder_active||d.getElementsByClassName("shortcode")[0]!==g)&&b.LoadCss(themify_vars.url+"/css/themify.framework.css",null,d.getElementById("themify-framework-css"))},InitCarousel:function(b){function e(b){c.each(function(){if(0<a(this).closest(".carousel-ready").length)return!0;a(this).find("> br, > p").remove();var b=a(this),c=JSON.parse(atob(a(this).data("slider"))),e="undefined"===
typeof c.height?"auto":c.height,d=g!==c.custom_numsldr?"#"+c.custom_numsldr:"#slider-"+c.numsldr,l=1E3<=c.speed?c.speed:1E3*c.speed,f={responsive:!0,swipe:!0,circular:c.wrapvar,infinite:c.wrapvar,auto:{play:0!=c.auto,timeoutDuration:1E3<=c.auto?c.auto:1E3*c.auto,duration:l,pauseOnHover:c.pause_hover},scroll:{items:parseInt(c.scroll),duration:l,fx:c.effect},items:{visible:{min:1,max:parseInt(c.visible)},width:120,height:e},onCreate:function(c){b.closest(".caroufredsel_wrapper").outerHeight(b.outerHeight(!0));
a(d).css({visibility:"visible",height:"auto"});b.closest(".carousel-wrap").addClass("carousel-ready")}};c.slider_nav&&(f.prev=d+" .carousel-prev",f.next=d+" .carousel-next");c.pager&&(f.pagination=d+" .carousel-pager");b.imagesLoaded().always(function(){b.carouFredSel(f)})});a(f).off("tfsmartresize.tfcarousel").on("tfsmartresize.tfcarousel",function(){c.each(function(){var b=[],c=a(this);c.find("li").each(function(){b.push(a(this).outerHeight(!0))});var e=Math.max.apply(Math,b);c.outerHeight(e);c.parent().outerHeight(e)})})}
var c=a(".slides[data-slider]",b);if(0<c.length){var d=this;d.LoadAsync(themify_vars.includesURL+"js/imagesloaded.min.js",function(){"undefined"===typeof a.fn.carouFredSel?d.LoadAsync(themify_vars.url+"/js/carousel.min.js",function(){e(b)},null,null,function(){return"undefined"!==typeof a.fn.carouFredSel}):e(b)},null,null,function(){return"undefined"!==typeof a.fn.imagesLoaded})}},InitMap:function(b){var e=Themify;0<a(".themify_map",b).length&&("object"!==typeof google||"object"!==typeof google.maps||
"enable"===themify_vars.isCached?("enable"===themify_vars.isCached?google.maps={__gjsload__:function(){}}:themify_vars.map_key||(themify_vars.map_key=""),e.LoadAsync("//maps.googleapis.com/maps/api/js",e.MapCallback,"v=3.exp&callback=Themify.MapCallback&key="+themify_vars.map_key,null,function(){return"object"===typeof google&&"object"===typeof google.maps})):e.MapCallback(b));0<a(".themify_bing_map",b).length&&("object"!==typeof Microsoft||"object"!==typeof Microsoft.Maps||"enable"===themify_vars.isCached?
e.LoadAsync("//www.bing.com/api/maps/mapcontrol?",function(){e.GetMap(b);themify_vars.bing_map_key||(themify_vars.bing_map_key="")},null,function(){return"object"!==typeof Microsoft&&"object"!==typeof Microsoft.Maps}):e.GetMap(b))},MapCallback:function(b){a(".themify_map",b).each(function(b){var c=a(this),e=c.data("address"),d=parseInt(c.data("zoom")),n=c.data("type"),f=1===c.data("scroll"),h=1===c.data("drag"),r=1===c.data("control");setTimeout(function(){var b=new google.maps.Geocoder;var a=new google.maps.LatLng(-34.397,
150.644);a={zoom:d,center:a,mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:f,draggable:h,disableDefaultUI:r};switch(n.toUpperCase()){case "ROADMAP":a.mapTypeId=google.maps.MapTypeId.ROADMAP;break;case "SATELLITE":a.mapTypeId=google.maps.MapTypeId.SATELLITE;break;case "HYBRID":a.mapTypeId=google.maps.MapTypeId.HYBRID;break;case "TERRAIN":a.mapTypeId=google.maps.MapTypeId.TERRAIN}var l=new google.maps.Map(c[0],a),k=c.data("reverse-geocoding")?!0:!1;google.maps.event.addListenerOnce(l,"idle",function(){Themify.body.trigger("themify_map_loaded",
[c,l])});c.data("gmap_object",l);if(k){var m=e.split(",",2);a=parseFloat(m[0]);m=parseFloat(m[1]);var u=new google.maps.LatLng(a,m);a={latLng:u}}else a={address:e};b.geocode(a,function(a,b){if(b==google.maps.GeocoderStatus.OK){var e=k?u:a[0].geometry.location;l.setCenter(e);var d=new google.maps.Marker({map:l,position:e}),e=c.data("info-window");if(g!==e){var n=new google.maps.InfoWindow({content:'<div class="themify_builder_map_info_window">'+e+"</div>"});google.maps.event.addListener(d,"click",
function(){n.open(l,d)})}}})},1E3*b)})},GetMap:function(b){a(".themify_bing_map",b).each(function(b){var c=a(this),e={},d=c.data("address"),n=parseInt(c.data("zoom")),f="1"!==c.data("scroll"),h="1"!==c.data("drag"),r=c.data("type"),q=1!==c.data("control");b*=1E3;var p,t,d=d.split(",");setTimeout(function(){function b(a){switch(r){case "aerial":a.mapTypeId=Microsoft.Maps.MapTypeId.aerial;break;case "road":a.mapTypeId=Microsoft.Maps.MapTypeId.road;break;case "streetside":a.mapTypeId=Microsoft.Maps.MapTypeId.streetside;
break;case "canvasDark":a.mapTypeId=Microsoft.Maps.MapTypeId.canvasDark;break;case "canvasLight":a.mapTypeId=Microsoft.Maps.MapTypeId.canvasLight;break;case "birdseye":a.mapTypeId=Microsoft.Maps.MapTypeId.birdseye;break;case "ordnanceSurvey":a.mapTypeId=Microsoft.Maps.MapTypeId.ordnanceSurvey;break;case "grayscale":a.mapTypeId=Microsoft.Maps.MapTypeId.grayscale}return a}function a(e){t?t.geocode({where:e,callback:function(a){if(a&&a.results&&0<a.results.length){a={center:a.results[0].bestView.center};
a=b(a);p.setView(a);a=new Microsoft.Maps.Pushpin(p.getCenter(),null);var e=c.data("info-window");if(g!==e){var d=new Microsoft.Maps.Infobox(p.getCenter(),{description:e,visible:!1});d.setMap(p);Microsoft.Maps.Events.addHandler(a,"click",function(a){d.setOptions({visible:!0})})}p.entities.push(a)}},errorCallback:function(a){console.log("No results found.")}}):Microsoft.Maps.loadModule("Microsoft.Maps.Search",function(){t=new Microsoft.Maps.Search.SearchManager(p);a(e)})}e={disableBirdseye:!0,disableScrollWheelZoom:f,
showDashboard:q,credentials:themify_vars.bing_map_key,disablePanning:h,mapTypeId:null,zoom:n};try{p=new Microsoft.Maps.Map(c[0],e)}catch(u){Themify.GetMap();return}a(d);d=encodeURI(d)},b)})},LoadAsync:function(a,e,c,f,g){f=this.hash(a);var b=-1!==this.jsLazy.indexOf(f),l=b||d.getElementById(f);b||this.jsLazy.push(f);if(l){if(e)if(g)var h=setInterval(function(){var a=!1;try{a=g.call()}catch(p){}a&&(clearInterval(h),e.call())},20);else e()}else{if(g)try{if(g.call()){e&&e.call();return}}catch(q){}-1===
a.indexOf(".min.js")&&"undefined"!==typeof themify_vars&&null!==themify_vars&&(b=a.match(/([^\/]+)(?=\.\w+$)/))&&b[0]&&(b=b[0],themify_vars.minify.js[b]&&(a=a.replace(b+".js",b+".min.js")));var m=!1;b=d.createElement("script");b.type="text/javascript";b.id=f;c||!1===c||"undefined"===typeof tbLocalScript||(c=tbLocalScript.version);b.src=c?a+"?ver="+c:a;b.async=!0;b.onload=b.onreadystatechange=function(){m||this.readyState&&"complete"!==this.readyState||(m=!0,e&&e())};a=d.getElementsByTagName("script")[0];
a.parentNode.insertBefore(b,a)}},LoadCss:function(a,e,c,l,g){if("undefined"!==typeof a){e||!1===e||"undefined"===typeof tbLocalScript||(e=tbLocalScript.version);var b=this.hash(a),k=-1!==this.cssLazy.indexOf(b),h=k||d.getElementById(b);e=e?a+"?ver="+e:a;k||this.cssLazy.push(b);!1===h&&(k=d.querySelector("link[href='"+e+"']"),h=null!==k&&"stylesheet"===k.getAttribute("rel"));if(h)return g&&g(),!1;-1===a.indexOf(".min.css")&&"undefined"!==typeof themify_vars&&null!==themify_vars&&(a=a.match(/([^\/]+)(?=\.\w+$)/))&&
a[0]&&(a=a[0],themify_vars.minify.css[a]&&(e=e.replace(a+".css",a+".min.css")));a=f.document;var m=a.createElement("link");c?k=c:(k=(a.body||a.head).childNodes,k=k[k.length-1]);var q=a.styleSheets;m.rel="stylesheet";m.href=e;m.media="only x";m.id=b;k.parentNode.insertBefore(m,c?k:k.nextSibling);var p=function(a){for(var b=m.href,c=q.length;--c;)if(q[c].href===b)return g&&g(),a();setTimeout(function(){p(a)})};m.onloadcssdefined=p;p(function(){m.media=l||"all"});return m}},checkFont:function(a){if(-1!==
this.fonts.indexOf(a))return!0;if(0===this.fonts.length){for(var b=[],c=d.styleSheets,f=c.length;0<=--f;)if(c[f].hasOwnProperty("cssRules")||c[f].hasOwnProperty("rules"))for(var g=c[f].cssRules||c[f].rules||[],h=g.length;0<=--h;)if(g[h].style){if(g[h].style.fontFamily)var k=g[h].style.fontFamily;else(k=g[h].style.cssText.match(/font-family\s*:\s*([^;\}]*)\s*[;}]/i))&&(k=k[1]);if(k===a)return this.fonts.push(k),!0;k&&(b[k]=!0)}this.fonts=Object.keys(b)}return!1},lightboxCallback:function(a,e){this.LoadAsync(themify_vars.url+
"/js/themify.gallery.js",function(){Themify.GalleryCallBack(a,e)},null,null,function(){return"undefined"!==typeof ThemifyGallery})},InitGallery:function(b,e){var c=!1,d="object"===typeof themifyScript&&themifyScript.lightbox;Themify.is_builder_active||((c=d&&(d.lightboxContentImages&&a(d.contentImagesAreas).length||a(d.lightboxSelector).length))||(c=d&&d.lightboxGalleryOn&&(a(d.lightboxContentImagesSelector).length||d.gallerySelector&&a(d.gallerySelector).length)),c&&(this.LoadCss(themify_vars.url+
"/css/lightbox.min.css",null),this.LoadAsync(themify_vars.url+"/js/lightbox.min.js",function(){Themify.lightboxCallback(b,e)},null,null,function(){return"undefined"!==typeof a.fn.magnificPopup})));c||this.body.addClass("themify_lightbox_loaded").removeClass("themify_lightboxed_images")},GalleryCallBack:function(b,e){b||(b=a(themifyScript.lightboxContext));e=!e&&themifyScript.extraLightboxArgs?themifyScript.extraLightboxArgs:{};ThemifyGallery.init({context:b,extraLightboxArgs:e});Themify.body.addClass("themify_lightbox_loaded").removeClass("themify_lightboxed_images")},
parseVideo:function(a){a=a.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/i);return{type:null!==a?-1<a[3].indexOf("youtu")?"youtube":-1<a[3].indexOf("vimeo")?"vimeo":!1:!1,id:null!==a?a[6]:!1}},hash:function(a){for(var b=0,c=a.length-1;-1<c;--c)b=(b<<5)-b+a.charCodeAt(c),b&=b;return b},getVendorPrefix:function(){if(this.vendor===g){for(var a=d.createElement("div"),e=["Moz","Webkit","O","ms"],
c=0,f=e.length;c<f;++c)if("undefined"!==typeof a.style[e[c]+"Transform"]){this.vendor=e[c].toLowerCase();break}this.vendor="-"+this.vendor+"-"}return this.vendor}};Themify.Init()})(jQuery,window,document);

/* https://www.otr3.com/wp-content/plugins/tco-smooth-scroll/js/site/nicescroll.js */
/* jquery.nicescroll 3.6.0 InuYaksa*2014 MIT http://nicescroll.areaaperta.com */(function(f){"function"===typeof define&&define.amd?define(["jquery"],f):f(jQuery)})(function(f){var y=!1,D=!1,N=0,O=2E3,x=0,H=["webkit","ms","moz","o"],s=window.requestAnimationFrame||!1,t=window.cancelAnimationFrame||!1;if(!s)for(var P in H){var E=H[P];s||(s=window[E+"RequestAnimationFrame"]);t||(t=window[E+"CancelAnimationFrame"]||window[E+"CancelRequestAnimationFrame"])}var v=window.MutationObserver||window.WebKitMutationObserver||!1,I={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",
cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",
enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var f=document.getElementsByTagName("script"),f=f[f.length-1].src.split("?")[0];return 0<f.split("/").length?f.split("/").slice(0,-1).join("/")+
"/":""}(),preventmultitouchscrolling:!0},F=!1,Q=function(){if(F)return F;var f=document.createElement("DIV"),c=f.style,h=navigator.userAgent,m=navigator.platform,d={haspointerlock:"pointerLockElement"in document||"webkitPointerLockElement"in document||"mozPointerLockElement"in document};d.isopera="opera"in window;d.isopera12=d.isopera&&"getUserMedia"in navigator;d.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini);d.isie="all"in document&&"attachEvent"in f&&!d.isopera;
d.isieold=d.isie&&!("msInterpolationMode"in c);d.isie7=d.isie&&!d.isieold&&(!("documentMode"in document)||7==document.documentMode);d.isie8=d.isie&&"documentMode"in document&&8==document.documentMode;d.isie9=d.isie&&"performance"in window&&9<=document.documentMode;d.isie10=d.isie&&"performance"in window&&10==document.documentMode;d.isie11="msRequestFullscreen"in f&&11<=document.documentMode;d.isie9mobile=/iemobile.9/i.test(h);d.isie9mobile&&(d.isie9=!1);d.isie7mobile=!d.isie9mobile&&d.isie7&&/iemobile/i.test(h);
d.ismozilla="MozAppearance"in c;d.iswebkit="WebkitAppearance"in c;d.ischrome="chrome"in window;d.ischrome22=d.ischrome&&d.haspointerlock;d.ischrome26=d.ischrome&&"transition"in c;d.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window;d.hasmstouch=window.MSPointerEvent||!1;d.hasw3ctouch=window.PointerEvent||!1;d.ismac=/^mac$/i.test(m);d.isios=d.cantouch&&/iphone|ipad|ipod/i.test(m);d.isios4=d.isios&&!("seal"in Object);d.isios7=d.isios&&"webkitHidden"in document;d.isandroid=/android/i.test(h);
d.haseventlistener="addEventListener"in f;d.trstyle=!1;d.hastransform=!1;d.hastranslate3d=!1;d.transitionstyle=!1;d.hastransition=!1;d.transitionend=!1;m=["transform","msTransform","webkitTransform","MozTransform","OTransform"];for(h=0;h<m.length;h++)if("undefined"!=typeof c[m[h]]){d.trstyle=m[h];break}d.hastransform=!!d.trstyle;d.hastransform&&(c[d.trstyle]="translate3d(1px,2px,3px)",d.hastranslate3d=/translate3d/.test(c[d.trstyle]));d.transitionstyle=!1;d.prefixstyle="";d.transitionend=!1;for(var m=
"transition webkitTransition msTransition MozTransition OTransition OTransition KhtmlTransition".split(" "),n=" -webkit- -ms- -moz- -o- -o -khtml-".split(" "),p="transitionend webkitTransitionEnd msTransitionEnd transitionend otransitionend oTransitionEnd KhtmlTransitionEnd".split(" "),h=0;h<m.length;h++)if(m[h]in c){d.transitionstyle=m[h];d.prefixstyle=n[h];d.transitionend=p[h];break}d.ischrome26&&(d.prefixstyle=n[1]);d.hastransition=d.transitionstyle;a:{h=["-webkit-grab","-moz-grab","grab"];if(d.ischrome&&
!d.ischrome22||d.isie)h=[];for(m=0;m<h.length;m++)if(n=h[m],c.cursor=n,c.cursor==n){c=n;break a}c="url(//mail.google.com/mail/images/2/openhand.cur),n-resize"}d.cursorgrabvalue=c;d.hasmousecapture="setCapture"in f;d.hasMutationObserver=!1!==v;return F=d},R=function(k,c){function h(){var b=a.doc.css(e.trstyle);return b&&"matrix"==b.substr(0,6)?b.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}function m(){var b=a.win;if("zIndex"in b)return b.zIndex();for(;0<b.length&&9!=b[0].nodeType;){var g=
b.css("zIndex");if(!isNaN(g)&&0!=g)return parseInt(g);b=b.parent()}return!1}function d(b,g,q){g=b.css(g);b=parseFloat(g);return isNaN(b)?(b=w[g]||0,q=3==b?q?a.win.outerHeight()-a.win.innerHeight():a.win.outerWidth()-a.win.innerWidth():1,a.isie8&&b&&(b+=1),q?b:0):b}function n(b,g,q,c){a._bind(b,g,function(a){a=a?a:window.event;var c={original:a,target:a.target||a.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==a.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){a.preventDefault?a.preventDefault():
a.returnValue=!1;return!1},stopImmediatePropagation:function(){a.stopImmediatePropagation?a.stopImmediatePropagation():a.cancelBubble=!0}};"mousewheel"==g?(c.deltaY=-.025*a.wheelDelta,a.wheelDeltaX&&(c.deltaX=-.025*a.wheelDeltaX)):c.deltaY=a.detail;return q.call(b,c)},c)}function p(b,g,c){var d,e;0==b.deltaMode?(d=-Math.floor(a.opt.mousescrollstep/54*b.deltaX),e=-Math.floor(a.opt.mousescrollstep/54*b.deltaY)):1==b.deltaMode&&(d=-Math.floor(b.deltaX*a.opt.mousescrollstep),e=-Math.floor(b.deltaY*a.opt.mousescrollstep));
g&&a.opt.oneaxismousemode&&0==d&&e&&(d=e,e=0,c&&(0>d?a.getScrollLeft()>=a.page.maxw:0>=a.getScrollLeft())&&(e=d,d=0));d&&(a.scrollmom&&a.scrollmom.stop(),a.lastdeltax+=d,a.debounced("mousewheelx",function(){var b=a.lastdeltax;a.lastdeltax=0;a.rail.drag||a.doScrollLeftBy(b)},15));if(e){if(a.opt.nativeparentscrolling&&c&&!a.ispage&&!a.zoomactive)if(0>e){if(a.getScrollTop()>=a.page.maxh)return!0}else if(0>=a.getScrollTop())return!0;a.scrollmom&&a.scrollmom.stop();a.lastdeltay+=e;a.debounced("mousewheely",
function(){var b=a.lastdeltay;a.lastdeltay=0;a.rail.drag||a.doScrollBy(b)},15)}b.stopImmediatePropagation();return b.preventDefault()}var a=this;this.version="3.6.0";this.name="nicescroll";this.me=c;this.opt={doc:f("body"),win:!1};f.extend(this.opt,I);this.opt.snapbackspeed=80;if(k)for(var G in a.opt)"undefined"!=typeof k[G]&&(a.opt[G]=k[G]);this.iddoc=(this.doc=a.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/^BODY|HTML/.test(a.opt.win?a.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=
!1!==a.opt.win;this.win=a.opt.win||(this.ispage?f(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?f(window):this.win;this.body=f("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=a.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin=this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=
this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.isrtlmode="auto"==this.opt.rtlmode?"rtl"==(this.win[0]==window?this.body:this.win).css("direction"):!0===this.opt.rtlmode;this.observerbody=this.observerremover=this.observer=this.scrollmom=this.scrollrunning=!1;do this.id="ascrail"+O++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=
this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=this.railslocked=!1;this.cursoractive=!0;this.wheelprevented=!1;this.overflowx=a.opt.overflowx;this.overflowy=a.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=Q();var e=f.extend({},this.detected);this.ishwscroll=(this.canhwscroll=e.hastransform&&
a.opt.hwacceleration)&&a.haswrapper;this.hasreversehr=this.isrtlmode&&!e.iswebkit;this.istouchcapable=!1;!e.cantouch||e.isios||e.isandroid||!e.iswebkit&&!e.ismozilla||(this.istouchcapable=!0,e.cantouch=!1);a.opt.enablemouselockapi||(e.hasmousecapture=!1,e.haspointerlock=!1);this.debounced=function(b,g,c){var d=a.delaylist[b];a.delaylist[b]=g;d||setTimeout(function(){var g=a.delaylist[b];a.delaylist[b]=!1;g.call(a)},c)};var r=!1;this.synched=function(b,g){a.synclist[b]=g;(function(){r||(s(function(){r=
!1;for(var b in a.synclist){var g=a.synclist[b];g&&g.call(a);a.synclist[b]=!1}}),r=!0)})();return b};this.unsynched=function(b){a.synclist[b]&&(a.synclist[b]=!1)};this.css=function(b,g){for(var c in g)a.saved.css.push([b,c,b.css(c)]),b.css(c,g[c])};this.scrollTop=function(b){return"undefined"==typeof b?a.getScrollTop():a.setScrollTop(b)};this.scrollLeft=function(b){return"undefined"==typeof b?a.getScrollLeft():a.setScrollLeft(b)};var A=function(a,g,c,d,e,f,h){this.st=a;this.ed=g;this.spd=c;this.p1=
d||0;this.p2=e||1;this.p3=f||0;this.p4=h||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};A.prototype={B2:function(a){return 3*a*a*(1-a)},B3:function(a){return 3*a*(1-a)*(1-a)},B4:function(a){return(1-a)*(1-a)*(1-a)},getNow:function(){var a=1-((new Date).getTime()-this.ts)/this.spd,g=this.B2(a)+this.B3(a)+this.B4(a);return 0>a?this.ed:this.st+Math.round(this.df*g)},update:function(a,g){this.st=this.getNow();this.ed=a;this.spd=g;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};
if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};e.hastranslate3d&&e.isios&&this.doc.css("-webkit-backface-visibility","hidden");this.getScrollTop=function(b){if(!b){if(b=h())return 16==b.length?-b[13]:-b[5];if(a.timerscroll&&a.timerscroll.bz)return a.timerscroll.bz.getNow()}return a.doc.translate.y};this.getScrollLeft=function(b){if(!b){if(b=h())return 16==b.length?-b[12]:-b[4];if(a.timerscroll&&a.timerscroll.bh)return a.timerscroll.bh.getNow()}return a.doc.translate.x};this.notifyScrollEvent=
function(a){var g=document.createEvent("UIEvents");g.initUIEvent("scroll",!1,!0,window,1);g.niceevent=!0;a.dispatchEvent(g)};var K=this.isrtlmode?1:-1;e.hastranslate3d&&a.opt.enabletranslate3d?(this.setScrollTop=function(b,g){a.doc.translate.y=b;a.doc.translate.ty=-1*b+"px";a.doc.css(e.trstyle,"translate3d("+a.doc.translate.tx+","+a.doc.translate.ty+",0px)");g||a.notifyScrollEvent(a.win[0])},this.setScrollLeft=function(b,g){a.doc.translate.x=b;a.doc.translate.tx=b*K+"px";a.doc.css(e.trstyle,"translate3d("+
a.doc.translate.tx+","+a.doc.translate.ty+",0px)");g||a.notifyScrollEvent(a.win[0])}):(this.setScrollTop=function(b,g){a.doc.translate.y=b;a.doc.translate.ty=-1*b+"px";a.doc.css(e.trstyle,"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");g||a.notifyScrollEvent(a.win[0])},this.setScrollLeft=function(b,g){a.doc.translate.x=b;a.doc.translate.tx=b*K+"px";a.doc.css(e.trstyle,"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");g||a.notifyScrollEvent(a.win[0])})}else this.getScrollTop=
function(){return a.docscroll.scrollTop()},this.setScrollTop=function(b){return a.docscroll.scrollTop(b)},this.getScrollLeft=function(){return a.detected.ismozilla&&a.isrtlmode?Math.abs(a.docscroll.scrollLeft()):a.docscroll.scrollLeft()},this.setScrollLeft=function(b){return a.docscroll.scrollLeft(a.detected.ismozilla&&a.isrtlmode?-b:b)};this.getTarget=function(a){return a?a.target?a.target:a.srcElement?a.srcElement:!1:!1};this.hasParent=function(a,g){if(!a)return!1;for(var c=a.target||a.srcElement||
a||!1;c&&c.id!=g;)c=c.parentNode||!1;return!1!==c};var w={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}};this.getOffset=function(){if(a.isfixed){var b=a.win.offset(),g=a.getDocumentScrollOffset();b.top-=g.top;b.left-=g.left;return b}b=a.win.offset();if(!a.viewport)return b;g=a.viewport.offset();return{top:b.top-g.top,left:b.left-g.left}};this.updateScrollBar=
function(b){if(a.ishwscroll)a.rail.css({height:a.win.innerHeight()-(a.opt.railpadding.top+a.opt.railpadding.bottom)}),a.railh&&a.railh.css({width:a.win.innerWidth()-(a.opt.railpadding.left+a.opt.railpadding.right)});else{var g=a.getOffset(),c=g.top,e=g.left-(a.opt.railpadding.left+a.opt.railpadding.right),c=c+d(a.win,"border-top-width",!0),e=e+(a.rail.align?a.win.outerWidth()-d(a.win,"border-right-width")-a.rail.width:d(a.win,"border-left-width")),f=a.opt.railoffset;f&&(f.top&&(c+=f.top),a.rail.align&&
f.left&&(e+=f.left));a.railslocked||a.rail.css({top:c,left:e,height:(b?b.h:a.win.innerHeight())-(a.opt.railpadding.top+a.opt.railpadding.bottom)});a.zoom&&a.zoom.css({top:c+1,left:1==a.rail.align?e-20:e+a.rail.width+4});if(a.railh&&!a.railslocked){c=g.top;e=g.left;if(f=a.opt.railhoffset)f.top&&(c+=f.top),f.left&&(e+=f.left);b=a.railh.align?c+d(a.win,"border-top-width",!0)+a.win.innerHeight()-a.railh.height:c+d(a.win,"border-top-width",!0);e+=d(a.win,"border-left-width");a.railh.css({top:b-(a.opt.railpadding.top+
a.opt.railpadding.bottom),left:e,width:a.railh.width})}}};this.doRailClick=function(b,g,c){var e;a.railslocked||(a.cancelEvent(b),g?(g=c?a.doScrollLeft:a.doScrollTop,e=c?(b.pageX-a.railh.offset().left-a.cursorwidth/2)*a.scrollratio.x:(b.pageY-a.rail.offset().top-a.cursorheight/2)*a.scrollratio.y,g(e)):(g=c?a.doScrollLeftBy:a.doScrollBy,e=c?a.scroll.x:a.scroll.y,b=c?b.pageX-a.railh.offset().left:b.pageY-a.rail.offset().top,c=c?a.view.w:a.view.h,g(e>=b?c:-c)))};a.hasanimationframe=s;a.hascancelanimationframe=
t;a.hasanimationframe?a.hascancelanimationframe||(t=function(){a.cancelAnimationFrame=!0}):(s=function(a){return setTimeout(a,15-Math.floor(+new Date/1E3)%16)},t=clearInterval);this.init=function(){a.saved.css=[];if(e.isie7mobile||e.isoperamini)return!0;e.hasmstouch&&a.css(a.ispage?f("html"):a.win,{"-ms-touch-action":"none"});a.zindex="auto";a.zindex=a.ispage||"auto"!=a.opt.zindex?a.opt.zindex:m()||"auto";!a.ispage&&"auto"!=a.zindex&&a.zindex>x&&(x=a.zindex);a.isie&&0==a.zindex&&"auto"==a.opt.zindex&&
(a.zindex="auto");if(!a.ispage||!e.cantouch&&!e.isieold&&!e.isie9mobile){var b=a.docscroll;a.ispage&&(b=a.haswrapper?a.win:a.doc);e.isie9mobile||a.css(b,{"overflow-y":"hidden"});a.ispage&&e.isie7&&("BODY"==a.doc[0].nodeName?a.css(f("html"),{"overflow-y":"hidden"}):"HTML"==a.doc[0].nodeName&&a.css(f("body"),{"overflow-y":"hidden"}));!e.isios||a.ispage||a.haswrapper||a.css(f("body"),{"-webkit-overflow-scrolling":"touch"});var g=f(document.createElement("div"));g.css({position:"relative",top:0,"float":"right",
width:a.opt.cursorwidth,height:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius});g.hborder=parseFloat(g.outerHeight()-g.innerHeight());g.addClass("nicescroll-cursors");a.cursor=g;var c=f(document.createElement("div"));c.attr("id",a.id);c.addClass("nicescroll-rails nicescroll-rails-vr");var d,h,k=["left","right",
"top","bottom"],J;for(J in k)h=k[J],(d=a.opt.railpadding[h])?c.css("padding-"+h,d+"px"):a.opt.railpadding[h]=0;c.append(g);c.width=Math.max(parseFloat(a.opt.cursorwidth),g.outerWidth());c.css({width:c.width+"px",zIndex:a.zindex,background:a.opt.background,cursor:"default"});c.visibility=!0;c.scrollable=!0;c.align="left"==a.opt.railalign?0:1;a.rail=c;g=a.rail.drag=!1;!a.opt.boxzoom||a.ispage||e.isieold||(g=document.createElement("div"),a.bind(g,"click",a.doZoom),a.bind(g,"mouseenter",function(){a.zoom.css("opacity",
a.opt.cursoropacitymax)}),a.bind(g,"mouseleave",function(){a.zoom.css("opacity",a.opt.cursoropacitymin)}),a.zoom=f(g),a.zoom.css({cursor:"pointer","z-index":a.zindex,backgroundImage:"url("+a.opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),a.opt.dblclickzoom&&a.bind(a.win,"dblclick",a.doZoom),e.cantouch&&a.opt.gesturezoom&&(a.ongesturezoom=function(b){1.5<b.scale&&a.doZoomIn(b);.8>b.scale&&a.doZoomOut(b);return a.cancelEvent(b)},a.bind(a.win,"gestureend",a.ongesturezoom)));
a.railh=!1;var l;a.opt.horizrailenabled&&(a.css(b,{"overflow-x":"hidden"}),g=f(document.createElement("div")),g.css({position:"absolute",top:0,height:a.opt.cursorwidth,width:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius}),e.isieold&&g.css({overflow:"hidden"}),g.wborder=parseFloat(g.outerWidth()-g.innerWidth()),
g.addClass("nicescroll-cursors"),a.cursorh=g,l=f(document.createElement("div")),l.attr("id",a.id+"-hr"),l.addClass("nicescroll-rails nicescroll-rails-hr"),l.height=Math.max(parseFloat(a.opt.cursorwidth),g.outerHeight()),l.css({height:l.height+"px",zIndex:a.zindex,background:a.opt.background}),l.append(g),l.visibility=!0,l.scrollable=!0,l.align="top"==a.opt.railvalign?0:1,a.railh=l,a.railh.drag=!1);a.ispage?(c.css({position:"fixed",top:"0px",height:"100%"}),c.align?c.css({right:"0px"}):c.css({left:"0px"}),
a.body.append(c),a.railh&&(l.css({position:"fixed",left:"0px",width:"100%"}),l.align?l.css({bottom:"0px"}):l.css({top:"0px"}),a.body.append(l))):(a.ishwscroll?("static"==a.win.css("position")&&a.css(a.win,{position:"relative"}),b="HTML"==a.win[0].nodeName?a.body:a.win,f(b).scrollTop(0).scrollLeft(0),a.zoom&&(a.zoom.css({position:"absolute",top:1,right:0,"margin-right":c.width+4}),b.append(a.zoom)),c.css({position:"absolute",top:0}),c.align?c.css({right:0}):c.css({left:0}),b.append(c),l&&(l.css({position:"absolute",
left:0,bottom:0}),l.align?l.css({bottom:0}):l.css({top:0}),b.append(l))):(a.isfixed="fixed"==a.win.css("position"),b=a.isfixed?"fixed":"absolute",a.isfixed||(a.viewport=a.getViewport(a.win[0])),a.viewport&&(a.body=a.viewport,0==/fixed|absolute/.test(a.viewport.css("position"))&&a.css(a.viewport,{position:"relative"})),c.css({position:b}),a.zoom&&a.zoom.css({position:b}),a.updateScrollBar(),a.body.append(c),a.zoom&&a.body.append(a.zoom),a.railh&&(l.css({position:b}),a.body.append(l))),e.isios&&a.css(a.win,
{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),e.isie&&a.opt.disableoutline&&a.win.attr("hideFocus","true"),e.iswebkit&&a.opt.disableoutline&&a.win.css({outline:"none"}));!1===a.opt.autohidemode?(a.autohidedom=!1,a.rail.css({opacity:a.opt.cursoropacitymax}),a.railh&&a.railh.css({opacity:a.opt.cursoropacitymax})):!0===a.opt.autohidemode||"leave"===a.opt.autohidemode?(a.autohidedom=f().add(a.rail),e.isie8&&(a.autohidedom=a.autohidedom.add(a.cursor)),a.railh&&(a.autohidedom=
a.autohidedom.add(a.railh)),a.railh&&e.isie8&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"scroll"==a.opt.autohidemode?(a.autohidedom=f().add(a.rail),a.railh&&(a.autohidedom=a.autohidedom.add(a.railh))):"cursor"==a.opt.autohidemode?(a.autohidedom=f().add(a.cursor),a.railh&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"hidden"==a.opt.autohidemode&&(a.autohidedom=!1,a.hide(),a.railslocked=!1);if(e.isie9mobile)a.scrollmom=new L(a),a.onmangotouch=function(){var b=a.getScrollTop(),c=a.getScrollLeft();
if(b==a.scrollmom.lastscrolly&&c==a.scrollmom.lastscrollx)return!0;var g=b-a.mangotouch.sy,e=c-a.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(e,2)+Math.pow(g,2)))){var d=0>g?-1:1,f=0>e?-1:1,q=+new Date;a.mangotouch.lazy&&clearTimeout(a.mangotouch.lazy);80<q-a.mangotouch.tm||a.mangotouch.dry!=d||a.mangotouch.drx!=f?(a.scrollmom.stop(),a.scrollmom.reset(c,b),a.mangotouch.sy=b,a.mangotouch.ly=b,a.mangotouch.sx=c,a.mangotouch.lx=c,a.mangotouch.dry=d,a.mangotouch.drx=f,a.mangotouch.tm=q):(a.scrollmom.stop(),
a.scrollmom.update(a.mangotouch.stco-e,a.mangotouch.sy-g),a.mangotouch.tm=q,g=Math.max(Math.abs(a.mangotouch.ly-b),Math.abs(a.mangotouch.ltco-c)),a.mangotouch.ly=b,a.mangotouch.lx=c,2<g&&(a.mangotouch.lazy=setTimeout(function(){a.mangotouch.lazy=!1;a.mangotouch.dry=0;a.mangotouch.drx=0;a.mangotouch.tm=0;a.scrollmom.doMomentum(30)},100)))}},c=a.getScrollTop(),l=a.getScrollLeft(),a.mangotouch={sy:c,ly:c,dry:0,sx:l,lx:l,drx:0,lazy:!1,tm:0},a.bind(a.docscroll,"scroll",a.onmangotouch);else{if(e.cantouch||
a.istouchcapable||a.opt.touchbehavior||e.hasmstouch){a.scrollmom=new L(a);a.ontouchstart=function(b){if(b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;a.hasmoving=!1;if(!a.railslocked){var c;if(e.hasmstouch)for(c=b.target?b.target:!1;c;){var g=f(c).getNiceScroll();if(0<g.length&&g[0].me==a.me)break;if(0<g.length)return!1;if("DIV"==c.nodeName&&c.id==a.id)break;c=c.parentNode?c.parentNode:!1}a.cancelScroll();if((c=a.getTarget(b))&&/INPUT/i.test(c.nodeName)&&/range/i.test(c.type))return a.stopPropagation(b);
!("clientX"in b)&&"changedTouches"in b&&(b.clientX=b.changedTouches[0].clientX,b.clientY=b.changedTouches[0].clientY);a.forcescreen&&(g=b,b={original:b.original?b.original:b},b.clientX=g.screenX,b.clientY=g.screenY);a.rail.drag={x:b.clientX,y:b.clientY,sx:a.scroll.x,sy:a.scroll.y,st:a.getScrollTop(),sl:a.getScrollLeft(),pt:2,dl:!1};if(a.ispage||!a.opt.directionlockdeadzone)a.rail.drag.dl="f";else{var g=f(window).width(),d=f(window).height(),q=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),
h=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),d=Math.max(0,h-d),g=Math.max(0,q-g);a.rail.drag.ck=!a.rail.scrollable&&a.railh.scrollable?0<d?"v":!1:a.rail.scrollable&&!a.railh.scrollable?0<g?"h":!1:!1;a.rail.drag.ck||(a.rail.drag.dl="f")}a.opt.touchbehavior&&a.isiframe&&e.isie&&(g=a.win.position(),a.rail.drag.x+=g.left,a.rail.drag.y+=g.top);a.hasmoving=!1;a.lastmouseup=!1;a.scrollmom.reset(b.clientX,b.clientY);if(!e.cantouch&&!this.istouchcapable&&!b.pointerType){if(!c||
!/INPUT|SELECT|TEXTAREA/i.test(c.nodeName))return!a.ispage&&e.hasmousecapture&&c.setCapture(),a.opt.touchbehavior?(c.onclick&&!c._onclick&&(c._onclick=c.onclick,c.onclick=function(b){if(a.hasmoving)return!1;c._onclick.call(this,b)}),a.cancelEvent(b)):a.stopPropagation(b);/SUBMIT|CANCEL|BUTTON/i.test(f(c).attr("type"))&&(pc={tg:c,click:!1},a.preventclick=pc)}}};a.ontouchend=function(b){if(!a.rail.drag)return!0;if(2==a.rail.drag.pt){if(b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;
a.scrollmom.doMomentum();a.rail.drag=!1;if(a.hasmoving&&(a.lastmouseup=!0,a.hideCursor(),e.hasmousecapture&&document.releaseCapture(),!e.cantouch))return a.cancelEvent(b)}else if(1==a.rail.drag.pt)return a.onmouseup(b)};var n=a.opt.touchbehavior&&a.isiframe&&!e.hasmousecapture;a.ontouchmove=function(b,c){if(!a.rail.drag||b.targetTouches&&a.opt.preventmultitouchscrolling&&1<b.targetTouches.length||b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;if(2==a.rail.drag.pt){if(e.cantouch&&
e.isios&&"undefined"==typeof b.original)return!0;a.hasmoving=!0;a.preventclick&&!a.preventclick.click&&(a.preventclick.click=a.preventclick.tg.onclick||!1,a.preventclick.tg.onclick=a.onpreventclick);b=f.extend({original:b},b);"changedTouches"in b&&(b.clientX=b.changedTouches[0].clientX,b.clientY=b.changedTouches[0].clientY);if(a.forcescreen){var g=b;b={original:b.original?b.original:b};b.clientX=g.screenX;b.clientY=g.screenY}var d,g=d=0;n&&!c&&(d=a.win.position(),g=-d.left,d=-d.top);var q=b.clientY+
d;d=q-a.rail.drag.y;var h=b.clientX+g,u=h-a.rail.drag.x,k=a.rail.drag.st-d;a.ishwscroll&&a.opt.bouncescroll?0>k?k=Math.round(k/2):k>a.page.maxh&&(k=a.page.maxh+Math.round((k-a.page.maxh)/2)):(0>k&&(q=k=0),k>a.page.maxh&&(k=a.page.maxh,q=0));var l;a.railh&&a.railh.scrollable&&(l=a.isrtlmode?u-a.rail.drag.sl:a.rail.drag.sl-u,a.ishwscroll&&a.opt.bouncescroll?0>l?l=Math.round(l/2):l>a.page.maxw&&(l=a.page.maxw+Math.round((l-a.page.maxw)/2)):(0>l&&(h=l=0),l>a.page.maxw&&(l=a.page.maxw,h=0)));g=!1;if(a.rail.drag.dl)g=
!0,"v"==a.rail.drag.dl?l=a.rail.drag.sl:"h"==a.rail.drag.dl&&(k=a.rail.drag.st);else{d=Math.abs(d);var u=Math.abs(u),z=a.opt.directionlockdeadzone;if("v"==a.rail.drag.ck){if(d>z&&u<=.3*d)return a.rail.drag=!1,!0;u>z&&(a.rail.drag.dl="f",f("body").scrollTop(f("body").scrollTop()))}else if("h"==a.rail.drag.ck){if(u>z&&d<=.3*u)return a.rail.drag=!1,!0;d>z&&(a.rail.drag.dl="f",f("body").scrollLeft(f("body").scrollLeft()))}}a.synched("touchmove",function(){a.rail.drag&&2==a.rail.drag.pt&&(a.prepareTransition&&
a.prepareTransition(0),a.rail.scrollable&&a.setScrollTop(k),a.scrollmom.update(h,q),a.railh&&a.railh.scrollable?(a.setScrollLeft(l),a.showCursor(k,l)):a.showCursor(k),e.isie10&&document.selection.clear())});e.ischrome&&a.istouchcapable&&(g=!1);if(g)return a.cancelEvent(b)}else if(1==a.rail.drag.pt)return a.onmousemove(b)}}a.onmousedown=function(b,c){if(!a.rail.drag||1==a.rail.drag.pt){if(a.railslocked)return a.cancelEvent(b);a.cancelScroll();a.rail.drag={x:b.clientX,y:b.clientY,sx:a.scroll.x,sy:a.scroll.y,
pt:1,hr:!!c};var g=a.getTarget(b);!a.ispage&&e.hasmousecapture&&g.setCapture();a.isiframe&&!e.hasmousecapture&&(a.saved.csspointerevents=a.doc.css("pointer-events"),a.css(a.doc,{"pointer-events":"none"}));a.hasmoving=!1;return a.cancelEvent(b)}};a.onmouseup=function(b){if(a.rail.drag){if(1!=a.rail.drag.pt)return!0;e.hasmousecapture&&document.releaseCapture();a.isiframe&&!e.hasmousecapture&&a.doc.css("pointer-events",a.saved.csspointerevents);a.rail.drag=!1;a.hasmoving&&a.triggerScrollEnd();return a.cancelEvent(b)}};
a.onmousemove=function(b){if(a.rail.drag&&1==a.rail.drag.pt){if(e.ischrome&&0==b.which)return a.onmouseup(b);a.cursorfreezed=!0;a.hasmoving=!0;if(a.rail.drag.hr){a.scroll.x=a.rail.drag.sx+(b.clientX-a.rail.drag.x);0>a.scroll.x&&(a.scroll.x=0);var c=a.scrollvaluemaxw;a.scroll.x>c&&(a.scroll.x=c)}else a.scroll.y=a.rail.drag.sy+(b.clientY-a.rail.drag.y),0>a.scroll.y&&(a.scroll.y=0),c=a.scrollvaluemax,a.scroll.y>c&&(a.scroll.y=c);a.synched("mousemove",function(){a.rail.drag&&1==a.rail.drag.pt&&(a.showCursor(),
a.rail.drag.hr?a.hasreversehr?a.doScrollLeft(a.scrollvaluemaxw-Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollLeft(Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollTop(Math.round(a.scroll.y*a.scrollratio.y),a.opt.cursordragspeed))});return a.cancelEvent(b)}};if(e.cantouch||a.opt.touchbehavior)a.onpreventclick=function(b){if(a.preventclick)return a.preventclick.tg.onclick=a.preventclick.click,a.preventclick=!1,a.cancelEvent(b)},a.bind(a.win,"mousedown",
a.ontouchstart),a.onclick=e.isios?!1:function(b){return a.lastmouseup?(a.lastmouseup=!1,a.cancelEvent(b)):!0},a.opt.grabcursorenabled&&e.cursorgrabvalue&&(a.css(a.ispage?a.doc:a.win,{cursor:e.cursorgrabvalue}),a.css(a.rail,{cursor:e.cursorgrabvalue}));else{var p=function(b){if(a.selectiondrag){if(b){var c=a.win.outerHeight();b=b.pageY-a.selectiondrag.top;0<b&&b<c&&(b=0);b>=c&&(b-=c);a.selectiondrag.df=b}0!=a.selectiondrag.df&&(a.doScrollBy(2*-Math.floor(a.selectiondrag.df/6)),a.debounced("doselectionscroll",
function(){p()},50))}};a.hasTextSelected="getSelection"in document?function(){return 0<document.getSelection().rangeCount}:"selection"in document?function(){return"None"!=document.selection.type}:function(){return!1};a.onselectionstart=function(b){a.ispage||(a.selectiondrag=a.win.offset())};a.onselectionend=function(b){a.selectiondrag=!1};a.onselectiondrag=function(b){a.selectiondrag&&a.hasTextSelected()&&a.debounced("selectionscroll",function(){p(b)},250)}}e.hasw3ctouch?(a.css(a.rail,{"touch-action":"none"}),
a.css(a.cursor,{"touch-action":"none"}),a.bind(a.win,"pointerdown",a.ontouchstart),a.bind(document,"pointerup",a.ontouchend),a.bind(document,"pointermove",a.ontouchmove)):e.hasmstouch?(a.css(a.rail,{"-ms-touch-action":"none"}),a.css(a.cursor,{"-ms-touch-action":"none"}),a.bind(a.win,"MSPointerDown",a.ontouchstart),a.bind(document,"MSPointerUp",a.ontouchend),a.bind(document,"MSPointerMove",a.ontouchmove),a.bind(a.cursor,"MSGestureHold",function(a){a.preventDefault()}),a.bind(a.cursor,"contextmenu",
function(a){a.preventDefault()})):this.istouchcapable&&(a.bind(a.win,"touchstart",a.ontouchstart),a.bind(document,"touchend",a.ontouchend),a.bind(document,"touchcancel",a.ontouchend),a.bind(document,"touchmove",a.ontouchmove));if(a.opt.cursordragontouch||!e.cantouch&&!a.opt.touchbehavior)a.rail.css({cursor:"default"}),a.railh&&a.railh.css({cursor:"default"}),a.jqbind(a.rail,"mouseenter",function(){if(!a.ispage&&!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),
a.jqbind(a.rail,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.rail,"click",function(b){a.doRailClick(b,!1,!1)}),a.bind(a.rail,"dblclick",function(b){a.doRailClick(b,!0,!1)}),a.bind(a.cursor,"click",function(b){a.cancelEvent(b)}),a.bind(a.cursor,"dblclick",function(b){a.cancelEvent(b)})),a.railh&&(a.jqbind(a.railh,"mouseenter",function(){if(!a.ispage&&!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.railh,
"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.railh,"click",function(b){a.doRailClick(b,!1,!0)}),a.bind(a.railh,"dblclick",function(b){a.doRailClick(b,!0,!0)}),a.bind(a.cursorh,"click",function(b){a.cancelEvent(b)}),a.bind(a.cursorh,"dblclick",function(b){a.cancelEvent(b)})));e.cantouch||a.opt.touchbehavior?(a.bind(e.hasmousecapture?a.win:document,"mouseup",a.ontouchend),a.bind(document,"mousemove",a.ontouchmove),a.onclick&&a.bind(document,"click",
a.onclick),a.opt.cursordragontouch&&(a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mouseup",a.onmouseup),a.cursorh&&a.bind(a.cursorh,"mousedown",function(b){a.onmousedown(b,!0)}),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onmouseup))):(a.bind(e.hasmousecapture?a.win:document,"mouseup",a.onmouseup),a.bind(document,"mousemove",a.onmousemove),a.onclick&&a.bind(document,"click",a.onclick),a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mouseup",a.onmouseup),a.railh&&(a.bind(a.cursorh,
"mousedown",function(b){a.onmousedown(b,!0)}),a.bind(a.cursorh,"mouseup",a.onmouseup)),!a.ispage&&a.opt.enablescrollonselection&&(a.bind(a.win[0],"mousedown",a.onselectionstart),a.bind(document,"mouseup",a.onselectionend),a.bind(a.cursor,"mouseup",a.onselectionend),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onselectionend),a.bind(document,"mousemove",a.onselectiondrag)),a.zoom&&(a.jqbind(a.zoom,"mouseenter",function(){a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.zoom,"mouseleave",
function(){a.rail.active=!1;a.rail.drag||a.hideCursor()})));a.opt.enablemousewheel&&(a.isiframe||a.bind(e.isie&&a.ispage?document:a.win,"mousewheel",a.onmousewheel),a.bind(a.rail,"mousewheel",a.onmousewheel),a.railh&&a.bind(a.railh,"mousewheel",a.onmousewheelhr));a.ispage||e.cantouch||/HTML|^BODY/.test(a.win[0].nodeName)||(a.win.attr("tabindex")||a.win.attr({tabindex:N++}),a.jqbind(a.win,"focus",function(b){y=a.getTarget(b).id||!0;a.hasfocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,
"blur",function(b){y=!1;a.hasfocus=!1}),a.jqbind(a.win,"mouseenter",function(b){D=a.getTarget(b).id||!0;a.hasmousefocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,"mouseleave",function(){D=!1;a.hasmousefocus=!1;a.rail.drag||a.hideCursor()}))}a.onkeypress=function(b){if(a.railslocked&&0==a.page.maxh)return!0;b=b?b:window.e;var c=a.getTarget(b);if(c&&/INPUT|TEXTAREA|SELECT|OPTION/.test(c.nodeName)&&(!c.getAttribute("type")&&!c.type||!/submit|button|cancel/i.tp)||f(c).attr("contenteditable"))return!0;
if(a.hasfocus||a.hasmousefocus&&!y||a.ispage&&!y&&!D){c=b.keyCode;if(a.railslocked&&27!=c)return a.cancelEvent(b);var g=b.ctrlKey||!1,d=b.shiftKey||!1,e=!1;switch(c){case 38:case 63233:a.doScrollBy(72);e=!0;break;case 40:case 63235:a.doScrollBy(-72);e=!0;break;case 37:case 63232:a.railh&&(g?a.doScrollLeft(0):a.doScrollLeftBy(72),e=!0);break;case 39:case 63234:a.railh&&(g?a.doScrollLeft(a.page.maxw):a.doScrollLeftBy(-72),e=!0);break;case 33:case 63276:a.doScrollBy(a.view.h);e=!0;break;case 34:case 63277:a.doScrollBy(-a.view.h);
e=!0;break;case 36:case 63273:a.railh&&g?a.doScrollPos(0,0):a.doScrollTo(0);e=!0;break;case 35:case 63275:a.railh&&g?a.doScrollPos(a.page.maxw,a.page.maxh):a.doScrollTo(a.page.maxh);e=!0;break;case 32:a.opt.spacebarenabled&&(d?a.doScrollBy(a.view.h):a.doScrollBy(-a.view.h),e=!0);break;case 27:a.zoomactive&&(a.doZoom(),e=!0)}if(e)return a.cancelEvent(b)}};a.opt.enablekeyboard&&a.bind(document,e.isopera&&!e.isopera12?"keypress":"keydown",a.onkeypress);a.bind(document,"keydown",function(b){b.ctrlKey&&
(a.wheelprevented=!0)});a.bind(document,"keyup",function(b){b.ctrlKey||(a.wheelprevented=!1)});a.bind(window,"blur",function(b){a.wheelprevented=!1});a.bind(window,"resize",a.lazyResize);a.bind(window,"orientationchange",a.lazyResize);a.bind(window,"load",a.lazyResize);if(e.ischrome&&!a.ispage&&!a.haswrapper){var r=a.win.attr("style"),c=parseFloat(a.win.css("width"))+1;a.win.css("width",c);a.synched("chromefix",function(){a.win.attr("style",r)})}a.onAttributeChange=function(b){a.lazyResize(a.isieold?
250:30)};!1!==v&&(a.observerbody=new v(function(b){b.forEach(function(b){if("attributes"==b.type)return f("body").hasClass("modal-open")?a.hide():a.show()});if(document.body.scrollHeight!=a.page.maxh)return a.lazyResize(30)}),a.observerbody.observe(document.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]}));a.ispage||a.haswrapper||(!1!==v?(a.observer=new v(function(b){b.forEach(a.onAttributeChange)}),a.observer.observe(a.win[0],{childList:!0,characterData:!1,
attributes:!0,subtree:!1}),a.observerremover=new v(function(b){b.forEach(function(b){if(0<b.removedNodes.length)for(var c in b.removedNodes)if(a&&b.removedNodes[c]==a.win[0])return a.remove()})}),a.observerremover.observe(a.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(a.bind(a.win,e.isie&&!e.isie9?"propertychange":"DOMAttrModified",a.onAttributeChange),e.isie9&&a.win[0].attachEvent("onpropertychange",a.onAttributeChange),a.bind(a.win,"DOMNodeRemoved",function(b){b.target==
a.win[0]&&a.remove()})));!a.ispage&&a.opt.boxzoom&&a.bind(window,"resize",a.resizeZoom);a.istextarea&&a.bind(a.win,"mouseup",a.lazyResize);a.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var M=function(){a.iframexd=!1;var b;try{b="contentDocument"in this?this.contentDocument:this.contentWindow.document}catch(c){a.iframexd=!0,b=!1}if(a.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;a.forcescreen=!0;a.isiframe&&(a.iframe={doc:f(b),html:a.doc.contents().find("html")[0],
body:a.doc.contents().find("body")[0]},a.getContentSize=function(){return{w:Math.max(a.iframe.html.scrollWidth,a.iframe.body.scrollWidth),h:Math.max(a.iframe.html.scrollHeight,a.iframe.body.scrollHeight)}},a.docscroll=f(a.iframe.body));if(!e.isios&&a.opt.iframeautoresize&&!a.isiframe){a.win.scrollTop(0);a.doc.height("");var g=Math.max(b.getElementsByTagName("html")[0].scrollHeight,b.body.scrollHeight);a.doc.height(g)}a.lazyResize(30);e.isie7&&a.css(f(a.iframe.html),{"overflow-y":"hidden"});a.css(f(a.iframe.body),
{"overflow-y":"hidden"});e.isios&&a.haswrapper&&a.css(f(b.body),{"-webkit-transform":"translate3d(0,0,0)"});"contentWindow"in this?a.bind(this.contentWindow,"scroll",a.onscroll):a.bind(b,"scroll",a.onscroll);a.opt.enablemousewheel&&a.bind(b,"mousewheel",a.onmousewheel);a.opt.enablekeyboard&&a.bind(b,e.isopera?"keypress":"keydown",a.onkeypress);if(e.cantouch||a.opt.touchbehavior)a.bind(b,"mousedown",a.ontouchstart),a.bind(b,"mousemove",function(b){return a.ontouchmove(b,!0)}),a.opt.grabcursorenabled&&
e.cursorgrabvalue&&a.css(f(b.body),{cursor:e.cursorgrabvalue});a.bind(b,"mouseup",a.ontouchend);a.zoom&&(a.opt.dblclickzoom&&a.bind(b,"dblclick",a.doZoom),a.ongesturezoom&&a.bind(b,"gestureend",a.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){M.call(a.doc[0],!1)},500);a.bind(this.doc,"load",M)}};this.showCursor=function(b,c){a.cursortimeout&&(clearTimeout(a.cursortimeout),a.cursortimeout=0);if(a.rail){a.autohidedom&&(a.autohidedom.stop().css({opacity:a.opt.cursoropacitymax}),
a.cursoractive=!0);a.rail.drag&&1==a.rail.drag.pt||("undefined"!=typeof b&&!1!==b&&(a.scroll.y=Math.round(1*b/a.scrollratio.y)),"undefined"!=typeof c&&(a.scroll.x=Math.round(1*c/a.scrollratio.x)));a.cursor.css({height:a.cursorheight,top:a.scroll.y});if(a.cursorh){var d=a.hasreversehr?a.scrollvaluemaxw-a.scroll.x:a.scroll.x;!a.rail.align&&a.rail.visibility?a.cursorh.css({width:a.cursorwidth,left:d+a.rail.width}):a.cursorh.css({width:a.cursorwidth,left:d});a.cursoractive=!0}a.zoom&&a.zoom.stop().css({opacity:a.opt.cursoropacitymax})}};
this.hideCursor=function(b){a.cursortimeout||!a.rail||!a.autohidedom||a.hasmousefocus&&"leave"==a.opt.autohidemode||(a.cursortimeout=setTimeout(function(){a.rail.active&&a.showonmouseevent||(a.autohidedom.stop().animate({opacity:a.opt.cursoropacitymin}),a.zoom&&a.zoom.stop().animate({opacity:a.opt.cursoropacitymin}),a.cursoractive=!1);a.cursortimeout=0},b||a.opt.hidecursordelay))};this.noticeCursor=function(b,c,d){a.showCursor(c,d);a.rail.active||a.hideCursor(b)};this.getContentSize=a.ispage?function(){return{w:Math.max(document.body.scrollWidth,
document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:a.haswrapper?function(){return{w:a.doc.outerWidth()+parseInt(a.win.css("paddingLeft"))+parseInt(a.win.css("paddingRight")),h:a.doc.outerHeight()+parseInt(a.win.css("paddingTop"))+parseInt(a.win.css("paddingBottom"))}}:function(){return{w:a.docscroll[0].scrollWidth,h:a.docscroll[0].scrollHeight}};this.onResize=function(b,c){if(!a||!a.win)return!1;if(!a.haswrapper&&!a.ispage){if("none"==
a.win.css("display"))return a.visibility&&a.hideRail().hideRailHr(),!1;a.hidden||a.visibility||a.showRail().showRailHr()}var d=a.page.maxh,e=a.page.maxw,f=a.view.h,h=a.view.w;a.view={w:a.ispage?a.win.width():parseInt(a.win[0].clientWidth),h:a.ispage?a.win.height():parseInt(a.win[0].clientHeight)};a.page=c?c:a.getContentSize();a.page.maxh=Math.max(0,a.page.h-a.view.h);a.page.maxw=Math.max(0,a.page.w-a.view.w);if(a.page.maxh==d&&a.page.maxw==e&&a.view.w==h&&a.view.h==f){if(a.ispage)return a;d=a.win.offset();
if(a.lastposition&&(e=a.lastposition,e.top==d.top&&e.left==d.left))return a;a.lastposition=d}0==a.page.maxh?(a.hideRail(),a.scrollvaluemax=0,a.scroll.y=0,a.scrollratio.y=0,a.cursorheight=0,a.setScrollTop(0),a.rail.scrollable=!1):(a.page.maxh-=a.opt.railpadding.top+a.opt.railpadding.bottom,a.rail.scrollable=!0);0==a.page.maxw?(a.hideRailHr(),a.scrollvaluemaxw=0,a.scroll.x=0,a.scrollratio.x=0,a.cursorwidth=0,a.setScrollLeft(0),a.railh.scrollable=!1):(a.page.maxw-=a.opt.railpadding.left+a.opt.railpadding.right,
a.railh.scrollable=!0);a.railslocked=a.locked||0==a.page.maxh&&0==a.page.maxw;if(a.railslocked)return a.ispage||a.updateScrollBar(a.view),!1;a.hidden||a.visibility?a.hidden||a.railh.visibility||a.showRailHr():a.showRail().showRailHr();a.istextarea&&a.win.css("resize")&&"none"!=a.win.css("resize")&&(a.view.h-=20);a.cursorheight=Math.min(a.view.h,Math.round(a.view.h/a.page.h*a.view.h));a.cursorheight=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorheight);a.cursorwidth=
Math.min(a.view.w,Math.round(a.view.w/a.page.w*a.view.w));a.cursorwidth=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorwidth);a.scrollvaluemax=a.view.h-a.cursorheight-a.cursor.hborder-(a.opt.railpadding.top+a.opt.railpadding.bottom);a.railh&&(a.railh.width=0<a.page.maxh?a.view.w-a.rail.width:a.view.w,a.scrollvaluemaxw=a.railh.width-a.cursorwidth-a.cursorh.wborder-(a.opt.railpadding.left+a.opt.railpadding.right));a.ispage||a.updateScrollBar(a.view);a.scrollratio=
{x:a.page.maxw/a.scrollvaluemaxw,y:a.page.maxh/a.scrollvaluemax};a.getScrollTop()>a.page.maxh?a.doScrollTop(a.page.maxh):(a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y)),a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)),a.cursoractive&&a.noticeCursor());a.scroll.y&&0==a.getScrollTop()&&a.doScrollTo(Math.floor(a.scroll.y*a.scrollratio.y));return a};this.resize=a.onResize;this.lazyResize=function(b){b=isNaN(b)?30:b;a.debounced("resize",a.resize,b);return a};this.jqbind=function(b,
c,d){a.events.push({e:b,n:c,f:d,q:!0});f(b).bind(c,d)};this.bind=function(b,c,d,f){var h="jquery"in b?b[0]:b;"mousewheel"==c?window.addEventListener||"onwheel"in document?a._bind(h,"wheel",d,f||!1):(b="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",n(h,b,d,f||!1),"DOMMouseScroll"==b&&n(h,"MozMousePixelScroll",d,f||!1)):h.addEventListener?(e.cantouch&&/mouseup|mousedown|mousemove/.test(c)&&a._bind(h,"mousedown"==c?"touchstart":"mouseup"==c?"touchend":"touchmove",function(a){if(a.touches){if(2>
a.touches.length){var b=a.touches.length?a.touches[0]:a;b.original=a;d.call(this,b)}}else a.changedTouches&&(b=a.changedTouches[0],b.original=a,d.call(this,b))},f||!1),a._bind(h,c,d,f||!1),e.cantouch&&"mouseup"==c&&a._bind(h,"touchcancel",d,f||!1)):a._bind(h,c,function(b){(b=b||window.event||!1)&&b.srcElement&&(b.target=b.srcElement);"pageY"in b||(b.pageX=b.clientX+document.documentElement.scrollLeft,b.pageY=b.clientY+document.documentElement.scrollTop);return!1===d.call(h,b)||!1===f?a.cancelEvent(b):
!0})};e.haseventlistener?(this._bind=function(b,c,d,e){a.events.push({e:b,n:c,f:d,b:e,q:!1});b.addEventListener(c,d,e||!1)},this.cancelEvent=function(a){if(!a)return!1;a=a.original?a.original:a;a.preventDefault();a.stopPropagation();a.preventManipulation&&a.preventManipulation();return!1},this.stopPropagation=function(a){if(!a)return!1;a=a.original?a.original:a;a.stopPropagation();return!1},this._unbind=function(a,c,d,e){a.removeEventListener(c,d,e)}):(this._bind=function(b,c,d,e){a.events.push({e:b,
n:c,f:d,b:e,q:!1});b.attachEvent?b.attachEvent("on"+c,d):b["on"+c]=d},this.cancelEvent=function(a){a=window.event||!1;if(!a)return!1;a.cancelBubble=!0;a.cancel=!0;return a.returnValue=!1},this.stopPropagation=function(a){a=window.event||!1;if(!a)return!1;a.cancelBubble=!0;return!1},this._unbind=function(a,c,d,e){a.detachEvent?a.detachEvent("on"+c,d):a["on"+c]=!1});this.unbindAll=function(){for(var b=0;b<a.events.length;b++){var c=a.events[b];c.q?c.e.unbind(c.n,c.f):a._unbind(c.e,c.n,c.f,c.b)}};this.showRail=
function(){0==a.page.maxh||!a.ispage&&"none"==a.win.css("display")||(a.visibility=!0,a.rail.visibility=!0,a.rail.css("display","block"));return a};this.showRailHr=function(){if(!a.railh)return a;0==a.page.maxw||!a.ispage&&"none"==a.win.css("display")||(a.railh.visibility=!0,a.railh.css("display","block"));return a};this.hideRail=function(){a.visibility=!1;a.rail.visibility=!1;a.rail.css("display","none");return a};this.hideRailHr=function(){if(!a.railh)return a;a.railh.visibility=!1;a.railh.css("display",
"none");return a};this.show=function(){a.hidden=!1;a.railslocked=!1;return a.showRail().showRailHr()};this.hide=function(){a.hidden=!0;a.railslocked=!0;return a.hideRail().hideRailHr()};this.toggle=function(){return a.hidden?a.show():a.hide()};this.remove=function(){a.stop();a.cursortimeout&&clearTimeout(a.cursortimeout);a.doZoomOut();a.unbindAll();e.isie9&&a.win[0].detachEvent("onpropertychange",a.onAttributeChange);!1!==a.observer&&a.observer.disconnect();!1!==a.observerremover&&a.observerremover.disconnect();
!1!==a.observerbody&&a.observerbody.disconnect();a.events=null;a.cursor&&a.cursor.remove();a.cursorh&&a.cursorh.remove();a.rail&&a.rail.remove();a.railh&&a.railh.remove();a.zoom&&a.zoom.remove();for(var b=0;b<a.saved.css.length;b++){var c=a.saved.css[b];c[0].css(c[1],"undefined"==typeof c[2]?"":c[2])}a.saved=!1;a.me.data("__nicescroll","");var d=f.nicescroll;d.each(function(b){if(this&&this.id===a.id){delete d[b];for(var c=++b;c<d.length;c++,b++)d[b]=d[c];d.length--;d.length&&delete d[d.length]}});
for(var h in a)a[h]=null,delete a[h];a=null};this.scrollstart=function(b){this.onscrollstart=b;return a};this.scrollend=function(b){this.onscrollend=b;return a};this.scrollcancel=function(b){this.onscrollcancel=b;return a};this.zoomin=function(b){this.onzoomin=b;return a};this.zoomout=function(b){this.onzoomout=b;return a};this.isScrollable=function(a){a=a.target?a.target:a;if("OPTION"==a.nodeName)return!0;for(;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var c=f(a),c=c.css("overflowY")||c.css("overflowX")||
c.css("overflow")||"";if(/scroll|auto/.test(c))return a.clientHeight!=a.scrollHeight;a=a.parentNode?a.parentNode:!1}return!1};this.getViewport=function(a){for(a=a&&a.parentNode?a.parentNode:!1;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var c=f(a);if(/fixed|absolute/.test(c.css("position")))return c;var d=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(d)&&a.clientHeight!=a.scrollHeight||0<c.getNiceScroll().length)return c;a=a.parentNode?a.parentNode:!1}return!1};
this.triggerScrollEnd=function(){if(a.onscrollend){var b=a.getScrollLeft(),c=a.getScrollTop();a.onscrollend.call(a,{type:"scrollend",current:{x:b,y:c},end:{x:b,y:c}})}};this.onmousewheel=function(b){if(!a.wheelprevented){if(a.railslocked)return a.debounced("checkunlock",a.resize,250),!0;if(a.rail.drag)return a.cancelEvent(b);"auto"==a.opt.oneaxismousemode&&0!=b.deltaX&&(a.opt.oneaxismousemode=!1);if(a.opt.oneaxismousemode&&0==b.deltaX&&!a.rail.scrollable)return a.railh&&a.railh.scrollable?a.onmousewheelhr(b):
!0;var c=+new Date,d=!1;a.opt.preservenativescrolling&&a.checkarea+600<c&&(a.nativescrollingarea=a.isScrollable(b),d=!0);a.checkarea=c;if(a.nativescrollingarea)return!0;if(b=p(b,!1,d))a.checkarea=0;return b}};this.onmousewheelhr=function(b){if(!a.wheelprevented){if(a.railslocked||!a.railh.scrollable)return!0;if(a.rail.drag)return a.cancelEvent(b);var c=+new Date,d=!1;a.opt.preservenativescrolling&&a.checkarea+600<c&&(a.nativescrollingarea=a.isScrollable(b),d=!0);a.checkarea=c;return a.nativescrollingarea?
!0:a.railslocked?a.cancelEvent(b):p(b,!0,d)}};this.stop=function(){a.cancelScroll();a.scrollmon&&a.scrollmon.stop();a.cursorfreezed=!1;a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.noticeCursor();return a};this.getTransitionSpeed=function(b){var c=Math.round(10*a.opt.scrollspeed);b=Math.min(c,Math.round(b/20*a.opt.scrollspeed));return 20<b?b:0};a.opt.smoothscroll?a.ishwscroll&&e.hastransition&&a.opt.usetransition&&a.opt.smoothscroll?(this.prepareTransition=function(b,c){var d=c?20<
b?b:0:a.getTransitionSpeed(b),f=d?e.prefixstyle+"transform "+d+"ms ease-out":"";a.lasttransitionstyle&&a.lasttransitionstyle==f||(a.lasttransitionstyle=f,a.doc.css(e.transitionstyle,f));return d},this.doScrollLeft=function(b,c){var d=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){var f=a.getScrollTop(),h=a.getScrollLeft();(0>(a.newscrolly-
f)*(c-f)||0>(a.newscrolltco-h)*(b-h))&&a.cancelScroll();0==a.opt.bouncescroll&&(0>c?c=0:c>a.page.maxh&&(c=a.page.maxh),0>b?b=0:b>a.page.maxw&&(b=a.page.maxw));if(a.scrollrunning&&b==a.newscrollx&&c==a.newscrolly)return!1;a.newscrolly=c;a.newscrollx=b;a.newscrollspeed=d||!1;if(a.timer)return!1;a.timer=setTimeout(function(){var d=a.getScrollTop(),f=a.getScrollLeft(),h,k;h=b-f;k=c-d;h=Math.round(Math.sqrt(Math.pow(h,2)+Math.pow(k,2)));h=a.newscrollspeed&&1<a.newscrollspeed?a.newscrollspeed:a.getTransitionSpeed(h);
a.newscrollspeed&&1>=a.newscrollspeed&&(h*=a.newscrollspeed);a.prepareTransition(h,!0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);0<h&&(!a.scrollrunning&&a.onscrollstart&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:f,y:d},request:{x:b,y:c},end:{x:a.newscrollx,y:a.newscrolly},speed:h}),e.transitionend?a.scrollendtrapped||(a.scrollendtrapped=!0,a.bind(a.doc,e.transitionend,a.onScrollTransitionEnd,!1)):(a.scrollendtrapped&&clearTimeout(a.scrollendtrapped),a.scrollendtrapped=
setTimeout(a.onScrollTransitionEnd,h)),a.timerscroll={bz:new A(d,a.newscrolly,h,0,0,.58,1),bh:new A(f,a.newscrollx,h,0,0,.58,1)},a.cursorfreezed||(a.timerscroll.tm=setInterval(function(){a.showCursor(a.getScrollTop(),a.getScrollLeft())},60)));a.synched("doScroll-set",function(){a.timer=0;a.scrollendtrapped&&(a.scrollrunning=!0);a.setScrollTop(a.newscrolly);a.setScrollLeft(a.newscrollx);if(!a.scrollendtrapped)a.onScrollTransitionEnd()})},50)},this.cancelScroll=function(){if(!a.scrollendtrapped)return!0;
var b=a.getScrollTop(),c=a.getScrollLeft();a.scrollrunning=!1;e.transitionend||clearTimeout(e.transitionend);a.scrollendtrapped=!1;a._unbind(a.doc[0],e.transitionend,a.onScrollTransitionEnd);a.prepareTransition(0);a.setScrollTop(b);a.railh&&a.setScrollLeft(c);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;a.cursorfreezed=!1;a.showCursor(b,c);return a},this.onScrollTransitionEnd=function(){a.scrollendtrapped&&a._unbind(a.doc[0],e.transitionend,a.onScrollTransitionEnd);
a.scrollendtrapped=!1;a.prepareTransition(0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;var b=a.getScrollTop(),c=a.getScrollLeft();a.setScrollTop(b);a.railh&&a.setScrollLeft(c);a.noticeCursor(!1,b,c);a.cursorfreezed=!1;0>b?b=0:b>a.page.maxh&&(b=a.page.maxh);0>c?c=0:c>a.page.maxw&&(c=a.page.maxw);if(b!=a.newscrolly||c!=a.newscrollx)return a.doScrollPos(c,b,a.opt.snapbackspeed);a.onscrollend&&a.scrollrunning&&a.triggerScrollEnd();a.scrollrunning=!1}):(this.doScrollLeft=
function(b,c){var d=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){function e(){if(a.cancelAnimationFrame)return!0;a.scrollrunning=!0;if(n=1-n)return a.timer=s(e)||1;var b=0,c,d,g=d=a.getScrollTop();if(a.dst.ay){g=a.bzscroll?a.dst.py+a.bzscroll.getNow()*a.dst.ay:a.newscrolly;c=g-d;if(0>c&&g<a.newscrolly||0<c&&g>a.newscrolly)g=a.newscrolly;
a.setScrollTop(g);g==a.newscrolly&&(b=1)}else b=1;d=c=a.getScrollLeft();if(a.dst.ax){d=a.bzscroll?a.dst.px+a.bzscroll.getNow()*a.dst.ax:a.newscrollx;c=d-c;if(0>c&&d<a.newscrollx||0<c&&d>a.newscrollx)d=a.newscrollx;a.setScrollLeft(d);d==a.newscrollx&&(b+=1)}else b+=1;2==b?(a.timer=0,a.cursorfreezed=!1,a.bzscroll=!1,a.scrollrunning=!1,0>g?g=0:g>a.page.maxh&&(g=a.page.maxh),0>d?d=0:d>a.page.maxw&&(d=a.page.maxw),d!=a.newscrollx||g!=a.newscrolly?a.doScrollPos(d,g):a.onscrollend&&a.triggerScrollEnd()):
a.timer=s(e)||1}c="undefined"==typeof c||!1===c?a.getScrollTop(!0):c;if(a.timer&&a.newscrolly==c&&a.newscrollx==b)return!0;a.timer&&t(a.timer);a.timer=0;var f=a.getScrollTop(),h=a.getScrollLeft();(0>(a.newscrolly-f)*(c-f)||0>(a.newscrolltco-h)*(b-h))&&a.cancelScroll();a.newscrolly=c;a.newscrollx=b;a.bouncescroll&&a.rail.visibility||(0>a.newscrolly?a.newscrolly=0:a.newscrolly>a.page.maxh&&(a.newscrolly=a.page.maxh));a.bouncescroll&&a.railh.visibility||(0>a.newscrollx?a.newscrollx=0:a.newscrollx>a.page.maxw&&
(a.newscrollx=a.page.maxw));a.dst={};a.dst.x=b-h;a.dst.y=c-f;a.dst.px=h;a.dst.py=f;var k=Math.round(Math.sqrt(Math.pow(a.dst.x,2)+Math.pow(a.dst.y,2)));a.dst.ax=a.dst.x/k;a.dst.ay=a.dst.y/k;var l=0,m=k;0==a.dst.x?(l=f,m=c,a.dst.ay=1,a.dst.py=0):0==a.dst.y&&(l=h,m=b,a.dst.ax=1,a.dst.px=0);k=a.getTransitionSpeed(k);d&&1>=d&&(k*=d);a.bzscroll=0<k?a.bzscroll?a.bzscroll.update(m,k):new A(l,m,k,0,1,0,1):!1;if(!a.timer){(f==a.page.maxh&&c>=a.page.maxh||h==a.page.maxw&&b>=a.page.maxw)&&a.checkContentSize();
var n=1;a.cancelAnimationFrame=!1;a.timer=1;a.onscrollstart&&!a.scrollrunning&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:h,y:f},request:{x:b,y:c},end:{x:a.newscrollx,y:a.newscrolly},speed:k});e();(f==a.page.maxh&&c>=f||h==a.page.maxw&&b>=h)&&a.checkContentSize();a.noticeCursor()}},this.cancelScroll=function(){a.timer&&t(a.timer);a.timer=0;a.bzscroll=!1;a.scrollrunning=!1;return a}):(this.doScrollLeft=function(b,c){var d=a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,
c){var d=a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){var e=b>a.page.maxw?a.page.maxw:b;0>e&&(e=0);var f=c>a.page.maxh?a.page.maxh:c;0>f&&(f=0);a.synched("scroll",function(){a.setScrollTop(f);a.setScrollLeft(e)})},this.cancelScroll=function(){});this.doScrollBy=function(b,c){var d=0,d=c?Math.floor((a.scroll.y-b)*a.scrollratio.y):(a.timer?a.newscrolly:a.getScrollTop(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.h/2);d<-e?d=-e:d>a.page.maxh+e&&(d=a.page.maxh+e)}a.cursorfreezed=
!1;e=a.getScrollTop(!0);if(0>d&&0>=e)return a.noticeCursor();if(d>a.page.maxh&&e>=a.page.maxh)return a.checkContentSize(),a.noticeCursor();a.doScrollTop(d)};this.doScrollLeftBy=function(b,c){var d=0,d=c?Math.floor((a.scroll.tco-b)*a.scrollratio.x):(a.timer?a.newscrollx:a.getScrollLeft(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.w/2);d<-e?d=-e:d>a.page.maxw+e&&(d=a.page.maxw+e)}a.cursorfreezed=!1;e=a.getScrollLeft(!0);if(0>d&&0>=e||d>a.page.maxw&&e>=a.page.maxw)return a.noticeCursor();a.doScrollLeft(d)};
this.doScrollTo=function(b,c){c&&Math.round(b*a.scrollratio.y);a.cursorfreezed=!1;a.doScrollTop(b)};this.checkContentSize=function(){var b=a.getContentSize();b.h==a.page.h&&b.w==a.page.w||a.resize(!1,b)};a.onscroll=function(b){a.rail.drag||a.cursorfreezed||a.synched("scroll",function(){a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.railh&&(a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)));a.noticeCursor()})};a.bind(a.docscroll,"scroll",a.onscroll);this.doZoomIn=function(b){if(!a.zoomactive){a.zoomactive=
!0;a.zoomrestore={style:{}};var c="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),d=a.win[0].style,h;for(h in c){var k=c[h];a.zoomrestore.style[k]="undefined"!=typeof d[k]?d[k]:""}a.zoomrestore.style.width=a.win.css("width");a.zoomrestore.style.height=a.win.css("height");a.zoomrestore.padding={w:a.win.outerWidth()-a.win.width(),h:a.win.outerHeight()-a.win.height()};e.isios4&&(a.zoomrestore.scrollTop=f(window).scrollTop(),f(window).scrollTop(0));
a.win.css({position:e.isios4?"absolute":"fixed",top:0,left:0,"z-index":x+100,margin:"0px"});c=a.win.css("backgroundColor");(""==c||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(c))&&a.win.css("backgroundColor","#fff");a.rail.css({"z-index":x+101});a.zoom.css({"z-index":x+102});a.zoom.css("backgroundPosition","0px -18px");a.resizeZoom();a.onzoomin&&a.onzoomin.call(a);return a.cancelEvent(b)}};this.doZoomOut=function(b){if(a.zoomactive)return a.zoomactive=!1,a.win.css("margin",""),a.win.css(a.zoomrestore.style),
e.isios4&&f(window).scrollTop(a.zoomrestore.scrollTop),a.rail.css({"z-index":a.zindex}),a.zoom.css({"z-index":a.zindex}),a.zoomrestore=!1,a.zoom.css("backgroundPosition","0px 0px"),a.onResize(),a.onzoomout&&a.onzoomout.call(a),a.cancelEvent(b)};this.doZoom=function(b){return a.zoomactive?a.doZoomOut(b):a.doZoomIn(b)};this.resizeZoom=function(){if(a.zoomactive){var b=a.getScrollTop();a.win.css({width:f(window).width()-a.zoomrestore.padding.w+"px",height:f(window).height()-a.zoomrestore.padding.h+"px"});
a.onResize();a.setScrollTop(Math.min(a.page.maxh,b))}};this.init();f.nicescroll.push(this)},L=function(f){var c=this;this.nc=f;this.steptime=this.lasttime=this.speedy=this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(f,k){c.stop();var d=c.time();c.steptime=0;c.lasttime=d;c.speedx=0;c.speedy=0;c.lastx=f;c.lasty=k;c.lastscrollx=-1;c.lastscrolly=
-1};this.update=function(f,k){var d=c.time();c.steptime=d-c.lasttime;c.lasttime=d;var d=k-c.lasty,n=f-c.lastx,p=c.nc.getScrollTop(),a=c.nc.getScrollLeft(),p=p+d,a=a+n;c.snapx=0>a||a>c.nc.page.maxw;c.snapy=0>p||p>c.nc.page.maxh;c.speedx=n;c.speedy=d;c.lastx=f;c.lasty=k};this.stop=function(){c.nc.unsynched("domomentum2d");c.timer&&clearTimeout(c.timer);c.timer=0;c.lastscrollx=-1;c.lastscrolly=-1};this.doSnapy=function(f,k){var d=!1;0>k?(k=0,d=!0):k>c.nc.page.maxh&&(k=c.nc.page.maxh,d=!0);0>f?(f=0,d=
!0):f>c.nc.page.maxw&&(f=c.nc.page.maxw,d=!0);d?c.nc.doScrollPos(f,k,c.nc.opt.snapbackspeed):c.nc.triggerScrollEnd()};this.doMomentum=function(f){var k=c.time(),d=f?k+f:c.lasttime;f=c.nc.getScrollLeft();var n=c.nc.getScrollTop(),p=c.nc.page.maxh,a=c.nc.page.maxw;c.speedx=0<a?Math.min(60,c.speedx):0;c.speedy=0<p?Math.min(60,c.speedy):0;d=d&&60>=k-d;if(0>n||n>p||0>f||f>a)d=!1;f=c.speedx&&d?c.speedx:!1;if(c.speedy&&d&&c.speedy||f){var s=Math.max(16,c.steptime);50<s&&(f=s/50,c.speedx*=f,c.speedy*=f,s=
50);c.demulxy=0;c.lastscrollx=c.nc.getScrollLeft();c.chkx=c.lastscrollx;c.lastscrolly=c.nc.getScrollTop();c.chky=c.lastscrolly;var e=c.lastscrollx,r=c.lastscrolly,t=function(){var d=600<c.time()-k?.04:.02;c.speedx&&(e=Math.floor(c.lastscrolltco-c.speedx*(1-c.demulxy)),c.lastscrollx=e,0>e||e>a)&&(d=.1);c.speedy&&(r=Math.floor(c.lastscrolly-c.speedy*(1-c.demulxy)),c.lastscrolly=r,0>r||r>p)&&(d=.1);c.demulxy=Math.min(1,c.demulxy+d);c.nc.synched("domomentum2d",function(){c.speedx&&(c.nc.getScrollLeft()!=
c.chkx&&c.stop(),c.chkx=e,c.nc.setScrollLeft(e));c.speedy&&(c.nc.getScrollTop()!=c.chky&&c.stop(),c.chky=r,c.nc.setScrollTop(r));c.timer||(c.nc.hideCursor(),c.doSnapy(e,r))});1>c.demulxy?c.timer=setTimeout(t,s):(c.stop(),c.nc.hideCursor(),c.doSnapy(e,r))};t()}else c.doSnapy(c.nc.getScrollLeft(),c.nc.getScrollTop())}},w=f.fn.scrollTop;f.cssHooks.pageYOffset={get:function(k,c,h){return(c=f.data(k,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollTop():w.call(k)},set:function(k,c){var h=f.data(k,"__nicescroll")||
!1;h&&h.ishwscroll?h.setScrollTop(parseInt(c)):w.call(k,c);return this}};f.fn.scrollTop=function(k){if("undefined"==typeof k){var c=this[0]?f.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollTop():w.call(this)}return this.each(function(){var c=f.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollTop(parseInt(k)):w.call(f(this),k)})};var B=f.fn.scrollLeft;f.cssHooks.pageXOffset={get:function(k,c,h){return(c=f.data(k,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollLeft():B.call(k)},
set:function(k,c){var h=f.data(k,"__nicescroll")||!1;h&&h.ishwscroll?h.setScrollLeft(parseInt(c)):B.call(k,c);return this}};f.fn.scrollLeft=function(k){if("undefined"==typeof k){var c=this[0]?f.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollLeft():B.call(this)}return this.each(function(){var c=f.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollLeft(parseInt(k)):B.call(f(this),k)})};var C=function(k){var c=this;this.length=0;this.name="nicescrollarray";this.each=function(d){for(var f=
0,h=0;f<c.length;f++)d.call(c[f],h++);return c};this.push=function(d){c[c.length]=d;c.length++};this.eq=function(d){return c[d]};if(k)for(var h=0;h<k.length;h++){var m=f.data(k[h],"__nicescroll")||!1;m&&(this[this.length]=m,this.length++)}return this};(function(f,c,h){for(var m=0;m<c.length;m++)h(f,c[m])})(C.prototype,"show hide toggle onResize resize remove stop doScrollPos".split(" "),function(f,c){f[c]=function(){var f=arguments;return this.each(function(){this[c].apply(this,f)})}});f.fn.getNiceScroll=
function(k){return"undefined"==typeof k?new C(this):this[k]&&f.data(this[k],"__nicescroll")||!1};f.extend(f.expr[":"],{nicescroll:function(k){return f.data(k,"__nicescroll")?!0:!1}});f.fn.niceScroll=function(k,c){"undefined"!=typeof c||"object"!=typeof k||"jquery"in k||(c=k,k=!1);c=f.extend({},c);var h=new C;"undefined"==typeof c&&(c={});k&&(c.doc=f(k),c.win=f(this));var m=!("doc"in c);m||"win"in c||(c.win=f(this));this.each(function(){var d=f(this).data("__nicescroll")||!1;d||(c.doc=m?f(this):c.doc,
d=new R(c,f(this)),f(this).data("__nicescroll",d));h.push(d)});return 1==h.length?h[0]:h};window.NiceScroll={getjQuery:function(){return f}};f.nicescroll||(f.nicescroll=new C,f.nicescroll.options=I)});
/* https://www.otr3.com/wp-content/themes/themify-float/js/jquery.smartresize.min.js?ver=5.2.2 */
/*debouncedresize*/
(function($){var $event=$.event,$special,resizeTimeout;$special=$event.special.debouncedresize={setup:function(){$(this).on("resize",$special.handler);},teardown:function(){$(this).off("resize",$special.handler);},handler:function(event,execAsap){var context=this,args=arguments,dispatch=function(){event.type="debouncedresize";$event.dispatch.apply(context,args);};if(resizeTimeout){clearTimeout(resizeTimeout);}execAsap?dispatch():resizeTimeout=setTimeout(dispatch,$special.threshold);},threshold:150};})(jQuery);
/*throttledresize*/
(function($){var $event=$.event,$special,dummy={_:0},frame=0,wasResized,animRunning;$special=$event.special.throttledresize={setup:function(){$(this).on("resize",$special.handler);},teardown:function(){$(this).off("resize",$special.handler);},handler:function(event,execAsap){var context=this,args=arguments;wasResized=true;if(!animRunning){setInterval(function(){frame++;if(frame>$special.threshold&&wasResized||execAsap){event.type="throttledresize";$event.dispatch.apply(context,args);wasResized=false;frame=0;}if(frame>9){$(dummy).stop();animRunning=false;frame=0;}},30);animRunning=true;}},threshold:0};})(jQuery);
/* https://www.otr3.com/wp-content/themes/themify-float/themify/js/themify.sidemenu.min.js?ver=4.5.2 */
(function(b){function d(a,c){this.element=a;this.settings=b.extend({},e,c);this._defaults=e;this.panelVisible=!1;this.panelCleanName=this.settings.panel.replace(/#|\.|\s/g,function(a){return{"#":"",".":""," ":"-"}[a]});this.init()}var e={panel:"#mobile-menu",close:"",side:"right",speed:250};d.prototype={init:function(){var a=this;b(this.element).on("click",function(b){b.preventDefault();a.panelVisible?a.hidePanel():a.showPanel()});if(""!==a.settings.close)b(a.settings.close).on("click",function(b){b.preventDefault();
a.hidePanel()});b("body").addClass("sidemenu-active").on("scrollhighlightstart.themify",function(){setTimeout(function(){a.panelVisible&&a.hidePanel()},50)}).on("sidemenushow.themify",function(b,f,d){f!==a.settings.panel&&a.hidePanel(d)})},showPanel:function(){var a=this.settings.panel;b(a).removeClass("sidemenu-off").addClass("sidemenu-on").one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){b(this).trigger("sidemenuaftershow.themify",[a])});b("body").addClass(this.panelCleanName+
"-visible sidemenu-"+this.settings.side).trigger("sidemenushow.themify",[a,this.settings.side]);this.panelVisible=!0},hidePanel:function(a){var c=this.settings.panel,d=this.panelCleanName+"-visible";b(c).removeClass("sidemenu-on").addClass("sidemenu-off");a!==this.settings.side&&(d+=" sidemenu-"+this.settings.side);b("body").removeClass(d).trigger("sidemenuhide.themify",[c]);this.panelVisible=!1}};b.fn.themifySideMenu=function(a){if("string"===typeof a){var c=b(this).data("SideMenu");c&&("show"==
a&&c.showPanel(),"hide"==a&&c.hidePanel())}else return this.each(function(){b.data(this,"SideMenu")||b.data(this,"SideMenu",new d(this,a))})}})(jQuery);

/* https://www.otr3.com/wp-content/themes/themify-float/js/jquery.nicescroll.min.js?ver=5.2.2 */
/*3.6.0*/
(function(b){"function"===typeof define&&define.amd?define(["jquery"],b):b(jQuery)})(function(G){var i=!1,u=!1,g=0,e=2000,k=0,m=["webkit","ms","moz","o"],r=window.requestAnimationFrame||!1,q=window.cancelAnimationFrame||!1;if(!r){for(var d in m){var p=m[d];r||(r=window[p+"RequestAnimationFrame"]);q||(q=window[p+"CancelAnimationFrame"]||window[p+"CancelRequestAnimationFrame"])}}var n=window.MutationObserver||window.WebKitMutationObserver||!1,j={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:0.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var s=document.getElementsByTagName("script"),s=s[s.length-1].src.split("?")[0];return 0<s.split("/").length?s.split("/").slice(0,-1).join("/")+"/":""}(),preventmultitouchscrolling:!0},o=!1,c=function(){if(o){return o}var v=document.createElement("DIV"),B=v.style,t=navigator.userAgent,s=navigator.platform,x={haspointerlock:"pointerLockElement" in document||"webkitPointerLockElement" in document||"mozPointerLockElement" in document};x.isopera="opera" in window;x.isopera12=x.isopera&&"getUserMedia" in navigator;x.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini);x.isie="all" in document&&"attachEvent" in v&&!x.isopera;x.isieold=x.isie&&!("msInterpolationMode" in B);x.isie7=x.isie&&!x.isieold&&(!("documentMode" in document)||7==document.documentMode);x.isie8=x.isie&&"documentMode" in document&&8==document.documentMode;x.isie9=x.isie&&"performance" in window&&9<=document.documentMode;x.isie10=x.isie&&"performance" in window&&10==document.documentMode;x.isie11="msRequestFullscreen" in v&&11<=document.documentMode;x.isie9mobile=/iemobile.9/i.test(t);x.isie9mobile&&(x.isie9=!1);x.isie7mobile=!x.isie9mobile&&x.isie7&&/iemobile/i.test(t);x.ismozilla="MozAppearance" in B;x.iswebkit="WebkitAppearance" in B;x.ischrome="chrome" in window;x.ischrome22=x.ischrome&&x.haspointerlock;x.ischrome26=x.ischrome&&"transition" in B;x.cantouch="ontouchstart" in document.documentElement||"ontouchstart" in window;x.hasmstouch=window.MSPointerEvent||!1;x.hasw3ctouch=window.PointerEvent||!1;x.ismac=/^mac$/i.test(s);x.isios=x.cantouch&&/iphone|ipad|ipod/i.test(s);x.isios4=x.isios&&!("seal" in Object);x.isios7=x.isios&&"webkitHidden" in document;x.isandroid=/android/i.test(t);x.haseventlistener="addEventListener" in v;x.trstyle=!1;x.hastransform=!1;x.hastranslate3d=!1;x.transitionstyle=!1;x.hastransition=!1;x.transitionend=!1;s=["transform","msTransform","webkitTransform","MozTransform","OTransform"];for(t=0;t<s.length;t++){if("undefined"!=typeof B[s[t]]){x.trstyle=s[t];break}}x.hastransform=!!x.trstyle;x.hastransform&&(B[x.trstyle]="translate3d(1px,2px,3px)",x.hastranslate3d=/translate3d/.test(B[x.trstyle]));x.transitionstyle=!1;x.prefixstyle="";x.transitionend=!1;for(var s="transition webkitTransition msTransition MozTransition OTransition OTransition KhtmlTransition".split(" "),y=" -webkit- -ms- -moz- -o- -o -khtml-".split(" "),w="transitionend webkitTransitionEnd msTransitionEnd transitionend otransitionend oTransitionEnd KhtmlTransitionEnd".split(" "),t=0;t<s.length;t++){if(s[t] in B){x.transitionstyle=s[t];x.prefixstyle=y[t];x.transitionend=w[t];break}}x.ischrome26&&(x.prefixstyle=y[1]);x.hastransition=x.transitionstyle;a:{t=["-webkit-grab","-moz-grab","grab"];if(x.ischrome&&!x.ischrome22||x.isie){t=[]}for(s=0;s<t.length;s++){if(y=t[s],B.cursor=y,B.cursor==y){B=y;break a}}B="url(//mail.google.com/mail/images/2/openhand.cur),n-resize"}x.cursorgrabvalue=B;x.hasmousecapture="setCapture" in v;x.hasMutationObserver=!1!==n;return o=x},b=function(y,E){function B(){var w=H.doc.css(C.trstyle);return w&&"matrix"==w.substr(0,6)?w.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}function x(){var w=H.win;if("zIndex" in w){return w.zIndex()}for(;0<w.length&&9!=w[0].nodeType;){var K=w.css("zIndex");if(!isNaN(K)&&0!=K){return parseInt(K)}w=w.parent()}return !1}function D(w,K,L){K=w.css(K);w=parseFloat(K);return isNaN(w)?(w=I[K]||0,L=3==w?L?H.win.outerHeight()-H.win.innerHeight():H.win.outerWidth()-H.win.innerWidth():1,H.isie8&&w&&(w+=1),L?w:0):w}function v(w,K,L,M){H._bind(w,K,function(N){N=N?N:window.event;var O={original:N,target:N.target||N.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==N.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){N.preventDefault?N.preventDefault():N.returnValue=!1;return !1},stopImmediatePropagation:function(){N.stopImmediatePropagation?N.stopImmediatePropagation():N.cancelBubble=!0}};"mousewheel"==K?(O.deltaY=-0.025*N.wheelDelta,N.wheelDeltaX&&(O.deltaX=-0.025*N.wheelDeltaX)):O.deltaY=N.detail;return L.call(w,O)},M)}function s(w,K,N){var M,L;0==w.deltaMode?(M=-Math.floor(H.opt.mousescrollstep/54*w.deltaX),L=-Math.floor(H.opt.mousescrollstep/54*w.deltaY)):1==w.deltaMode&&(M=-Math.floor(w.deltaX*H.opt.mousescrollstep),L=-Math.floor(w.deltaY*H.opt.mousescrollstep));K&&H.opt.oneaxismousemode&&0==M&&L&&(M=L,L=0,N&&(0>M?H.getScrollLeft()>=H.page.maxw:0>=H.getScrollLeft())&&(L=M,M=0));M&&(H.scrollmom&&H.scrollmom.stop(),H.lastdeltax+=M,H.debounced("mousewheelx",function(){var O=H.lastdeltax;H.lastdeltax=0;H.rail.drag||H.doScrollLeftBy(O)},15));if(L){if(H.opt.nativeparentscrolling&&N&&!H.ispage&&!H.zoomactive){if(0>L){if(H.getScrollTop()>=H.page.maxh){return !0}}else{if(0>=H.getScrollTop()){return !0}}}H.scrollmom&&H.scrollmom.stop();H.lastdeltay+=L;H.debounced("mousewheely",function(){var O=H.lastdeltay;H.lastdeltay=0;H.rail.drag||H.doScrollBy(O)},15)}w.stopImmediatePropagation();return w.preventDefault()}var H=this;this.version="3.6.0";this.name="nicescroll";this.me=E;this.opt={doc:G("body"),win:!1};G.extend(this.opt,j);this.opt.snapbackspeed=80;if(y){for(var J in H.opt){"undefined"!=typeof y[J]&&(H.opt[J]=y[J])}}this.iddoc=(this.doc=H.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/^BODY|HTML/.test(H.opt.win?H.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=!1!==H.opt.win;this.win=H.opt.win||(this.ispage?G(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?G(window):this.win;this.body=G("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=H.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin=this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.isrtlmode="auto"==this.opt.rtlmode?"rtl"==(this.win[0]==window?this.body:this.win).css("direction"):!0===this.opt.rtlmode;this.observerbody=this.observerremover=this.observer=this.scrollmom=this.scrollrunning=!1;do{this.id="ascrail"+e++}while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=this.railslocked=!1;this.cursoractive=!0;this.wheelprevented=!1;this.overflowx=H.opt.overflowx;this.overflowy=H.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=c();var C=G.extend({},this.detected);this.ishwscroll=(this.canhwscroll=C.hastransform&&H.opt.hwacceleration)&&H.haswrapper;this.hasreversehr=this.isrtlmode&&!C.iswebkit;this.istouchcapable=!1;!C.cantouch||C.isios||C.isandroid||!C.iswebkit&&!C.ismozilla||(this.istouchcapable=!0,C.cantouch=!1);H.opt.enablemouselockapi||(C.hasmousecapture=!1,C.haspointerlock=!1);this.debounced=function(w,K,M){var L=H.delaylist[w];H.delaylist[w]=K;L||setTimeout(function(){var N=H.delaylist[w];H.delaylist[w]=!1;N.call(H)},M)};var f=!1;this.synched=function(w,K){H.synclist[w]=K;(function(){f||(r(function(){f=!1;for(var L in H.synclist){var M=H.synclist[L];M&&M.call(H);H.synclist[L]=!1}}),f=!0)})();return w};this.unsynched=function(w){H.synclist[w]&&(H.synclist[w]=!1)};this.css=function(w,K){for(var L in K){H.saved.css.push([w,L,w.css(L)]),w.css(L,K[L])}};this.scrollTop=function(w){return"undefined"==typeof w?H.getScrollTop():H.setScrollTop(w)};this.scrollLeft=function(w){return"undefined"==typeof w?H.getScrollLeft():H.setScrollLeft(w)};var t=function(w,L,P,O,N,M,K){this.st=w;this.ed=L;this.spd=P;this.p1=O||0;this.p2=N||1;this.p3=M||0;this.p4=K||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};t.prototype={B2:function(w){return 3*w*w*(1-w)},B3:function(w){return 3*w*(1-w)*(1-w)},B4:function(w){return(1-w)*(1-w)*(1-w)},getNow:function(){var w=1-((new Date).getTime()-this.ts)/this.spd,K=this.B2(w)+this.B3(w)+this.B4(w);return 0>w?this.ed:this.st+Math.round(this.df*K)},update:function(w,K){this.st=this.getNow();this.ed=w;this.spd=K;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};C.hastranslate3d&&C.isios&&this.doc.css("-webkit-backface-visibility","hidden");this.getScrollTop=function(w){if(!w){if(w=B()){return 16==w.length?-w[13]:-w[5]}if(H.timerscroll&&H.timerscroll.bz){return H.timerscroll.bz.getNow()}}return H.doc.translate.y};this.getScrollLeft=function(w){if(!w){if(w=B()){return 16==w.length?-w[12]:-w[4]}if(H.timerscroll&&H.timerscroll.bh){return H.timerscroll.bh.getNow()}}return H.doc.translate.x};this.notifyScrollEvent=function(w){var K=document.createEvent("UIEvents");K.initUIEvent("scroll",!1,!0,window,1);K.niceevent=!0;w.dispatchEvent(K)};var F=this.isrtlmode?1:-1;C.hastranslate3d&&H.opt.enabletranslate3d?(this.setScrollTop=function(w,K){H.doc.translate.y=w;H.doc.translate.ty=-1*w+"px";H.doc.css(C.trstyle,"translate3d("+H.doc.translate.tx+","+H.doc.translate.ty+",0px)");K||H.notifyScrollEvent(H.win[0])},this.setScrollLeft=function(w,K){H.doc.translate.x=w;H.doc.translate.tx=w*F+"px";H.doc.css(C.trstyle,"translate3d("+H.doc.translate.tx+","+H.doc.translate.ty+",0px)");K||H.notifyScrollEvent(H.win[0])}):(this.setScrollTop=function(w,K){H.doc.translate.y=w;H.doc.translate.ty=-1*w+"px";H.doc.css(C.trstyle,"translate("+H.doc.translate.tx+","+H.doc.translate.ty+")");K||H.notifyScrollEvent(H.win[0])},this.setScrollLeft=function(w,K){H.doc.translate.x=w;H.doc.translate.tx=w*F+"px";H.doc.css(C.trstyle,"translate("+H.doc.translate.tx+","+H.doc.translate.ty+")");K||H.notifyScrollEvent(H.win[0])})}else{this.getScrollTop=function(){return H.docscroll.scrollTop()},this.setScrollTop=function(w){return H.docscroll.scrollTop(w)},this.getScrollLeft=function(){return H.detected.ismozilla&&H.isrtlmode?Math.abs(H.docscroll.scrollLeft()):H.docscroll.scrollLeft()},this.setScrollLeft=function(w){return H.docscroll.scrollLeft(H.detected.ismozilla&&H.isrtlmode?-w:w)}}this.getTarget=function(w){return w?w.target?w.target:w.srcElement?w.srcElement:!1:!1};this.hasParent=function(w,K){if(!w){return !1}for(var L=w.target||w.srcElement||w||!1;L&&L.id!=K;){L=L.parentNode||!1}return !1!==L};var I={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}};this.getOffset=function(){if(H.isfixed){var w=H.win.offset(),K=H.getDocumentScrollOffset();w.top-=K.top;w.left-=K.left;return w}w=H.win.offset();if(!H.viewport){return w}K=H.viewport.offset();return{top:w.top-K.top,left:w.left-K.left}};this.updateScrollBar=function(w){if(H.ishwscroll){H.rail.css({height:H.win.innerHeight()-(H.opt.railpadding.top+H.opt.railpadding.bottom)}),H.railh&&H.railh.css({width:H.win.innerWidth()-(H.opt.railpadding.left+H.opt.railpadding.right)})}else{var K=H.getOffset(),N=K.top,M=K.left-(H.opt.railpadding.left+H.opt.railpadding.right),N=N+D(H.win,"border-top-width",!0),M=M+(H.rail.align?H.win.outerWidth()-D(H.win,"border-right-width")-H.rail.width:D(H.win,"border-left-width")),L=H.opt.railoffset;L&&(L.top&&(N+=L.top),H.rail.align&&L.left&&(M+=L.left));H.railslocked||H.rail.css({top:N,left:M,height:(w?w.h:H.win.innerHeight())-(H.opt.railpadding.top+H.opt.railpadding.bottom)});H.zoom&&H.zoom.css({top:N+1,left:1==H.rail.align?M-20:M+H.rail.width+4});if(H.railh&&!H.railslocked){N=K.top;M=K.left;if(L=H.opt.railhoffset){L.top&&(N+=L.top),L.left&&(M+=L.left)}w=H.railh.align?N+D(H.win,"border-top-width",!0)+H.win.innerHeight()-H.railh.height:N+D(H.win,"border-top-width",!0);M+=D(H.win,"border-left-width");H.railh.css({top:w-(H.opt.railpadding.top+H.opt.railpadding.bottom),left:M,width:H.railh.width})}}};this.doRailClick=function(w,K,M){var L;H.railslocked||(H.cancelEvent(w),K?(K=M?H.doScrollLeft:H.doScrollTop,L=M?(w.pageX-H.railh.offset().left-H.cursorwidth/2)*H.scrollratio.x:(w.pageY-H.rail.offset().top-H.cursorheight/2)*H.scrollratio.y,K(L)):(K=M?H.doScrollLeftBy:H.doScrollBy,L=M?H.scroll.x:H.scroll.y,w=M?w.pageX-H.railh.offset().left:w.pageY-H.rail.offset().top,M=M?H.view.w:H.view.h,K(L>=w?M:-M)))};H.hasanimationframe=r;H.hascancelanimationframe=q;H.hasanimationframe?H.hascancelanimationframe||(q=function(){H.cancelAnimationFrame=!0}):(r=function(w){return setTimeout(w,15-Math.floor(+new Date/1000)%16)},q=clearInterval);this.init=function(){H.saved.css=[];if(C.isie7mobile||C.isoperamini){return !0}C.hasmstouch&&H.css(H.ispage?G("html"):H.win,{"-ms-touch-action":"none"});H.zindex="auto";H.zindex=H.ispage||"auto"!=H.opt.zindex?H.opt.zindex:x()||"auto";!H.ispage&&"auto"!=H.zindex&&H.zindex>k&&(k=H.zindex);H.isie&&0==H.zindex&&"auto"==H.opt.zindex&&(H.zindex="auto");if(!H.ispage||!C.cantouch&&!C.isieold&&!C.isie9mobile){var U=H.docscroll;H.ispage&&(U=H.haswrapper?H.win:H.doc);C.isie9mobile||H.css(U,{"overflow-y":"hidden"});H.ispage&&C.isie7&&("BODY"==H.doc[0].nodeName?H.css(G("html"),{"overflow-y":"hidden"}):"HTML"==H.doc[0].nodeName&&H.css(G("body"),{"overflow-y":"hidden"}));!C.isios||H.ispage||H.haswrapper||H.css(G("body"),{"-webkit-overflow-scrolling":"touch"});var Q=G(document.createElement("div"));Q.css({position:"relative",top:0,"float":"right",width:H.opt.cursorwidth,height:"0px","background-color":H.opt.cursorcolor,border:H.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":H.opt.cursorborderradius,"-moz-border-radius":H.opt.cursorborderradius,"border-radius":H.opt.cursorborderradius});Q.hborder=parseFloat(Q.outerHeight()-Q.innerHeight());Q.addClass("nicescroll-cursors");H.cursor=Q;var T=G(document.createElement("div"));T.attr("id",H.id);T.addClass("nicescroll-rails nicescroll-rails-vr");var S,P,O=["left","right","top","bottom"],V;for(V in O){P=O[V],(S=H.opt.railpadding[P])?T.css("padding-"+P,S+"px"):H.opt.railpadding[P]=0}T.append(Q);T.width=Math.max(parseFloat(H.opt.cursorwidth),Q.outerWidth());T.css({width:T.width+"px",zIndex:H.zindex,background:H.opt.background,cursor:"default"});T.visibility=!0;T.scrollable=!0;T.align="left"==H.opt.railalign?0:1;H.rail=T;Q=H.rail.drag=!1;!H.opt.boxzoom||H.ispage||C.isieold||(Q=document.createElement("div"),H.bind(Q,"click",H.doZoom),H.bind(Q,"mouseenter",function(){H.zoom.css("opacity",H.opt.cursoropacitymax)}),H.bind(Q,"mouseleave",function(){H.zoom.css("opacity",H.opt.cursoropacitymin)}),H.zoom=G(Q),H.zoom.css({cursor:"pointer","z-index":H.zindex,backgroundImage:"url("+H.opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),H.opt.dblclickzoom&&H.bind(H.win,"dblclick",H.doZoom),C.cantouch&&H.opt.gesturezoom&&(H.ongesturezoom=function(M){1.5<M.scale&&H.doZoomIn(M);0.8>M.scale&&H.doZoomOut(M);return H.cancelEvent(M)},H.bind(H.win,"gestureend",H.ongesturezoom)));H.railh=!1;var N;H.opt.horizrailenabled&&(H.css(U,{"overflow-x":"hidden"}),Q=G(document.createElement("div")),Q.css({position:"absolute",top:0,height:H.opt.cursorwidth,width:"0px","background-color":H.opt.cursorcolor,border:H.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":H.opt.cursorborderradius,"-moz-border-radius":H.opt.cursorborderradius,"border-radius":H.opt.cursorborderradius}),C.isieold&&Q.css({overflow:"hidden"}),Q.wborder=parseFloat(Q.outerWidth()-Q.innerWidth()),Q.addClass("nicescroll-cursors"),H.cursorh=Q,N=G(document.createElement("div")),N.attr("id",H.id+"-hr"),N.addClass("nicescroll-rails nicescroll-rails-hr"),N.height=Math.max(parseFloat(H.opt.cursorwidth),Q.outerHeight()),N.css({height:N.height+"px",zIndex:H.zindex,background:H.opt.background}),N.append(Q),N.visibility=!0,N.scrollable=!0,N.align="top"==H.opt.railvalign?0:1,H.railh=N,H.railh.drag=!1);H.ispage?(T.css({position:"fixed",top:"0px",height:"100%"}),T.align?T.css({right:"0px"}):T.css({left:"0px"}),H.body.append(T),H.railh&&(N.css({position:"fixed",left:"0px",width:"100%"}),N.align?N.css({bottom:"0px"}):N.css({top:"0px"}),H.body.append(N))):(H.ishwscroll?("static"==H.win.css("position")&&H.css(H.win,{position:"relative"}),U="HTML"==H.win[0].nodeName?H.body:H.win,G(U).scrollTop(0).scrollLeft(0),H.zoom&&(H.zoom.css({position:"absolute",top:1,right:0,"margin-right":T.width+4}),U.append(H.zoom)),T.css({position:"absolute",top:0}),T.align?T.css({right:0}):T.css({left:0}),U.append(T),N&&(N.css({position:"absolute",left:0,bottom:0}),N.align?N.css({bottom:0}):N.css({top:0}),U.append(N))):(H.isfixed="fixed"==H.win.css("position"),U=H.isfixed?"fixed":"absolute",H.isfixed||(H.viewport=H.getViewport(H.win[0])),H.viewport&&(H.body=H.viewport,0==/fixed|absolute/.test(H.viewport.css("position"))&&H.css(H.viewport,{position:"relative"})),T.css({position:U}),H.zoom&&H.zoom.css({position:U}),H.updateScrollBar(),H.body.append(T),H.zoom&&H.body.append(H.zoom),H.railh&&(N.css({position:U}),H.body.append(N))),C.isios&&H.css(H.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),C.isie&&H.opt.disableoutline&&H.win.attr("hideFocus","true"),C.iswebkit&&H.opt.disableoutline&&H.win.css({outline:"none"}));!1===H.opt.autohidemode?(H.autohidedom=!1,H.rail.css({opacity:H.opt.cursoropacitymax}),H.railh&&H.railh.css({opacity:H.opt.cursoropacitymax})):!0===H.opt.autohidemode||"leave"===H.opt.autohidemode?(H.autohidedom=G().add(H.rail),C.isie8&&(H.autohidedom=H.autohidedom.add(H.cursor)),H.railh&&(H.autohidedom=H.autohidedom.add(H.railh)),H.railh&&C.isie8&&(H.autohidedom=H.autohidedom.add(H.cursorh))):"scroll"==H.opt.autohidemode?(H.autohidedom=G().add(H.rail),H.railh&&(H.autohidedom=H.autohidedom.add(H.railh))):"cursor"==H.opt.autohidemode?(H.autohidedom=G().add(H.cursor),H.railh&&(H.autohidedom=H.autohidedom.add(H.cursorh))):"hidden"==H.opt.autohidemode&&(H.autohidedom=!1,H.hide(),H.railslocked=!1);if(C.isie9mobile){H.scrollmom=new h(H),H.onmangotouch=function(){var M=H.getScrollTop(),ab=H.getScrollLeft();if(M==H.scrollmom.lastscrolly&&ab==H.scrollmom.lastscrollx){return !0}var W=M-H.mangotouch.sy,Z=ab-H.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(Z,2)+Math.pow(W,2)))){var aa=0>W?-1:1,Y=0>Z?-1:1,X=+new Date;H.mangotouch.lazy&&clearTimeout(H.mangotouch.lazy);80<X-H.mangotouch.tm||H.mangotouch.dry!=aa||H.mangotouch.drx!=Y?(H.scrollmom.stop(),H.scrollmom.reset(ab,M),H.mangotouch.sy=M,H.mangotouch.ly=M,H.mangotouch.sx=ab,H.mangotouch.lx=ab,H.mangotouch.dry=aa,H.mangotouch.drx=Y,H.mangotouch.tm=X):(H.scrollmom.stop(),H.scrollmom.update(H.mangotouch.sx-Z,H.mangotouch.sy-W),H.mangotouch.tm=X,W=Math.max(Math.abs(H.mangotouch.ly-M),Math.abs(H.mangotouch.lx-ab)),H.mangotouch.ly=M,H.mangotouch.lx=ab,2<W&&(H.mangotouch.lazy=setTimeout(function(){H.mangotouch.lazy=!1;H.mangotouch.dry=0;H.mangotouch.drx=0;H.mangotouch.tm=0;H.scrollmom.doMomentum(30)},100)))}},T=H.getScrollTop(),N=H.getScrollLeft(),H.mangotouch={sy:T,ly:T,dry:0,sx:N,lx:N,drx:0,lazy:!1,tm:0},H.bind(H.docscroll,"scroll",H.onmangotouch)}else{if(C.cantouch||H.istouchcapable||H.opt.touchbehavior||C.hasmstouch){H.scrollmom=new h(H);H.ontouchstart=function(M){if(M.pointerType&&2!=M.pointerType&&"touch"!=M.pointerType){return !1}H.hasmoving=!1;if(!H.railslocked){var aa;if(C.hasmstouch){for(aa=M.target?M.target:!1;aa;){var X=G(aa).getNiceScroll();if(0<X.length&&X[0].me==H.me){break}if(0<X.length){return !1}if("DIV"==aa.nodeName&&aa.id==H.id){break}aa=aa.parentNode?aa.parentNode:!1}}H.cancelScroll();if((aa=H.getTarget(M))&&/INPUT/i.test(aa.nodeName)&&/range/i.test(aa.type)){return H.stopPropagation(M)}!("clientX" in M)&&"changedTouches" in M&&(M.clientX=M.changedTouches[0].clientX,M.clientY=M.changedTouches[0].clientY);H.forcescreen&&(X=M,M={original:M.original?M.original:M},M.clientX=X.screenX,M.clientY=X.screenY);H.rail.drag={x:M.clientX,y:M.clientY,sx:H.scroll.x,sy:H.scroll.y,st:H.getScrollTop(),sl:H.getScrollLeft(),pt:2,dl:!1};if(H.ispage||!H.opt.directionlockdeadzone){H.rail.drag.dl="f"}else{var X=G(window).width(),Z=G(window).height(),Y=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),W=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),Z=Math.max(0,W-Z),X=Math.max(0,Y-X);H.rail.drag.ck=!H.rail.scrollable&&H.railh.scrollable?0<Z?"v":!1:H.rail.scrollable&&!H.railh.scrollable?0<X?"h":!1:!1;H.rail.drag.ck||(H.rail.drag.dl="f")}H.opt.touchbehavior&&H.isiframe&&C.isie&&(X=H.win.position(),H.rail.drag.x+=X.left,H.rail.drag.y+=X.top);H.hasmoving=!1;H.lastmouseup=!1;H.scrollmom.reset(M.clientX,M.clientY);if(!C.cantouch&&!this.istouchcapable&&!M.pointerType){if(!aa||!/INPUT|SELECT|TEXTAREA/i.test(aa.nodeName)){return !H.ispage&&C.hasmousecapture&&aa.setCapture(),H.opt.touchbehavior?(aa.onclick&&!aa._onclick&&(aa._onclick=aa.onclick,aa.onclick=function(ab){if(H.hasmoving){return !1}aa._onclick.call(this,ab)}),H.cancelEvent(M)):H.stopPropagation(M)}/SUBMIT|CANCEL|BUTTON/i.test(G(aa).attr("type"))&&(pc={tg:aa,click:!1},H.preventclick=pc)}}};H.ontouchend=function(M){if(!H.rail.drag){return !0}if(2==H.rail.drag.pt){if(M.pointerType&&2!=M.pointerType&&"touch"!=M.pointerType){return !1}H.scrollmom.doMomentum();H.rail.drag=!1;if(H.hasmoving&&(H.lastmouseup=!0,H.hideCursor(),C.hasmousecapture&&document.releaseCapture(),!C.cantouch)){return H.cancelEvent(M)}}else{if(1==H.rail.drag.pt){return H.onmouseup(M)}}};var L=H.opt.touchbehavior&&H.isiframe&&!C.hasmousecapture;H.ontouchmove=function(ad,ac){if(!H.rail.drag||ad.targetTouches&&H.opt.preventmultitouchscrolling&&1<ad.targetTouches.length||ad.pointerType&&2!=ad.pointerType&&"touch"!=ad.pointerType){return !1}if(2==H.rail.drag.pt){if(C.cantouch&&C.isios&&"undefined"==typeof ad.original){return !0}H.hasmoving=!0;H.preventclick&&!H.preventclick.click&&(H.preventclick.click=H.preventclick.tg.onclick||!1,H.preventclick.tg.onclick=H.onpreventclick);ad=G.extend({original:ad},ad);"changedTouches" in ad&&(ad.clientX=ad.changedTouches[0].clientX,ad.clientY=ad.changedTouches[0].clientY);if(H.forcescreen){var Z=ad;ad={original:ad.original?ad.original:ad};ad.clientX=Z.screenX;ad.clientY=Z.screenY}var aa,Z=aa=0;L&&!ac&&(aa=H.win.position(),Z=-aa.left,aa=-aa.top);var M=ad.clientY+aa;aa=M-H.rail.drag.y;var Y=ad.clientX+Z,ae=Y-H.rail.drag.x,X=H.rail.drag.st-aa;H.ishwscroll&&H.opt.bouncescroll?0>X?X=Math.round(X/2):X>H.page.maxh&&(X=H.page.maxh+Math.round((X-H.page.maxh)/2)):(0>X&&(M=X=0),X>H.page.maxh&&(X=H.page.maxh,M=0));var W;H.railh&&H.railh.scrollable&&(W=H.isrtlmode?ae-H.rail.drag.sl:H.rail.drag.sl-ae,H.ishwscroll&&H.opt.bouncescroll?0>W?W=Math.round(W/2):W>H.page.maxw&&(W=H.page.maxw+Math.round((W-H.page.maxw)/2)):(0>W&&(Y=W=0),W>H.page.maxw&&(W=H.page.maxw,Y=0)));Z=!1;if(H.rail.drag.dl){Z=!0,"v"==H.rail.drag.dl?W=H.rail.drag.sl:"h"==H.rail.drag.dl&&(X=H.rail.drag.st)}else{aa=Math.abs(aa);var ae=Math.abs(ae),ab=H.opt.directionlockdeadzone;if("v"==H.rail.drag.ck){if(aa>ab&&ae<=0.3*aa){return H.rail.drag=!1,!0}ae>ab&&(H.rail.drag.dl="f",G("body").scrollTop(G("body").scrollTop()))}else{if("h"==H.rail.drag.ck){if(ae>ab&&aa<=0.3*ae){return H.rail.drag=!1,!0}aa>ab&&(H.rail.drag.dl="f",G("body").scrollLeft(G("body").scrollLeft()))}}}H.synched("touchmove",function(){H.rail.drag&&2==H.rail.drag.pt&&(H.prepareTransition&&H.prepareTransition(0),H.rail.scrollable&&H.setScrollTop(X),H.scrollmom.update(Y,M),H.railh&&H.railh.scrollable?(H.setScrollLeft(W),H.showCursor(X,W)):H.showCursor(X),C.isie10&&document.selection.clear())});C.ischrome&&H.istouchcapable&&(Z=!1);if(Z){return H.cancelEvent(ad)}}else{if(1==H.rail.drag.pt){return H.onmousemove(ad)}}}}H.onmousedown=function(M,X){if(!H.rail.drag||1==H.rail.drag.pt){if(H.railslocked){return H.cancelEvent(M)}H.cancelScroll();H.rail.drag={x:M.clientX,y:M.clientY,sx:H.scroll.x,sy:H.scroll.y,pt:1,hr:!!X};var W=H.getTarget(M);!H.ispage&&C.hasmousecapture&&W.setCapture();H.isiframe&&!C.hasmousecapture&&(H.saved.csspointerevents=H.doc.css("pointer-events"),H.css(H.doc,{"pointer-events":"none"}));H.hasmoving=!1;return H.cancelEvent(M)}};H.onmouseup=function(M){if(H.rail.drag){if(1!=H.rail.drag.pt){return !0}C.hasmousecapture&&document.releaseCapture();H.isiframe&&!C.hasmousecapture&&H.doc.css("pointer-events",H.saved.csspointerevents);H.rail.drag=!1;H.hasmoving&&H.triggerScrollEnd();return H.cancelEvent(M)}};H.onmousemove=function(M){if(H.rail.drag&&1==H.rail.drag.pt){if(C.ischrome&&0==M.which){return H.onmouseup(M)}H.cursorfreezed=!0;H.hasmoving=!0;if(H.rail.drag.hr){H.scroll.x=H.rail.drag.sx+(M.clientX-H.rail.drag.x);0>H.scroll.x&&(H.scroll.x=0);var W=H.scrollvaluemaxw;H.scroll.x>W&&(H.scroll.x=W)}else{H.scroll.y=H.rail.drag.sy+(M.clientY-H.rail.drag.y),0>H.scroll.y&&(H.scroll.y=0),W=H.scrollvaluemax,H.scroll.y>W&&(H.scroll.y=W)}H.synched("mousemove",function(){H.rail.drag&&1==H.rail.drag.pt&&(H.showCursor(),H.rail.drag.hr?H.hasreversehr?H.doScrollLeft(H.scrollvaluemaxw-Math.round(H.scroll.x*H.scrollratio.x),H.opt.cursordragspeed):H.doScrollLeft(Math.round(H.scroll.x*H.scrollratio.x),H.opt.cursordragspeed):H.doScrollTop(Math.round(H.scroll.y*H.scrollratio.y),H.opt.cursordragspeed))});return H.cancelEvent(M)}};if(C.cantouch||H.opt.touchbehavior){H.onpreventclick=function(M){if(H.preventclick){return H.preventclick.tg.onclick=H.preventclick.click,H.preventclick=!1,H.cancelEvent(M)}},H.bind(H.win,"mousedown",H.ontouchstart),H.onclick=C.isios?!1:function(M){return H.lastmouseup?(H.lastmouseup=!1,H.cancelEvent(M)):!0},H.opt.grabcursorenabled&&C.cursorgrabvalue&&(H.css(H.ispage?H.doc:H.win,{cursor:C.cursorgrabvalue}),H.css(H.rail,{cursor:C.cursorgrabvalue}))}else{var K=function(M){if(H.selectiondrag){if(M){var W=H.win.outerHeight();M=M.pageY-H.selectiondrag.top;0<M&&M<W&&(M=0);M>=W&&(M-=W);H.selectiondrag.df=M}0!=H.selectiondrag.df&&(H.doScrollBy(2*-Math.floor(H.selectiondrag.df/6)),H.debounced("doselectionscroll",function(){K()},50))}};H.hasTextSelected="getSelection" in document?function(){return 0<document.getSelection().rangeCount}:"selection" in document?function(){return"None"!=document.selection.type}:function(){return !1};H.onselectionstart=function(M){H.ispage||(H.selectiondrag=H.win.offset())};H.onselectionend=function(M){H.selectiondrag=!1};H.onselectiondrag=function(M){H.selectiondrag&&H.hasTextSelected()&&H.debounced("selectionscroll",function(){K(M)},250)}}C.hasw3ctouch?(H.css(H.rail,{"touch-action":"none"}),H.css(H.cursor,{"touch-action":"none"}),H.bind(H.win,"pointerdown",H.ontouchstart),H.bind(document,"pointerup",H.ontouchend),H.bind(document,"pointermove",H.ontouchmove)):C.hasmstouch?(H.css(H.rail,{"-ms-touch-action":"none"}),H.css(H.cursor,{"-ms-touch-action":"none"}),H.bind(H.win,"MSPointerDown",H.ontouchstart),H.bind(document,"MSPointerUp",H.ontouchend),H.bind(document,"MSPointerMove",H.ontouchmove),H.bind(H.cursor,"MSGestureHold",function(M){M.preventDefault()}),H.bind(H.cursor,"contextmenu",function(M){M.preventDefault()})):this.istouchcapable&&(H.bind(H.win,"touchstart",H.ontouchstart),H.bind(document,"touchend",H.ontouchend),H.bind(document,"touchcancel",H.ontouchend),H.bind(document,"touchmove",H.ontouchmove));if(H.opt.cursordragontouch||!C.cantouch&&!H.opt.touchbehavior){H.rail.css({cursor:"default"}),H.railh&&H.railh.css({cursor:"default"}),H.jqbind(H.rail,"mouseenter",function(){if(!H.ispage&&!H.win.is(":visible")){return !1}H.canshowonmouseevent&&H.showCursor();H.rail.active=!0}),H.jqbind(H.rail,"mouseleave",function(){H.rail.active=!1;H.rail.drag||H.hideCursor()}),H.opt.sensitiverail&&(H.bind(H.rail,"click",function(M){H.doRailClick(M,!1,!1)}),H.bind(H.rail,"dblclick",function(M){H.doRailClick(M,!0,!1)}),H.bind(H.cursor,"click",function(M){H.cancelEvent(M)}),H.bind(H.cursor,"dblclick",function(M){H.cancelEvent(M)})),H.railh&&(H.jqbind(H.railh,"mouseenter",function(){if(!H.ispage&&!H.win.is(":visible")){return !1}H.canshowonmouseevent&&H.showCursor();H.rail.active=!0}),H.jqbind(H.railh,"mouseleave",function(){H.rail.active=!1;H.rail.drag||H.hideCursor()}),H.opt.sensitiverail&&(H.bind(H.railh,"click",function(M){H.doRailClick(M,!1,!0)}),H.bind(H.railh,"dblclick",function(M){H.doRailClick(M,!0,!0)}),H.bind(H.cursorh,"click",function(M){H.cancelEvent(M)}),H.bind(H.cursorh,"dblclick",function(M){H.cancelEvent(M)})))}C.cantouch||H.opt.touchbehavior?(H.bind(C.hasmousecapture?H.win:document,"mouseup",H.ontouchend),H.bind(document,"mousemove",H.ontouchmove),H.onclick&&H.bind(document,"click",H.onclick),H.opt.cursordragontouch&&(H.bind(H.cursor,"mousedown",H.onmousedown),H.bind(H.cursor,"mouseup",H.onmouseup),H.cursorh&&H.bind(H.cursorh,"mousedown",function(M){H.onmousedown(M,!0)}),H.cursorh&&H.bind(H.cursorh,"mouseup",H.onmouseup))):(H.bind(C.hasmousecapture?H.win:document,"mouseup",H.onmouseup),H.bind(document,"mousemove",H.onmousemove),H.onclick&&H.bind(document,"click",H.onclick),H.bind(H.cursor,"mousedown",H.onmousedown),H.bind(H.cursor,"mouseup",H.onmouseup),H.railh&&(H.bind(H.cursorh,"mousedown",function(M){H.onmousedown(M,!0)}),H.bind(H.cursorh,"mouseup",H.onmouseup)),!H.ispage&&H.opt.enablescrollonselection&&(H.bind(H.win[0],"mousedown",H.onselectionstart),H.bind(document,"mouseup",H.onselectionend),H.bind(H.cursor,"mouseup",H.onselectionend),H.cursorh&&H.bind(H.cursorh,"mouseup",H.onselectionend),H.bind(document,"mousemove",H.onselectiondrag)),H.zoom&&(H.jqbind(H.zoom,"mouseenter",function(){H.canshowonmouseevent&&H.showCursor();H.rail.active=!0}),H.jqbind(H.zoom,"mouseleave",function(){H.rail.active=!1;H.rail.drag||H.hideCursor()})));H.opt.enablemousewheel&&(H.isiframe||H.bind(C.isie&&H.ispage?document:H.win,"mousewheel",H.onmousewheel),H.bind(H.rail,"mousewheel",H.onmousewheel),H.railh&&H.bind(H.railh,"mousewheel",H.onmousewheelhr));H.ispage||C.cantouch||/HTML|^BODY/.test(H.win[0].nodeName)||(H.win.attr("tabindex")||H.win.attr({tabindex:g++}),H.jqbind(H.win,"focus",function(M){i=H.getTarget(M).id||!0;H.hasfocus=!0;H.canshowonmouseevent&&H.noticeCursor()}),H.jqbind(H.win,"blur",function(M){i=!1;H.hasfocus=!1}),H.jqbind(H.win,"mouseenter",function(M){u=H.getTarget(M).id||!0;H.hasmousefocus=!0;H.canshowonmouseevent&&H.noticeCursor()}),H.jqbind(H.win,"mouseleave",function(){u=!1;H.hasmousefocus=!1;H.rail.drag||H.hideCursor()}))}H.onkeypress=function(M){if(H.railslocked&&0==H.page.maxh){return !0}M=M?M:window.e;var Z=H.getTarget(M);if(Z&&/INPUT|TEXTAREA|SELECT|OPTION/.test(Z.nodeName)&&(!Z.getAttribute("type")&&!Z.type||!/submit|button|cancel/i.tp)||G(Z).attr("contenteditable")){return !0}if(H.hasfocus||H.hasmousefocus&&!i||H.ispage&&!i&&!u){Z=M.keyCode;if(H.railslocked&&27!=Z){return H.cancelEvent(M)}var W=M.ctrlKey||!1,Y=M.shiftKey||!1,X=!1;switch(Z){case 38:case 63233:H.doScrollBy(72);X=!0;break;case 40:case 63235:H.doScrollBy(-72);X=!0;break;case 37:case 63232:H.railh&&(W?H.doScrollLeft(0):H.doScrollLeftBy(72),X=!0);break;case 39:case 63234:H.railh&&(W?H.doScrollLeft(H.page.maxw):H.doScrollLeftBy(-72),X=!0);break;case 33:case 63276:H.doScrollBy(H.view.h);X=!0;break;case 34:case 63277:H.doScrollBy(-H.view.h);X=!0;break;case 36:case 63273:H.railh&&W?H.doScrollPos(0,0):H.doScrollTo(0);X=!0;break;case 35:case 63275:H.railh&&W?H.doScrollPos(H.page.maxw,H.page.maxh):H.doScrollTo(H.page.maxh);X=!0;break;case 32:H.opt.spacebarenabled&&(Y?H.doScrollBy(H.view.h):H.doScrollBy(-H.view.h),X=!0);break;case 27:H.zoomactive&&(H.doZoom(),X=!0)}if(X){return H.cancelEvent(M)}}};H.opt.enablekeyboard&&H.bind(document,C.isopera&&!C.isopera12?"keypress":"keydown",H.onkeypress);H.bind(document,"keydown",function(M){M.ctrlKey&&(H.wheelprevented=!0)});H.bind(document,"keyup",function(M){M.ctrlKey||(H.wheelprevented=!1)});H.bind(window,"blur",function(M){H.wheelprevented=!1});H.bind(window,"resize",H.lazyResize);H.bind(window,"orientationchange",H.lazyResize);H.bind(window,"load",H.lazyResize);if(C.ischrome&&!H.ispage&&!H.haswrapper){var w=H.win.attr("style"),T=parseFloat(H.win.css("width"))+1;H.win.css("width",T);H.synched("chromefix",function(){H.win.attr("style",w)})}H.onAttributeChange=function(M){H.lazyResize(H.isieold?250:30)};!1!==n&&(H.observerbody=new n(function(M){M.forEach(function(W){if("attributes"==W.type){return G("body").hasClass("modal-open")?H.hide():H.show()}});if(document.body.scrollHeight!=H.page.maxh){return H.lazyResize(30)}}),H.observerbody.observe(document.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]}));H.ispage||H.haswrapper||(!1!==n?(H.observer=new n(function(M){M.forEach(H.onAttributeChange)}),H.observer.observe(H.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),H.observerremover=new n(function(M){M.forEach(function(W){if(0<W.removedNodes.length){for(var X in W.removedNodes){if(H&&W.removedNodes[X]==H.win[0]){return H.remove()}}}})}),H.observerremover.observe(H.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(H.bind(H.win,C.isie&&!C.isie9?"propertychange":"DOMAttrModified",H.onAttributeChange),C.isie9&&H.win[0].attachEvent("onpropertychange",H.onAttributeChange),H.bind(H.win,"DOMNodeRemoved",function(M){M.target==H.win[0]&&H.remove()})));!H.ispage&&H.opt.boxzoom&&H.bind(window,"resize",H.resizeZoom);H.istextarea&&H.bind(H.win,"mouseup",H.lazyResize);H.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var R=function(){H.iframexd=!1;var M;try{M="contentDocument" in this?this.contentDocument:this.contentWindow.document}catch(X){H.iframexd=!0,M=!1}if(H.iframexd){return"console" in window&&console.log("NiceScroll error: policy restriced iframe"),!0}H.forcescreen=!0;H.isiframe&&(H.iframe={doc:G(M),html:H.doc.contents().find("html")[0],body:H.doc.contents().find("body")[0]},H.getContentSize=function(){return{w:Math.max(H.iframe.html.scrollWidth,H.iframe.body.scrollWidth),h:Math.max(H.iframe.html.scrollHeight,H.iframe.body.scrollHeight)}},H.docscroll=G(H.iframe.body));if(!C.isios&&H.opt.iframeautoresize&&!H.isiframe){H.win.scrollTop(0);H.doc.height("");var W=Math.max(M.getElementsByTagName("html")[0].scrollHeight,M.body.scrollHeight);H.doc.height(W)}H.lazyResize(30);C.isie7&&H.css(G(H.iframe.html),{"overflow-y":"hidden"});H.css(G(H.iframe.body),{"overflow-y":"hidden"});C.isios&&H.haswrapper&&H.css(G(M.body),{"-webkit-transform":"translate3d(0,0,0)"});"contentWindow" in this?H.bind(this.contentWindow,"scroll",H.onscroll):H.bind(M,"scroll",H.onscroll);H.opt.enablemousewheel&&H.bind(M,"mousewheel",H.onmousewheel);H.opt.enablekeyboard&&H.bind(M,C.isopera?"keypress":"keydown",H.onkeypress);if(C.cantouch||H.opt.touchbehavior){H.bind(M,"mousedown",H.ontouchstart),H.bind(M,"mousemove",function(Y){return H.ontouchmove(Y,!0)}),H.opt.grabcursorenabled&&C.cursorgrabvalue&&H.css(G(M.body),{cursor:C.cursorgrabvalue})}H.bind(M,"mouseup",H.ontouchend);H.zoom&&(H.opt.dblclickzoom&&H.bind(M,"dblclick",H.doZoom),H.ongesturezoom&&H.bind(M,"gestureend",H.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){R.call(H.doc[0],!1)},500);H.bind(this.doc,"load",R)}};this.showCursor=function(w,L){H.cursortimeout&&(clearTimeout(H.cursortimeout),H.cursortimeout=0);if(H.rail){H.autohidedom&&(H.autohidedom.stop().css({opacity:H.opt.cursoropacitymax}),H.cursoractive=!0);H.rail.drag&&1==H.rail.drag.pt||("undefined"!=typeof w&&!1!==w&&(H.scroll.y=Math.round(1*w/H.scrollratio.y)),"undefined"!=typeof L&&(H.scroll.x=Math.round(1*L/H.scrollratio.x)));H.cursor.css({height:H.cursorheight,top:H.scroll.y});if(H.cursorh){var K=H.hasreversehr?H.scrollvaluemaxw-H.scroll.x:H.scroll.x;!H.rail.align&&H.rail.visibility?H.cursorh.css({width:H.cursorwidth,left:K+H.rail.width}):H.cursorh.css({width:H.cursorwidth,left:K});H.cursoractive=!0}H.zoom&&H.zoom.stop().css({opacity:H.opt.cursoropacitymax})}};this.hideCursor=function(w){H.cursortimeout||!H.rail||!H.autohidedom||H.hasmousefocus&&"leave"==H.opt.autohidemode||(H.cursortimeout=setTimeout(function(){H.rail.active&&H.showonmouseevent||(H.autohidedom.stop().animate({opacity:H.opt.cursoropacitymin}),H.zoom&&H.zoom.stop().animate({opacity:H.opt.cursoropacitymin}),H.cursoractive=!1);H.cursortimeout=0},w||H.opt.hidecursordelay))};this.noticeCursor=function(w,L,K){H.showCursor(L,K);H.rail.active||H.hideCursor(w)};this.getContentSize=H.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:H.haswrapper?function(){return{w:H.doc.outerWidth()+parseInt(H.win.css("paddingLeft"))+parseInt(H.win.css("paddingRight")),h:H.doc.outerHeight()+parseInt(H.win.css("paddingTop"))+parseInt(H.win.css("paddingBottom"))}}:function(){return{w:H.docscroll[0].scrollWidth,h:H.docscroll[0].scrollHeight}};this.onResize=function(w,O){if(!H||!H.win){return !1}if(!H.haswrapper&&!H.ispage){if("none"==H.win.css("display")){return H.visibility&&H.hideRail().hideRailHr(),!1}H.hidden||H.visibility||H.showRail().showRailHr()}var N=H.page.maxh,M=H.page.maxw,L=H.view.h,K=H.view.w;H.view={w:H.ispage?H.win.width():parseInt(H.win[0].clientWidth),h:H.ispage?H.win.height():parseInt(H.win[0].clientHeight)};H.page=O?O:H.getContentSize();H.page.maxh=Math.max(0,H.page.h-H.view.h);H.page.maxw=Math.max(0,H.page.w-H.view.w);if(H.page.maxh==N&&H.page.maxw==M&&H.view.w==K&&H.view.h==L){if(H.ispage){return H}N=H.win.offset();if(H.lastposition&&(M=H.lastposition,M.top==N.top&&M.left==N.left)){return H}H.lastposition=N}0==H.page.maxh?(H.hideRail(),H.scrollvaluemax=0,H.scroll.y=0,H.scrollratio.y=0,H.cursorheight=0,H.setScrollTop(0),H.rail.scrollable=!1):(H.page.maxh-=H.opt.railpadding.top+H.opt.railpadding.bottom,H.rail.scrollable=!0);0==H.page.maxw?(H.hideRailHr(),H.scrollvaluemaxw=0,H.scroll.x=0,H.scrollratio.x=0,H.cursorwidth=0,H.setScrollLeft(0),H.railh.scrollable=!1):(H.page.maxw-=H.opt.railpadding.left+H.opt.railpadding.right,H.railh.scrollable=!0);H.railslocked=H.locked||0==H.page.maxh&&0==H.page.maxw;if(H.railslocked){return H.ispage||H.updateScrollBar(H.view),!1}H.hidden||H.visibility?H.hidden||H.railh.visibility||H.showRailHr():H.showRail().showRailHr();H.istextarea&&H.win.css("resize")&&"none"!=H.win.css("resize")&&(H.view.h-=20);H.cursorheight=Math.min(H.view.h,Math.round(H.view.h/H.page.h*H.view.h));H.cursorheight=H.opt.cursorfixedheight?H.opt.cursorfixedheight:Math.max(H.opt.cursorminheight,H.cursorheight);H.cursorwidth=Math.min(H.view.w,Math.round(H.view.w/H.page.w*H.view.w));H.cursorwidth=H.opt.cursorfixedheight?H.opt.cursorfixedheight:Math.max(H.opt.cursorminheight,H.cursorwidth);H.scrollvaluemax=H.view.h-H.cursorheight-H.cursor.hborder-(H.opt.railpadding.top+H.opt.railpadding.bottom);H.railh&&(H.railh.width=0<H.page.maxh?H.view.w-H.rail.width:H.view.w,H.scrollvaluemaxw=H.railh.width-H.cursorwidth-H.cursorh.wborder-(H.opt.railpadding.left+H.opt.railpadding.right));H.ispage||H.updateScrollBar(H.view);H.scrollratio={x:H.page.maxw/H.scrollvaluemaxw,y:H.page.maxh/H.scrollvaluemax};H.getScrollTop()>H.page.maxh?H.doScrollTop(H.page.maxh):(H.scroll.y=Math.round(H.getScrollTop()*(1/H.scrollratio.y)),H.scroll.x=Math.round(H.getScrollLeft()*(1/H.scrollratio.x)),H.cursoractive&&H.noticeCursor());H.scroll.y&&0==H.getScrollTop()&&H.doScrollTo(Math.floor(H.scroll.y*H.scrollratio.y));return H};this.resize=H.onResize;this.lazyResize=function(w){w=isNaN(w)?30:w;H.debounced("resize",H.resize,w);return H};this.jqbind=function(w,L,K){H.events.push({e:w,n:L,f:K,q:!0});G(w).bind(L,K)};this.bind=function(w,N,M,L){var K="jquery" in w?w[0]:w;"mousewheel"==N?window.addEventListener||"onwheel" in document?H._bind(K,"wheel",M,L||!1):(w="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",v(K,w,M,L||!1),"DOMMouseScroll"==w&&v(K,"MozMousePixelScroll",M,L||!1)):K.addEventListener?(C.cantouch&&/mouseup|mousedown|mousemove/.test(N)&&H._bind(K,"mousedown"==N?"touchstart":"mouseup"==N?"touchend":"touchmove",function(P){if(P.touches){if(2>P.touches.length){var O=P.touches.length?P.touches[0]:P;O.original=P;M.call(this,O)}}else{P.changedTouches&&(O=P.changedTouches[0],O.original=P,M.call(this,O))}},L||!1),H._bind(K,N,M,L||!1),C.cantouch&&"mouseup"==N&&H._bind(K,"touchcancel",M,L||!1)):H._bind(K,N,function(O){(O=O||window.event||!1)&&O.srcElement&&(O.target=O.srcElement);"pageY" in O||(O.pageX=O.clientX+document.documentElement.scrollLeft,O.pageY=O.clientY+document.documentElement.scrollTop);return !1===M.call(K,O)||!1===L?H.cancelEvent(O):!0})};C.haseventlistener?(this._bind=function(w,M,L,K){H.events.push({e:w,n:M,f:L,b:K,q:!1});w.addEventListener(M,L,K||!1)},this.cancelEvent=function(w){if(!w){return !1}w=w.original?w.original:w;w.preventDefault();w.stopPropagation();w.preventManipulation&&w.preventManipulation();return !1},this.stopPropagation=function(w){if(!w){return !1}w=w.original?w.original:w;w.stopPropagation();return !1},this._unbind=function(w,M,L,K){w.removeEventListener(M,L,K)}):(this._bind=function(w,M,L,K){H.events.push({e:w,n:M,f:L,b:K,q:!1});w.attachEvent?w.attachEvent("on"+M,L):w["on"+M]=L},this.cancelEvent=function(w){w=window.event||!1;if(!w){return !1}w.cancelBubble=!0;w.cancel=!0;return w.returnValue=!1},this.stopPropagation=function(w){w=window.event||!1;if(!w){return !1}w.cancelBubble=!0;return !1},this._unbind=function(w,M,L,K){w.detachEvent?w.detachEvent("on"+M,L):w["on"+M]=!1});this.unbindAll=function(){for(var w=0;w<H.events.length;w++){var K=H.events[w];K.q?K.e.unbind(K.n,K.f):H._unbind(K.e,K.n,K.f,K.b)}};this.showRail=function(){0==H.page.maxh||!H.ispage&&"none"==H.win.css("display")||(H.visibility=!0,H.rail.visibility=!0,H.rail.css("display","block"));return H};this.showRailHr=function(){if(!H.railh){return H}0==H.page.maxw||!H.ispage&&"none"==H.win.css("display")||(H.railh.visibility=!0,H.railh.css("display","block"));return H};this.hideRail=function(){H.visibility=!1;H.rail.visibility=!1;H.rail.css("display","none");return H};this.hideRailHr=function(){if(!H.railh){return H}H.railh.visibility=!1;H.railh.css("display","none");return H};this.show=function(){H.hidden=!1;H.railslocked=!1;return H.showRail().showRailHr()};this.hide=function(){H.hidden=!0;H.railslocked=!0;return H.hideRail().hideRailHr()};this.toggle=function(){return H.hidden?H.show():H.hide()};this.remove=function(){H.stop();H.cursortimeout&&clearTimeout(H.cursortimeout);H.doZoomOut();H.unbindAll();C.isie9&&H.win[0].detachEvent("onpropertychange",H.onAttributeChange);!1!==H.observer&&H.observer.disconnect();!1!==H.observerremover&&H.observerremover.disconnect();!1!==H.observerbody&&H.observerbody.disconnect();H.events=null;H.cursor&&H.cursor.remove();H.cursorh&&H.cursorh.remove();H.rail&&H.rail.remove();H.railh&&H.railh.remove();H.zoom&&H.zoom.remove();for(var w=0;w<H.saved.css.length;w++){var M=H.saved.css[w];M[0].css(M[1],"undefined"==typeof M[2]?"":M[2])}H.saved=!1;H.me.data("__nicescroll","");var L=G.nicescroll;L.each(function(N){if(this&&this.id===H.id){delete L[N];for(var O=++N;O<L.length;O++,N++){L[N]=L[O]}L.length--;L.length&&delete L[L.length]}});for(var K in H){H[K]=null,delete H[K]}H=null};this.scrollstart=function(w){this.onscrollstart=w;return H};this.scrollend=function(w){this.onscrollend=w;return H};this.scrollcancel=function(w){this.onscrollcancel=w;return H};this.zoomin=function(w){this.onzoomin=w;return H};this.zoomout=function(w){this.onzoomout=w;return H};this.isScrollable=function(w){w=w.target?w.target:w;if("OPTION"==w.nodeName){return !0}for(;w&&1==w.nodeType&&!/^BODY|HTML/.test(w.nodeName);){var K=G(w),K=K.css("overflowY")||K.css("overflowX")||K.css("overflow")||"";if(/scroll|auto/.test(K)){return w.clientHeight!=w.scrollHeight}w=w.parentNode?w.parentNode:!1}return !1};this.getViewport=function(w){for(w=w&&w.parentNode?w.parentNode:!1;w&&1==w.nodeType&&!/^BODY|HTML/.test(w.nodeName);){var L=G(w);if(/fixed|absolute/.test(L.css("position"))){return L}var K=L.css("overflowY")||L.css("overflowX")||L.css("overflow")||"";if(/scroll|auto/.test(K)&&w.clientHeight!=w.scrollHeight||0<L.getNiceScroll().length){return L}w=w.parentNode?w.parentNode:!1}return !1};this.triggerScrollEnd=function(){if(H.onscrollend){var w=H.getScrollLeft(),K=H.getScrollTop();H.onscrollend.call(H,{type:"scrollend",current:{x:w,y:K},end:{x:w,y:K}})}};this.onmousewheel=function(w){if(!H.wheelprevented){if(H.railslocked){return H.debounced("checkunlock",H.resize,250),!0}if(H.rail.drag){return H.cancelEvent(w)}"auto"==H.opt.oneaxismousemode&&0!=w.deltaX&&(H.opt.oneaxismousemode=!1);if(H.opt.oneaxismousemode&&0==w.deltaX&&!H.rail.scrollable){return H.railh&&H.railh.scrollable?H.onmousewheelhr(w):!0}var L=+new Date,K=!1;H.opt.preservenativescrolling&&H.checkarea+600<L&&(H.nativescrollingarea=H.isScrollable(w),K=!0);H.checkarea=L;if(H.nativescrollingarea){return !0}if(w=s(w,!1,K)){H.checkarea=0}return w}};this.onmousewheelhr=function(w){if(!H.wheelprevented){if(H.railslocked||!H.railh.scrollable){return !0}if(H.rail.drag){return H.cancelEvent(w)}var L=+new Date,K=!1;H.opt.preservenativescrolling&&H.checkarea+600<L&&(H.nativescrollingarea=H.isScrollable(w),K=!0);H.checkarea=L;return H.nativescrollingarea?!0:H.railslocked?H.cancelEvent(w):s(w,!0,K)}};this.stop=function(){H.cancelScroll();H.scrollmon&&H.scrollmon.stop();H.cursorfreezed=!1;H.scroll.y=Math.round(H.getScrollTop()*(1/H.scrollratio.y));H.noticeCursor();return H};this.getTransitionSpeed=function(w){var K=Math.round(10*H.opt.scrollspeed);w=Math.min(K,Math.round(w/20*H.opt.scrollspeed));return 20<w?w:0};H.opt.smoothscroll?H.ishwscroll&&C.hastransition&&H.opt.usetransition&&H.opt.smoothscroll?(this.prepareTransition=function(w,M){var L=M?20<w?w:0:H.getTransitionSpeed(w),K=L?C.prefixstyle+"transform "+L+"ms ease-out":"";H.lasttransitionstyle&&H.lasttransitionstyle==K||(H.lasttransitionstyle=K,H.doc.css(C.transitionstyle,K));return L},this.doScrollLeft=function(w,L){var K=H.scrollrunning?H.newscrolly:H.getScrollTop();H.doScrollPos(w,K,L)},this.doScrollTop=function(w,L){var K=H.scrollrunning?H.newscrollx:H.getScrollLeft();H.doScrollPos(K,w,L)},this.doScrollPos=function(w,N,M){var L=H.getScrollTop(),K=H.getScrollLeft();(0>(H.newscrolly-L)*(N-L)||0>(H.newscrollx-K)*(w-K))&&H.cancelScroll();0==H.opt.bouncescroll&&(0>N?N=0:N>H.page.maxh&&(N=H.page.maxh),0>w?w=0:w>H.page.maxw&&(w=H.page.maxw));if(H.scrollrunning&&w==H.newscrollx&&N==H.newscrolly){return !1}H.newscrolly=N;H.newscrollx=w;H.newscrollspeed=M||!1;if(H.timer){return !1}H.timer=setTimeout(function(){var R=H.getScrollTop(),Q=H.getScrollLeft(),P,O;P=w-Q;O=N-R;P=Math.round(Math.sqrt(Math.pow(P,2)+Math.pow(O,2)));P=H.newscrollspeed&&1<H.newscrollspeed?H.newscrollspeed:H.getTransitionSpeed(P);H.newscrollspeed&&1>=H.newscrollspeed&&(P*=H.newscrollspeed);H.prepareTransition(P,!0);H.timerscroll&&H.timerscroll.tm&&clearInterval(H.timerscroll.tm);0<P&&(!H.scrollrunning&&H.onscrollstart&&H.onscrollstart.call(H,{type:"scrollstart",current:{x:Q,y:R},request:{x:w,y:N},end:{x:H.newscrollx,y:H.newscrolly},speed:P}),C.transitionend?H.scrollendtrapped||(H.scrollendtrapped=!0,H.bind(H.doc,C.transitionend,H.onScrollTransitionEnd,!1)):(H.scrollendtrapped&&clearTimeout(H.scrollendtrapped),H.scrollendtrapped=setTimeout(H.onScrollTransitionEnd,P)),H.timerscroll={bz:new t(R,H.newscrolly,P,0,0,0.58,1),bh:new t(Q,H.newscrollx,P,0,0,0.58,1)},H.cursorfreezed||(H.timerscroll.tm=setInterval(function(){H.showCursor(H.getScrollTop(),H.getScrollLeft())},60)));H.synched("doScroll-set",function(){H.timer=0;H.scrollendtrapped&&(H.scrollrunning=!0);H.setScrollTop(H.newscrolly);H.setScrollLeft(H.newscrollx);if(!H.scrollendtrapped){H.onScrollTransitionEnd()}})},50)},this.cancelScroll=function(){if(!H.scrollendtrapped){return !0}var w=H.getScrollTop(),K=H.getScrollLeft();H.scrollrunning=!1;C.transitionend||clearTimeout(C.transitionend);H.scrollendtrapped=!1;H._unbind(H.doc[0],C.transitionend,H.onScrollTransitionEnd);H.prepareTransition(0);H.setScrollTop(w);H.railh&&H.setScrollLeft(K);H.timerscroll&&H.timerscroll.tm&&clearInterval(H.timerscroll.tm);H.timerscroll=!1;H.cursorfreezed=!1;H.showCursor(w,K);return H},this.onScrollTransitionEnd=function(){H.scrollendtrapped&&H._unbind(H.doc[0],C.transitionend,H.onScrollTransitionEnd);H.scrollendtrapped=!1;H.prepareTransition(0);H.timerscroll&&H.timerscroll.tm&&clearInterval(H.timerscroll.tm);H.timerscroll=!1;var w=H.getScrollTop(),K=H.getScrollLeft();H.setScrollTop(w);H.railh&&H.setScrollLeft(K);H.noticeCursor(!1,w,K);H.cursorfreezed=!1;0>w?w=0:w>H.page.maxh&&(w=H.page.maxh);0>K?K=0:K>H.page.maxw&&(K=H.page.maxw);if(w!=H.newscrolly||K!=H.newscrollx){return H.doScrollPos(K,w,H.opt.snapbackspeed)}H.onscrollend&&H.scrollrunning&&H.triggerScrollEnd();H.scrollrunning=!1}):(this.doScrollLeft=function(w,L){var K=H.scrollrunning?H.newscrolly:H.getScrollTop();H.doScrollPos(w,K,L)},this.doScrollTop=function(w,L){var K=H.scrollrunning?H.newscrollx:H.getScrollLeft();H.doScrollPos(K,w,L)},this.doScrollPos=function(S,R,Q){function P(){if(H.cancelAnimationFrame){return !0}H.scrollrunning=!0;if(w=1-w){return H.timer=r(P)||1}var T=0,W,V,U=V=H.getScrollTop();if(H.dst.ay){U=H.bzscroll?H.dst.py+H.bzscroll.getNow()*H.dst.ay:H.newscrolly;W=U-V;if(0>W&&U<H.newscrolly||0<W&&U>H.newscrolly){U=H.newscrolly}H.setScrollTop(U);U==H.newscrolly&&(T=1)}else{T=1}V=W=H.getScrollLeft();if(H.dst.ax){V=H.bzscroll?H.dst.px+H.bzscroll.getNow()*H.dst.ax:H.newscrollx;W=V-W;if(0>W&&V<H.newscrollx||0<W&&V>H.newscrollx){V=H.newscrollx}H.setScrollLeft(V);V==H.newscrollx&&(T+=1)}else{T+=1}2==T?(H.timer=0,H.cursorfreezed=!1,H.bzscroll=!1,H.scrollrunning=!1,0>U?U=0:U>H.page.maxh&&(U=H.page.maxh),0>V?V=0:V>H.page.maxw&&(V=H.page.maxw),V!=H.newscrollx||U!=H.newscrolly?H.doScrollPos(V,U):H.onscrollend&&H.triggerScrollEnd()):H.timer=r(P)||1}R="undefined"==typeof R||!1===R?H.getScrollTop(!0):R;if(H.timer&&H.newscrolly==R&&H.newscrollx==S){return !0}H.timer&&q(H.timer);H.timer=0;var O=H.getScrollTop(),N=H.getScrollLeft();(0>(H.newscrolly-O)*(R-O)||0>(H.newscrollx-N)*(S-N))&&H.cancelScroll();H.newscrolly=R;H.newscrollx=S;H.bouncescroll&&H.rail.visibility||(0>H.newscrolly?H.newscrolly=0:H.newscrolly>H.page.maxh&&(H.newscrolly=H.page.maxh));H.bouncescroll&&H.railh.visibility||(0>H.newscrollx?H.newscrollx=0:H.newscrollx>H.page.maxw&&(H.newscrollx=H.page.maxw));H.dst={};H.dst.x=S-N;H.dst.y=R-O;H.dst.px=N;H.dst.py=O;var M=Math.round(Math.sqrt(Math.pow(H.dst.x,2)+Math.pow(H.dst.y,2)));H.dst.ax=H.dst.x/M;H.dst.ay=H.dst.y/M;var L=0,K=M;0==H.dst.x?(L=O,K=R,H.dst.ay=1,H.dst.py=0):0==H.dst.y&&(L=N,K=S,H.dst.ax=1,H.dst.px=0);M=H.getTransitionSpeed(M);Q&&1>=Q&&(M*=Q);H.bzscroll=0<M?H.bzscroll?H.bzscroll.update(K,M):new t(L,K,M,0,1,0,1):!1;if(!H.timer){(O==H.page.maxh&&R>=H.page.maxh||N==H.page.maxw&&S>=H.page.maxw)&&H.checkContentSize();var w=1;H.cancelAnimationFrame=!1;H.timer=1;H.onscrollstart&&!H.scrollrunning&&H.onscrollstart.call(H,{type:"scrollstart",current:{x:N,y:O},request:{x:S,y:R},end:{x:H.newscrollx,y:H.newscrolly},speed:M});P();(O==H.page.maxh&&R>=O||N==H.page.maxw&&S>=N)&&H.checkContentSize();H.noticeCursor()}},this.cancelScroll=function(){H.timer&&q(H.timer);H.timer=0;H.bzscroll=!1;H.scrollrunning=!1;return H}):(this.doScrollLeft=function(w,L){var K=H.getScrollTop();H.doScrollPos(w,K,L)},this.doScrollTop=function(w,L){var K=H.getScrollLeft();H.doScrollPos(K,w,L)},this.doScrollPos=function(w,N,M){var L=w>H.page.maxw?H.page.maxw:w;0>L&&(L=0);var K=N>H.page.maxh?H.page.maxh:N;0>K&&(K=0);H.synched("scroll",function(){H.setScrollTop(K);H.setScrollLeft(L)})},this.cancelScroll=function(){});this.doScrollBy=function(w,M){var L=0,L=M?Math.floor((H.scroll.y-w)*H.scrollratio.y):(H.timer?H.newscrolly:H.getScrollTop(!0))-w;if(H.bouncescroll){var K=Math.round(H.view.h/2);L<-K?L=-K:L>H.page.maxh+K&&(L=H.page.maxh+K)}H.cursorfreezed=!1;K=H.getScrollTop(!0);if(0>L&&0>=K){return H.noticeCursor()}if(L>H.page.maxh&&K>=H.page.maxh){return H.checkContentSize(),H.noticeCursor()}H.doScrollTop(L)};this.doScrollLeftBy=function(w,M){var L=0,L=M?Math.floor((H.scroll.x-w)*H.scrollratio.x):(H.timer?H.newscrollx:H.getScrollLeft(!0))-w;if(H.bouncescroll){var K=Math.round(H.view.w/2);L<-K?L=-K:L>H.page.maxw+K&&(L=H.page.maxw+K)}H.cursorfreezed=!1;K=H.getScrollLeft(!0);if(0>L&&0>=K||L>H.page.maxw&&K>=H.page.maxw){return H.noticeCursor()}H.doScrollLeft(L)};this.doScrollTo=function(w,K){K&&Math.round(w*H.scrollratio.y);H.cursorfreezed=!1;H.doScrollTop(w)};this.checkContentSize=function(){var w=H.getContentSize();w.h==H.page.h&&w.w==H.page.w||H.resize(!1,w)};H.onscroll=function(w){H.rail.drag||H.cursorfreezed||H.synched("scroll",function(){H.scroll.y=Math.round(H.getScrollTop()*(1/H.scrollratio.y));H.railh&&(H.scroll.x=Math.round(H.getScrollLeft()*(1/H.scrollratio.x)));H.noticeCursor()})};H.bind(H.docscroll,"scroll",H.onscroll);this.doZoomIn=function(w){if(!H.zoomactive){H.zoomactive=!0;H.zoomrestore={style:{}};var N="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),M=H.win[0].style,L;for(L in N){var K=N[L];H.zoomrestore.style[K]="undefined"!=typeof M[K]?M[K]:""}H.zoomrestore.style.width=H.win.css("width");H.zoomrestore.style.height=H.win.css("height");H.zoomrestore.padding={w:H.win.outerWidth()-H.win.width(),h:H.win.outerHeight()-H.win.height()};C.isios4&&(H.zoomrestore.scrollTop=G(window).scrollTop(),G(window).scrollTop(0));H.win.css({position:C.isios4?"absolute":"fixed",top:0,left:0,"z-index":k+100,margin:"0px"});N=H.win.css("backgroundColor");(""==N||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(N))&&H.win.css("backgroundColor","#fff");H.rail.css({"z-index":k+101});H.zoom.css({"z-index":k+102});H.zoom.css("backgroundPosition","0px -18px");H.resizeZoom();H.onzoomin&&H.onzoomin.call(H);return H.cancelEvent(w)}};this.doZoomOut=function(w){if(H.zoomactive){return H.zoomactive=!1,H.win.css("margin",""),H.win.css(H.zoomrestore.style),C.isios4&&G(window).scrollTop(H.zoomrestore.scrollTop),H.rail.css({"z-index":H.zindex}),H.zoom.css({"z-index":H.zindex}),H.zoomrestore=!1,H.zoom.css("backgroundPosition","0px 0px"),H.onResize(),H.onzoomout&&H.onzoomout.call(H),H.cancelEvent(w)}};this.doZoom=function(w){return H.zoomactive?H.doZoomOut(w):H.doZoomIn(w)};this.resizeZoom=function(){if(H.zoomactive){var w=H.getScrollTop();H.win.css({width:G(window).width()-H.zoomrestore.padding.w+"px",height:G(window).height()-H.zoomrestore.padding.h+"px"});H.onResize();H.setScrollTop(Math.min(H.page.maxh,w))}};this.init();G.nicescroll.push(this)},h=function(s){var t=this;this.nc=s;this.steptime=this.lasttime=this.speedy=this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return +new Date};this.reset=function(w,v){t.stop();var x=t.time();t.steptime=0;t.lasttime=x;t.speedx=0;t.speedy=0;t.lastx=w;t.lasty=v;t.lastscrollx=-1;t.lastscrolly=-1};this.update=function(x,w){var B=t.time();t.steptime=B-t.lasttime;t.lasttime=B;var B=w-t.lasty,C=x-t.lastx,y=t.nc.getScrollTop(),v=t.nc.getScrollLeft(),y=y+B,v=v+C;t.snapx=0>v||v>t.nc.page.maxw;t.snapy=0>y||y>t.nc.page.maxh;t.speedx=C;t.speedy=B;t.lastx=x;t.lasty=w};this.stop=function(){t.nc.unsynched("domomentum2d");t.timer&&clearTimeout(t.timer);t.timer=0;t.lastscrollx=-1;t.lastscrolly=-1};this.doSnapy=function(w,v){var x=!1;0>v?(v=0,x=!0):v>t.nc.page.maxh&&(v=t.nc.page.maxh,x=!0);0>w?(w=0,x=!0):w>t.nc.page.maxw&&(w=t.nc.page.maxw,x=!0);x?t.nc.doScrollPos(w,v,t.nc.opt.snapbackspeed):t.nc.triggerScrollEnd()};this.doMomentum=function(B){var y=t.time(),D=B?y+B:t.lasttime;B=t.nc.getScrollLeft();var x=t.nc.getScrollTop(),w=t.nc.page.maxh,E=t.nc.page.maxw;t.speedx=0<E?Math.min(60,t.speedx):0;t.speedy=0<w?Math.min(60,t.speedy):0;D=D&&60>=y-D;if(0>x||x>w||0>B||B>E){D=!1}B=t.speedx&&D?t.speedx:!1;if(t.speedy&&D&&t.speedy||B){var H=Math.max(16,t.steptime);50<H&&(B=H/50,t.speedx*=B,t.speedy*=B,H=50);t.demulxy=0;t.lastscrollx=t.nc.getScrollLeft();t.chkx=t.lastscrollx;t.lastscrolly=t.nc.getScrollTop();t.chky=t.lastscrolly;var C=t.lastscrollx,v=t.lastscrolly,F=function(){var f=600<t.time()-y?0.04:0.02;t.speedx&&(C=Math.floor(t.lastscrollx-t.speedx*(1-t.demulxy)),t.lastscrollx=C,0>C||C>E)&&(f=0.1);t.speedy&&(v=Math.floor(t.lastscrolly-t.speedy*(1-t.demulxy)),t.lastscrolly=v,0>v||v>w)&&(f=0.1);t.demulxy=Math.min(1,t.demulxy+f);t.nc.synched("domomentum2d",function(){t.speedx&&(t.nc.getScrollLeft()!=t.chkx&&t.stop(),t.chkx=C,t.nc.setScrollLeft(C));t.speedy&&(t.nc.getScrollTop()!=t.chky&&t.stop(),t.chky=v,t.nc.setScrollTop(v));t.timer||(t.nc.hideCursor(),t.doSnapy(C,v))});1>t.demulxy?t.timer=setTimeout(F,H):(t.stop(),t.nc.hideCursor(),t.doSnapy(C,v))};F()}else{t.doSnapy(t.nc.getScrollLeft(),t.nc.getScrollTop())}}},l=G.fn.scrollTop;G.cssHooks.pageYOffset={get:function(f,t,s){return(t=G.data(f,"__nicescroll")||!1)&&t.ishwscroll?t.getScrollTop():l.call(f)},set:function(f,t){var s=G.data(f,"__nicescroll")||!1;s&&s.ishwscroll?s.setScrollTop(parseInt(t)):l.call(f,t);return this}};G.fn.scrollTop=function(f){if("undefined"==typeof f){var s=this[0]?G.data(this[0],"__nicescroll")||!1:!1;return s&&s.ishwscroll?s.getScrollTop():l.call(this)}return this.each(function(){var t=G.data(this,"__nicescroll")||!1;t&&t.ishwscroll?t.setScrollTop(parseInt(f)):l.call(G(this),f)})};var A=G.fn.scrollLeft;G.cssHooks.pageXOffset={get:function(f,t,s){return(t=G.data(f,"__nicescroll")||!1)&&t.ishwscroll?t.getScrollLeft():A.call(f)},set:function(f,t){var s=G.data(f,"__nicescroll")||!1;s&&s.ishwscroll?s.setScrollLeft(parseInt(t)):A.call(f,t);return this}};G.fn.scrollLeft=function(f){if("undefined"==typeof f){var s=this[0]?G.data(this[0],"__nicescroll")||!1:!1;return s&&s.ishwscroll?s.getScrollLeft():A.call(this)}return this.each(function(){var t=G.data(this,"__nicescroll")||!1;t&&t.ishwscroll?t.setScrollLeft(parseInt(f)):A.call(G(this),f)})};var z=function(s){var v=this;this.length=0;this.name="nicescrollarray";this.each=function(y){for(var x=0,w=0;x<v.length;x++){y.call(v[x],w++)}return v};this.push=function(w){v[v.length]=w;v.length++};this.eq=function(w){return v[w]};if(s){for(var t=0;t<s.length;t++){var f=G.data(s[t],"__nicescroll")||!1;f&&(this[this.length]=f,this.length++)}}return this};(function(v,w,t){for(var s=0;s<w.length;s++){t(v,w[s])}})(z.prototype,"show hide toggle onResize resize remove stop doScrollPos".split(" "),function(s,t){s[t]=function(){var v=arguments;return this.each(function(){this[t].apply(this,v)})}});G.fn.getNiceScroll=function(f){return"undefined"==typeof f?new z(this):this[f]&&G.data(this[f],"__nicescroll")||!1};G.extend(G.expr[":"],{nicescroll:function(f){return G.data(f,"__nicescroll")?!0:!1}});G.fn.niceScroll=function(s,v){"undefined"!=typeof v||"object"!=typeof s||"jquery" in s||(v=s,s=!1);v=G.extend({},v);var t=new z;"undefined"==typeof v&&(v={});s&&(v.doc=G(s),v.win=G(this));var f=!("doc" in v);f||"win" in v||(v.win=G(this));this.each(function(){var w=G(this).data("__nicescroll")||!1;w||(v.doc=f?G(this):v.doc,w=new b(v,G(this)),G(this).data("__nicescroll",w));t.push(w)});return 1==t.length?t[0]:t};window.NiceScroll={getjQuery:function(){return G}};G.nicescroll||(G.nicescroll=new z,G.nicescroll.options=j)});
/* https://www.otr3.com/wp-content/themes/themify-float/js/jquery.jsticky.min.js?ver=5.2.2 */
/*02/14/2013*/
(function(a){a.fn.sticky=function(f){var i={topSpacing:0,zIndex:"",stopper:".sticky-stopper",responsivePointer:780},e,h=a.extend({},i,f);function d(){if(typeof h.zIndex=="number"){return true}else{return false}}var c=d();function g(){if(0<a(h.stopper).length||typeof h.stopper==="number"){return true}else{return false}}var b=g();return this.each(function(){var q=a(this),l=q.outerHeight(),o=q.outerWidth(),s=h.topSpacing,r=h.zIndex,m=q.offset().top-s,t=a("<div></div>").width(o).height(l).addClass("sticky-placeholder"),n=h.stopper,k=a(window);function p(){var w=k.scrollTop();if(b&&typeof n==="string"){var u=a(n).offset().top-180,x=(u-l)-s}else{if(b&&typeof n==="number"){var x=n}}if(m<w){q.after(t).css({position:"fixed",top:s});if(c){q.css({zIndex:r})}if(b){if(x<w){var v=(x-w)+s;q.css({top:v})}}}else{q.css({position:"static",top:null,left:null});t.remove()}}function j(){l=q.outerHeight(),o=q.outerWidth(),m=q.offset().top-s,t=a("<div></div>").width(o).height(l).addClass("sticky-placeholder");if(k.width()>h.responsivePointer){k.bind("scroll",p)}else{k.unbind("scroll",p);q.removeAttr("style").nextAll(".sticky-placeholder").remove()}}k.bind("scroll",p);j();k.resize(function(){clearTimeout(e);e=setTimeout(j,500)})})}})(jQuery);
/* https://www.otr3.com/wp-content/themes/themify-float/js/jquery.infinitescroll.min.js?ver=5.2.2 */
/*Infinite*/
(function(o,i,k){i.infinitescroll=function z(D,F,E){this.element=i(E);if(!this._create(D,F)){this.failed=true}};i.infinitescroll.defaults={loading:{finished:k,finishedMsg:"",img:"",msg:null,msgText:"",selector:null,speed:"fast",start:k},state:{isDuringAjax:false,isInvalidPage:false,isDestroyed:false,isDone:false,isPaused:false,currPage:1},debug:false,behavior:k,binder:i(o),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:false,pathParse:k,dataType:"html",appendCallback:true,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:k,path:k,prefill:false,maxPage:k};i.infinitescroll.prototype={_binding:function g(F){var D=this,E=D.options;E.v="2.0b2.120520";if(!!E.behavior&&this["_binding_"+E.behavior]!==k){this["_binding_"+E.behavior].call(this);return}if(F!=="bind"&&F!=="unbind"){this._debug("Binding value  "+F+" not valid");return false}if(F==="unbind"){(this.options.binder).unbind("smartscroll.infscr."+D.options.infid)}else{(this.options.binder)[F]("smartscroll.infscr."+D.options.infid,function(){D.scroll()})}this._debug("Binding",F)},_create:function t(F,J){var G=i.extend(true,{},i.infinitescroll.defaults,F);this.options=G;var I=i(o);var D=this;if(!D._validate(F)){return false}var H=i(G.nextSelector).attr("href");if(!H){this._debug("Navigation selector not found");return false}G.path=G.path||this._determinepath(H);G.contentSelector=G.contentSelector||this.element;G.loading.selector=G.loading.selector||G.contentSelector;G.loading.msg=G.loading.msg||i('<div id="infscr-loading"><img alt="Loading..." src="'+G.loading.img+'" /><div>'+G.loading.msgText+"</div></div>");(new Image()).src=G.loading.img;if(G.pixelsFromNavToBottom===k){G.pixelsFromNavToBottom=i(document).height()-i(G.navSelector).offset().top}var E=this;G.loading.start=G.loading.start||function(){i(G.navSelector).hide();G.loading.msg.appendTo(G.loading.selector).show(G.loading.speed,i.proxy(function(){this.beginAjax(G)},E))};G.loading.finished=G.loading.finished||function(){G.loading.msg.fadeOut(G.loading.speed)};G.callback=function(K,M,L){if(!!G.behavior&&K["_callback_"+G.behavior]!==k){K["_callback_"+G.behavior].call(i(G.contentSelector)[0],M,L)}if(J){J.call(i(G.contentSelector)[0],M,G,L)}if(G.prefill){I.bind("resize.infinite-scroll",K._prefill)}};if(F.debug){if(Function.prototype.bind&&(typeof console==="object"||typeof console==="function")&&typeof console.log==="object"){["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(K){console[K]=this.call(console[K],console)},Function.prototype.bind)}}this._setup();if(G.prefill){this._prefill()}return true},_prefill:function n(){var D=this;var G=i(document);var F=i(o);function E(){return(G.height()<=F.height())}this._prefill=function(){if(E()){D.scroll()}F.bind("resize.infinite-scroll",function(){if(E()){F.unbind("resize.infinite-scroll");D.scroll()}})};this._prefill()},_debug:function q(){if(true!==this.options.debug){return}if(typeof console!=="undefined"&&typeof console.log==="function"){if((Array.prototype.slice.call(arguments)).length===1&&typeof Array.prototype.slice.call(arguments)[0]==="string"){console.log((Array.prototype.slice.call(arguments)).toString())}else{console.log(Array.prototype.slice.call(arguments))}}else{if(!Function.prototype.bind&&typeof console!=="undefined"&&typeof console.log==="object"){Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments))}}},_determinepath:function A(E){var D=this.options;if(!!D.behavior&&this["_determinepath_"+D.behavior]!==k){return this["_determinepath_"+D.behavior].call(this,E)}if(!!D.pathParse){this._debug("pathParse manual");return D.pathParse(E,this.options.state.currPage+1)}else{if(E.match(/^(.*?)\b2\b(?!.*\b2\b)(.*?$)/)){E=E.match(/^(.*?)\b2\b(?!.*\b2\b)(.*?$)/).slice(1)}else{if(E.match(/^(.*?)2(.*?$)/)){if(E.match(/^(.*?page=)2(\/.*|$)/)){E=E.match(/^(.*?page=)2(\/.*|$)/).slice(1);return E}E=E.match(/^(.*?)2(.*?$)/).slice(1)}else{if(E.match(/^(.*?page=)1(\/.*|$)/)){E=E.match(/^(.*?page=)1(\/.*|$)/).slice(1);return E}else{this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");D.state.isInvalidPage=true}}}}this._debug("determinePath",E);return E},_error:function v(E){var D=this.options;if(!!D.behavior&&this["_error_"+D.behavior]!==k){this["_error_"+D.behavior].call(this,E);return}if(E!=="destroy"&&E!=="end"){E="unknown"}this._debug("Error",E);if(E==="end"){this._showdonemsg()}D.state.isDone=true;D.state.currPage=1;D.state.isPaused=false;this._binding("unbind")},_loadcallback:function c(H,G,E){var D=this.options,J=this.options.callback,L=(D.state.isDone)?"done":(!D.appendCallback)?"no-append":"append",K;if(!!D.behavior&&this["_loadcallback_"+D.behavior]!==k){this["_loadcallback_"+D.behavior].call(this,H,G);return}switch(L){case"done":this._showdonemsg();return false;case"no-append":if(D.dataType==="html"){G="<div>"+G+"</div>";G=i(G).find(D.itemSelector)}break;case"append":var F=H.children();if(F.length===0){return this._error("end")}K=document.createDocumentFragment();while(H[0].firstChild){K.appendChild(H[0].firstChild)}this._debug("contentSelector",i(D.contentSelector)[0]);i(D.contentSelector)[0].appendChild(K);G=F.get();break}D.loading.finished.call(i(D.contentSelector)[0],D);if(D.animate){var I=i(o).scrollTop()+i("#infscr-loading").height()+D.extraScrollPx+"px";i("html,body").animate({scrollTop:I},800,function(){D.state.isDuringAjax=false})}if(!D.animate){D.state.isDuringAjax=false}J(this,G,E);if(D.prefill){this._prefill()}},_nearbottom:function u(){var E=this.options,D=0+i(document).height()-(E.binder.scrollTop())-i(o).height();if(!!E.behavior&&this["_nearbottom_"+E.behavior]!==k){return this["_nearbottom_"+E.behavior].call(this)}this._debug("math:",D,E.pixelsFromNavToBottom);return(D-E.bufferPx<E.pixelsFromNavToBottom)},_pausing:function l(E){var D=this.options;if(!!D.behavior&&this["_pausing_"+D.behavior]!==k){this["_pausing_"+D.behavior].call(this,E);return}if(E!=="pause"&&E!=="resume"&&E!==null){this._debug("Invalid argument. Toggling pause value instead")}E=(E&&(E==="pause"||E==="resume"))?E:"toggle";switch(E){case"pause":D.state.isPaused=true;break;case"resume":D.state.isPaused=false;break;case"toggle":D.state.isPaused=!D.state.isPaused;break}this._debug("Paused",D.state.isPaused);return false},_setup:function r(){var D=this.options;if(!!D.behavior&&this["_setup_"+D.behavior]!==k){this["_setup_"+D.behavior].call(this);return}this._binding("bind");return false},_showdonemsg:function a(){var D=this.options;if(!!D.behavior&&this["_showdonemsg_"+D.behavior]!==k){this["_showdonemsg_"+D.behavior].call(this);return}D.loading.msg.find("img").hide().parent().find("div").html(D.loading.finishedMsg).animate({opacity:1},2000,function(){i(this).parent().fadeOut(D.loading.speed)});D.errorCallback.call(i(D.contentSelector)[0],"done")},_validate:function w(E){for(var D in E){if(D.indexOf&&D.indexOf("Selector")>-1&&i(E[D]).length===0){this._debug("Your "+D+" found no elements.");return false}}return true},bind:function p(){this._binding("bind")},destroy:function C(){this.options.state.isDestroyed=true;this.options.loading.finished();return this._error("destroy")},pause:function e(){this._pausing("pause")},resume:function h(){this._pausing("resume")},beginAjax:function B(G){var E=this,I=G.path,F,D,K,J;G.state.currPage++;if(G.maxPage!=k&&G.state.currPage>G.maxPage){this.destroy();return}F=i(G.contentSelector).is("table")?i("<tbody/>"):i("<div/>");D=(typeof I==="function")?I(G.state.currPage):I.join(G.state.currPage);E._debug("heading into ajax",D);K=(G.dataType==="html"||G.dataType==="json")?G.dataType:"html+callback";if(G.appendCallback&&G.dataType==="html"){K+="+callback"}switch(K){case"html+callback":E._debug("Using HTML via .load() method");F.load(D+" "+G.itemSelector,k,function H(L){E._loadcallback(F,L,D)});break;case"html":E._debug("Using "+(K.toUpperCase())+" via $.ajax() method");i.ajax({url:D,dataType:G.dataType,complete:function H(L,M){J=(typeof(L.isResolved)!=="undefined")?(L.isResolved()):(M==="success"||M==="notmodified");if(J){E._loadcallback(F,L.responseText,D)}else{E._error("end")}}});break;case"json":E._debug("Using "+(K.toUpperCase())+" via $.ajax() method");i.ajax({dataType:"json",type:"GET",url:D,success:function(N,O,M){J=(typeof(M.isResolved)!=="undefined")?(M.isResolved()):(O==="success"||O==="notmodified");if(G.appendCallback){if(G.template!==k){var L=G.template(N);F.append(L);if(J){E._loadcallback(F,L)}else{E._error("end")}}else{E._debug("template must be defined.");E._error("end")}}else{if(J){E._loadcallback(F,N,D)}else{E._error("end")}}},error:function(){E._debug("JSON ajax request failed.");E._error("end")}});break}},retrieve:function b(F){F=F||null;var D=this,E=D.options;if(!!E.behavior&&this["retrieve_"+E.behavior]!==k){this["retrieve_"+E.behavior].call(this,F);return}if(E.state.isDestroyed){this._debug("Instance is destroyed");return false}E.state.isDuringAjax=true;E.loading.start.call(i(E.contentSelector)[0],E)},scroll:function f(){var D=this.options,E=D.state;if(!!D.behavior&&this["scroll_"+D.behavior]!==k){this["scroll_"+D.behavior].call(this);return}if(E.isDuringAjax||E.isInvalidPage||E.isDone||E.isDestroyed||E.isPaused){return}if(!this._nearbottom()){return}this.retrieve()},toggle:function y(){this._pausing()},unbind:function m(){this._binding("unbind")},update:function j(D){if(i.isPlainObject(D)){this.options=i.extend(true,this.options,D)}}};i.fn.infinitescroll=function d(F,G){var E=typeof F;switch(E){case"string":var D=Array.prototype.slice.call(arguments,1);this.each(function(){var H=i.data(this,"infinitescroll");if(!H){return false}if(!i.isFunction(H[F])||F.charAt(0)==="_"){return false}H[F].apply(H,D)});break;case"object":this.each(function(){var H=i.data(this,"infinitescroll");if(H){H.update(F)}else{H=new i.infinitescroll(F,G,this);if(!H.failed){i.data(this,"infinitescroll",H)}}});break}return this};var x=i.event,s;x.special.smartscroll={setup:function(){i(this).bind("scroll",x.special.smartscroll.handler)},teardown:function(){i(this).unbind("scroll",x.special.smartscroll.handler)},handler:function(G,D){var F=this,E=arguments;G.type="smartscroll";if(s){clearTimeout(s)}s=setTimeout(function(){i(F).trigger("smartscroll",E)},D==="execAsap"?0:100)}};i.fn.smartscroll=function(D){return D?this.bind("smartscroll",D):this.trigger("smartscroll",["execAsap"])}})(window,jQuery);
/*Manual*/
(function($,undefined){$.extend($.infinitescroll.prototype,{_setup_twitter:function infscr_setup_twitter(){var opts=this.options,instance=this;$(opts.nextSelector).click(function(e){if(e.which==1&&!e.metaKey&&!e.shiftKey){e.preventDefault();instance.retrieve();}});instance.options.loading.start=function(opts){opts.loading.msg.appendTo(opts.loading.selector).show(opts.loading.speed,function(){instance.beginAjax(opts);});};},_showdonemsg_twitter:function infscr_showdonemsg_twitter(){var opts=this.options,instance=this;opts.loading.msg.find("img").hide().parent().find("div").html(opts.loading.finishedMsg).animate({opacity:1},2000,function(){$(this).parent().fadeOut("normal");});$(opts.navSelector).fadeOut("normal");opts.errorCallback.call($(opts.contentSelector)[0],"done");}});})(jQuery);
var themifyScript = {"lightbox":{"lightboxSelector":".themify_lightbox","lightboxOn":true,"lightboxContentImages":false,"lightboxContentImagesSelector":"","theme":"pp_default","social_tools":false,"allow_resize":true,"show_title":false,"overlay_gallery":false,"screenWidthNoLightbox":600,"deeplinking":false,"contentImagesAreas":"","gallerySelector":".gallery-icon > a","lightboxGalleryOn":true},"lightboxContext":"#pagewrap","infiniteURL":"0","fixedHeader":"","sticky_header":"","loadingImg":"https:\/\/www.otr3.com\/wp-content\/themes\/themify-float\/images\/loading.gif","maxPages":"0","autoInfinite":"auto"};
/* https://www.otr3.com/wp-content/themes/themify-float/js/themify.script.min.js?ver=5.2.2 */
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,e,a){b instanceof String&&(b=String(b));for(var c=b.length,d=0;d<c;d++){var f=b[d];if(e.call(a,f,d,b))return{i:d,v:f}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,e,a){b!=Array.prototype&&b!=Object.prototype&&(b[e]=a.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};
$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(b,e,a,c){if(e){a=$jscomp.global;b=b.split(".");for(c=0;c<b.length-1;c++){var d=b[c];d in a||(a[d]={});a=a[d]}b=b[b.length-1];c=a[b];e=e(c);e!=c&&null!=e&&$jscomp.defineProperty(a,b,{configurable:!0,writable:!0,value:e})}};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,a){return $jscomp.findInternal(this,b,a).v}},"es6-impl","es3");var FixedHeader={},LayoutAndFilter={},themifyScript;
(function(b){function e(a,c,d){if("undefined"!==typeof b.fn.infinitescroll){var f=a.next(".load-more"),h=themifyScript.autoInfinite;"auto"!==h||f.hasClass("load-more-show")?h="twitter":(f.hide(),h="");var e=parseInt(f.data("max")),k=f.children("a"),g=f.is(":visible");c={navSelector:k,nextSelector:k,itemSelector:c,appendCallback:!0,loadingText:" ",donetext:"",msgText:"",maxPage:e,behavior:h,bufferPx:50,page:1,pixelsFromNavToBottom:b("#footerwrap").height()};g?a.addClass("infinity_without_loader"):
c.loading={img:themifyScript.loadingImg};d?c.path=function(b){g&&(f.addClass("loader-wait"),a.find("#infscr-loading").remove());return k.prop("href").replace(/paging=([0-9]*)/,"paging="+b)}:(g&&(c.path=function(b){f.addClass("loader-wait");return k.prop("href").replace(/page=([0-9]*)/,"page="+b).replace(/page\/([0-9]*)/,"page/"+b)}),c.pathParse=function(b){return b.match(/^(.*?)\b2\b(?!.*\b2\b)(.*?$)/).slice(1)});a.infinitescroll(c,function(c,h,k){var g=b(c);b(".newItems").removeClass("newItems");
g.first().addClass("newItems");"reset"===themifyScript.resetFilterOnLoad&&LayoutAndFilter.reset();g.hide().imagesLoaded().always(function(c){b(".wp-audio-shortcode, .wp-video-shortcode").not("div").each(function(){var a=b(this);0===a.closest(".mejs-audio").length&&ThemifyMediaElement.init(a)});g.fadeIn();Themify.InitGallery();"object"===typeof a.data("isotope")&&a.isotope("appended",g);d||!history.pushState||+themifyScript.infiniteURL||history.pushState(null,null,k);LayoutAndFilter.filterActive&&
LayoutAndFilter.enableFilters();themifyScript.scrollToNewOnLoad&&LayoutAndFilter.restore(a);b("body").trigger("infiniteloaded.themify",[g]);b(window).trigger("resize");b("#infscr-loading").fadeOut("normal");1===e&&f.remove();f.removeClass("loader-wait")});--e;1<e&&"auto"!==themifyScript.autoInfinite&&f.show()})}}FixedHeader={headerHeight:0,init:function(){if(!b("body").hasClass("header-leftpane")&&!b("body").hasClass("header-rightpane")){var a=b("#pagewrap"),c=b("#headerwrap");""!==themifyScript.fixedHeader&&
(this.headerHeight=c.outerHeight(!0),this.activate(),b(window).on("scroll touchstart.touchScroll touchmove.touchScroll",this.activate),a.css("paddingTop",Math.floor(this.headerHeight)),b(window).on("debouncedresize",function(){a.css("paddingTop",c.outerHeight(!0));setTimeout(function(){a.css("paddingTop",c.outerHeight(!0))},260)}))}if(themifyScript.sticky_header){var d='<img id="sticky_header_logo" src="'+themifyScript.sticky_header.src+'"';themifyScript.sticky_header.imgwidth&&(d+=' width="'+themifyScript.sticky_header.imgwidth+
'"');themifyScript.sticky_header.imgheight&&(d+=' height="'+themifyScript.sticky_header.imgheight+'"');d+="/>";b("#site-logo a").prepend(d)}},activate:function(){var a=b(window).scrollTop(),c=b("#headerwrap");b("#pagewrap").css("paddingTop",Math.floor(this.headerHeight));a>=FixedHeader.headerHeight?c.hasClass("fixed-header")||FixedHeader.scrollEnabled():c.hasClass("fixed-header")&&FixedHeader.scrollDisabled()},scrollDisabled:function(){b("#pagewrap").css("paddingTop",Math.floor(this.headerHeight));
b("#headerwrap").removeClass("fixed-header");b("#header").removeClass("header-on-scroll");b("body").removeClass("fixed-header-on")},scrollEnabled:function(){b("#headerwrap").addClass("fixed-header");b("#header").addClass("header-on-scroll");b("body").addClass("fixed-header-on")}};LayoutAndFilter={filterActive:!1,init:function(){0<b(".post-filter").length&&(b(".post-filter + .loops-wrapper,.loops-wrapper.grid4,.loops-wrapper.grid3,.loops-wrapper.grid2").not(".builder-posts-wrap,.list-post").prepend('<div class="grid-sizer"></div><div class="gutter-sizer"></div>'),
this.enableFilters(),this.filter(),this.filterActive=!0)},enableFilters:function(){var a=b(".post-filter");0<a.find("a").length&&"undefined"!==typeof b.fn.isotope&&a.find("li").each(function(){var a=b(this),d=a.closest(".loops-wrapper"),f=a.attr("class").replace(/(current-cat)|(cat-item)|(-)|(active)/g,"").replace(" ","");0>=d.find(".post.cat-"+f).length?a.hide():a.show()})},filter:function(){var a=b(".post-filter"),c=b("body").hasClass("rtl");0<a.find("a").length&&"undefined"!==typeof b.fn.isotope&&
a.each(function(){var a=b(this).closest(".loops-wrapper"),f=a.find(".grid-sizer").width();a.find(".gutter-sizer,.grid-sizer").remove();var h=b(this),e=h.closest(".portfolio-filter-wrap").find(".post-filter-title");h.addClass("filter-visible").on("click","a",function(d){d.preventDefault();if(!h.hasClass("filter-disable")){h.addClass("filter-disable");var g=b(this).parent();d={gutter:0,grid:f};g.hasClass("active")?(g.removeClass("active"),a.isotope({masonry:d,isResizeBound:!0,isOriginLeft:!c,filter:"*"}),
e.text("")):(g.siblings(".active").removeClass("active"),g.addClass("active"),g=g.attr("class").replace(/(current-cat)|(cat-item)|(-)|(active)/g,"").replace(" ",""),e.text(b(this).text()),a.isotope({masonry:d,isResizeBound:!0,itemSelector:".post",isOriginLeft:!c,filter:".filter-wrapper,.cat-"+g}));h.removeClass("filter-disable")}})})},scrolling:!1,reset:function(){b(".post-filter").find("li.active").find("a").addClass("previous-active").trigger("click");this.scrolling=!0},restore:function(a){if(a=
a.find(".newItems").first()){var c=this;a=a.offset().top-a.outerHeight(!0)/2;var d=800;800<=a&&(d=800+Math.abs(a/1E3*100));b("html,body").stop().animate({scrollTop:a},d,function(){c.scrolling=!1})}},layout:function(){var a=b(".loops-wrapper.portfolio,.masonry");if(0<a.length){var c=b("body").hasClass("rtl");a.each(function(){var a=b(this),d={},e=0<a.children(".post").length;if(e){if(a.hasClass("portfolio")&&0===a.find(".portfolio-filter-wrap").length)return!0;d={gutter:a.hasClass("portfolio")?0:".gutter-sizer"};
0===a.prev(".post-filter").length&&0===a.find(".gutter-sizer").length&&a.prepend('<div class="grid-sizer"></div><div class="gutter-sizer"></div>');a.find(".portfolio-filter-wrap").height(a.find(".post").not(".size-large,.filter-wrapper").first().height())}a.imagesLoaded().always(function(b){a.isotope({masonry:d,isOriginLeft:!c,isResizeBound:!0,itemSelector:e?".post":".item"}).addClass("masonry-done")})});var d=this;d.resize(a);b(window).resize(function(){d.resize(a)})}b("body").hasClass("masonry-enabled")&&
0<b(".woocommerce.archive").length&&b(".woocommerce.archive").find("#content").find("ul.products").each(function(){var a=b(this);a.imagesLoaded().always(function(){a.isotope({layoutMode:"packery",itemSelector:".product",isOriginLeft:!b("body").hasClass("rtl")}).addClass("masonry-done")})})},resize:function(a){a.each(function(){var a=b(this);if(a.hasClass("portfolio")&&0===a.find(".portfolio-filter-wrap").length)return!0;a.imagesLoaded().always(function(b){a.find(".portfolio-filter-wrap").height(a.find(".post").not(".size-large,.filter-wrapper").first().height())})})}};
b(document).ready(function(a){var c=a("body"),d=function(){a(".post-media-svg+img").each(function(){var b=a(this);b.imagesLoaded().always(function(){b.prev(".post-media-svg").height(b.height())})})};0<a(".svg-image").length&&(d(),a(window).on("debouncedresize",d));FixedHeader.init();LayoutAndFilter.init();LayoutAndFilter.layout();a(".back-top a").click(function(){a("body,html").animate({scrollTop:0},800);return!1});a("body").hasClass("touch")&&"function"!=typeof jQuery.fn.themifyDropdown&&Themify.LoadAsync(themify_vars.url+
"/js/themify.dropdown.js",function(){a("body.horizontal-menu #main-nav").themifyDropdown()});a("#menu-icon").themifySideMenu({close:"#menu-icon-close"});var f=a('<div class="body-overlay">');c.append(f).on("sidemenushow.themify",function(){f.addClass("body-overlay-on")}).on("sidemenuhide.themify",function(){f.removeClass("body-overlay-on")}).on("click.themify touchend.themify",".body-overlay",function(){a("#menu-icon").themifySideMenu("hide")});a(window).on("debouncedresize",function(){a("#menu-icon").is(":visible")&&
a("#mobile-menu").hasClass("sidemenu-on")?f.addClass("body-overlay-on"):f.removeClass("body-overlay-on");780<a(window).width()&&a("body").removeAttr("style")});a("#main-nav li.menu-item-has-children > a, #main-nav li.page_item_has_children > a").after("<span class='child-arrow'></span>");a("#main-nav li.menu-item-has-children > .child-arrow, #main-nav li.page_item_has_children > .child-arrow").click(function(){a(this).toggleClass("toggle-on");c.trigger("themify_sidemnenu");return!0});if("undefined"!==
typeof a.fn.niceScroll)if(b("body").hasClass("touch")||!c.hasClass("header-rightpane")&&!c.hasClass("header-leftpane"))a("body").hasClass("no-touch")&&(e=a("body:not(.horizontal-menu):not(.header-leftpane):not(.header-rightpane) #mobile-menu"),e.niceScroll({horizrailenabled:!1}),c.on("sidemenushow.themify themify_sidemnenu",function(){setTimeout(function(){e.getNiceScroll().resize()},200)}));else{var e=a("#headerwrap");e.niceScroll({horizrailenabled:!1});var l=a("#"+e.getNiceScroll()[0].id);l.addClass("nicescroll-rails-hidden");
c.on("sidemenushow.themify themify_sidemnenu",function(){setTimeout(function(){e.getNiceScroll().resize();l.removeClass("nicescroll-rails-hidden")},320)}).on("sidemenuhide.themify themify_sidemnenu",function(){setTimeout(function(){l.addClass("nicescroll-rails-hidden")},200)})}a(window).on("debouncedresize",function(){1400<a(window).width()&&"undefined"!==typeof a.fn.sticky&&a("body:not(.sidebar-left).single .social-share").sticky({topSpacing:125,stopper:"#footerwrap"})})});b(window).load(function(){"undefined"!==
typeof ThemifyGallery&&ThemifyGallery.init({context:b(themifyScript.lightboxContext)});var a=b("body");a.hasClass("woocommerce")&&a.hasClass("archive")&&e(b("#content ul.products"),"#content .product");b(".loops-wrapper").each(function(){var a=b(this).find(".load-more");0<a.length?(b(this).after(a),e(b(this),".post",!0)):0<b(this).next(".load-more").length&&e(b(this),".post",!1)});b(function(a){a("#main-nav li").on("mouseenter mouseleave dropdown_open",function(b){if(a("ul",this).length){var c=a("ul:first",
this);b=c.offset().left;var c=c.width(),d=a(window).width();b+c<=d?a(this).removeClass("edge"):a(this).addClass("edge")}})})})})(jQuery);

/* https://www.otr3.com/wp-includes/js/comment-reply.min.js?ver=5.2.2 */
window.addComment=function(a){function b(){c(),g()}function c(a){if(t&&(m=j(r.cancelReplyId),n=j(r.commentFormId),m)){m.addEventListener("touchstart",e),m.addEventListener("click",e);for(var b,c=d(a),g=0,h=c.length;g<h;g++)b=c[g],b.addEventListener("touchstart",f),b.addEventListener("click",f)}}function d(a){var b,c=r.commentReplyClass;return a&&a.childNodes||(a=q),b=q.getElementsByClassName?a.getElementsByClassName(c):a.querySelectorAll("."+c)}function e(a){var b=this,c=r.temporaryFormId,d=j(c);d&&o&&(j(r.parentIdFieldId).value="0",d.parentNode.replaceChild(o,d),b.style.display="none",a.preventDefault())}function f(b){var c,d=this,e=i(d,"belowelement"),f=i(d,"commentid"),g=i(d,"respondelement"),h=i(d,"postid");e&&f&&g&&h&&(c=a.addComment.moveForm(e,f,g,h),!1===c&&b.preventDefault())}function g(){if(s){var a={childList:!0,subTree:!0};p=new s(h),p.observe(q.body,a)}}function h(a){for(var b=a.length;b--;)if(a[b].addedNodes.length)return void c()}function i(a,b){return u?a.dataset[b]:a.getAttribute("data-"+b)}function j(a){return q.getElementById(a)}function k(b,c,d,e){var f=j(b);o=j(d);var g,h,i,k=j(r.parentIdFieldId),p=j(r.postIdFieldId);if(f&&o&&k){l(o),e&&p&&(p.value=e),k.value=c,m.style.display="",f.parentNode.insertBefore(o,f.nextSibling),m.onclick=function(){return!1};try{for(var s=0;s<n.elements.length;s++)if(g=n.elements[s],h=!1,"getComputedStyle"in a?i=a.getComputedStyle(g):q.documentElement.currentStyle&&(i=g.currentStyle),(g.offsetWidth<=0&&g.offsetHeight<=0||"hidden"===i.visibility)&&(h=!0),"hidden"!==g.type&&!g.disabled&&!h){g.focus();break}}catch(t){}return!1}}function l(a){var b=r.temporaryFormId,c=j(b);c||(c=q.createElement("div"),c.id=b,c.style.display="none",a.parentNode.insertBefore(c,a))}var m,n,o,p,q=a.document,r={commentReplyClass:"comment-reply-link",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},s=a.MutationObserver||a.WebKitMutationObserver||a.MozMutationObserver,t="querySelector"in q&&"addEventListener"in a,u=!!q.documentElement.dataset;return t&&"loading"!==q.readyState?b():t&&a.addEventListener("DOMContentLoaded",b,!1),{init:c,moveForm:k}}(window);
/* https://www.otr3.com/wp-includes/js/jquery/ui/effect.min.js?ver=1.11.4 */
/*!
 * jQuery UI Effects 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/effects-core/
 */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){var b="ui-effects-",c=a;/*!
 * jQuery Color Animations v2.1.2
 * https://github.com/jquery/jquery-color
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Wed Jan 16 08:47:09 2013 -0600
 */
return a.effects={effect:{}},function(a,b){function c(a,b,c){var d=l[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function d(b){var c=j(),d=c._rgba=[];return b=b.toLowerCase(),o(i,function(a,e){var f,g=e.re.exec(b),h=g&&e.parse(g),i=e.space||"rgba";if(h)return f=c[i](h),c[k[i].cache]=f[k[i].cache],d=c._rgba=f._rgba,!1}),d.length?("0,0,0,0"===d.join()&&a.extend(d,f.transparent),c):f[b]}function e(a,b,c){return c=(c+1)%1,6*c<1?a+(b-a)*c*6:2*c<1?b:3*c<2?a+(b-a)*(2/3-c)*6:a}var f,g="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",h=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],j=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},k={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},l={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},m=j.support={},n=a("<p>")[0],o=a.each;n.style.cssText="background-color:rgba(1,1,1,.5)",m.rgba=n.style.backgroundColor.indexOf("rgba")>-1,o(k,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),j.fn=a.extend(j.prototype,{parse:function(e,g,h,i){if(e===b)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=a(e).css(g),g=b);var l=this,m=a.type(e),n=this._rgba=[];return g!==b&&(e=[e,g,h,i],m="array"),"string"===m?this.parse(d(e)||f._default):"array"===m?(o(k.rgba.props,function(a,b){n[b.idx]=c(e[b.idx],b)}),this):"object"===m?(e instanceof j?o(k,function(a,b){e[b.cache]&&(l[b.cache]=e[b.cache].slice())}):o(k,function(b,d){var f=d.cache;o(d.props,function(a,b){if(!l[f]&&d.to){if("alpha"===a||null==e[a])return;l[f]=d.to(l._rgba)}l[f][b.idx]=c(e[a],b,!0)}),l[f]&&a.inArray(null,l[f].slice(0,3))<0&&(l[f][3]=1,d.from&&(l._rgba=d.from(l[f])))}),this):void 0},is:function(a){var b=j(a),c=!0,d=this;return o(k,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],o(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return o(k,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var d=j(a),e=d._space(),f=k[e],g=0===this.alpha()?j("transparent"):this,h=g[f.cache]||f.to(g._rgba),i=h.slice();return d=d[f.cache],o(f.props,function(a,e){var f=e.idx,g=h[f],j=d[f],k=l[e.type]||{};null!==j&&(null===g?i[f]=j:(k.mod&&(j-g>k.mod/2?g+=k.mod:g-j>k.mod/2&&(g-=k.mod)),i[f]=c((j-g)*b+g,e)))}),this[e](i)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=j(b)._rgba;return j(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),j.fn.parse.prototype=j.fn,k.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b,c,d=a[0]/255,e=a[1]/255,f=a[2]/255,g=a[3],h=Math.max(d,e,f),i=Math.min(d,e,f),j=h-i,k=h+i,l=.5*k;return b=i===h?0:d===h?60*(e-f)/j+360:e===h?60*(f-d)/j+120:60*(d-e)/j+240,c=0===j?0:l<=.5?j/k:j/(2-k),[Math.round(b)%360,c,l,null==g?1:g]},k.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],f=a[3],g=d<=.5?d*(1+c):d+c-d*c,h=2*d-g;return[Math.round(255*e(h,g,b+1/3)),Math.round(255*e(h,g,b)),Math.round(255*e(h,g,b-1/3)),f]},o(k,function(d,e){var f=e.props,g=e.cache,i=e.to,k=e.from;j.fn[d]=function(d){if(i&&!this[g]&&(this[g]=i(this._rgba)),d===b)return this[g].slice();var e,h=a.type(d),l="array"===h||"object"===h?d:arguments,m=this[g].slice();return o(f,function(a,b){var d=l["object"===h?a:b.idx];null==d&&(d=m[b.idx]),m[b.idx]=c(d,b)}),k?(e=j(k(m)),e[g]=m,e):j(m)},o(f,function(b,c){j.fn[b]||(j.fn[b]=function(e){var f,g=a.type(e),i="alpha"===b?this._hsla?"hsla":"rgba":d,j=this[i](),k=j[c.idx];return"undefined"===g?k:("function"===g&&(e=e.call(this,k),g=a.type(e)),null==e&&c.empty?this:("string"===g&&(f=h.exec(e),f&&(e=k+parseFloat(f[2])*("+"===f[1]?1:-1))),j[c.idx]=e,this[i](j)))})})}),j.hook=function(b){var c=b.split(" ");o(c,function(b,c){a.cssHooks[c]={set:function(b,e){var f,g,h="";if("transparent"!==e&&("string"!==a.type(e)||(f=d(e)))){if(e=j(f||e),!m.rgba&&1!==e._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(i){}e=e.blend(h&&"transparent"!==h?h:"_default")}e=e.toRgbaString()}try{b.style[c]=e}catch(i){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=j(b.elem,c),b.end=j(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},j.hook(g),a.cssHooks.borderColor={expand:function(a){var b={};return o(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},f=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(c),function(){function b(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function d(b,c){var d,e,g={};for(d in c)e=c[d],b[d]!==e&&(f[d]||!a.fx.step[d]&&isNaN(parseFloat(e))||(g[d]=e));return g}var e=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,d){a.fx.step[d]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(c.style(a.elem,d,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(c,f,g,h){var i=a.speed(f,g,h);return this.queue(function(){var f,g=a(this),h=g.attr("class")||"",j=i.children?g.find("*").addBack():g;j=j.map(function(){var c=a(this);return{el:c,start:b(this)}}),f=function(){a.each(e,function(a,b){c[b]&&g[b+"Class"](c[b])})},f(),j=j.map(function(){return this.end=b(this.el[0]),this.diff=d(this.start,this.end),this}),g.attr("class",h),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){f(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(g[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(b){return function(c,d,e,f,g){return"boolean"==typeof d||void 0===d?e?a.effects.animateClass.call(this,d?{add:c}:{remove:c},e,f,g):b.apply(this,arguments):a.effects.animateClass.call(this,{toggle:c},d,e,f)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function c(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function d(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}a.extend(a.effects,{version:"1.11.4",save:function(a,c){for(var d=0;d<c.length;d++)null!==c[d]&&a.data(b+c[d],a[0].style[c[d]])},restore:function(a,c){var d,e;for(e=0;e<c.length;e++)null!==c[e]&&(d=a.data(b+c[e]),void 0===d&&(d=""),a.css(c[e],d))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(g){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function b(b){function c(){a.isFunction(f)&&f.call(e[0]),a.isFunction(b)&&b()}var e=a(this),f=d.complete,h=d.mode;(e.is(":hidden")?"hide"===h:"show"===h)?(e[h](),c()):g.call(e[0],d,c)}var d=c.apply(this,arguments),e=d.mode,f=d.queue,g=a.effects.effect[d.effect];return a.fx.off||!g?e?this[e](d.duration,d.complete):this.each(function(){d.complete&&d.complete.call(this)}):f===!1?this.each(b):this.queue(f||"fx",b)},show:function(a){return function(b){if(d(b))return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}}(a.fn.show),hide:function(a){return function(b){if(d(b))return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}}(a.fn.hide),toggle:function(a){return function(b){if(d(b)||"boolean"==typeof b)return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(a*-2+2)/2}})}(),a.effects});
var tg_global_var = {"url":"https:\/\/www.otr3.com\/wp-admin\/admin-ajax.php","nonce":"454c275d40","is_mobile":null,"mediaelement":"","mediaelement_ex":null,"lightbox_autoplay":"","debounce":"","meta_data":null,"main_query":{"page":0,"error":"","m":"","p":1632,"post_parent":"","subpost":"","subpost_id":"","attachment":"","attachment_id":0,"static":"","pagename":"","page_id":"","second":"","minute":"","hour":"","day":0,"monthnum":0,"year":0,"w":0,"category_name":"","tag":"","cat":"","tag_id":"","author":"","author_name":"","feed":"","tb":"","paged":0,"meta_key":"","meta_value":"","preview":"","s":"","sentence":"","title":"","fields":"","menu_order":"","embed":"","category__in":[],"category__not_in":[],"category__and":[],"post__in":[],"post__not_in":[],"post_name__in":[],"tag__in":[],"tag__not_in":[],"tag__and":[],"tag_slug__in":[],"tag_slug__and":[],"post_parent__in":[],"post_parent__not_in":[],"author__in":[],"author__not_in":[],"name":"cacipliq20-foot-ulcer","ignore_sticky_posts":false,"suppress_filters":false,"cache_results":true,"update_post_term_cache":true,"lazy_load_term_meta":true,"update_post_meta_cache":true,"post_type":"","posts_per_page":10,"nopaging":false,"comments_per_page":"50","no_found_rows":false,"order":"DESC"}};
/* https://www.otr3.com/wp-content/plugins/the-grid/frontend/assets/js/the-grid.min.js?ver=2.7.1 */
/*!
 * The Grid – Responsive Grid Plugin
 * Copyright © 2015 All Rights Reserved. 
 * @author Themeone [http://theme-one.com/the-grid/]
 */
!function(t){var d=Array.prototype.slice;function e(u){if(u){return u.bridget=function(t,e){var i,s,l;(i=e).prototype.option||(i.prototype.option=function(t){u.isPlainObject(t)&&(this.options=u.extend(!0,this.options,t))}),s=t,l=e,u.fn[s]=function(e){if("string"==typeof e){for(var t=d.call(arguments,1),i=0,o=this.length;i<o;i++){var n=this[i],r=u.data(n,s);if(r&&u.isFunction(r[e])&&"_"!==e.charAt(0)){var a=r[e].apply(r,t);if(void 0!==a)return a}}return this}return this.each(function(){var t=u.data(this,s);t?(t.option(e),t._init()):(t=new l(this,e),u.data(this,s,t))})}},u.bridget}}"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],e):"object"==typeof exports?e(require("jquery")):e(t.jQuery)}(window),function(i){var t=document.documentElement,e=function(){};function o(t){var e=i.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(e=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=o(e);i.handleEvent.call(i,t)}:function(){var t=o(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var n=function(){};t.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:t.detachEvent&&(n=function(e,i,o){e.detachEvent("on"+i,e[i+o]);try{delete e[i+o]}catch(t){e[i+o]=void 0}});var r={bind:e,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:i.eventie=r}(window),function(){"use strict";function t(){}var e=t.prototype,i=this,o=i.EventEmitter;function r(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}e.getListeners=function(t){var e,i,o=this._getEvents();if(t instanceof RegExp)for(i in e={},o)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i]);else e=o[t]||(o[t]=[]);return e},e.flattenListeners=function(t){var e,i=[];for(e=0;e<t.length;e+=1)i.push(t[e].listener);return i},e.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},e.addListener=function(t,e){var i,o=this.getListenersAsObject(t),n="object"==typeof e;for(i in o)o.hasOwnProperty(i)&&-1===r(o[i],e)&&o[i].push(n?e:{listener:e,once:!1});return this},e.on=n("addListener"),e.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},e.once=n("addOnceListener"),e.defineEvent=function(t){return this.getListeners(t),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(t,e){var i,o,n=this.getListenersAsObject(t);for(o in n)n.hasOwnProperty(o)&&-1!==(i=r(n[o],e))&&n[o].splice(i,1);return this},e.off=n("removeListener"),e.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},e.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},e.manipulateListeners=function(t,e,i){var o,n,r=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(o=i.length;o--;)r.call(this,e,i[o]);else for(o in e)e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeof n?r.call(this,o,n):a.call(this,o,n));return this},e.removeEvent=function(t){var e,i=typeof t,o=this._getEvents();if("string"===i)delete o[t];else if(t instanceof RegExp)for(e in o)o.hasOwnProperty(e)&&t.test(e)&&delete o[e];else delete this._events;return this},e.removeAllListeners=n("removeEvent"),e.emitEvent=function(t,e){var i,o,n,r=this.getListenersAsObject(t);for(n in r)if(r.hasOwnProperty(n))for(o=r[n].length;o--;)!0===(i=r[n][o]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},e.trigger=n("emitEvent"),e.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},e.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},e._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},e._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:i.EventEmitter=t}.call(this),function(t){var n="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;function e(t){if(t){if("string"==typeof r[t])return t;var e;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=0,o=n.length;i<o;i++)if(e=n[i]+t,"string"==typeof r[e])return e}}"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(z,t){function L(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}var C="undefined"==typeof console?function(){}:function(t){console.error(t)},I=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function e(v){var _,w,b,T=!1;function x(t,e){if(z.getComputedStyle||-1===e.indexOf("%"))return e;var i=t.style,o=i.left,n=t.runtimeStyle,r=n&&n.left;return r&&(n.left=t.currentStyle.left),i.left=e,e=i.pixelLeft,i.left=o,r&&(n.left=r),e}return function(t){if(function(){if(!T){T=!0;var i,e=z.getComputedStyle;if(i=e?function(t){return e(t,null)}:function(t){return t.currentStyle},_=function(t){var e=i(t);return e||C("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e},w=v("boxSizing")){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[w]="border-box";var o=document.body||document.documentElement;o.appendChild(t);var n=_(t);b=200===L(n.width),o.removeChild(t)}}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=_(t);if("none"===e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=I.length;e<i;e++)t[I[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var o=i.isBorderBox=!(!w||!e[w]||"border-box"!==e[w]),n=0,r=I.length;n<r;n++){var a=I[n],s=e[a];s=x(t,s);var l=parseFloat(s);i[a]=isNaN(l)?0:l}var u=i.paddingLeft+i.paddingRight,d=i.paddingTop+i.paddingBottom,c=i.marginLeft+i.marginRight,h=i.marginTop+i.marginBottom,p=i.borderLeftWidth+i.borderRightWidth,f=i.borderTopWidth+i.borderBottomWidth,m=o&&b,g=L(e.width);!1!==g&&(i.width=g+(m?0:u+p));var y=L(e.height);return!1!==y&&(i.height=y+(m?0:d+f)),i.innerWidth=i.width-(u+p),i.innerHeight=i.height-(d+f),i.outerWidth=i.width+c,i.outerHeight=i.height+h,i}}}"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property")):z.getSize=e(z.getStyleProperty)}(window),function(e){var i=e.document,o=[];function n(t){"function"==typeof t&&(n.isReady?t():o.push(t))}function r(t){var e="readystatechange"===t.type&&"complete"!==i.readyState;n.isReady||e||a()}function a(){n.isReady=!0;for(var t=0,e=o.length;t<e;t++){(0,o[t])()}}function t(t){return"complete"===i.readyState?a():(t.bind(i,"DOMContentLoaded",r),t.bind(i,"readystatechange",r),t.bind(e,"load",r)),n}n.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],t):"object"==typeof exports?module.exports=t(require("eventie")):e.docReady=t(e.eventie)}(window),function(n){"use strict";var t,i=function(){if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],e=0,i=t.length;e<i;e++){var o=t[e]+"MatchesSelector";if(n[o])return o}}();function o(t,e){return t[i](e)}function r(t){t.parentNode||document.createDocumentFragment().appendChild(t)}if(i){var e=o(document.createElement("div"),"div");t=e?o:function(t,e){return r(t),o(t,e)}}else t=function(t,e){r(t);for(var i=t.parentNode.querySelectorAll(e),o=0,n=i.length;o<n;o++)if(i[o]===t)return!0;return!1};"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(i,o){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(t,e){return o(i,t,e)}):"object"==typeof exports?module.exports=o(i,require("doc-ready"),require("desandro-matches-selector")):i.fizzyUIUtils=o(i,i.docReady,i.matchesSelector)}(window,function(h,t,u){var i,p={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Object.prototype.toString;p.isArray=function(t){return"[object Array]"==e.call(t)},p.makeArray=function(t){var e=[];if(p.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,o=t.length;i<o;i++)e.push(t[i]);else e.push(t);return e},p.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;i<o;i++)if(t[i]===e)return i;return-1},p.removeFrom=function(t,e){var i=p.indexOf(t,e);-1!=i&&t.splice(i,1)},p.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},p.setText=function(t,e){t[i=i||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=e},p.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,u(t,e))return t},p.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},p.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},p.filterFindElements=function(t,e){for(var i=[],o=0,n=(t=p.makeArray(t)).length;o<n;o++){var r=t[o];if(p.isElement(r))if(e){u(r,e)&&i.push(r);for(var a=r.querySelectorAll(e),s=0,l=a.length;s<l;s++)i.push(a[s])}else i.push(r)}return i},p.debounceMethod=function(t,e,o){var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,i=this;this[r]=setTimeout(function(){n.apply(i,e),delete i[r]},o||100)}},p.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var f=h.console;return p.htmlInit=function(d,c){t(function(){for(var t=p.toDashed(c),e=document.querySelectorAll(".js-"+t),i="data-"+t+"-options",o=0,n=e.length;o<n;o++){var r,a=e[o],s=a.getAttribute(i);try{r=s&&JSON.parse(s)}catch(t){f&&f.error("Error parsing "+i+" on "+a.nodeName.toLowerCase()+(a.id?"#"+a.id:"")+": "+t);continue}var l=new d(a,r),u=h.jQuery;u&&u.data(a,c,l)}})},p}),function(n,r){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(t,e,i,o){return r(n,t,e,i,o)}):"object"==typeof exports?module.exports=r(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=r(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(t,e,i,r,o){"use strict";var n=t.getComputedStyle,u=n?function(t){return n(t,null)}:function(t){return t.currentStyle};var a=r("transition"),s=r("transform"),l=a&&s,d=!!r("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[a],h=["transform","transition","transitionDuration","transitionProperty"],p=function(){for(var t={},e=0,i=h.length;e<i;e++){var o=h[e],n=r(o);n&&n!==o&&(t[o]=n)}return t}();function f(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}o.extend(f.prototype,e.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},f.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(t){var e=this.element.style;for(var i in t){e[p[i]||i]=t[i]}},f.prototype.getPosition=function(){var t=u(this.element),e=this.layout.options,i=e.isOriginLeft,o=e.isOriginTop,n=t[i?"left":"right"],r=t[o?"top":"bottom"],a=this.layout.size,s=-1!=n.indexOf("%")?parseFloat(n)/100*a.width:parseInt(n,10),l=-1!=r.indexOf("%")?parseFloat(r)/100*a.height:parseInt(r,10);s=isNaN(s)?0:s,l=isNaN(l)?0:l,s-=i?a.paddingLeft:a.paddingRight,l-=o?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=l},f.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},o=e.isOriginLeft?"paddingLeft":"paddingRight",n=e.isOriginLeft?"left":"right",r=e.isOriginLeft?"right":"left",a=this.position.x+t[o];i[n]=this.getXValue(a),i[r]="";var s=e.isOriginTop?"paddingTop":"paddingBottom",l=e.isOriginTop?"top":"bottom",u=e.isOriginTop?"bottom":"top",d=this.position.y+t[s];i[l]=this.getYValue(d),i[u]="",this.css(i),this.emitEvent("layout",[this])},f.prototype.getXValue=function(t){var e=this.layout.options;return e.percentPosition&&!e.isHorizontal?t/this.layout.size.width*100+"%":t+"px"},f.prototype.getYValue=function(t){var e=this.layout.options;return e.percentPosition&&e.isHorizontal?t/this.layout.size.height*100+"%":t+"px"},f.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=parseInt(t,10),r=parseInt(e,10),a=n===this.position.x&&r===this.position.y;if(this.setPosition(t,e),!a||this.isTransitioning){var s=t-i,l=e-o,u={};u.transform=this.getTranslate(s,l),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},f.prototype.getTranslate=function(t,e){var i=this.layout.options;return t=i.isOriginLeft?t:-t,e=i.isOriginTop?e:-e,d?"translate3d("+t+"px, "+e+"px, 0)":"translate("+t+"px, "+e+"px)"},f.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},f.prototype.moveTo=l?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},f.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},f.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var m="opacity,"+(p.transform||"transform").replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:m,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},f.prototype.transition=f.prototype[a?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},f.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};f.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=g[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},f.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(c,this,!1),this.isTransitioning=!1},f.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var y={transitionProperty:"",transitionDuration:""};return f.prototype.removeTransitionStyles=function(){this.css(y)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},f.prototype.remove=function(){if(a&&parseFloat(this.layout.options.transitionDuration)){var t=this;this.once("transitionEnd",function(){t.removeElem()}),this.hide()}else this.removeElem()},f.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},f.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f}),function(r,a){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,o,n){return a(r,t,e,i,o,n)}):"object"==typeof exports?module.exports=a(r,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):r.Outlayer=a(r,r.eventie,r.EventEmitter,r.getSize,r.fizzyUIUtils,r.Outlayer.Item)}(window,function(t,e,i,n,a,o){"use strict";var r=t.console,s=t.jQuery,l=0,u={};function d(t,e){var i=a.getQueryElement(t);if(i){this.element=i,s&&(this.$element=s(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,(u[o]=this)._create(),this.options.isInitLayout&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return d.namespace="outlayer",d.Item=o,d.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},a.extend(d.prototype,i.prototype),d.prototype.option=function(t){a.extend(this.options,t)},d.prototype._create=function(){this.reloadItems(),a.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},d.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},d.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0,r=e.length;n<r;n++){var a=new i(e[n],this);o.push(a)}return o},d.prototype._filterFindItemElements=function(t){return a.filterFindElements(t,this.options.itemSelector)},d.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;e<i;e++)t.push(this.items[e].element);return t},d.prototype._init=d.prototype.layout=function(){this._resetLayout();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d.prototype._resetLayout=function(){this.getSize()},d.prototype.getSize=function(){this.size=n(this.element)},d.prototype._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):a.isElement(o)&&(i=o),this[t]=i?n(i)[e]:o):this[t]=0},d.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d.prototype._getItemsForLayout=function(t){for(var e=[],i=0,o=t.length;i<o;i++){var n=t[i];n.isIgnored||e.push(n)}return e},d.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],o=0,n=t.length;o<n;o++){var r=t[o],a=this._getItemLayoutPosition(r);a.item=r,a.isInstant=e||r.isLayoutInstant,i.push(a)}this._processLayoutQueue(i)}},d.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},d.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e];this._positionItem(o.item,o.x,o.y,o.isInstant)}},d.prototype._positionItem=function(t,e,i,o){o?t.goTo(e,i):t.moveTo(e,i)},d.prototype._postLayout=function(){this.resizeContainer()},d.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},d.prototype._getContainerSize=function(){},d.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},d.prototype._emitCompleteOnItems=function(t,e){var i=this;function o(){i.dispatchEvent(t+"Complete",null,[e])}var n=e.length;if(e&&n)for(var r=0,a=0,s=e.length;a<s;a++){e[a].once(t,l)}else o();function l(){++r===n&&o()}},d.prototype.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),s)if(this.$element=this.$element||s(this.element),e){var n=s.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},d.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},d.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},d.prototype._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=a.makeArray(t)},d.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t);return{left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom}},d.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},d.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},d.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},d.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},d.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},d.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].reveal()}},d.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].hide()}},d.prototype.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},d.prototype.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},d.prototype.getItem=function(t){for(var e=0,i=this.items.length;e<i;e++){var o=this.items[e];if(o.element===t)return o}},d.prototype.getItems=function(t){for(var e=[],i=0,o=(t=a.makeArray(t)).length;i<o;i++){var n=t[i],r=this.getItem(n);r&&e.push(r)}return e},d.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,o=e.length;i<o;i++){var n=e[i];n.remove(),a.removeFrom(this.items,n)}},d.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;e<i;e++){this.items[e].destroy()}this.unbindResize();var o=this.element.outlayerGUID;delete u[o],delete this.element.outlayerGUID,s&&s.removeData(this.element,this.constructor.namespace)},d.data=function(t){var e=(t=a.getQueryElement(t))&&t.outlayerGUID;return e&&u[e]},d.create=function(t,e){function i(){d.apply(this,arguments)}return Object.create?i.prototype=Object.create(d.prototype):a.extend(i.prototype,d.prototype),(i.prototype.constructor=i).defaults=a.extend({},d.defaults),a.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=d.data,(i.Item=function(){o.apply(this,arguments)}).prototype=new o,a.htmlInit(i,t),s&&s.bridget&&s.bridget(t,i),i},d.Item=o,d}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("TG_Layout/js/item",["outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("outlayer")):(t.TG_Layout=t.TG_Layout||{},t.TG_Layout.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}(e.prototype=new t.Item)._create=function(){this.id=this.layout.itemGUID++,t.Item.prototype._create.call(this),this.sortData={}},e.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var i=e.prototype.destroy;return e.prototype.destroy=function(){i.apply(this,arguments),this.css({display:""})},e}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("TG_Layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("get-size"),require("outlayer")):(t.TG_Layout=t.TG_Layout||{},t.TG_Layout.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,r){"use strict";function a(t){(this.TG_Layout=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}return function(){for(var t=["_resetLayout","_getItemLayoutPosition","_getContainerSize","_getElementOffset","needsResizeLayout"],e=0,i=t.length;e<i;e++){var o=t[e];a.prototype[o]=n(o)}function n(t){return function(){return r.prototype[t].apply(this.TG_Layout,arguments)}}}(),a.prototype.needsVerticalResizeLayout=function(){var t=e(this.TG_Layout.element);return this.TG_Layout.size&&t&&t.innerHeight!=this.TG_Layout.size.innerHeight},a.prototype._getMeasurement=function(){this.TG_Layout._getMeasurement.apply(this,arguments)},a.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},a.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},a.prototype.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.TG_Layout.size["inner"+e]}},a.prototype.getFirstItemSize=function(){var t=this.TG_Layout.filteredItems[0];return t&&t.element&&e(t.element)},a.prototype.layout=function(){this.TG_Layout.layout.apply(this.TG_Layout,arguments)},a.prototype.getSize=function(){this.TG_Layout.getSize(),this.size=this.TG_Layout.size},a.modes={},a.create=function(t,e){function i(){a.apply(this,arguments)}return i.prototype=new a,e&&(i.options=e),a.modes[i.prototype.namespace=t]=i},a}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,a,h){var e=t.create("masonry");return e.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.x=0,this.y=0,this.maxY=0},e.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],e=t&&t.element;this.columnWidth=e&&a(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,n=o/i,r=i-o%i;n=Math[r&&r<1?"round":"floor"](n),this.cols=Math.max(n,1)},e.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,e=a(t);this.containerWidth=e&&e.innerWidth},e.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);var o=this._getColGroup(i),n=Math.min.apply(Math,o),r=h.indexOf(o,n);if(this.options.isFitRows){var a=t.size.outerWidth+this.gutter,s=this.TG_Layout.size.innerWidth+this.gutter;0!==this.x&&a+this.x>s&&(this.x=0,this.y=this.maxY)}else this.x=this.columnWidth*r,this.y=n;var l={x:this.x,y:this.y};this.options.isFitRows&&(this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight+this.gutter),this.x+=a);for(var u=n+t.size.outerHeight+this.gutter,d=this.cols+1-o.length,c=0;c<d;c++)this.colYs[r+c]=u;return l},e.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++){var n=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,n)}return e},e.prototype._getContainerSize=function(){this.maxY=this.options.isFitRows?this.maxY:Math.max.apply(Math,this.colYs);var t={height:this.maxY-this.gutter};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},e.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},e}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("TG_Layout/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.TG_Layout.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype._getElementOffset,n=i.prototype.layout,r=i.prototype._getMeasurement;!function(t,e){for(var i in e)t[i]=e[i]}(i.prototype,e.prototype),i.prototype._getElementOffset=o,i.prototype.layout=n,i.prototype._getMeasurement=r;var a=i.prototype.measureColumns;return i.prototype.measureColumns=function(){this.items=this.TG_Layout.filteredItems,a.call(this)},i}),function(a,s){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","TG_Layout/js/item","TG_Layout/js/layout-mode","TG_Layout/js/layout-modes/masonry"],function(t,e,i,o,n,r){return s(a,t,e,i,o,n,r)}):"object"==typeof exports?module.exports=s(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry")):a.TG_Layout=s(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.TG_Layout.Item,a.TG_Layout.LayoutMode)}(window,function(t,o,e,i,n,r,a){var s=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=document.documentElement.textContent?function(t){return t.textContent}:function(t){return t.innerText},d=o.create("TG_Layout",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=r,d.LayoutMode=a,d.prototype._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),o.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(t)},d.prototype.reloadItems=function(){this.itemGUID=0,o.prototype.reloadItems.call(this)},d.prototype._itemize=function(){for(var t=o.prototype._itemize.apply(this,arguments),e=0,i=t.length;e<i;e++){t[e].id=this.itemGUID++}return this._updateItemsSortData(t),t},d.prototype._initLayoutMode=function(t){var e=a.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},d.prototype.layout=function(){this._isLayoutInited||!this.options.isInitLayout?this._layout():this.arrange()},d.prototype._layout=function(){var t=this._getIsInstant();this._resetLayout(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},d.prototype.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches;var i=this;function o(){i.reveal(e.needReveal),i.hide(e.needHide)}this._bindArrangeComplete(),this._isInstant?this._noTransition(o):o(),this._sort(),this._layout()},d.prototype._init=d.prototype.arrange,d.prototype._getIsInstant=function(){var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=t},d.prototype._bindArrangeComplete=function(){var t,e,i,o=this;function n(){t&&e&&i&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}this.once("layoutComplete",function(){t=!0,n()}),this.once("hideComplete",function(){e=!0,n()}),this.once("revealComplete",function(){i=!0,n()})},d.prototype._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],r=this._getFilterTest(e),a=0,s=t.length;a<s;a++){var l=t[a];if(!l.isIgnored){var u=r(l);u&&i.push(l),u&&l.isHidden?o.push(l):u||l.isHidden||n.push(l)}}return{matches:i,needReveal:o,needHide:n}},d.prototype._getFilterTest=function(e){return s&&this.options.isJQueryFiltering?function(t){return s(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return i(t.element,e)}},d.prototype.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},d.prototype._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=c(i)}},d.prototype._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].updateSortData()}};var c=function(t){if("string"!=typeof t)return t;var e,i,o=l(t).split(" "),n=o[0],r=n.match(/^\[(.+)\]$/),a=(e=r&&r[1],i=n,e?function(t){return t.getAttribute(e)}:function(t){var e=t.querySelector(i);return e&&u(e)}),s=d.sortDataParsers[o[1]];return t=s?function(t){return t&&s(a(t))}:function(t){return t&&a(t)}};return d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},d.prototype._sort=function(){var t=this.options.sortBy;if(t){var u,d,e=[].concat.apply(t,this.sortHistory),i=(u=e,d=this.options.sortAscending,function(t,e){for(var i=0,o=u.length;i<o;i++){var n=u[i],r=t.sortData[n],a=e.sortData[n];if(a<r||r<a){var s=void 0!==d[n]?d[n]:d,l=s?1:-1;return(a<r?1:-1)*l}}return 0});this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},d.prototype._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},d.prototype._resetLayout=function(){o.prototype._resetLayout.call(this),this._mode()._resetLayout()},d.prototype._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},d.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},d.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},d.prototype.appended=function(t){var e=this.addItems(t);if(e.length)if("justified"==this.options.layoutMode){var i=this._filter(e);this.hide(i.needHide),this.reveal(i.matches),this.filteredItems=this.filteredItems.concat(i.matches),this.layoutItems(i.matches,!0)}else{var o=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(o)}},d.prototype._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},d.prototype._noTransition=function(t){var e=this.options.transitionDuration;this.options.transitionDuration=0;var i=t.call(this);return this.options.transitionDuration=e,i},d.prototype.getFilteredItemElements=function(){for(var t=[],e=0,i=this.filteredItems.length;e<i;e++)t.push(this.filteredItems[e].element);return t},d}),function(t){function i(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}var o,n,r;function e(t,e){(o(t,e)?r:n)(t,e)}"classList"in document.documentElement?(o=function(t,e){return t.classList.contains(e)},n=function(t,e){t.classList.add(e)},r=function(t,e){t.classList.remove(e)}):(o=function(t,e){return i(e).test(t.className)},n=function(t,e){o(t,e)||(t.className=t.className+" "+e)},r=function(t,e){t.className=t.className.replace(i(e)," ")});var a={hasClass:o,addClass:n,removeClass:r,toggleClass:e,has:o,add:n,remove:r,toggle:e};"function"==typeof define&&define.amd?define("classie/classie",a):"object"==typeof exports?module.exports=a:t.classie=a}(window),function(t,e){"function"==typeof define&&define.amd?define("packery/js/rect",e):"object"==typeof exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window,function(){function s(t){for(var e in s.defaults)this[e]=s.defaults[e];for(e in t)this[e]=t[e]}return((window.Packery=function(){}).Rect=s).defaults={x:0,y:0,width:0,height:0},s.prototype.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},s.prototype.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,o=t.x+t.width,n=t.y+t.height;return this.x<o&&e>t.x&&this.y<n&&i>t.y},s.prototype.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var e,i=[],o=this.x+this.width,n=this.y+this.height,r=t.x+t.width,a=t.y+t.height;return this.y<t.y&&(e=new s({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),i.push(e)),r<o&&(e=new s({x:r,y:this.y,width:o-r,height:this.height}),i.push(e)),a<n&&(e=new s({x:this.x,y:a,width:this.width,height:n-a}),i.push(e)),this.x<t.x&&(e=new s({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),i.push(e)),i},s.prototype.canFit=function(t){return this.width>=t.width&&this.height>=t.height},s}),function(t,e){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],e);else if("object"==typeof exports)module.exports=e(require("./rect"));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(e){function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}t.prototype.reset=function(){this.spaces=[],this.newSpaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=i[this.sortDirection]||i.downwardLeftToRight},t.prototype.pack=function(t){for(var e=0,i=this.spaces.length;e<i;e++){var o=this.spaces[e];if(o.canFit(t)){this.placeInSpace(t,o);break}}},t.prototype.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},t.prototype.placed=function(t){for(var e=[],i=0,o=this.spaces.length;i<o;i++){var n=this.spaces[i],r=n.getMaximalFreeRects(t);r?e.push.apply(e,r):e.push(n)}this.spaces=e,this.mergeSortSpaces()},t.prototype.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},t.prototype.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e];if(o){var n=t.slice(0);n.splice(e,1);for(var r=0,a=0,s=n.length;a<s;a++){var l=n[a],u=a<e?0:1;o.contains(l)&&(t.splice(a+u-r,1),r++)}}}return t};var i={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return t}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property"),require("outlayer"),require("./rect")):t.Packery.Item=e(t.getStyleProperty,t.Outlayer,t.Packery.Rect)}(window,function(t,e,i){t("transform");var o=function(){e.Item.apply(this,arguments)},n=(o.prototype=new e.Item)._create;return o.prototype._create=function(){n.call(this),this.rect=new i,this.placeRect=new i},o.prototype.positionPlaceRect=function(t,e,i){this.placeRect.x=this.getPlaceRectCoord(t,!0),this.placeRect.y=this.getPlaceRectCoord(e,!1,i)},o.prototype.getPlaceRectCoord=function(t,e,i){var o,n=e?"Width":"Height",r=this.size["outer"+n],a=this.layout[e?"columnWidth":"rowHeight"],s=this.layout.size["inner"+n];if(e||(s=Math.max(s,this.layout.maxY),this.layout.rowHeight||(s-=this.layout.gutter)),a){var l;a+=this.layout.gutter,s+=e?this.layout.gutter:0,t=Math.round(t/a),l=this.layout.options.isHorizontal?e?"ceil":"floor":e?"floor":"ceil";var u=Math[l](s/a);o=u-=Math.ceil(r/a)}else o=s-r;return t=i?t:Math.min(t,o),t*=a||1,Math.max(0,t)},o.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x,this.rect.y=this.placeRect.y},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},o}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/packery",["classie/classie","get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],e):"object"==typeof exports?module.exports=e(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.classie,t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(t,r,e,i,o,n){i.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var a=e.create("packery");function s(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function l(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}return a.Item=n,a.prototype._create=function(){e.prototype._create.call(this),this.packer=new o},a.prototype._resetLayout=function(){this.getSize(),this._getMeasurements();var t=this.packer;this.options.isHorizontal?(t.width=Number.POSITIVE_INFINITY,t.height=this.size.innerHeight+this.gutter,t.sortDirection="rightwardTopToBottom"):(t.width=this.size.innerWidth+this.gutter,t.height=Number.POSITIVE_INFINITY,t.sortDirection="downwardLeftToRight"),t.reset(),this.maxY=0,this.maxX=0},a.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},a.prototype._getItemLayoutPosition=function(t){return this._packItem(t),t.rect},a.prototype._packItem=function(t){this._setRectSize(t.element,t.rect),this.packer.pack(t.rect),this._setMaxXY(t.rect)},a.prototype._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},a.prototype._setRectSize=function(t,e){var i=r(t),o=i.outerWidth,n=i.outerHeight;(o||n)&&(o=this._applyGridGutter(o,this.columnWidth),n=this._applyGridGutter(n,this.rowHeight)),e.width=Math.min(o,this.packer.width),e.height=Math.min(n,this.packer.height)},a.prototype._applyGridGutter=function(t,e){if(!e)return t+this.gutter;var i=t%(e+=this.gutter);return t=Math[i&&i<1?"round":"ceil"](t/e)*e},a.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},a.prototype.sortItemsByPosition=function(){var t=this.options.isHorizontal?l:s;this.items.sort(t)},a.prototype.fit=function(t,e,i){var o=this.getItem(t);o&&(this._getMeasurements(),o.getSize(),o.isPlacing=!0,e=void 0===e?o.rect.x:e,i=void 0===i?o.rect.y:i,o.positionPlaceRect(e,i,!0),this._bindFitEvents(o),o.moveTo(o.placeRect.x,o.placeRect.y),this.layout(),this.unstamp(o.element),this.sortItemsByPosition(),o.isPlacing=!1,o.copyPlaceRectPosition())},a.prototype._bindFitEvents=function(t){var e=this,i=0;function o(){2==++i&&e.emitEvent("fitComplete",[t])}t.on("layout",function(){return o(),!0}),this.on("layoutComplete",function(){return o(),!0})},a.prototype.resize=function(){var t=r(this.element),e=this.size&&t,i=this.options.isHorizontal?"innerHeight":"innerWidth";e&&t[i]==this.size[i]||this.layout()},a.Rect=i,a.Packer=o,a}),function(t,e){"function"==typeof define&&define.amd?define(["TG_Layout/js/layout-mode","packery/js/packery","get-size/get-size"],e):"object"==typeof exports?module.exports=e(require("TG_Layout-layout/js/layout-mode"),require("packery"),require("get-size")):e(t.TG_Layout.LayoutMode,t.Packery,t.getSize)}(window,function(t,e,o){var i=t.create("packery"),n=i.prototype._getElementOffset,r=i.prototype._getMeasurement;!function(t,e){for(var i in e)t[i]=e[i]}(i.prototype,e.prototype),i.prototype._getElementOffset=n,i.prototype._getMeasurement=r;var a=i.prototype._resetLayout;i.prototype._resetLayout=function(){this.packer=this.packer||new e.Packer,a.apply(this,arguments)};var s=i.prototype._getItemLayoutPosition;return i.prototype._getItemLayoutPosition=function(t){return t.rect=t.rect||new e.Rect,s.call(this,t)},i.prototype.needsResizeLayout=function(){var t=o(this.element),e=this.size&&t,i=this.options.isHorizontal?"innerHeight":"innerWidth";return e&&t[i]!=this.size[i]},i}),function(t){"use strict";function e(t){var e=t.create("horizontal");return e.prototype._resetLayout=function(){this.x=0},e.prototype._getItemLayoutPosition=function(t){t.getSize(),this._getMeasurement("gutter","width");var e=this.x;return this.x+=t.size.outerWidth+this.gutter,{x:e,y:0}},e.prototype._getContainerSize=function(){return{width:this.x-this.gutter}},e.prototype.needsResizeLayout=function(){return this.needsVerticalResizeLayout()},e}"function"==typeof define&&define.amd?define(["TG_Layout/js/layout-mode"],e):"object"==typeof exports?module.exports=e(require("TG_Layout-layout/js/layout-mode")):e(t.TG_Layout.LayoutMode)}(window),function(t){"use strict";function e(t){var e=t.create("justified");return e.prototype._resetLayout=function(){this.justified_data=[],this.prev_width=0,this.prev_top=0,this.max_width=0,this.count=0,this._getMeasurement("gutter","width"),this._getMeasurement("rowHeight","height");var t=this.TG_Layout.size.innerWidth+this.gutter,e=this.TG_Layout.filteredItems;if(this.options.isHorizontal)this.row(e);else{t:for(;0<e.length;){for(var i=1;i<e.length+1;++i){var o=e.slice(0,i),n=this.getHeight(o,t);if(n<this.rowHeight){this.setHeight(o,n),0,e=e.slice(i);continue t}}this.setHeight(o,Math.min(this.rowHeight,n)),0;break}this.checkWidth()}},e.prototype.row=function(t){for(var e=this.options.row,i=this.rowHeight,o=0;o<t.length;++o){var n=jQuery(t[o].element).find(this.options.image),r=n[0]?this.getSize(n):[],a=r.width?Math.round(i*r.width/r.height):16*i/9,s=this.justified_data[o-e],l=s?s.x+s.width+this.gutter:0,u=s?s.y:o*(i+this.gutter);this.justified_data.push({width:a,height:i,x:l,y:u})}},e.prototype.getHeight=function(t,e){e-=t.length*this.gutter;for(var i=0,o=0;o<t.length;++o){var n=jQuery(t[o].element).find(this.options.image),r=n[0]?this.getSize(n):[];i+=(r.width?r.width:16*this.rowHeight/9)/(r.height?r.height:this.rowHeight)}return e/i},e.prototype.setHeight=function(t,e){for(var i=this.prev_width=0;i<t.length;++i){var o=jQuery(t[i].element).find(this.options.image),n=(e=Math.round(e),o[0]?this.getSize(o):[]),r=n.width?Math.round(e*n.width/n.height):16*e/9;this.justified_data.push({width:r,height:e,x:this.prev_width,y:this.prev_top}),this.prev_width+=r+this.gutter}this.prev_top+=e+this.gutter},e.prototype.getSize=function(t){if(t[0].naturalWidth)var e=t[0]?t[0].naturalWidth:null,i=t[0]?t[0].naturalHeight:null;else{var o=new Image;o.src=t[0]?t.attr("src"):null;e=o?o.width:null,i=o?o.height:null}return{width:e,height:i}},e.prototype.checkWidth=function(){for(var t=0,e=this.justified_data.length,i=0;i<this.justified_data.length;++i)this.justified_data[i].y!=t&&this.adjustWidth(i-1),t=this.justified_data[i].y;var o=this.justified_data[e-1];o&&o.x+o.width>this.TG_Layout.size.innerWidth&&this.adjustWidth(e-1)},e.prototype.adjustWidth=function(t){var e=this.justified_data[t].x,i=this.justified_data[t].width,o=this.TG_Layout.size.innerWidth-(e+i);this.justified_data[t].width=i+o},e.prototype._getItemLayoutPosition=function(t){if(!this.justified_data[this.count]){this.pcount=this.count,this._resetLayout();for(var e=0;e<this.pcount;++e){jQuery(this.TG_Layout.filteredItems[e].element).width(this.justified_data[e].width).height(this.justified_data[e].height).css("top",this.justified_data[e].y).css("left",this.justified_data[e].x);var i=this.justified_data[e].x+this.justified_data[e].width;this.max_width=i>this.max_width?i:this.max_width}this.count=this.pcount}t.element.style.width=this.justified_data[this.count].width+"px",t.element.style.height=this.justified_data[this.count].height+"px";var o={x:this.justified_data[this.count].x,y:this.justified_data[this.count].y};i=o.x+this.justified_data[this.count].width;return this.max_width=i>this.max_width?i:this.max_width,++this.count,o},e.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.max_width,height:(this.rowHeight+this.gutter)*this.options.row-this.gutter}:{height:this.prev_top-this.gutter}},e.prototype.needsResizeLayout=function(){return this.max_width},e}"function"==typeof define&&define.amd?define(["TG_Layout/js/layout-mode"],e):"object"==typeof exports?module.exports=e(require("TG_Layout-layout/js/layout-mode")):e(t.TG_Layout.LayoutMode)}(window),function(t){var e=TG_Layout.Item.prototype.reveal;TG_Layout.Item.prototype.reveal=function(){e.apply(this,arguments),t(this.element).removeClass("tg-item-hidden")};var i=TG_Layout.Item.prototype.hide;TG_Layout.Item.prototype.hide=function(){i.apply(this,arguments),t(this.element).addClass("tg-item-hidden")}}(jQuery),function(ft,t,mt){"use strict";var gt,yt,e="TG_Slider",vt=e,_t=t.cancelAnimationFrame||t.cancelRequestAnimationFrame,wt=t.requestAnimationFrame,bt=ft(document),Tt="touchstart."+vt+" mousedown."+vt,xt="mousemove."+vt+" mouseup."+vt,zt="touchmove."+vt+" touchend."+vt,i=(document.implementation.hasFeature("Event.wheel","3.0")?"wheel.":"mousewheel.")+vt,Lt="click."+vt,Ct="mousedown."+vt,It=["INPUT","SELECT","BUTTON","TEXTAREA"],St=[],Gt=Math.abs,Pt=Math.sqrt,jt=Math.pow,Et=Math.round,kt=Math.max,Mt=Math.min,o=0;function Rt(t,e,o){var i,n,_=ft.extend({},Rt.defaults,e),w=this,b=At(t),T=ft(t),x=_.slidee?ft(_.slidee).eq(0):T.children().eq(0),z=0,L=0,C={start:0,center:0,end:0,cur:0,dest:0},I=ft(_.scrollBar).eq(0),r=I.children().eq(0),S=0,G=0,a={start:0,end:0,cur:0},P=ft(_.pagesBar),j=0,E=[],k=0,M=[],R={firstItem:0,lastItem:0,centerItem:0,activeItem:null,activePage:0},s=new Ft(T[0]),l=new Ft(x[0]),u=new Ft(I[0]),d=new Ft(r[0]),c="basic"===_.itemNav,D="forceCentered"===_.itemNav,O="centered"===_.itemNav||D,W=!b&&(c||O||D),h=(_.scrollSource&&ft(_.scrollSource),_.dragSource?ft(_.dragSource):T),p=ft(_.forward),f=ft(_.backward),m=ft(_.prev),g=ft(_.next),y=ft(_.prevPage),v=ft(_.nextPage),q={},A={},H={},B={},F={released:1},N=0,Y=0,Q=0,V=0;function X(t){var e=E.length,i=x.data("TG_Layout"),r=i?i.options[i.options.layoutMode].gutter.offsetWidth:0;if(!i)return!1;if(z=T.width(),S=I.width(),L=x.outerWidth(),E.length=0,C.start=0,C.end=kt(L-z,0),W){M.length,k=x.children(_.itemSelector),M.length=0;for(var a,s=Ht(x,_.horizontal?"paddingLeft":"paddingTop"),l=Ht(x,_.horizontal?"paddingRight":"paddingBottom"),o="border-box"===ft(k).css("boxSizing"),n=i.filteredItems,u=0,d=0,c=[],h=[],p=0;p<n.length;p++){var f=parseFloat(getComputedStyle(n[p].element).width)+r,m=n[p].position.x;d=d<m+f?m+f:d,c.push(m)}c.push(d),c.sort(function(t,e){return t-e});for(p=1;p<c.length;p++)h.push(c[p]-c[p-1]);L=0,ft(n).each(function(t,e){var i=r/2,o=r/2,n={};n.el=e,n.size=h[t],n.half=n.size/2,n.start=L-i,n.center=n.start-Et(z/2-n.size/2),n.end=n.start-z+n.size,t||(L+=s),L+=n.size,_.horizontal||o&&i&&0<t&&(L-=Mt(i,o)),0===t&&(n.end+=l,L+=l,u=o),n.size&&(M.push(n),a=n)}),x[0].style[_.horizontal?"width":"height"]=(o?L:L-s-l)+"px",L-=u,M.length?(C.start=M[0][D?"center":"start"],C.end=D?a.center:z<L?a.end:C.start):C.start=C.end=0}if(C.center=Et(C.end/2+C.start/2),et(),!b&&0<z){var g=C.start,y="";if(W)ft.each(M,function(t,e){D?E.push(e.center):e.start+e.size>g&&g<=C.end&&(g=e.start,E.push(e.size<z&&"justified"===i.options.layoutMode?e.start+(e.size-z)/2:e.start),(g+=z)>C.end&&g<C.end+z&&E.push(C.end))});else for(;g-z<C.end;)E.push(g),g+=z;if(P[0]&&e!==E.length){for(p=0;p<E.length;p++)y+=_.pageBuilder.call(w,p);1===E.length&&(y=null),(j=P.html(y).children()).eq(R.activePage).addClass(_.activeClass)}}if(R.slideeSize=L,R.frameSize=z,R.sbSize=S,R.handleSize=G,W){t&&null!=_.startAt&&w[O?"toCenter":"toStart"](_.startAt);var v=M[R.activeItem];U(O&&v?v.center:Bt(C.dest,C.start,C.end))}else t?null!=_.startAt&&U(_.startAt,1):U(Bt(C.dest,C.start,C.end));pt("load")}function U(t,e,i){if(W&&F.released&&!i){var o=tt(t),n=t>C.start&&t<C.end;O?(n&&(t=M[o.centerItem].center),D&&_.activateMiddle&&activate(o.centerItem)):n&&(t=M[o.firstItem].start)}F.init&&F.slidee&&_.elasticBounds?t>C.end?t=C.end+(t-C.end)/6:t<C.start&&(t=C.start+(t-C.start)/6):t=Bt(t,C.start,C.end),H.start=+new Date,H.time=0,H.from=C.cur,H.to=t,H.delta=t-C.cur,H.tweesing=F.tweese||F.init&&!F.slidee,H.immediate=!H.tweesing&&(e||F.init&&F.slidee||!_.speed),F.tweese=0,t!==C.dest&&(C.dest=t,pt("change"),N||$()),F.released&&!w.isPaused&&w.resume(),et(),function(){var t=C.dest<=C.start,e=C.dest>=C.end,i=(t?1:0)|(e?2:0);A.slideePosState!==i&&(A.slideePosState=i,y.is("button,input")&&y.prop("disabled",t),v.is("button,input")&&v.prop("disabled",e),y.add(f)[t?"addClass":"removeClass"](_.disabledClass),v.add(p)[e?"addClass":"removeClass"](_.disabledClass));A.fwdbwdState!==i&&F.released&&(A.fwdbwdState=i,f.is("button,input")&&f.prop("disabled",t),p.is("button,input")&&p.prop("disabled",e));if(W&&null!=R.activeItem){var o=0===R.activeItem,n=R.activeItem>=M.length-1,r=(o?1:0)|(n?2:0);A.itemsButtonState!==r&&(A.itemsButtonState=r,m.is("button,input")&&m.prop("disabled",o),g.is("button,input")&&g.prop("disabled",n),m[o?"addClass":"removeClass"](_.disabledClass),g[n?"addClass":"removeClass"](_.disabledClass))}}(),j[0]&&A.page!==R.activePage&&(A.page=R.activePage,j.removeClass(_.activeClass).eq(R.activePage).addClass(_.activeClass),pt("activePage",A.page))}function $(){if(w.initialized){if(!N)return N=wt($),void(F.released&&pt("moveStart"));H.immediate?C.cur=H.to:H.tweesing?(H.tweeseDelta=H.to-C.cur,Gt(H.tweeseDelta)<.1?C.cur=H.to:C.cur+=H.tweeseDelta*(F.released?_.swingSpeed:_.syncSpeed)):(H.time=Mt(+new Date-H.start,_.speed),C.cur=H.from+H.delta*ft.easing[_.easing](H.time/_.speed,H.time,0,1,_.speed)),H.to===C.cur?(C.cur=H.to,F.tweese=N=0):N=wt($),pt("move"),b||(gt?x[0].style[gt]=yt+(_.horizontal?"translateX":"translateY")+"("+-C.cur+"px)":x[0].style[_.horizontal?"left":"top"]=-Et(C.cur)+"px"),!N&&F.released&&pt("moveEnd")}}function Z(){B.speed&&C.cur!==(0<B.speed?C.end:C.start)||w.stop(),V=F.init?wt(Z):0,B.now=+new Date,B.pos=C.cur+(B.now-B.lastTime)/1e3*B.speed,U(F.init?B.pos:Et(B.pos)),F.init||C.cur!==C.dest||pt("moveEnd"),B.lastTime=B.now}function J(t,e,i){if("boolean"===Dt(e)&&(i=e,e=mt),e===mt)U(C[t],i);else{if(O&&"center"!==t)return;var o=w.getPos(e);o&&U(o[t],i,!O)}}function K(t){return null!=t?At(t)?0<=t&&t<M.length?t:-1:k.index(t):-1}function tt(t){t=Bt(At(t)?t:C.dest,C.start,C.end);var e={},i=D?0:z/2;if(!b)for(var o=0,n=E.length;o<n;o++){if(t>=C.end||o===E.length-1){e.activePage=E.length-1;break}if(t<=E[o]+i){e.activePage=o;break}}if(W){for(var r=!1,a=!1,s=!1,l=0,u=M.length;l<u;l++)if(!1===r&&t<=M[l].start+M[l].half&&(r=l),!1===s&&t<=M[l].center+M[l].half&&(s=l),l===u-1||t<=M[l].end+M[l].half){a=l;break}e.firstItem=At(r)?r:0,e.centerItem=At(s)?s:e.firstItem,e.lastItem=At(a)?a:e.centerItem}return e}function et(t){ft.extend(R,tt(t))}function it(t,e){for(var i=0,o=q[t].length;i<o;i++)if(q[t][i]===e)return i;return-1}function ot(){F.history[0]=F.history[1],F.history[1]=F.history[2],F.history[2]=F.history[3],F.history[3]=F.delta}function nt(t){F.released=0,F.source=t,F.slidee="slidee"===t}function rt(t){var e,i="touchstart"===t.type,o=t.data.source,n="slidee"===o;F.init||!i&&(e=t.target,~ft.inArray(e.nodeName,It)||ft(e).is(_.interactive))||("handle"!==o||_.dragHandle&&a.start!==a.end)&&(n&&!(i?_.touchDragging:_.mouseDragging&&t.which<2)||(i||Ot(t),nt(o),F.init=0,F.$source=ft(t.target),F.touch=i,F.pointer=i?t.originalEvent.touches[0]:t,F.initX=F.pointer.pageX,F.initY=F.pointer.pageY,F.initPos=n?C.cur:a.cur,F.start=+new Date,F.time=0,F.path=0,F.delta=0,F.locked=0,F.history=[0,0,0,0],F.pathToLock=n?i?30:10:0,bt.on(i?zt:xt,at),w.pause(1),(n?x:r).addClass(_.draggedClass),pt("moveStart"),n&&(Y=setInterval(ot,10))))}function at(t){if(F.released="mouseup"===t.type||"touchend"===t.type,F.pointer=F.touch?t.originalEvent[F.released?"changedTouches":"touches"][0]:t,F.pathX=F.pointer.pageX-F.initX,F.pathY=F.pointer.pageY-F.initY,F.path=Pt(jt(F.pathX,2)+jt(F.pathY,2)),F.delta=_.horizontal?F.pathX:F.pathY,F.released||!(F.path<1)){if(!F.init){if(!(_.horizontal?Gt(F.pathX)>Gt(F.pathY):Gt(F.pathX)<Gt(F.pathY)))return st();F.init=1}var e;Ot(t),!F.locked&&F.path>F.pathToLock&&F.slidee&&(F.locked=1,F.$source.on(Lt,Wt)),F.released&&(st(),_.releaseSwing&&F.slidee&&(F.swing=(F.delta-F.history[0])/40*300,F.delta+=F.swing,F.tweese=10<Gt(F.swing))),U(F.slidee?Et(F.initPos-F.delta):(e=F.initPos+F.delta,Et(Bt(e,a.start,a.end)/a.end*(C.end-C.start))+C.start))}}function st(){clearInterval(Y),F.released=!0,bt.off(F.touch?zt:xt,at),(F.slidee?x:r).removeClass(_.draggedClass),setTimeout(function(){F.$source.off(Lt,Wt)}),C.cur===C.dest&&F.init&&pt("moveEnd"),w.resume(1),F.init=0}function lt(){w.stop(),bt.off("mouseup",lt)}function ut(t){switch(Ot(t),this){case p[0]:case f[0]:w.moveBy(p.is(this)?_.moveBy:-_.moveBy),bt.on("mouseup",lt);break;case m[0]:w.prev();break;case g[0]:w.next();break;case y[0]:w.prevPage();break;case v[0]:w.nextPage()}}function dt(t){if(_.keyboardNavBy)switch(t.which){case _.horizontal?37:38:Ot(t),w["pages"===_.keyboardNavBy?"prevPage":"prev"]();break;case _.horizontal?39:40:Ot(t),w["pages"===_.keyboardNavBy?"nextPage":"next"]()}}function ct(){this.parentNode===P[0]&&w.activatePage(j.index(this))}function ht(t){_.pauseOnHover&&w["mouseenter"===t.type?"pause":"resume"](2)}function pt(t,e){if(q[t]){for(n=q[t].length,St.length=0,i=0;i<n;i++)St.push(q[t][i]);for(i=0;i<n;i++)St[i].call(w,t,e)}}b||(t=T[0]),w.initialized=0,w.frame=t,w.slidee=x[0],w.pos=C,w.rel=R,w.items=M,w.pages=E,w.isPaused=0,w.options=_,w.dragging=F,w.reload=function(){X()},w.getPos=function(t){if(W){var e=K(t);return-1!==e&&M[e]}var i=x.find(t).eq(0);if(i[0]){var o=_.horizontal?i.offset().left-x.offset().left:i.offset().top-x.offset().top,n=i[_.horizontal?"outerWidth":"outerHeight"]();return{start:o,center:o-z/2+n/2,end:o-z+n,size:n}}return!1},w.moveBy=function(t){B.speed=t,!F.init&&B.speed&&C.cur!==(0<B.speed?C.end:C.start)&&(B.lastTime=+new Date,B.startPos=C.cur,nt("button"),F.init=1,pt("moveStart"),_t(V),Z())},w.stop=function(){"button"===F.source&&(F.init=0,F.released=1)},w.prev=function(){w.activate(null==R.activeItem?0:R.activeItem-1)},w.next=function(){w.activate(null==R.activeItem?0:R.activeItem+1)},w.prevPage=function(){w.activatePage(R.activePage-1)},w.nextPage=function(){w.activatePage(R.activePage+1)},w.slideBy=function(t,e){t&&(W?w[O?"toCenter":"toStart"](Bt((O?R.centerItem:R.firstItem)+_.scrollBy*t,0,M.length)):U(C.dest+t,e))},w.slideTo=function(t,e){U(t,e)},w.toStart=function(t,e){J("start",t,e)},w.toEnd=function(t,e){J("end",t,e)},w.toCenter=function(t,e){J("center",t,e)},w.getIndex=K,w.activatePage=function(t,e){At(t)&&U(E[Bt(t,0,E.length-1)],e)},w.resume=function(t){_.cycleBy&&_.cycleInterval&&("items"!==_.cycleBy||M[0]&&null!=R.activeItem)&&!(t<w.isPaused)&&(w.isPaused=0,Q?Q=clearTimeout(Q):pt("resume"),Q=setTimeout(function(){switch(pt("cycle"),_.cycleBy){case"items":w.activate(R.activeItem>=M.length-1?0:R.activeItem+1);break;case"pages":w.activatePage(R.activePage>=E.length-1?0:R.activePage+1)}},_.cycleInterval))},w.pause=function(t){t<w.isPaused||(w.isPaused=t||100,Q&&(Q=clearTimeout(Q),pt("pause")))},w.toggle=function(){w[Q?"pause":"resume"]()},w.on=function(t,e){if("object"===Dt(t))for(var i in t)t.hasOwnProperty(i)&&w.on(i,t[i]);else if("function"===Dt(e))for(var o=t.split(" "),n=0,r=o.length;n<r;n++)q[o[n]]=q[o[n]]||[],-1===it(o[n],e)&&q[o[n]].push(e);else if("array"===Dt(e))for(var a=0,s=e.length;a<s;a++)w.on(t,e[a])},w.init=function(){if(!w.initialized){w.on(o);var t=["overflow","position"],e=["position","webkitTransform","msTransform","transform","left","top","width","height"];s.save.apply(s,t),u.save.apply(u,t),l.save.apply(l,e),d.save.apply(d,e);var i=r;return b||(i=i.add(x),T.css("overflow","hidden"),gt||"static"!==T.css("position")||T.css("position","relative")),gt?yt&&i.css(gt,yt):("static"===I.css("position")&&I.css("position","relative"),i.css({position:"absolute"})),_.forward&&p.on(Ct,ut),_.backward&&f.on(Ct,ut),_.prev&&m.on(Lt,ut),_.next&&g.on(Lt,ut),_.prevPage&&y.on(Lt,ut),_.nextPage&&v.on(Lt,ut),P[0]&&_.activatePageOn&&P.on(_.activatePageOn+"."+vt,"*",ct),h.on(Tt,{source:"slidee"},rt),r&&r.on(Tt,{source:"handle"},rt),bt.on("keydown",dt),b||(T.on("mouseenter."+vt+" mouseleave."+vt,ht),T.on("scroll."+vt,qt)),w.initialized=1,X(!0),_.cycleBy&&!b&&w[_.startPaused?"pause":"resume"](),w}}}function Dt(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof t}function Ot(t,e){t.preventDefault(),e&&t.stopPropagation()}function Wt(t){Ot(t,1),ft(this).off(t.type,Wt)}function qt(){this.scrollLeft=0,this.scrollTop=0}function At(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ht(t,e){return 0|Et(String(t.css(e)).replace(/[^\-0-9.]/g,""))}function Bt(t,e,i){return t<e?e:i<t?i:t}function Ft(e){var i={style:{},save:function(){if(e&&e.nodeType){for(var t=0;t<arguments.length;t++)i.style[arguments[t]]=e.style[arguments[t]];return i}},restore:function(){if(e&&e.nodeType){for(var t in i.style)i.style.hasOwnProperty(t)&&(e.style[t]=i.style[t]);return i}}};return i}bt.on(i,function(t){var e=t.originalEvent[vt],i=+new Date;(!e||e.options.scrollHijack<i-o)&&(o=i)}),function(e){wt=e.requestAnimationFrame||e.webkitRequestAnimationFrame||function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-n)),o=setTimeout(t,i);return n=e,o};var n=(new Date).getTime();var i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;_t=function(t){i.call(e,t)}}(window),function(){var n=["","Webkit","Moz","ms","O"],r=document.createElement("div");function t(t){for(var e=0,i=n.length;e<i;e++){var o=n[e]?n[e]+t.charAt(0).toUpperCase()+t.slice(1):t;if(null!=r.style[o])return o}}gt=t("transform"),yt=t("perspective")?"translateZ(0) ":""}(),t.TG_Slider=Rt,ft.fn[e]=function(o,n){var r,a;return ft.isPlainObject(o)||("string"!==Dt(o)&&!1!==o||(r=!1===o?"destroy":o,a=Array.prototype.slice.call(arguments,1)),o={}),this.each(function(t,e){var i=ft.data(e,vt);i||r?i&&r&&i[r]&&i[r].apply(i,a):i=ft.data(e,vt,new Rt(e,o,n).init())})}}(jQuery,window);var The_Grid={preview:"#tg-grid-preview-inner",wrapper:".tg-grid-wrapper",slider:".tg-grid-slider",grid:".tg-grid-holder",loader:".tg-grid-preloader",ajax:".tg-ajax-button",ajaxMsg:".tg-ajax-scroll-holder",sizer:".tg-grid-sizer",gutter:".tg-gutter-sizer",item:".tg-item",itemImg:".tg-item-image",gallery:".tg-item-gallery-holder",tooltip:".tg-filter-count",filterH:".tg-filters-holder",filter:".tg-filter, .tg-filters-holder select",search:".tg-search",clear:".tg-search-clear",sorter:".tg-sorters-holder",sorterBy:".tg-sorter li, select.tg-sorter",sortASC:".tg-sorter-order",arrLeft:".tg-left-arrow",arrRight:".tg-right-arrow",bullets:".tg-slider-bullets",pages:".tg-page-ajax",sortData:{excerpt:"p",title:function(t){return jQuery(t).data("title")},id:function(t){return jQuery(t).data("id")},date:function(t){return jQuery(t).data("date")},author:function(t){return jQuery(t).data("author")},comment:function(t){return jQuery(t).data("comment")},popular_post:function(t){return jQuery(t).data("popular-post")},total_sales:function(t){return jQuery(t).data("total-sales")},regular_price:function(t){return jQuery(t).data("regular-price")},sale_price:function(t){return jQuery(t).data("sale-price")},featured:function(t){return jQuery(t).data("featured")},stock:function(t){return jQuery(t).data("stock")},sku:function(t){return jQuery(t).data("sku")}},defaults:{style:"grid",layout:"vertical",fitrows:!1,fullWidth:null,fullHeight:null,rtl:!0,filterComb:!1,filterLogic:"AND",filterLoad:"",sortByLoad:"",orderLoad:!1,row:1,ratio:1,gutters:[[9999,0],[1200,0],[980,0],[768,0],[480,0],[320,0]],cols:[[9999,4],[1200,3],[980,3],[768,2],[480,1],[320,1]],rows:[[9999,240],[1200,240],[980,220],[768,220],[480,200],[320,200]],animation:[{name:"None"},{visible:""},{hidden:""}],transition:0,itemNav:null,swingSpeed:500,cycleBy:null,cycle:5e3,startAt:0,ajaxMethod:null,ajaxDelay:0,preloader:0,itemDelay:0,gallery:!1}},tg_meta_data=tg_global_var.meta_data,tg_custom_sorter={};if(tg_meta_data)for(var i=0;i<tg_meta_data.length;i++){var tg_cmk=tg_meta_data[i].key,tg_cma=(tg_cmk=tg_cmk.length&&"_"==tg_cmk[0]?tg_cmk.slice(1):tg_cmk).replace(/\_/g,"-");!function(e){tg_custom_sorter[tg_cmk]=function(t){return jQuery(t).data(e)}}(tg_cma)}The_Grid.sortData=jQuery.extend({},The_Grid.sortData,tg_custom_sorter);var tg_debounce_resize=tg_global_var.debounce?"debouncedresize":"resize",tg_is_mobile=tg_global_var.is_mobile;function throttle(e,i){var o=0;return function(){var t=Date.now();if(o+i<t)return o=t,e.apply(this,arguments)}}function debounce(t,e){"use strict";var i;return function(){i&&clearTimeout(i),setTimeout(function(){t(),i=null},e||100)}}!function(ft){"use strict";ft.fn.The_Grid=function(t){return this.each(function(){var o,e,i,n,r,a,s,l,u,d,c,h,p,f,m,g,y=ft(this),v=[],_=!0,w=!0,b=!1,T=!1,x=1,z=null,L=[],t=y.closest(The_Grid.wrapper).attr("id"),C=1<ft('[id="'+t+'"]').length?y.closest(The_Grid.wrapper):ft("#"+t),I=C.closest(The_Grid.preview),S=C.find(The_Grid.slider),G=C.find(The_Grid.loader),P=C.find(The_Grid.ajax),j=C.find(The_Grid.ajaxMsg),E=C.find(The_Grid.sizer),k=C.find(The_Grid.gutter),M=C.find(The_Grid.item),R=C.find(The_Grid.filterH),D=C.find(The_Grid.filter),O=C.find(The_Grid.search),W=C.find(The_Grid.clear),q=C.find(The_Grid.sorter),A=C.find(The_Grid.sorterBy),H=C.find(The_Grid.sortASC),B=C.find(The_Grid.arrLeft),F=C.find(The_Grid.arrRight),N=C.find(The_Grid.bullets),Y=C.find(The_Grid.pages),Q=y.data(),V={style:Q.style&&Q.style,layout:Q.layout&&Q.layout,fitrows:Q.fitrows&&Q.fitrows,fullWidth:Q.fullwidth&&Q.fullwidth,fullHeight:Q.fullheight&&Q.fullheight,rtl:Q.rtl&&Q.rtl,filterComb:Q.filtercomb&&Q.filtercomb,filterLogic:Q.filterlogic&&Q.filterlogic,filterLoad:Q.filterload&&Q.filterload,sortByLoad:Q.sortbyload&&Q.sortbyload,orderLoad:Q.orderload&&Q.orderload,row:Q.row&&Q.row,ratio:Q.ratio&&Q.ratio,gutters:Q.gutters&&Q.gutters,cols:Q.cols&&Q.cols,rows:Q.rows&&Q.rows,animation:Q.animation&&Q.animation,transition:Q.transition&&Q.transition,itemNav:Q.slider&&Q.slider.itemNav,swingSpeed:Q.slider&&Q.slider.swingSpeed,cycleBy:Q.slider&&Q.slider.cycleBy,cycle:Q.slider&&Q.slider.cycle,startAt:Q.slider&&Q.slider.startAt,ajaxMethod:Q.ajaxmethod&&Q.ajaxmethod,ajaxDelay:Q.ajaxdelay&&Q.ajaxdelay,preloader:Q.preloader&&Q.preloader,itemDelay:Q.itemdelay&&Q.itemdelay,gallery:Q.gallery&&Q.gallery},X=ft.extend({},The_Grid.defaults,V);X.cols.sort(function(t,e){return e[0]-t[0]}),X.gutters.sort(function(t,e){return e[0]-t[0]}),X.rows.sort(function(t,e){return e[0]-t[0]}),X.rtl=!X.rtl,X.ajaxDelay=0<Y.length?X.itemDelay:X.ajaxDelay;for(var U=ft.map(Q,function(t,e){return e}),$=0;$<U.length;$++)y.removeAttr("data-"+U[$]);function Z(t){var e=M.not(".tg-item-hidden").length;t.length===e&&s.reload()}function J(t){for(var e=0;e<ft(t).length;e++)for(var i,o,n=ft(t).eq(e),r=n.get(0).attributes,a=0;a<r.length;a++)i=r[a].name,o=r[a].value,0===i.indexOf("data-")&&"data-row"!==i&&"data-col"!==i&&(n.removeAttr(i),n.data(i.replace("data-",""),o),a--)}function K(t){if(!b)return!1;var e;M.removeClass("tg-item-index"),O.val(""),X.filterComb?(e=[],"*"===t.data("filter")?t.nextAll("[data-filter]").removeClass("tg-filter-active"):t.prevAll('[data-filter="*"]').removeClass("tg-filter-active"),"*"===t.data("filter")?t.closest("select").find("option").prop("selected",!1):t.closest("select").find('[data-filter="*"]').prop("selected",!0),t.toggleClass("tg-filter-active"),C.find(".tg-filter-active").each(function(){"*"!=ft(this).data("filter")&&e.push(ft(this).data("filter"))}),e="AND"===X.filterLogic?function(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=t[i]);return e}(e):e.join(", ")):(e=t.data("filter"),D.removeClass("tg-filter-active"),t.addClass("tg-filter-active")),!e&&C.find('[data-filter="*"]').addClass("tg-filter-active"),R.each(function(t,e){var i=ft(this).find(The_Grid.filter+".tg-filter-active").length;0===i&&ft(this).find('[data-filter="*"]').addClass("tg-filter-active")}),y.TG_Layout({filter:e}),ft.TG_Pause_Players()}function tt(t){if(!b)return!1;e="none"===t.data("value")?"":t.data("value"),i=t.text(),_=H.data("asc"),M.removeClass("tg-item-index"),q.find(".tg-dropdown-value").text(i),y.TG_Layout({sortAscending:_,sortBy:e})}it(),lt(),ut(),ot(),at(),"masonry"===X.style||"justified"===X.style||X.preloader||"horizontal"===X.layout?M.the_grid_images_loaded({complete:function(){var t,e,i;dt(),ct(),ht(),X.preloader&&(e=0,i=y.data("TG_Layout"),0===Y.length?G.remove():G.hide(),C.removeClass("tg-grid-loading"),void(0<(o=i.filteredItems).length?t=window.tgInterval(function(){0<y.closest("body").length&&(ft(o[e].element).removeClass("tg-item-reveal"),X.itemDelay&&y.TG_Layout("reveal",[o[e]]),e!==o.length-1&&X.itemDelay||(b=!0,M.removeClass("tg-item-reveal"),C.addClass("tg-grid-loaded"),!X.itemDelay&&y.TG_Layout("reveal",o),t.clear()),e++)},X.itemDelay):(b=!0,M.removeClass("tg-item-reveal"),C.addClass("tg-grid-loaded")))),"horizontal"===X.layout&&y.TG_Layout("on","arrangeComplete",function(t){Z(t)})}}):(ct(),ht(),"horizontal"===X.layout&&y.TG_Layout("on","arrangeComplete",function(t){Z(t)})),b=!X.preloader&&!0,b&&C.addClass("tg-grid-loaded"),D.on("click",function(t){var e=ft(this);e.is("select")?D.one("change",function(){K(e.find("option:selected"))}):K(e)}),tg_is_mobile?A.on("change",function(){tt(ft(this).find("option:selected"))}):A.on("click",function(){tt(ft(this))}),H.on("click",function(){if(!b)return!1;var t=ft(this);_=!0!==t.data("asc"),t.data("asc",_).attr("data-asc",_),M.removeClass("tg-item-index"),y.TG_Layout({sortAscending:_})});var et=O.keyup(debounce(function(){if(!b)return!1;var i=new RegExp(et.val(),"gi");M.removeClass("tg-item-index"),D.removeClass("tg-filter-active"),y.TG_Layout({filter:function(){var t=ft(this),e=!i||t.text().match(i);return ft('.tg-filter[data-filter="*"]').addClass("tg-filter-active"),e&&!0}}),ft.TG_Pause_Players()},200));function it(){if(X.fullWidth&&0===I.length){C.css("left",0);var t=parseInt(C.css("margin-left")),e=parseInt(C.css("margin-right")),i=C.offset().left-t;C.width(ft(window).width()-(t+e)),C.css("left",-i)}}function ot(){var t;X.gallery&&(rt(),!The_Grid.galleryInt&&0<ft(The_Grid.gallery).length&&(The_Grid.galleryInt=setInterval(function(){n=Math.floor(Math.random()*v.length),r=r===n&&0<v.length?nt(v,n+1):n,t=ft(The_Grid.gallery).eq(r),a=0<v.length?nt(v[r],t.find(".show").index()-1+2):0,t.find(The_Grid.itemImg).removeClass("show"),t.find(The_Grid.itemImg).eq(a).addClass("show")},3500)))}function nt(t,e){return(t.length+e%t.length)%t.length}function rt(){v=[];for(var t=ft(The_Grid.gallery),e=0;e<t.length;e++){var i=ft(t[e]).find(The_Grid.itemImg);v[e]=[];for(var o=0;o<i.length;o++)v[e][o]=ft(i[o])}}function at(){for(var t=0;t<D.length;t++){var e=D.eq(t).data("filter"),i=0<Y.length?".tg-item-hidden":null,o="*"!==e?y.find(e).not(i).length:M.not(i).length;D.eq(t).find(The_Grid.tooltip).html(o),D.eq(t).find("span:first-child").data("count")&&D.eq(t).find("span:first-child").data("tooltip",o),0===o?D.eq(t).removeClass("tg-show-filter"):D.eq(t).addClass("tg-show-filter")}}function st(){if(0<P.length)if((w=P.data("item-tt")?P.data("item-tt")-M.length:99999)<=0)P.addClass("tg-no-more"),P.find("span").html(P.data("no-more")),setTimeout(function(){P.fadeOut(500)},3e3);else{var t=P.data("button");P.data("remain")?P.find("span").html(t+" ("+w+")"):P.find("span").html(t)}}function lt(){for(var t="justified"!==X.style?X.cols:X.rows,e=function(){{if(0===I.length){var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"]}}return{width:I.width()}}}().width,i=0,o=t.length;i<o&&t[i][0]>=e;i++)h=t[i][1],l=X.gutters[i][1];if(k.width(l),"justified"!==X.style){var n=C.width();if(p=n/h-l,"vertical"===X.layout&&(y.width(""),p=(p=(n-(m=(h-1)*l))/h)%1!=0?Math.ceil(p):p,g=h*p+m,y.css("left",-(g-y.width())/2+"px"),y.width(g)),X.fullHeight&&"horizontal"===X.layout){var r=ft("#wpadminbar").height();f=0===I.length?(ft(window).height()-r-l*(X.row-1))/X.row:I.height()/X.row}else f=Math.round(p/X.ratio)}else f=h,E.height(f);"null"===X.itemNav&&S.css("padding","0 "+l/2+"px")}function ut(){if("justified"!==X.style){E.width(p);for(var t=0;t<M.length;t++){var e=M.eq(t).data("col"),i=M.eq(t).data("row");i="horizontal"===X.layout&&i>X.row?X.row:i,1===h?(u=p,d=f):h<e?(c=Math.round(h/(e/i)),u=h*p+(h-1)*l,d=1===(c=c<=1?1:c)?f:c*f+(c-1)*l):(u=e*p+(e-1)*l,d=i*f+(i-1)*l),M.eq(t).width(u),"grid"===X.style?M.eq(t).height(d):null}}}function dt(){var t;"horizontal"===X.layout&&("masonry"===X.style?(C.removeClass("tg-grid-loading"),t=Math.max.apply(null,M.map(function(){return ft(this).height()}).get())):t=f*X.row+l*(X.row-1),y.add(S).height(t))}function ct(){var t,e,i=!1;"horizontal"===X.layout?(i=!0,t=e="grid"===X.style?"packery":"justified"===X.style?"justified":"horizontal"):t=e="grid"===X.style?"packery":X.style;var o={};o[e]={},o.hiddenStyle={},o.visibleStyle={},o.layoutMode=t,o.filter=X.filterLoad,"none"!==X.sortByLoad&&(o.sortBy=X.sortByLoad),o.sortAscending=X.orderLoad,o.isOriginLeft=X.rtl,o.itemSelector=The_Grid.item,o[e].gutter=k[0],o[e].rowHeight=E[0],o[e].columnWidth=E[0],o[e].isHorizontal=i,o[e].isFitRows=X.fitrows,o[e].image=The_Grid.itemImg,o[e].row=X.row,o[e].previewMode=I,o.hiddenStyle.opacity=0,o.visibleStyle.opacity=1,o.hiddenStyle.transform=X.animation.hidden,o.visibleStyle.transform=X.animation.visible,o.transitionDuration=X.transition,o.getSortData=The_Grid.sortData,y.TG_Layout(o),J(M)}function ht(){if("horizontal"===X.layout){var e=y.data("TG_Layout"),i=e.filteredItems,t=X.startAt=X.startAt-1>i.length?i.length:X.startAt;"forceCentered"===X.itemNav&&0===N.length&&(N=ft(ft('<div class="tg-slider-bullets"></div>')).appendTo(C).hide()),s=new TG_Slider(S,{itemSelector:".tg-item:not(.tg-item-hidden)",cycleBy:X.cycleBy,cycleInterval:X.cycle,pauseOnHover:1,itemNav:X.itemNav,startAt:X.startAt-1,smart:1,horizontal:1,easing:"easeOutExpo",speed:1e3,swingSpeed:X.swingSpeed,releaseSwing:1,mouseDragging:1,touchDragging:1,elasticBounds:1,moveBy:u,syncSpeed:.8,keyboardNavBy:"pages",activeClass:"tg-active-item",disabledClass:"tg-disabled",draggedClass:"tg-slider-dragged",pageBuilder:function(){return"<li><span></span></li>"},pagesBar:N,prevPage:B,nextPage:F,activatePageOn:"click"}).init(),S.data("slider",s).trigger("tg-slider-init"),"forceCentered"===X.itemNav&&(ft(i[t-1].element).addClass("tg-active-item"),s.on("load activePage",function(t){t=this.rel.activePage,e=y.data("TG_Layout"),i=e.filteredItems,M.removeClass("tg-active-item"),i[t]&&ft(i[t].element).addClass("tg-active-item")}))}}function pt(a){if(z&&(3==z.readyState||2==z.readyState||1==z.readyState))return!1;var t={action:"the_grid_load_more",grid_nonce:tg_global_var.nonce,grid_name:a.data("name"),grid_page:x,grid_data:function(){if(0<I.length)return new TG_metaData(ft("#the_grid_metabox .tomb-row"))}(),grid_ajax:a.data("ajax"),main_query:tg_global_var.main_query};z=ft.ajax({url:tg_global_var.url,type:"post",datatype:"json",data:t,beforeSend:function(){T=!0,x+=1,P.data("loading")&&!P.hasClass("tg-no-more")&&P.find("span").html(P.data("loading")),0<ft(j).length&&0===P.length&&ft(j).addClass("tg-loading")},success:function(t){var e=t.success,i=t.message,o=t.content,n=t.ajax_data;try{n=ft.parseJSON(n)}catch(t){!1}if(a.data("ajax",n),!e)return P.add(ft(j)).add(Y).removeClass("tg-loading"),G.find("> div").html(i),P.find("span").html(i),ft(j).children("div").html(i),x-=1,!1;if(!o)return P.data("item-tt",-1),st(),ft(j).children("div").html(ft(j).children("div").data("no-more")),setTimeout(function(){ft(j).fadeOut(400)},1e3),x-=1,!1;var r=ft(o);0===Y.length&&r.addClass("tg-item-index"),0<r.find(The_Grid.grid).length&&(r=r.find(The_Grid.item).removeClass("tg-item-reveal")),a.append(r),M=a.find(The_Grid.item),r.hide(),ut(),ft.TG_media_init(),at(),rt(),ot(),0<I.length&&TG_excludeItem(),r=ft(ft.grep(r,function(t){return void 0!==t.id})),L.push(r),L.length<2&&function i(o){var n=o.length-1;o.the_grid_images_loaded({complete:function(){var t,e=0;G.hide(),Q&&ft(j).removeClass("tg-loading"),"horizontal"===X.layout&&y.css("min-height",""),"masonry"===X.style&&"horizontal"===X.layout&&dt(),t=window.tgInterval(function(){if(0<y.closest("body").length){if(y.TG_Layout("reLayout"),X.ajaxDelay&&y.TG_Layout("appended",o.eq(e)),"horizontal"===X.layout&&s.reload(),n===e||!X.ajaxDelay)return at(),st(),!X.ajaxDelay&&y.TG_Layout("appended",o),"horizontal"===X.layout&&s.reload(),Y.removeClass("tg-loading"),T=!1,t.clear(),"undefined"!=typeof FOOBOX&&ft.isFunction(FOOBOX.init)&&FOOBOX.init(),ft().fancybox&&ft(".tg-item a.fancybox").fancybox(),ft().prettyPhoto&&ft('.tg-item  a[rel^="prettyPhoto"]').prettyPhoto(),J(M),0<L.length&&(L.splice(0,1),L[0]&&i(L[0])),!1;e++}},X.ajaxDelay)}})}(r)},error:function(t,e,i){x-=1,console.error(t),console.error(e+" :: "+i)}})}W.on("click",function(){O.val("").trigger("keyup")}),ft(window).on(tg_debounce_resize,function(){it(),lt(),ut(),dt(),b&&0<y.closest("body").length&&y.TG_Layout("layout"),"horizontal"===X.layout&&y.TG_Layout("once","layoutComplete",function(t){Z(t)})}),Y.on("click",function(t){t.preventDefault();var e=ft(this);x=e.data("page"),e.is(".tg-page-current")||z&&(!z||4!=z.readyState)||T||!b||(q.find(".tg-dropdown-value").text(""),O.val(""),D.removeClass("tg-filter-active"),ft('.tg-filter[data-filter="*"]').addClass("tg-filter-active"),Y.removeClass("tg-page-current").addClass("tg-loading"),e.addClass("tg-page-current"),ft(".tg-item-hidden").addClass("tg-item-removed"),ft.TG_media_destroy(y),y.css("min-height",250).TG_Layout("remove",M).TG_Layout({filter:"*"}),y.contents().each(function(){8==this.nodeType?ft(this).remove():null}),G.show(),pt(y))}),P.on("click",function(t){w&&(t.preventDefault(),pt(y))}),"on_scroll"==X.ajaxMethod&&ft(window).on("mousewheel resize scroll",function(){w&&C.length&&C[0].getBoundingClientRect().bottom<ft(this).height()&&!0===b&&pt(y)})})};var l=[];ft.fn.the_grid_images_loaded=function(){var t,e=ft(this),i=ft.extend({complete:function(){}},arguments[0]||{}),o=0,n=[];e.find("*").filter(function(){t=ft(this).css("background-image"),(t=(t=!(t=(t=/^url\((['"]?)(.*)\1\)$/.exec(t))?t[2]:null)&&ft(this).is("img")?ft(this).attr("src"):t)&&(t.match(/\.(jpg|jpeg|png|bmp|gif|tif|tiff|jif|jfif)/g)||0<=t.indexOf("external.xx.fbcdn")||0<=t.indexOf("drscdn.500px.org"))?t:null)&&-1==ft.inArray(t,l)&&(n.push(t),l.push(t))});for(var r=[],a=0;a<n.length;a++)r[a]=new Image,r[a].onload=s,r[a].onerror=s,r[a].onabort=s,r[a].src=n[a];if(!n.length)return i.complete.call(e),!1;function s(){if(++o>=n.length)return i.complete.call(e),!1}},ft(document).ready(function(){var r,a="tg-dropdown-holder-animation";function e(t){if(t.data("list-DOM")){var e=t.data("list-DOM").removeClass(a),i=setTimeout(function(){e.remove(),e=null,t.data("list-DOM",e)},400);ft(t.data("list-DOM")).data("list-timer",i)}return!1}function s(t){var e=t.parent().offset(),i=t.parent().height(),o="relative"===ft("body").css("position")?ft(window).scrollTop()+ft("body")[0].getBoundingClientRect().top:null,n=parseInt(t.css("margin-bottom")),r=t.outerWidth(),a=e.left,s=e.top+i-o-n,l=[];return l.top=s,l.left=a,l.width=r,l}tg_is_mobile||(ft(document).on("mouseenter",".tg-dropdown-holder",function(t){t.preventDefault(),t.stopPropagation();var e=ft(this),i=ft(e.data("list-DOM")).data("list-timer");if(i)return clearTimeout(i),e.data("list-DOM").addClass(a),!1;var o=(r=e.find("ul")).clone(!0).addClass("tg-list-appended").attr("style","").appendTo("body");e.add(o).data("list-DOM",o),o.data("filter-DOM",e);var n=s(e);r.hide(),o.css({position:"absolute","z-index":99999,width:n.width,top:n.top,left:n.left}).addClass(a)}).on("mouseleave",".tg-dropdown-holder",function(t){e(ft(this))}),ft(document).on("mouseenter touchstart",".tg-list-appended",function(t){var e=ft(this);if(e.data("list-DOM"))return clearTimeout(e.data("list-timer")),e.data("list-DOM").addClass(a),!1}).on("mouseleave touchend",".tg-list-appended",function(t){e(ft(this))}),ft(document).on("click touchstart",".tg-list-appended li",function(){var e=ft(this).closest("ul"),t=e.data("filter-DOM");t.find('[data-filter="'+ft(this).data("filter")+'"]').trigger("click"),t.find('[data-value="'+ft(this).data("value")+'"]').trigger("click"),e.width(t.outerWidth()),e.css("left",t.offset().left);var i=s(t);i.top!==e.position().top?e.css("top",i.top):(e.find("li").removeClass("tg-filter-active"),t.find(".tg-filter-active").each(function(t){e.find("li").eq(ft(this).index()).addClass("tg-filter-active")}))}))}),ft.fn.TG_ToolTip=function(l){var u="tooltip-DOM",d="tooltip-timer";ft(document).on("mouseenter",ft(this).selector,function(){var t=ft(this);if(!t.data(l.data))return!1;if(t.data(u))return clearTimeout(t.data(d)),t.data(u).addClass(l.hoverClass.split(".").join("")),!1;var e=ft('<div class="'+l.appendClass.split(".").join("")+'"></div>').appendTo("body");t.data(u,e);var i=t.data(l.data),o=t.offset(),n="relative"===ft("body").css("position")?ft(window).scrollTop()+ft("body")[0].getBoundingClientRect().top:null,r=o.top-n,a=o.left,s=t.outerWidth(!0);e.html(i).css({position:"absolute","z-index":l.zindex,width:s,top:r+l.spacing-e.outerHeight(!0),left:a+s/2}).addClass(l.hoverClass.split(".").join(""))}).on("mouseleave",ft(this).selector,function(){var t=ft(this);if(!t.data(l.data)||!t.data(u))return!1;var e=t.data(u).removeClass(l.hoverClass.split(".").join("")),i=setTimeout(function(){e.remove(),e=null,t.data(u,e)},400);t.data(d,i)})},ft(document).ready(function(){ft(".tg-filter-name").TG_ToolTip({data:"tooltip",zindex:99999,place:"top",appendClass:".tg-filter-tooltip",hoverClass:".tg-tooltip-hover",spacing:-2})});var r="tg-media-init",a=".tg-item",n=function(){for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",i[0];);return 4<t?t:document.documentMode}();n&&ft("body").addClass("is-ie"),ft.fn.TG_SoundCloud=function(){return this.each(function(){var t=ft(this).closest(a),e=ft(this).attr("src");if(!t.hasClass(r)&&"about:blank"!==e){var i=SC.Widget(ft(this).attr("id"));i.bind(SC.Widget.Events.READY,function(){(!i.getCurrentSound&&tg_is_mobile||!tg_is_mobile)&&i.play(),ft.TG_Media_Ready(t,i,"STD"),i.bind(SC.Widget.Events.PAUSE,function(){ft.TG_Media_Pause(t)}),i.bind(SC.Widget.Events.FINISH,function(){ft.TG_Media_Pause(t)})})}})};var o,s,u,d,c,h,t,e,p,f,m,y,v,_,g,w,b={};ft.fn.TG_Youtube=function(){return this.each(function(){var e=ft(this).closest(a),t=ft(this).attr("src");if(!e.hasClass(r)&&"about:blank"!==t){var i=this.id;b[i]=new YT.Player(i,{events:{onReady:function(t){tg_is_mobile||t.target.playVideo(),ft.TG_Media_Ready(e,t.target,"YT")},onStateChange:function(t){1===t.data&&ft.TG_Media_Play(e),2!==t.data&&0!==t.data||ft.TG_Media_Pause(e)}}})}})},ft.fn.TG_Vimeo=function(){return this.each(function(){var t=ft(this).closest(a),e=ft(this).attr("src"),i=!1;if(n<=9&&(ft(this).remove(),t.find(".tg-media-button").remove()),!t.hasClass(r)&&"about:blank"!==e){ft(this).attr("src",ft(this).attr("src"));var o=new Vimeo.Player(this);tg_is_mobile||o.play(),ft.TG_Media_Ready(t,o,"VM"),o.on("play",function(){i||ft.TG_Media_Play(t),i=!0}),o.on("pause",function(){ft.TG_Media_Pause(t),play=!1}),o.on("ended",function(){ft.TG_Media_Pause(t),play=!1})}})},ft.fn.TG_Wistia=function(){return this.each(function(){var n=ft(this).closest(a),t=ft(this).attr("src");n.hasClass(r)||"about:blank"===t||ft(this).load(function(){var t=ft(this)[0].wistiaApi,e=!1,i=!1,o=!1;ft.TG_Media_Ready(n,t,"STD"),t&&(t.play(),t.bind("seek",function(){i=!0}),t.bind("heightchange",function(){o=!0}),t.bind("play",function(){!1===i&&!1===o&&e&&ft.TG_Media_Play(n),i=o=!1}),t.bind("pause",function(){!1===i&&!1===o&&ft.TG_Media_Pause(n),o=e=!0}),t.bind("finish",function(){ft.TG_Media_Pause(n)}))})})},ft.fn.TG_HTML_Player=function(){return this.each(function(){var t=ft(this).closest(a);if(!t.hasClass(r)){var e=ft(this)[0];e.addEventListener&&(ft.TG_Media_Ready(t,e,"STD"),e.addEventListener("play",function(){ft.TG_Media_Play(t)}),e.addEventListener("pause",function(){ft.TG_Media_Pause(t)}),e.addEventListener("ended",function(){ft.TG_Media_Pause(t)}))}})},ft.TG_Media_Ready=function(t,e,i){t.data("pause-method",i).data("media-player",e).addClass(r)},ft.TG_Media_Play=function(t){t.hasClass("tg-force-play")||ft.TG_Pause_Players(),t.addClass("tg-is-playing"),ft(a).removeClass("tg-force-play")},ft.TG_Media_Pause=function(t){t.removeClass("tg-is-playing tg-force-play")},ft(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange",function(t){var e=ft(t.target);ft(".tg-item-media").removeClass("tg-item-media-fullscreen"),e&&e.hasClass("tg-item-media")&&e.addClass("tg-item-media-fullscreen")}),ft(document).on("click",".tg-item:not(.tg-media-init) .tg-item-button-play",function(t){t.preventDefault();var e=ft(this).closest(".tg-item"),i=e.find("iframe");i.attr("src",i.data("src")),ft.TG_Pause_Players(),ft.TG_media_init(),e.addClass("tg-force-play")}),ft(document).on("click",".tg-item.tg-media-init .tg-item-button-play",function(t){t.preventDefault();var e=ft(this).closest(".tg-item"),i=e.data("pause-method"),o=e.data("media-player");if(e.is(".tg-force-play, .tg-is-playing"))return ft.TG_Pause_Players(),!1;if(o&&e.hasClass(r))switch(e.find(".tg-item-media").show(),ft.TG_Pause_Players(),ft(a).removeClass("tg-force-play tg-play-error"),e.addClass("tg-force-play"),i){case"STD":(!o.getCurrentSound&&tg_is_mobile||!tg_is_mobile)&&o.play();break;case"YT":o.playVideo();break;case"VM":o.play()}}),ft.TG_Pause_Players=function(){ft(".tg-item.tg-is-playing, .tg-item.tg-force-play").each(function(){var t=ft(this),e=t.data("pause-method"),i=t.data("media-player");if(i&&t.hasClass(r)){switch(e){case"STD":case"VM":i.pause();break;case"YT":i.pauseVideo()}t.closest(a).removeClass("tg-is-playing tg-force-play")}})},ft.TG_media_init=function(){var i,o,t,e,n=[{ID:"youtube",url:"//www.youtube.com/iframe_api"},{ID:"vimeo",url:"//player.vimeo.com/api/player.js"},{ID:"soundcloud",url:"//w.soundcloud.com/player/api.js"},{ID:"wistia",url:"//fast.wistia.com/assets/external/E-v1.js"}];if(ft(".g-ytsubscribe").length&&((i=document.createElement("script")).src="https://apis.google.com/js/platform.js",i.id="tg-youtube-subscribe-api",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(i,e)),0===ft(".tg-item-media").length)return!1;o={youtube:function(){"undefined"==typeof YT||0===YT.loaded?window.onYouTubeIframeAPIReady=function(){ft('[data-api="1"].tg-item-youtube').TG_Youtube()}:ft('[data-api="1"].tg-item-youtube').TG_Youtube()},vimeo:function(){ft('[data-api="1"].tg-item-vimeo').TG_Vimeo()},soundcloud:function(){ft('[data-api="1"].tg-item-soundcloud').TG_SoundCloud()},wistia:function(){ft('[data-api="1"].tg-item-wistia').TG_Wistia()}};for(var r=0;r<n.length;r++)t=n[r].ID,0<ft('[data-api="1"].tg-item-'+t).length&&(n[r].url,0===ft("#tg-"+t+"-api").length?((i=document.createElement("script")).src=n[r].url,i.id="tg-"+t+"-api",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(i,e),function(t,e){i.onload=function(){o[e]()}}(0,t)):o[t]());ft(document).ready(function(){ft(".tg-item .tg-item-audio-player").attr("width","100%"),ft(".tg-item-video-player,.tg-item-audio-player").TG_HTML_Player(),tg_global_var.mediaelement&&(ft(".tg-item-video-player:not(.tg-mediaelement-init), .tg-item-audio-player:not(.tg-mediaelement-init)").mediaelementplayer({audioVolume:"vertical",videoVolume:"vertical",features:["playpause","current","progress","duration","volume","fullscreen"],startVolume:.8}),ft(".tg-item-video-player, .tg-item-audio-player").addClass("tg-mediaelement-init"))})},ft.TG_media_destroy=function(t){(t||ft(".tg-item")).find(".tg-item-vimeo").each(function(){var t=ft(this),e=t.closest(a).data("media-player");e&&(e.api("pause"),t.attr("src","about:blank"))}),(t=t?t.find(".tg-item video, .tg-item audio"):ft(".tg-item video, .tg-item audio")).each(function(){var t=ft(this),e=t.data("mediaelementplayer");t.closest(a).removeClass("tg-force-play tg-is-playing"),t.length&&(e?((e=t.data("mediaelementplayer")).pause(),e.setSrc("about:blank"),t.children("source").prop("src",""),e.remove()):(t[0].pause(),t[0].src="about:blank",t.children("source").prop("src",""),t.remove().length=0))}),tg_global_var.mediaelement&&(mejs.players=[])},ft.TO_Lightbox=function(){var o,n,r,a,s,l,u,d,c,h=[],p="[data-tolb-src]:not(.tolb-disabled)",f=".tolb-holder",e=".tolb-inner",t=".tolb-content",m=".tolb-img",g=".tolb-title",y=".tolb-counter",v=".tolb-next",_=".tolb-prev",w=".tolb-close",b="tolb-index",T="tolb-open",x="tolb-ready",z="tolb-loading",L="tolb-iframe",C=tg_global_var.lightbox_autoplay;function I(t){switch(ft(f).addClass(T+" "+z),n=t.data(b),u=h[n].type,a=h[n].src,s=h[n].alt,ft(_).data(b,M(n-1)),ft(v).data(b,M(n+1)),u){case"image":l=ft('<img class="tolb-img" src="'+a+'" alt="'+s+'"></img>'),(r=new Image).onload=P,r.onerror=P,r.src=a;break;case"youtube":l=ft('<iframe class="tolb-video" src="'+(a="//www.youtube.com/embed/"+a+"?html5=1&controls=1&autohide=1&rel=0&showinfo=0&autoplay="+C)+'" allowfullscreen></iframe>'),j();break;case"vimeo":l=ft('<iframe class="tolb-video" src="'+(a="//player.vimeo.com/video/"+a+"?title=0&amp;byline=0&amp;portrait=0&amp;autoplay="+C)+'" allowfullscreen></iframe>'),j();break;case"wistia":l=ft('<iframe class="tolb-video" src="'+(a="//fast.wistia.net/embed/iframe/"+a+"?title=0&amp;byline=0&amp;portrait=0&amp;autoPlay="+C)+'" allowfullscreen></iframe>'),j();break;case"video":for(var e="",i=0;i<a.length;i++)e+='<source src="'+a[i][0].source+'" type="video/'+a[i][0].type+'" width="100%" height="100%"></source>';d=h[n].poster,l=ft('<video class="tolb-video" controls'+(d=d?' poster="'+d+'"':"")+(C?" autoplay":"")+' width="100%">'+e+"</video>"),tg_is_mobile?(o&&o.setSrc("about:blank"),S()):(l.one("loadeddata",function(){o&&o.setSrc("about:blank"),tg_global_var.mediaelement?l.mediaelementplayer({features:["playpause","stop","loop","current","progress","duration","volume","fullscreen"],videoVolume:"horizontal",startVolume:.8,success:function(t,e){o=t,l=ft(e).closest(".mejs-container"),S(),o.addEventListener("ended",function(){l.find(".mejs-poster").show()})}}):S()}),l[0].addEventListener("error",function(){k(),ft(f).removeClass(z)}))}}function S(){var t=ft(f).find("iframe").not(l);0<t.length?t.attr("src","about:blank").one("load",function(){G()}):G()}function G(){ft(f).addClass(x),"iframe"!==u?ft(t).html(""):ft(t).find("*").not(l).remove(),"image"!==u?ft(f).addClass(L):ft(f).removeClass(L),"iframe"!==u&&ft(t).append(l),E(),k(),l.show(),ft(f).removeClass(z)}function P(){S()}function j(){u="iframe",ft(t).append(l.hide()),l.one("load",function(){S()})}function E(){ft(m).css("max-height",ft(window).height()-80-ft("#wpadminbar").height())}function k(){ft(g).text(s),ft(y).text(n+1+"/"+c)}function M(t){return(c+t%c)%c}function R(){ft(f).removeClass(T+" "+z+" "+x),setTimeout(function(){0<ft(f).find("iframe").length?ft(f).find("iframe").attr("src","about:blank").one("load",function(){ft(t).html("")}):ft(t).html("")},300)}ft(window).on("resize",function(){E()}),ft(document).on("click",p,function(t){return t.preventDefault(),ft.TG_Pause_Players(),ft(".tolb-video,"+m).remove(),function(){var t=ft(p).filter(":visible");for(c=t.length,i=0;i<c;i++){var e=t.eq(i);h[i]={},h[i].type=e.data("tolb-type"),h[i].src=e.data("tolb-src"),h[i].alt=e.data("tolb-alt"),h[i].poster=e.data("tolb-poster"),e.data(b,i)}1<c?ft(v+","+_).show():ft(v+","+_).hide()}(),I(ft(this)),!1}),ft(document).on("click touchend",v+","+_,function(){return I(ft(this)),!1}),ft(document).on("keydown",throttle(function(t){ft(f).hasClass(T)&&(37==t.keyCode?ft(_).trigger("click"):39==t.keyCode?ft(v).trigger("click"):27==t.keyCode&&R())},300)),ft(document).on("click touchend",e+","+w,function(t){return t.stopPropagation(),(ft(t.target).is(e)||ft(t.target).is(w))&&R(),!1}),ft("body").append(ft('<div class="tolb-holder"><div class="tolb-loader"></div><div class="tolb-inner"><figure><div class="tolb-close tg-icon-close"></div><div class="tolb-content"></div><figcaption><div class="tolb-title"></div><div class="tolb-counter"></div></figcaption></figure></div><div class="tolb-prev"><i class="tg-icon-arrow-prev-thin"></i></div><div class="tolb-next"><i class="tg-icon-arrow-next-thin"></i></div></div>'))},ft(document).on("click","[data-tolb-id]",function(t){t.preventDefault();var e=ft(this).data("tolb-id");e&&ft("#"+e)[0].click()}),t=window.navigator.userAgent.indexOf("Edge/"),e="ontouchstart"in window||navigator.msMaxTouchPoints,p="div:not(.tg-item-gallery-holder) > .tg-item-image, .tg-item-media-poster, .tg-item-audio-poster, .tg-item-gallery-holder",f=0,!e&&!ft("body").hasClass("is-ie")&&t<0&&ft(document).on("mousemove",".tg-panZ",function(t){o=ft(this),d=o.width(),u=o.height(),s=o.closest(".tg-item").offset();var e=Date.now();f+80<e&&(f=e,window.requestAnimationFrame(function(){c=.08*-(t.pageX-s.left-d/2)*.4,h=.08*-(t.pageY-s.top-u/2)*.4,ft(t.target).closest(".tg-item").find(p).css({"-webkit-transform":"matrix(1.08, 0, 0, 1.08,"+c+","+h+")","-moz-transform":"matrix(1.08, 0, 0, 1.08,"+c+","+h+")"})}))}).on("mouseleave",".tg-panZ",function(t){setTimeout(function(){ft(t.target).closest(".tg-item").find(p).css({"-webkit-transform":"","-moz-transform":""})},80)}),m=document,y=0,v=m.getElementsByTagName("html")[0],_=m.getElementsByTagName("body")[0],g="ontouchstart"in window||navigator.msMaxTouchPoints,w=ft("body").hasClass("is-ie")?1:80,g||ft(document).on("mousemove",".tg-atv-anim",function(m){var g=ft(this),t=Date.now();y+w<t&&(y=t,window.requestAnimationFrame(function(){var t,e,i,o,n,r,a,s,l,u,d,c,h,p,f;t=m,e=g,i=_.scrollTop||v.scrollTop,o=_.scrollLeft,n=t.pageX,r=t.pageY,a=e[0].getBoundingClientRect(),s=e[0].clientWidth||e[0].offsetWidth||e[0].scrollWidth,l=e[0].clientHeight||e[0].offsetHeight||e[0].scrollHeight,u=320/s,d=.52-(n-a.left-o)/s,c=.52-(r-a.top-i)/l,h=r-a.top-i-l/2,p=n-a.left-o-s/2,f="perspective("+3*s*(s<l?l/s*2:1)+"px) rotateX("+.1*u*(h-c)+"deg) rotateY("+.07*u*(d-p)+"deg) scale3d(1.03,1.03,1.03)",e.css("transform",f+" translateX("+2*d*(2.5/u)+"px) translateY("+1*c*(2.5/u)+"px)")}))}).on("mouseenter",".tg-atv-anim",function(t){ft(this).addClass("over")}).on("mouseleave",".tg-atv-anim",function(t){var e;(e=ft(this)).removeClass("over"),setTimeout(function(){var t=e[0].clientWidth||e[0].offsetWidth||e[0].scrollWidth;e.css("transform","perspective("+3*t+"px) rotateX(0deg) rotateY(0deg) translateZ(0)")},80)}),ft(document).on("click",".tg-social-share:not(.tg-social-disabled)",function(t){t.preventDefault();var e=ft(this)[0].href,i=Math.round(window.screenX+(window.outerWidth-626)/2),o=Math.round(window.screenY+(window.outerHeight-436)/2);return e&&window.open(e,"tg_share","status=0,resizable=1,location=1,toolbar=0,width=626,height=436,top="+o+",left="+i),!1}),ft.TG_media_init(),ft(document).ready(function(){ft(".tg-grid-preloader-styles, .tg-grid-styles").removeAttr("scoped"),ft(".tg-grid-holder").The_Grid(),ft.TO_Lightbox()});var T,x,z=ft.event;T=z.special.debouncedresize={setup:function(){ft(this).on("resize",T.handler)},teardown:function(){ft(this).off("resize",T.handler)},handler:function(t,e){var i=this,o=arguments,n=function(){t.type="debouncedresize",z.dispatch.apply(i,o)};x&&clearTimeout(x),e?n():x=setTimeout(n,T.threshold)},threshold:100}}(jQuery),function(){for(var r=0,t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),o=Math.max(0,16-(i-r)),n=window.setTimeout(function(){t(i+o)},o);return r=i+o,n}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),window.tgInterval=function(t,e){var i,o=Date.now,n=window.requestAnimationFrame,r=o(),a=function(){o()-r<e||(r+=e,t()),i||n(a)};return n(a),{clear:function(){i=1}}};
/* https://www.otr3.com/wp-includes/js/wp-embed.min.js?ver=5.2.2 */
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++){if(d=i[c],!d.getAttribute("data-secret"))f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f);if(g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d)if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll('iframe[data-secret="'+d.secret+'"]'),k=b.querySelectorAll('blockquote[data-secret="'+d.secret+'"]');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
