(function( $ ) { 'use strict'; })( jQuery );(function(){function h(a){return Math.sqrt(a.x*a.x+a.y*a.y)}function d(a,b){var c=new f(a);c.add(b);return c}var f=function(a){this.handlers=[];this.el=a};f.prototype.add=function(a){this.handlers.push(a)};f.prototype.del=function(a){a||(this.handlers=[]);for(var b=this.handlers.length;0<=b;b--)this.handlers[b]===a&&this.handlers.splice(b,1)};f.prototype.dispatch=function(){for(var a=0,b=this.handlers.length;a=this.delta&&30>Math.abs(this.preTapPosition.x-this.x1)&&30>Math.abs(this.preTapPosition.y-this.y1));this.preTapPosition.x=this.x1;this.preTapPosition.y=this.y1;this.last=this.now;var b=this.preV;if(1a.touches.length&&this.multipointEnd.dispatch(a);this.touchEnd.dispatch(a);this.x2&&30=Math.abs(c-d)?0").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),l.trim(e)):e},s=function(e,t){var c=o[t];return-1!==c.indexOf("> ")?e.find(c.replace("> ","")).length?l.trim(e.find(c.replace("> ","")).html()):"":void 0!==e.attr(c)?r(e.attr(c)):""},d=function(e){var t=o,c=[];return e.each((function(){var e=l(this),_=e.attr(t.src_attr),o=i(_);if(n.gallery_hook_val&&e.attr(t.gallery_hook)!=n.gallery_hook_val)return!0;var r=function(e){var t=!1;return l.each(n.elems,(function(l,c){if(c.hash==e)return t=c,!1})),t}(o);if(r)var a=r;else{var d=u(_,e.data("lcl-type"));if("unknown"!=d)(a={src:_,type:d,hash:!!t.deeplink&&i(_),title:t.show_title?s(e,"title_attr"):"",txt:t.show_descr?s(e,"txt_attr"):"",author:t.show_author?s(e,"author_attr"):"",thumb:t.thumb_attr&&void 0!==t.thumb_attr?e.attr(t.thumb_attr):"",width:"image"!=d&&void 0!==e.data("lcl-w")&&e.data("lcl-w"),height:"image"!=d&&void 0!==e.data("lcl-h")&&e.data("lcl-h"),force_over_data:void 0!==e.data("lcl-force-over-data")?parseInt(e.data("lcl-force-over-data"),10):"",force_outer_cmd:void 0!==e.data("lcl-outer-cmd")?e.data("lcl-outer-cmd"):"",canonical_url:void 0!==e.data("lcl-canonical-url")?e.data("lcl-canonical-url"):""}).download="image"==d&&(void 0!==e.data("lcl-path")?e.data("lcl-path"):_);else a={src:_,type:d,hash:!!t.deeplink&&i(_)}}c.push(a)})),c.length<2&&l(".lcl_prev, .lcl_next, #lcl_thumb_nav").remove(),!!c.length&&(n.elems=c,!0)},u=function(e,t){if(void 0===t&&(t=o.global_type),-1!==l.inArray(t,["image","video","youtube","vimeo","dailymotion","html","iframe"]))return t;e=e.toLowerCase();return/^(http|https)?:\/\/(?:[a-z\-]+\.)+[a-z]{2,6}(?:\/[^\/#?]+)+\.(?:jpe?g|gif|png)$/.test(e)?"image":"#"==e.substr(0,1)&&l(e).length?"html":"unknown"},m=function(){if(n.elems.length<2||!o.gallery)return!1;n.elem_index>0&&h(!1,n.elem_index-1),n.elem_index!=n.elems.length-1&&h(!1,n.elem_index+1)},h=function(e,t,c){var _=n;if(void 0===t&&(t=_.elem_index),void 0===t)return!1;if("image"==_.elems[t].type||-1!==l.inArray(_.elems[t].type,["video","youtube","vimeo","dailymotion"])&&_.elems[t].poster)var o="image"==_.elems[t].type?_.elems[t].src:_.elems[t].poster;else o="";if(o&&void 0===_.img_sizes_cache[o]){let l=new Image;l.src=o,l.onload=function(l){_.img_sizes_cache[o]={w:l.target.width,h:l.target.height},e&&t==_.elem_index&&b()}}else(e||void 0!==c)&&l("#lcl_loader").addClass("no_loader"),e&&b()},f=function(t,c){var _=l.data(t,"lcl_settings"),s=l.data(t,"lcl_vars");if(s.is_arr_instance){var a=[];l.each(t,(function(e,t){var c={},o=!(void 0!==t.type||!_.global_type)&&_.global_type;if(void 0!==t.type&&(o=t.type),o&&-1!==l.inArray(o,["image","video","youtube","vimeo","dailymotion","html","iframe"]))void 0!==t.src&&t.src&&(c.src=t.src,c.type=o,c.hash=i(t.src),c.title=void 0===t.title?"":r(t.title),c.txt=void 0===t.txt?"":r(t.txt),c.author=void 0===t.author?"":r(t.author),c.width=void 0!==t.width&&t.width,c.height=void 0!==t.height&&t.height,c.force_over_data=void 0!==t.force_over_data&&parseInt(t.force_over_data,10),c.force_outer_cmd=void 0!==t.force_outer_cmd&&t.force_outer_cmd,c.canonical_url=void 0!==t.canonical_url&&t.canonical_url,c.thumb=void 0!==t.thumb&&t.thumb,c.download="image"==o&&(void 0!==t.download?t.download:t.src),c.poster="image"==o||void 0===t.poster?"":t.poster,a.push(c));else{c={src:c.src,type:"unknown",hash:!!_.deeplink&&i(c.src)};a.push(c)}})),s.elems=a}else{var u=t;if(_.live_elements&&s.elems_selector){var m=!!(c&&_.gallery&&_.gallery_hook&&void 0!==l(e[0]).attr(_.gallery_hook))?s.elems_selector+"["+_.gallery_hook+"="+c.attr(_.gallery_hook)+"]":s.elems_selector;u=l(m)}if(!d(u))return(!_.live_elements||_.live_elements&&!s.elems_selector)&&console.error("LC Lightbox - no valid elements found"),!1}(_.preload_all&&!s.preload_all_used&&(s.preload_all_used=!0,l(document).ready((function(e){l.each(s.elems,(function(l,e){h(!1,l)}))}))),"function"==typeof _.elems_parsed&&_.elems_parsed.call(null,o,n),s.is_arr_instance)||(u=s.elems_selector?l(s.elems_selector):t).first().trigger("lcl_elems_parsed",[s.elems]);return!0};f(e);var p=function(e,t){if(lcl_shown||lcl_is_active)return!1;lcl_shown=!0,lcl_is_active=!0,lcl_curr_obj=e,o=l.data(e,"lcl_settings"),n=l.data(e,"lcl_vars"),lcl_curr_opts=o,lcl_curr_vars=n;var c=o,_=n,i=void 0!==t&&t;if(!n)return console.error("LC Lightbox - cannot open. Object not initialized"),!1;if(_.gallery_hook_val=!!(i&&c.gallery&&c.gallery_hook&&void 0!==i.attr(c.gallery_hook))&&i.attr(c.gallery_hook),!f(e,t))return!1;if(i)l.each(_.elems,(function(l,e){if(e.src==i.attr(c.src_attr))return _.elem_index=l,!1}));else if(parseInt(_.elem_index,10)>=_.elems_count)return console.error("LC Lightbox - selected index does not exist"),!1;h(!1),v(),c.touchswipe&&J(),_.force_fullscreen&&H(!0,!0),l("#lcl_thumbs_nav").length&&Q(),h(!0),m()},g=function(){l("#lcl_wrap").removeClass("lcl_pre_show").addClass("lcl_shown"),l("#lcl_loader").removeClass("lcl_loader_pre_first_el")},v=function(){var e=o,t=n,c=[],_="";if("number"==typeof document.documentMode&&(l("body").addClass("lcl_old_ie"),"outer"!=e.cmd_position&&(e.nav_btn_pos="normal")),l("#lcl_wrap").length&&l("#lcl_wrap").remove(),l("body").append('
'),l("#lcl_wrap").attr("data-lcl-max-w",e.max_width).attr("data-lcl-max-h",e.max_height),c.push("lcl_"+e.ins_close_pos+"_close lcl_nav_btn_"+e.nav_btn_pos+" lcl_"+e.ins_close_pos+"_close lcl_nav_btn_"+e.nav_btn_pos),(!0===e.tn_hidden||"number"==typeof e.tn_hidden&&(l(window).width() *:not(.lcl_close)").length||(_+="#lcl_wrap:not(.lcl_fullscreen_mode):not(.lcl_forced_outer_cmd) #lcl_nav_cmd {display: none;}")),l("#lcl_inline_style").length&&l("#lcl_inline_style").remove(),l("head").append('"),e.remove_scrollbar){n.html_style=void 0!==jQuery("html").attr("style")?jQuery("html").attr("style"):"",n.body_style=void 0!==jQuery("body").attr("style")?jQuery("body").attr("style"):"";var s=l(window).width();l("html").css("overflow","hidden"),l("html").css({"margin-right":l(window).width()-s,"touch-action":"none"}),l("body").css({overflow:"visible","touch-action":"none"})}var a=n.elems[t.elem_index];("image"!=a.type||"image"==a.type&&void 0!==t.img_sizes_cache[a.src]?c.push("lcl_show_already_shaped"):g(),l("#lcl_wrap").addClass(c.join(" ")),"function"==typeof e.html_is_ready&&e.html_is_ready.call(null,o,n),n.is_arr_instance)||(n.elems_selector?l(n.elems_selector):lcl_curr_obj).first().trigger("lcl_html_is_ready",[o,n])},w=function(e){var t=l(e)[0],c=null;t.addEventListener("touchstart",(function(l){1===l.targetTouches.length&&(c=l.targetTouches[0].clientY)}),!1),t.addEventListener("touchmove",(function(l){1===l.targetTouches.length&&function(l){var e=l.targetTouches[0].clientY-c;0===t.scrollTop&&e>0&&l.preventDefault();t.scrollHeight-t.scrollTop<=t.clientHeight&&e<0&&l.preventDefault()}(l)}),!1)},b=function(){if(!lcl_shown)return!1;var e=n,t=e.elems[e.elem_index];(l("#lcl_wrap").attr("lc-lelem",e.elem_index),o.carousel||(l("#lcl_wrap").removeClass("lcl_first_elem lcl_last_elem"),e.elem_index?e.elem_index==e.elems.length-1&&l("#lcl_wrap").addClass("lcl_last_elem"):l("#lcl_wrap").addClass("lcl_first_elem")),l(document).trigger("lcl_before_populate_global",[t,e.elem_index]),y(t),e.is_arr_instance)||(e.elems_selector?l(e.elems_selector):lcl_curr_obj).first().trigger("lcl_before_show",[t,e.elem_index]);(l(document).trigger("lcl_before_show_global",[t,e.elem_index]),l("#lcl_wrap").hasClass("lcl_pre_first_el"))&&("function"==typeof o.on_open&&o.on_open.call(null,o,n),e.is_arr_instance||(e.elems_selector?l(e.elems_selector):lcl_curr_obj).first().trigger("lcl_on_open",[t,e.elem_index]));C(t),l("#lcl_subj").removeClass("lcl_switching_el")},x=function(l){return!!(l.title||l.txt||l.author)},y=function(e){var t=n.elem_index;switch(l("#lcl_elem_wrap").removeAttr("style").removeAttr("class").empty(),l("#lcl_wrap").attr("lcl-type",e.type),l("#lcl_elem_wrap").addClass("lcl_"+e.type+"_elem"),e.type){case"image":l("#lcl_elem_wrap").css("background-image","url('"+e.src+"')");break;case"html":l("#lcl_elem_wrap").html('
'+l(e.src).html()+"
");break;default:l("#lcl_elem_wrap").html('

Error loading the resource ..
')}if(-1===l.inArray(e.type,["image","video","unknown","html"])&&function(){var e=l("#lcl_wrap[lc-lelem="+n.elem_index+"] #lcl_elem_wrap > iframe");if(!e.length)return!1;l("#lcl_wrap").addClass("lcl_loading_iframe"),L(),e.on("load",(function(){l("#lcl_wrap").removeClass("lcl_loading_iframe"),setTimeout((function(){l("iframe.lcl_elem").length&&l("iframe.lcl_elem")[0].contentWindow.focus()}),20),l(".lcl_is_playing").length&&lcl_start_slideshow(!0)}))}(),lcl_curr_opts.download)if(e.download){l(".lcl_download").show();var c=e.download.split("/"),_=c[c.length-1];l(".lcl_download").html('')}else l(".lcl_download").hide();l(".lcl_counter").html(t+1+" / "+n.elems.length),x(e)&&"unknown"!=e.type?(l("#lcl_wrap").removeClass("lcl_no_txt"),l(".lcl_txt_toggle").show(),e.title&&l("#lcl_txt").append('

'+e.title+"

"),e.author&&l("#lcl_txt").append('
by '+e.author+"
"),e.txt&&l("#lcl_txt").append('
'+e.txt+"
"),e.txt&&(e.title&&e.author?l("#lcl_txt h5").addClass("lcl_txt_border"):l("#lcl_txt h3").length?l("#lcl_txt h3").addClass("lcl_txt_border"):l("#lcl_txt h5").addClass("lcl_txt_border")),q()):(l(".lcl_txt_toggle").hide(),l("#lcl_wrap").addClass("lcl_no_txt")),w("#lcl_txt")},k=function(e,t,c){var _=0,o=l("#lcl_wrap"),n=l(window).width()-parseInt(o.css("padding-left"),10)-parseInt(o.css("padding-right"),10),i=l(window).height()-parseInt(o.css("padding-top"),10)-parseInt(o.css("padding-bottom"),10);if(!isNaN(parseFloat(e))&&isFinite(e))_=parseInt(e,10);else if(-1!==e.toString().indexOf("%")){_=("w"==t?n:i)*(parseInt(e,10)/100)}else-1!==e.toString().indexOf("vw")?_=n*(parseInt(e,10)/100):-1!==e.toString().indexOf("vh")&&(_=i*(parseInt(e,10)/100));return void 0===c&&("w"==t&&_>n&&(_=n),"h"==t&&_>i&&(_=i)),_},C=function(e,t,c){var _,i,r=o,s=n;void 0===t&&(t={});var a=!!l(".lcl_fullscreen_mode").length,d=a?0:2*parseInt(r.border_w,10)+2*parseInt(r.padding,10);void 0!==t.side_txt_checked||void 0!==t.no_txt_under&&t.no_txt_under||l("#lcl_wrap").removeClass("lcl_force_txt_over");var u=l(".lcl_force_txt_over").length||l(".lcl_hidden_txt").length||-1===l.inArray(r.data_position,["rside","lside"])||!x(e)?0:l("#lcl_txt").outerWidth(),m=d+u,h=d+(a||!l("#lcl_thumbs_nav").length||l(".lcl_tn_hidden").length?0:l("#lcl_thumbs_nav").outerHeight(!0)-parseInt(l("#lcl_wrap").css("padding-bottom"),10))+(!a&&l(".lcl_outer_cmd").length?l(".lcl_close").outerHeight(!0)+parseInt(l("#lcl_nav_cmd").css("padding-top"),10)+parseInt(l("#lcl_nav_cmd").css("padding-bottom"),10):0),f=l("#lcl_wrap").attr("data-lcl-max-w"),p=l("#lcl_wrap").attr("data-lcl-max-h"),v=a?l(window).width():Math.floor(k(f,"w"))-m,w=a?l(window).height():Math.floor(k(p,"h"))-h;if("object"==typeof s.txt_und_sizes){if(_=s.txt_und_sizes.w,i=s.txt_und_sizes.h,"image"==e.type)var b=s.img_sizes_cache[e.src]}else switch(e.type){case"image":if(l("#lcl_elem_wrap").css("bottom",0),void 0===s.img_sizes_cache[e.src])return setTimeout((function(){C(e,t,c)}),50),!1;if((b=s.img_sizes_cache[e.src]).w<=v?(_=b.w,i=b.h):(_=v,i=Math.floor(_*(b.h/b.w))),i>w&&(i=w,_=Math.floor(i*(b.w/b.h))),x(e)&&!l(".lcl_hidden_txt").length&&"under"==r.data_position&&void 0===t.no_txt_under)return z(_,i,w),l(document).off("lcl_txt_und_calc").on("lcl_txt_und_calc",(function(){if(s.txt_und_sizes)return"no_under"==s.txt_und_sizes&&(t.no_txt_under=!0),C(s.elems[s.elem_index],t)})),!1;l("#lcl_subj").css("maxHeight","none");break;case"html":e.width&&(v=k(e.width,"w")-m),e.height&&(w=k(e.height,"h")-h),_=v,"under"==r.data_position&&(a?l("#lcl_wrap").addClass("lcl_force_txt_over"):l("#lcl_wrap").removeClass("lcl_force_txt_over"));var y=a?"none":w;"under"!=r.data_position||a?(l("#lcl_contents_wrap").css("maxHeight","none"),l("#lcl_subj").css("maxHeight",y)):(l("#lcl_contents_wrap").css("maxHeight",y),l("#lcl_subj").css("maxHeight","none")),a||(l(".lcl_first_sizing").length?l("#lcl_window").css("height","auto"):(l(".lcl_html_elem").css("width",_),i=l("#lcl_elem_wrap").outerHeight(!0),l(".lcl_html_elem").css("width","auto"),"under"==r.data_position&&!a&&l("#lcl_txt").length&&(l("#lcl_txt").css("width",_),i+=l("#lcl_txt").outerHeight(!0),l("#lcl_txt").css("width","auto")),i>w&&(i=w)));break;default:_=280,i=125}if(("rside"==r.data_position||"lside"==r.data_position)&&!l(".lcl_no_txt").length&&void 0===t.side_txt_checked){var I=_+d,L=i+d,E=(b="image"==e.type?s.img_sizes_cache[e.src]:"",e.force_over_data);if(E||(E=400),("image"!=e.type||"image"==e.type&&b.w>E&&b.h>E)&&!j(e,E,I,L,u))return t.side_txt_checked=!0,C(e,t)}if(s.txt_und_sizes=!1,void 0===t.inner_cmd_checked&&("inner"==r.cmd_position||e.force_outer_cmd)&&T(e,_))return t.inner_cmd_checked=!0,C(e,t);l("#lcl_wrap").removeClass("lcl_pre_first_el"),l("#lcl_window").css({width:a?"100%":_+d+u,height:a?"100%":i+d}),l(".lcl_show_already_shaped").length&&setTimeout((function(){l("#lcl_wrap").removeClass("lcl_show_already_shaped"),g()}),10),W(),"undefined"!=typeof lcl_size_n_show_timeout&&clearTimeout(lcl_size_n_show_timeout);var F=l(".lcl_first_sizing").length?r.open_close_time+20:r.animation_time;(l(".lcl_browser_resize").length||l(".lcl_toggling_fs").length||a)&&(F=0),lcl_size_n_show_timeout=setTimeout((function(){lcl_is_active&&(lcl_is_active=!1),l(".lcl_first_sizing").length&&r.autoplay&&s.elems.length>1&&(r.carousel||s.elem_index0&&(void 0===_||_<10)){var u=t-d,m=Math.floor(u*s),h=n.elems[n.elem_index].force_over_data;return h||(h=400),m=c.elems.length||e==c.elem_index)return!1;"undefined"!=typeof lcl_slideshow&&(void 0===t||!_&&e==c.elems.length-1)&&lcl_stop_slideshow(),lcl_is_active=!0,B(e),h(!1,e,!0),l("#lcl_wrap").addClass("lcl_switching_elem"),setTimeout((function(){(l("#lcl_wrap").removeClass("lcl_playing_video"),"html"==c.elems[c.elem_index].type&&(l("#lcl_window").css("height",l("#lcl_contents_wrap").outerHeight()),l("#lcl_contents_wrap").css("maxHeight","none")),"function"==typeof o.on_elem_switch&&o.on_elem_switch.call(null,o,n,e),!c.is_arr_instance&&lcl_curr_obj)&&(c.elems_selector?l(c.elems_selector):lcl_curr_obj).first().trigger("lcl_on_elem_switch",[c.elem_index,e]);l("#lcl_wrap").removeClass("lcl_no_txt lcl_loading_iframe"),l("#lcl_txt").empty(),c.elem_index=e,h(!0),m()}),o.fading_time)},L=function(){if("undefined"==typeof lcl_slideshow)return!1;clearInterval(lcl_slideshow)},E=function(e){var t=o;if(!t.progressbar)return!1;var c=e?0:t.animation_time+t.fading_time,_=t.slideshow_time+t.animation_time-c;l("#lcl_progressbar").length||l("#lcl_wrap").append('
'),"undefined"!=typeof lcl_pb_timeout&&clearTimeout(lcl_pb_timeout),lcl_pb_timeout=setTimeout((function(){l("#lcl_progressbar").stop(!0).removeAttr("style").css("width",0).animate({width:"100%"},_,"linear",(function(){l("#lcl_progressbar").fadeTo(0,0)}))}),c)},F=function(){if(!lcl_shown)return!1;("function"==typeof o.on_close&&o.on_close.call(null,o,n),n.is_arr_instance)||(n.elems_selector?l(n.elems_selector):lcl_curr_obj).first().trigger("lcl_on_close");l(document).trigger("lcl_on_close_global"),l("#lcl_wrap").removeClass("lcl_shown").addClass("lcl_is_closing lcl_tn_hidden"),lcl_stop_slideshow(),l(".lcl_fullscreen_mode").length&&M(),setTimeout((function(){l("#lcl_wrap, #lcl_inline_style").remove(),o.remove_scrollbar&&(jQuery("html").attr("style",n.html_style),jQuery("body").attr("style",n.body_style)),l(document).trigger("lcl_closed_global"),lcl_curr_obj=!1,lcl_curr_opts=!1,lcl_curr_vars=!1,lcl_shown=!1,lcl_is_active=!1}),o.open_close_time+80),"undefined"!=typeof lcl_size_check&&clearTimeout(lcl_size_check)},O=function(){if(lcl_hashless_url=window.location.href,-1!==lcl_hashless_url.indexOf("#")){var l=lcl_hashless_url.split("#");lcl_hashless_url=l[0],lcl_url_hash="#"+l[1]}var e={},t=lcl_hashless_url.slice(lcl_hashless_url.indexOf("?")+1).split("&");return jQuery.each(t,(function(l,t){var c=t.split("=");e[c[0]]=c[1]})),e};0==lcl_objs.length&&l(document).on("lcl_before_show_global",(function(l,e){if(lcl_curr_opts.deeplink&&e.hash&&-1===navigator.appVersion.indexOf("MSIE 9.")){var t=O(),c=e.title?e.hash+"/"+encodeURIComponent(e.title.replace(/\s+/g,"-")):e.hash,_="lcl="+c+lcl_url_hash;if(-1===lcl_hashless_url.indexOf("?"))history.pushState(null,null,lcl_hashless_url+"?"+_);else{if(void 0!==t.lcl&&t.lcl==c)return!0;var o=lcl_hashless_url.slice(0,lcl_hashless_url.indexOf("?")+1),n=0,i=!1;jQuery.each(t,(function(l,e){void 0!==l&&(n>0&&(o+="&"),"lcl"!=l?(o+=e?l+"="+e:l,i=!0,n++):!0)})),i&&(o+="&"),o+=_,history.pushState(null,null,o)}}})),0==lcl_objs.length&&l(document).on("lcl_on_close_global",(function(){var l=O();if(void 0===l.lcl||-1!==navigator.appVersion.indexOf("MSIE 9."))return!0;var e=[];jQuery.each(l,(function(l,t){if(void 0!==l&&l&&"lcl"!=l){var c=t?l+"="+t:l;e.push(c)}}));var t=e.length?"?":"",c=lcl_hashless_url.slice(0,lcl_hashless_url.indexOf("?"))+t+e.join("&")+lcl_url_hash;history.pushState(null,null,c)})),c.deeplink&&!lcl_deeplink_tracked&&(lcl_deeplink_tracked=!0,window.onpopstate=function(e){var t=O();if(void 0===t.lcl)lcl_shown&&lcl_close();else{var c=-1!==t.lcl.indexOf("/")?t.lcl.split("/"):t.lcl.split("%2F");lcl_shown?l.each(lcl_curr_vars.elems,(function(l,e){if(e.hash==c[0])return lcl_switch(l),!1})):l.each(lcl_objs,(function(e,t){l(document).trigger("lcl_open_from_hash",[t,c[0]])}))}});l(document).ready((function(){setTimeout((function(){l(document).trigger("lcl_look_for_deeplink")}),100)})),l(document).off("lcl_look_for_deeplink").on("lcl_look_for_deeplink",(function(){!function(){var e=O();if(!lcl_shown&&void 0!==e.lcl){var t=-1!==e.lcl.indexOf("/")?e.lcl.split("/"):e.lcl.split("%2F");l.each(lcl_objs,(function(e,c){l(document).trigger("lcl_open_from_hash",[c,t[0]])}))}}()})),l(document).off("lcl_open_from_hash").on("lcl_open_from_hash",(function(e,t,c){var _=l.data(t,"lcl_vars");if(void 0===_||!_)return!1;l.each(_.elems,(function(l,e){if(e.hash==c)return lcl_curr_obj=t,lcl_open(t,l),!1}))}));var H=function(e,t){if(void 0===t&&(t=!1),!lcl_shown||!o.fullscreen||!t&&lcl_is_active)return!1;var c=o,_=n;l("#lcl_wrap").addClass("lcl_toggling_fs"),c.browser_fs_mode&&void 0!==e&&(document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.msRequestFullscreen?document.documentElement.msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT));var i=t?c.open_close_time:c.fading_time;setTimeout((function(){l("#lcl_wrap").addClass("lcl_fullscreen_mode"),C(_.elems[_.elem_index]),l(document).on("lcl_resized_window",(function(){l(document).off("lcl_resized_window"),(t||"under"==lcl_curr_opts.data_position&&!l(".lcl_force_txt_over").length)&&C(lcl_curr_vars.elems[lcl_curr_vars.elem_index]),setTimeout((function(){l("#lcl_wrap").removeClass("lcl_toggling_fs")}),150)}))}),i),"function"==typeof c.on_fs_enter&&c.on_fs_enter.call(null,c,_),n.is_arr_instance||lcl_curr_obj.first().trigger("lcl_on_fs_enter")},A=function(e){var t=o.fs_img_behavior;if(l(".lcl_fullscreen_mode").length&&e.w<=l("#lcl_subj").width()&&e.h<=l("#lcl_subj").height())return l(".lcl_image_elem").css("background-size","auto"),!1;if("fit"==t)l(".lcl_image_elem").css("background-size","contain");else if("fill"==t)l(".lcl_image_elem").css("background-size","cover");else{if(void 0===e)return l(".lcl_image_elem").css("background-size","cover"),!1;var c=l(window).width()/l(window).height()-e.w/e.h,_=l(window).width()-e.w,n=l(window).height()-e.h;c<=1.15&&c>=-1.15&&_<=350&&n<=350?l(".lcl_image_elem").css("background-size","cover"):l(".lcl_image_elem").css("background-size","contain")}},S=function(e){if(!lcl_shown||!o.fullscreen||lcl_is_active)return!1;var t=o;(l("#lcl_wrap").addClass("lcl_toggling_fs"),l("#lcl_window").fadeTo(70,0),setTimeout((function(){if(t.browser_fs_mode&&void 0!==e){M();var c=250}else c=0;l("#lcl_wrap").removeClass("lcl_fullscreen_mode"),setTimeout((function(){C(n.elems[n.elem_index]);var e=e||navigator.userAgent,t=e.indexOf("MSIE ")>-1||e.indexOf("Trident/")>-1?100:0;setTimeout((function(){l("#lcl_window").fadeTo(30,1),l("#lcl_wrap").removeClass("lcl_toggling_fs")}),300+t)}),c)}),70),"function"==typeof t.on_fs_exit&&t.on_fs_exit.call(null,o,n),n.is_arr_instance)||(n.elems_selector?l(n.elems_selector):lcl_curr_obj).first().trigger("lcl_on_fs_exit")},M=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()};0==lcl_objs.length&&l(document).on("lcl_before_show_global",(function(e,t,c){if(l(".lcl_zoom_icon").hide(),l("#lcl_subj").removeClass("lcl_zoomable lcl_zoom_wrap"),"image"!=t.type||!lcl_curr_opts.img_zoom)return l("#lcl_elem_wrap").removeAttr("lcl-zoom"),!0;var _=lcl_curr_vars.img_sizes_cache[t.src];if(l("#lcl_subj").width()>=_.w&&l("#lcl_subj").height()>=_.h)return!0;l("#lcl_elem_wrap").css({width:"100%",height:"100%"}),l("#lcl_elem_wrap").attr("lcl-zoom",1),l("#lcl_subj").addClass("lcl_zoomable"),l(".lcl_zoom_out").addClass("lcl_zoom_disabled"),l(".lcl_zoom_in").removeClass("lcl_zoom_disabled"),l(".lcl_zoom_in .lcl_zoom_helper").remove(),l(".lcl_zoom_icon").show()}));var D=function(){if(!l(".lcl_zoomable").length)return!1;parseFloat(l("#lcl_elem_wrap").attr("lcl-zoom"));var e=n,t=e.elems[e.elem_index];if(void 0===t)return!1;var c=n.img_sizes_cache[t.src];c.w<=l("#lcl_subj").width()&&c.h<=l("#lcl_subj").height()?(l(".lcl_zoom_icon").hide(),l("#lcl_elem_wrap").css({width:"100%",height:"100%"}),l("#lcl_elem_wrap").attr("lcl-zoom",1),l(".lcl_zoom_out").addClass("lcl_zoom_disabled"),l(".lcl_zoom_in").removeClass("lcl_zoom_disabled"),l("#lcl_subj").removeClass("lcl_zoom_wrap")):l(".lcl_zoom_icon").show()},R=function(e,t){var c=l("#lcl_elem_wrap"),_=c.width(),o=c.height(),i=parseFloat(l("#lcl_elem_wrap").attr("lcl-zoom")),r=0,s=n,a=s.elems[s.elem_index],d=n.img_sizes_cache[a.src];if(e&&(_l("#lcl_subj").width()&&((r=i-.25)<=1&&(r=1),c.css({width:100*r+"%",height:100*r+"%"})),r)if(l("#lcl_elem_wrap").attr("lcl-zoom",r),l(".lcl_zoom_in .lcl_zoom_helper").remove(),r>1&&l(".lcl_zoom_in").append(''+r+"x"),r>1){l(".lcl_zoom_out").removeClass("lcl_zoom_disabled"),l("#lcl_subj").addClass("lcl_zoom_wrap"),l("#lcl_subj").lcl_smoothscroll(.35,400);var u=l("#lcl_subj").scrollTop(),m=l("#lcl_subj").scrollLeft(),h=e?1.25:.75;l("#lcl_subj").clearQueue().animate({scrollTop:u||m?u*h:l("#lcl_subj").height()/4,scrollLeft:u||m?m*h:l("#lcl_subj").width()/4},300,"linear"),setTimeout((function(){d.w<=c.width()&&d.h<=c.height()?l(".lcl_zoom_in").addClass("lcl_zoom_disabled"):l(".lcl_zoom_in").removeClass("lcl_zoom_disabled")}),310)}else l(".lcl_zoom_out").addClass("lcl_zoom_disabled"),l(".lcl_zoom_in").removeClass("lcl_zoom_disabled"),l("#lcl_subj").removeClass("lcl_zoom_wrap")};l(document).on("click",".lcl_zoom_in",(function(){if(e!=lcl_curr_obj)return!0;R(!0)})),l(document).on("click",".lcl_zoom_out",(function(){if(e!=lcl_curr_obj)return!0;R(!1)}));var q=function(){var e=o;if(!e.comments||void 0===e.comments.type||"rside"!=e.data_position&&"lside"!=e.data_position)return!1;var t=n.elem_index,c=n.elems[t];if(c.canonical_url)var _=c.canonical_url;else{_=window.location.origin;(void 0!==e.comments.local_comments&&e.comments.local_comments||"undefined"!=typeof lcl_local_comments)&&(_+=window.location.pathname),_+="?lcl="+c.hash}"facebook"==e.comments.type?(l("#lcl_txt > *").last().addClass("lcl_txt_border"),l("#lcl_txt").append('