'+no_more_posts_text+'');$cff.find('.cff-error-msg').remove()}
if($(this).find('.cff-masonry-posts').length<1)$(this).find('#cff.cff-masonry .cff-item, #cff.cff-masonry .cff-likebox, #cff.cff-masonry .cff-event, #cff.cff-masonry .cff-album-item').wrapAll('
');if($cff.find('.cff-album-item').length){$cff.removeClass('cff-masonry cff-masonry-css')}
$cff.find('.cff-more-dates').on('click',function(){$(this).siblings('.cff-multiple-dates').slideToggle(100)})});if(cffmetatrans!='false'&&$('.cff-timeline-feed').length&&(typeof cffdisablecommentcaching=='undefined')){$.ajax({url:cffajaxurl,type:'POST',async:!0,cache:!1,data:{action:'get_meta'},success:function(data){if(data==''||data.length<1){metaArr=[]}else{data=decodeURI(data);data=data.replace(/\\'/g,"'");metaArr=JSON.parse(data)}
$cff.each(function(){$(this).find('.cff-item.cff-new:not(.cff-event)').each(function(){var $self=$(this),post_id_orig=$self.find('.cff-view-comments').attr('id'),object_id=$self.closest('.cff-item').attr('data-object-id');if(metaArr.hasOwnProperty(post_id_orig)){cffCreateComments($self,metaArr[post_id_orig]);cffAddFullsizeImageURLs($self,metaArr[post_id_orig])}else{cffGetMetaAPI($self,post_id_orig,object_id)}})})},error:function(xhr,textStatus,e){return}})}else{$('#cff .cff-item.cff-new:not(.cff-event)').each(function(){var $self=$(this),post_id_orig=$self.find('.cff-view-comments').attr('id'),object_id=$self.closest('.cff-item').attr('data-object-id');cffGetMetaAPI($self,post_id_orig,object_id)})}
function cffGetMetaAPI($self,post_id_orig,object_id){if($self.find('.cff-view-comments').length==0)return;if(typeof object_id=='undefined'||object_id.length<2)object_id='';var object_id_query=''+object_id,post_id_query='?post_id='+post_id_orig,use_id='object',post_comment_count=$self.find('.cff-comments .cff-count').text(),post_likes_count=$self.find('.cff-likes .cff-count').text(),cff_page_id=$self.attr('data-page-id');if(typeof post_comment_count=='undefined'||post_comment_count=='')post_comment_count=0;if(typeof post_likes_count=='undefined'||post_likes_count=='')post_likes_count=0;if(typeof object_id=='undefined'||object_id.length<2||$self.find('.cff-comments-box').hasClass('cff-shared-story')||$self.hasClass('cff-timeline-event'))use_id='post';var timeline_event='';if($self.hasClass('cff-timeline-event'))timeline_event='&timeline_event=true';var usegrouptoken='',useowntoken='';if($self.closest('#cff').hasClass('cff-group'))usegrouptoken='&usegrouptoken=true';if($self.closest('#cff').attr('data-own-token')=='true')useowntoken='&useowntoken=true';shortcode_token_param=cffGetShortcodeToken($self.closest('#cff'));var cff_is_video_post=$self.hasClass('cff-video-post')?'&isvideo=true':'';var url=cffsiteurl+"/custom-facebook-feed-pro/query.php?o_id="+object_id+'&post_id='+post_id_orig+'&use_id='+use_id+timeline_event+usegrouptoken+useowntoken+'&comments_num='+post_comment_count+'&likes_num='+post_likes_count+'&type=meta'+cff_is_video_post+'&pageid='+cff_page_id+shortcode_token_param;if($self.hasClass('cff-album'))url+='&timelinealbum=true';if(locatefile==!0){$.ajax({method:"GET",url:url,success:function(data){metaArr[post_id_orig]=data;newMetaArr[post_id_orig]=data;cffCreateComments($self,data);cffAddFullsizeImageURLs($self,data);cffSetMetaCache(newMetaArr)}})}}
var cffSetMetaCache_executed=!1;function cffSetMetaCache(newMetaArr){if(typeof cffdisablecommentcaching!='undefined')return;if(!cffSetMetaCache_executed){var cffTimesCached=0,cffCacheDelay=setTimeout(function(){var cffCacheInterval=setInterval(function(){cffCacheMeta(newMetaArr);cffTimesCached++;if(cffTimesCached==2)clearInterval(cffCacheInterval)},3000);cffCacheMeta(newMetaArr)},500);cffSetMetaCache_executed=!0}
function cffCacheMeta(newMetaArr){var jsonstring=JSON.stringify(newMetaArr);jsonstring=encodeURI(jsonstring);var opts={url:cffajaxurl,type:'POST',async:!0,cache:!1,data:{action:'cache_meta',metadata:jsonstring},success:function(response){return},error:function(xhr,textStatus,e){return}};$.ajax(opts)}}
function cffGetParameterByName(name,url){name=name.replace(/[\[\]]/g,"\\$&");var regex=new RegExp("[?&]"+name+"(=([^]*)|&|#|$)"),results=regex.exec(url);if(!results)return null;if(!results[2])return'';return decodeURIComponent(results[2].replace(/\+/g," "))}
function cffLinkify(inputText){var replacedText,replacePattern1,replacePattern2,replacePattern3;replacePattern1=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim;replacedText=inputText.replace(replacePattern1,'
$1');replacePattern2=/(^|[^\/])(www\.[\S]+(\b|$))/gim;replacedText=replacedText.replace(replacePattern2,'$1
$2');replacePattern3=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim;replacedText=replacedText.replace(replacePattern3,'
$1');return replacedText}
$(document).off('click','#cff .cff-html5-video .cff-html5-play').on('click','#cff .cff-html5-video .cff-html5-play',function(e){e.preventDefault();var $self=$(this),$videoWrapper=$self.closest('.cff-html5-video'),video=$self.siblings('video')[0];video.play();$self.hide();$self.siblings('.cff-poster').hide();if(video.hasAttribute("controls")){video.removeAttribute("controls")}else{video.setAttribute("controls","controls")}
if($videoWrapper.innerWidth()<150&&!$videoWrapper.hasClass('cff-no-video-expand')){$videoWrapper.css('width','100%').closest('.cff-item').find('.cff-text-wrapper').css('width','100%')}});function cffAddFullsizeImageURLs($self,data){var data=jQuery.parseJSON(data);if(typeof data.images!=='undefined'&&data.images!==null)$self.find('.cff-lightbox-link').attr('href',data.images[0].source);if($self.find('.cff-html5-video').length&&typeof data.attachments!=='undefined'&&data.attachments!==null){$self.find('.cff-poster').attr('src',data.attachments.data[0].media.image.src);$self.find('.cff-lightbox-link').attr('href',data.attachments.data[0].media.image.src)}}
function cffCreateComments($self,data){if(data.substring(0,1)=="<")return!1;var data=jQuery.parseJSON(data),cff_comments='',cff_likes_this='',commentShow=parseInt($self.find('.cff-comments-box').attr('data-num')),like_count=(typeof data.likes!=='undefined')?data.likes.summary.total_count:0
$cffCommentsBox=$self.find('.cff-comments-box'),$cffCommentLikes=$cffCommentsBox.find('.cff-comment-likes'),cff_hide_comment_avatars=Boolean($self.find('.cff-comments-box').attr('data-cff-hide-avatars')),cff_expand_comments=Boolean($self.find('.cff-comments-box').attr('data-cff-expand-comments')),cff_translate_like_this_text=$cffCommentsBox.attr('data-cff-like-text'),cff_translate_likes_this_text=$cffCommentsBox.attr('data-cff-likes-text'),cff_translate_reacted_to_this_text=$cffCommentsBox.attr('data-cff-reacted-text'),cff_translate_and_text=$cffCommentsBox.attr('data-cff-and-text'),cff_translate_other_text=$cffCommentsBox.attr('data-cff-other-text'),cff_translate_others_text=$cffCommentsBox.attr('data-cff-others-text'),cff_translate_reply_text=$cffCommentsBox.attr('data-cff-reply-text'),cff_translate_replies_text=$cffCommentsBox.attr('data-cff-replies-text'),cff_total_comments_count=(typeof data.comments!=='undefined')?data.comments.summary.total_count:0,cff_meta_link_color=$self.find('.cff-comments-box').attr('data-cff-meta-link-color'),cff_post_tags=Boolean($self.find('.cff-comments-box').attr('data-cff-post-tags'));var cff_haha_count=(typeof data.haha!=='undefined')?data.haha.summary.total_count:0;var cff_love_count=(typeof data.love!=='undefined')?data.love.summary.total_count:0;var cff_wow_count=(typeof data.wow!=='undefined')?data.wow.summary.total_count:0;var cff_sad_count=(typeof data.sad!=='undefined')?data.sad.summary.total_count:0;var cff_angry_count=(typeof data.angry!=='undefined')?data.angry.summary.total_count:0;var reactions_arr=[cff_haha_count,cff_love_count,cff_wow_count,cff_sad_count,cff_angry_count];var reaction_first_num=reactions_arr.sort(sortNumber)[0];var reaction_second_num=reactions_arr.sort(sortNumber)[1];function sortNumber(a,b){return b-a}
var reactions_html='',love_added=!1,haha_added=!1,wow_added=!1,sad_added=!1,angry_added=!1;var reaction_one_html='';if(reaction_first_num>0){if(data.love.summary.total_count==reaction_first_num){reaction_one_html+='
';love_added=!0}
if(data.haha.summary.total_count==reaction_first_num){reaction_one_html+='
';haha_added=!0}
if(data.wow.summary.total_count==reaction_first_num){reaction_one_html+='
';wow_added=!0}
if(data.sad.summary.total_count==reaction_first_num){reaction_one_html+='
';sad_added=!0}
if(data.angry.summary.total_count==reaction_first_num){reaction_one_html+='
';angry_added=!0}
reactions_html+=reaction_one_html}
if(reaction_one_html.split('cff-reaction-one').length<3){if(reaction_second_num>0){var reaction_two_html='';if(data.love.summary.total_count==reaction_second_num&&!love_added){reaction_two_html='
'}
if(data.haha.summary.total_count==reaction_second_num&&!haha_added){reaction_two_html='
'}
if(data.wow.summary.total_count==reaction_second_num&&!wow_added){reaction_two_html='
'}
if(data.sad.summary.total_count==reaction_second_num&&!sad_added){reaction_two_html='
'}
if(data.angry.summary.total_count==reaction_second_num&&!angry_added){reaction_two_html='
'}
reactions_html+=reaction_two_html}}
$self.find('.cff-meta .cff-likes .cff-icon').after(reactions_html);if(parseInt(like_count)==0&&(parseInt(cff_love_count)>0||parseInt(cff_haha_count)>0||parseInt(cff_wow_count)>0||parseInt(cff_sad_count)>0||parseInt(cff_angry_count)>0)){$self.find('.cff-meta .cff-likes .cff-icon').remove();$self.find('.cff-meta .cff-likes span').addClass('cff-no-animate')}
var cff_reactions_count=parseInt(like_count)+parseInt(cff_love_count)+parseInt(cff_haha_count)+parseInt(cff_wow_count)+parseInt(cff_sad_count)+parseInt(cff_angry_count);if(cff_reactions_count>0)$self.find('.cff-meta .cff-likes .cff-count').text(cff_reactions_count);var cff_no_reactions=!1;if(cff_love_count==0&&cff_haha_count==0&&cff_wow_count==0&&cff_sad_count==0&&cff_angry_count==0)cff_no_reactions=!0;var reactions_count_html='
';if(parseInt(like_count)>0){reactions_count_html+='';if(!cff_no_reactions){if(parseInt(like_count)>0)reactions_count_html+=''+like_count+'';if(cff_love_count>0)reactions_count_html+=''+cff_love_count+'';if(cff_haha_count>0)reactions_count_html+=''+cff_haha_count+'';if(cff_wow_count>0)reactions_count_html+=''+cff_wow_count+'';if(cff_sad_count>0)reactions_count_html+=''+cff_sad_count+'';if(cff_angry_count>0)reactions_count_html+=''+cff_angry_count+''}}
reactions_count_html+='';if(typeof data.likes!=='undefined'){if(data.likes.data.length){cff_likes_this+='
';var liker_one='',liker_two='';if(like_count>0&&typeof data.likes.data[0]!=='undefined')liker_one=''+data.likes.data[0].name+'';if(like_count>1&&typeof data.likes.data[1]!=='undefined')liker_two=''+data.likes.data[1].name+'';if(like_count==1){cff_likes_this+=liker_one+' '+cff_translate_likes_this_text}else if(like_count==2){cff_likes_this+=liker_one+' '+cff_translate_and_text+' '+liker_two+' '+cff_translate_like_this_text}else if(like_count==3){cff_likes_this+=liker_one+', '+liker_two+' '+cff_translate_and_text+' 1 '+cff_translate_other_text+' '+cff_translate_like_this_text}else{cff_likes_this+=liker_one+', '+liker_two+' '+cff_translate_and_text+' ';if(like_count==25)cff_likes_this+='';cff_likes_this+=' '+cff_translate_others_text;if(parseInt(cff_reactions_count)==parseInt(like_count)){cff_likes_this+=' '+cff_translate_like_this_text}else{cff_likes_this+=' '+cff_translate_reacted_to_this_text}}
cff_likes_this+='';$cffCommentLikes.append(reactions_count_html+cff_likes_this)}else{if(cff_no_reactions){$cffCommentLikes.hide()}else{$cffCommentLikes.append(reactions_count_html)}}}
if(typeof data.comments!=='undefined'){$.each(data.comments.data,function(i,commentItem){var comment_message=cffLinkify(commentItem.message),cff_comment_author_info=!0;if(typeof commentItem.from!=='undefined'){cff_comment_from_id=commentItem.from.id}else{cff_hide_comment_avatars=!0;cff_comment_author_info=!1;cff_comment_from_id=''}
cff_comments+=''})}
$self.find('.cff-comments-wrap').html(cff_comments);$self.find('.cff-show-more-comments').attr('data-cff-comments-total',cff_total_comments_count);setTimeout(function(){if($self.closest('.cff').hasClass('cff-masonry')&&!$self.closest('.cff').hasClass('cff-masonry-css'))cffAddMasonry($self.closest('.cff'))},200)}})(jQuery);var imgLiquid=imgLiquid||{VER:'0.9.944'};imgLiquid.bgs_Available=!1;imgLiquid.bgs_CheckRunned=!1;jQuery('.cff-new .cff-album-cover img, .cff-new .cff-crop img').css('visibility','hidden');jQuery('#cff .cff-img-attachments .cff-crop img').css('opacity',0);(function($){function checkBgsIsavailable(){if(imgLiquid.bgs_CheckRunned)return;else imgLiquid.bgs_CheckRunned=!0;var spanBgs=$('
');$('body').append(spanBgs);!function(){var bgs_Check=spanBgs[0];if(!bgs_Check||!window.getComputedStyle)return;var compStyle=window.getComputedStyle(bgs_Check,null);if(!compStyle||!compStyle.backgroundSize)return;imgLiquid.bgs_Available=(compStyle.backgroundSize==='cover')}();spanBgs.remove()}
$.fn.extend({imgLiquid:function(options){this.defaults={fill:!0,verticalAlign:'center',horizontalAlign:'center',useBackgroundSize:!0,useDataHtmlAttr:!0,responsive:!0,delay:0,fadeInTime:0,removeBoxBackground:!0,hardPixels:!0,responsiveCheckTime:500,timecheckvisibility:500,onStart:null,onFinish:null,onItemStart:null,onItemFinish:null,onItemError:null};checkBgsIsavailable();var imgLiquidRoot=this;this.options=options;this.settings=$.extend({},this.defaults,this.options);if(this.settings.onStart)this.settings.onStart();return this.each(function($i){var settings=imgLiquidRoot.settings,$imgBoxCont=$(this),$img=$('img:first',$imgBoxCont);if(!$img.length){onError();return}
if(!$img.data('imgLiquid_settings')){settings=$.extend({},imgLiquidRoot.settings,getSettingsOverwrite())}else{$imgBoxCont.removeClass('imgLiquid_error').removeClass('imgLiquid_ready');settings=$.extend({},$img.data('imgLiquid_settings'),imgLiquidRoot.options)}
$img.data('imgLiquid_settings',settings);if(settings.onItemStart)settings.onItemStart($i,$imgBoxCont,$img);if(imgLiquid.bgs_Available&&settings.useBackgroundSize)
processBgSize();else processOldMethod();function processBgSize(){if($imgBoxCont.css('background-image').indexOf(encodeURI($img.attr('src')))===-1){$imgBoxCont.css({'background-image':'url("'+encodeURI($img.attr('src'))+'")'})}
$imgBoxCont.css({'background-size':(settings.fill)?'cover':'contain','background-position':(settings.horizontalAlign+' '+settings.verticalAlign).toLowerCase(),'background-repeat':'no-repeat'});$('a:first',$imgBoxCont).css({'display':'block','width':'100%','height':'100%'});$('img',$imgBoxCont).css({'display':'none'});if(settings.onItemFinish)settings.onItemFinish($i,$imgBoxCont,$img);$imgBoxCont.addClass('imgLiquid_bgSize');$imgBoxCont.addClass('imgLiquid_ready');checkFinish()}
function processOldMethod(){if($img.data('oldSrc')&&$img.data('oldSrc')!==$img.attr('src')){var $imgCopy=$img.clone().removeAttr('style');$imgCopy.data('imgLiquid_settings',$img.data('imgLiquid_settings'));$img.parent().prepend($imgCopy);$img.remove();$img=$imgCopy;$img[0].width=0;setTimeout(processOldMethod,10);return}
if($img.data('imgLiquid_oldProcessed')){makeOldProcess();return}
$img.data('imgLiquid_oldProcessed',!1);$img.data('oldSrc',$img.attr('src'));$('img:not(:first)',$imgBoxCont).css('display','none');$imgBoxCont.css({'overflow':'hidden'});$img.fadeTo(0,0).removeAttr('width').removeAttr('height').css({'visibility':'visible','max-width':'none','max-height':'none','width':'auto','height':'auto','display':'block'});$img.on('error',onError);$img[0].onerror=onError;function onLoad(){if($img.data('imgLiquid_error')||$img.data('imgLiquid_loaded')||$img.data('imgLiquid_oldProcessed'))return;if($imgBoxCont.is(':visible')&&$img[0].complete&&$img[0].width>0&&$img[0].height>0){$img.data('imgLiquid_loaded',!0);setTimeout(makeOldProcess,$i*settings.delay)}else{setTimeout(onLoad,settings.timecheckvisibility)}}
onLoad();checkResponsive()}
function checkResponsive(){if(!settings.responsive&&!$img.data('imgLiquid_oldProcessed'))return;if(!$img.data('imgLiquid_settings'))return;settings=$img.data('imgLiquid_settings');$imgBoxCont.actualSize=$imgBoxCont.get(0).offsetWidth+($imgBoxCont.get(0).offsetHeight/10000);if($imgBoxCont.sizeOld&&$imgBoxCont.actualSize!==$imgBoxCont.sizeOld)makeOldProcess();$imgBoxCont.sizeOld=$imgBoxCont.actualSize;setTimeout(checkResponsive,settings.responsiveCheckTime)}
function onError(){$img.data('imgLiquid_error',!0);$imgBoxCont.addClass('imgLiquid_error');if(settings.onItemError)settings.onItemError($i,$imgBoxCont,$img);checkFinish()}
function getSettingsOverwrite(){var SettingsOverwrite={};if(imgLiquidRoot.settings.useDataHtmlAttr){var dif=$imgBoxCont.attr('data-imgLiquid-fill'),ha=$imgBoxCont.attr('data-imgLiquid-horizontalAlign'),va=$imgBoxCont.attr('data-imgLiquid-verticalAlign');if(dif==='true'||dif==='false')SettingsOverwrite.fill=Boolean(dif==='true');if(ha!==undefined&&(ha==='left'||ha==='center'||ha==='right'||ha.indexOf('%')!==-1))SettingsOverwrite.horizontalAlign=ha;if(va!==undefined&&(va==='top'||va==='bottom'||va==='center'||va.indexOf('%')!==-1))SettingsOverwrite.verticalAlign=va}
if(imgLiquid.isIE&&imgLiquidRoot.settings.ieFadeInDisabled)SettingsOverwrite.fadeInTime=0;return SettingsOverwrite}
function makeOldProcess(){var w,h,wn,hn,ha,va,hdif,vdif,margT=0,margL=0,$imgCW=$imgBoxCont.width(),$imgCH=$imgBoxCont.height();if($img.data('owidth')===undefined)$img.data('owidth',$img[0].width);if($img.data('oheight')===undefined)$img.data('oheight',$img[0].height);if(settings.fill===($imgCW/$imgCH)>=($img.data('owidth')/$img.data('oheight'))){w='100%';h='auto';wn=Math.floor($imgCW);hn=Math.floor($imgCW*($img.data('oheight')/$img.data('owidth')))}else{w='auto';h='100%';wn=Math.floor($imgCH*($img.data('owidth')/$img.data('oheight')));hn=Math.floor($imgCH)}
ha=settings.horizontalAlign.toLowerCase();hdif=$imgCW-wn;if(ha==='left')margL=0;if(ha==='center')margL=hdif*0.5;if(ha==='right')margL=hdif;if(ha.indexOf('%')!==-1){ha=parseInt(ha.replace('%',''),10);if(ha>0)margL=hdif*ha*0.01}
va=settings.verticalAlign.toLowerCase();vdif=$imgCH-hn;if(va==='left')margT=0;if(va==='center')margT=vdif*0.5;if(va==='bottom')margT=vdif;if(va.indexOf('%')!==-1){va=parseInt(va.replace('%',''),10);if(va>0)margT=vdif*va*0.01}
if(settings.hardPixels){w=wn;h=hn}
$img.css({'width':w,'height':h,'margin-left':Math.floor(margL),'margin-top':Math.floor(margT)});if(!$img.data('imgLiquid_oldProcessed')){$img.fadeTo(settings.fadeInTime,1);$img.data('imgLiquid_oldProcessed',!0);if(settings.removeBoxBackground)$imgBoxCont.css('background-image','none');$imgBoxCont.addClass('imgLiquid_nobgSize');$imgBoxCont.addClass('imgLiquid_ready')}
if(settings.onItemFinish)settings.onItemFinish($i,$imgBoxCont,$img);checkFinish()}
function checkFinish(){if($i===imgLiquidRoot.length-1)if(imgLiquidRoot.settings.onFinish)imgLiquidRoot.settings.onFinish()}})}})})(jQuery);setTimeout(function(){jQuery('#cff .embed-responsive video, #cff .embed-responsive iframe').unwrap()},500);!function(){var css=imgLiquid.injectCss,head=document.getElementsByTagName('head')[0],style=document.createElement('style');style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}
head.appendChild(style)}();jQuery(".cff-new .cff-album-cover, .cff-new .cff-crop").imgLiquid({fill:!0})}
cff_init();function cffGetShortcodeToken($cff){var shortcode_token_param='';if($cff.attr('data-cff-shortcode')){if($cff.attr('data-cff-shortcode').indexOf('accesstoken')!==-1){var shortcode_att=$cff.attr('data-cff-shortcode'),shortcode_att_arr=JSON.parse(shortcode_att);shortcode_token_param=encodeURI('&at='+shortcode_att_arr.accesstoken)}}
return shortcode_token_param}
window.cffLinkify=(function(){var k="[a-z\\d.-]+://",h="(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])",c="(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+",n="(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)",f="(?:"+c+n+"|"+h+")",o="(?:[;/][^#?<>\\s]*)?",e="(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?",d="\\b"+k+"[^<>\\s]+",a="\\b"+f+o+e+"(?!\\w)",m="mailto:",j="(?:"+m+")?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+f+e+"(?!\\w)",l=new RegExp("(?:"+d+"|"+a+"|"+j+")","ig"),g=new RegExp("^"+k,"i"),b={"'":"`",">":"<",")":"(","]":"[","}":"{","B;":"B+","b:":"b9"},i={callback:function(q,p){return p?'
'+q+"":q},punct_regexp:/(?:[!?.,:;'"]|(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(u,z){z=z||{};var w,v,A,p,x="",t=[],s,E,C,y,q,D,B,r;for(v in i){if(z[v]===undefined){z[v]=i[v]}}while(w=l.exec(u)){A=w[0];E=l.lastIndex;C=E-A.length;if(/[\/:]/.test(u.charAt(C-1))){continue}do{y=A;r=A.substr(-1);B=b[r];if(B){q=A.match(new RegExp("\\"+B+"(?!$)","g"));D=A.match(new RegExp("\\"+r,"g"));if((q?q.length:0)<(D?D.length:0)){A=A.substr(0,A.length-1);E--}}if(z.punct_regexp){A=A.replace(z.punct_regexp,function(F){E-=F.length;return""})}}while(A.length&&A!==y);p=A;if(!g.test(p)){p=(p.indexOf("@")!==-1?(!p.indexOf(m)?"":m):!p.indexOf("irc.")?"irc://":!p.indexOf("ftp.")?"ftp://":"http://")+p}if(s!=C){t.push([u.slice(s,C)]);s=E}t.push([A,p])}t.push([u.substr(s)]);for(v=0;v
'+replacementString+''}}
function cffReplaceTags(tag){var replacementString=jQuery.trim(tag);return''+replacementString+''}
var hashRegex=/[#]+[A-Za-z0-9-_]+/g,tagRegex=/[@]+[A-Za-z0-9-_]+/g;function cffLoadCommentReplies($this){var usegrouptoken='',useowntoken='',$cffClosestContainer=jQuery('#cff_'+$this.parent().attr('data-id')).closest('#cff');if($cffClosestContainer.hasClass('cff-group'))usegrouptoken='&usegrouptoken=true';if($cffClosestContainer.attr('data-own-token')=='true')useowntoken='&useowntoken=true';var cff_page_id=$this.closest('.cff-item').attr('data-page-id'),shortcode_token_param=cffGetShortcodeToken($cffClosestContainer),$commentReplies=$this.parent(),$commentRepliesBox=$commentReplies.siblings('.cff-comment-replies-box'),comments_url=cffsiteurl+"/custom-facebook-feed-pro/comments.php?id="+$commentReplies.attr('data-id')+usegrouptoken+useowntoken+'&pageid='+cff_page_id+shortcode_token_param;if($commentReplies.hasClass('cff-hide')){$commentRepliesBox.hide();$commentReplies.removeClass('cff-hide')}else{$commentRepliesBox.show();$commentReplies.addClass('cff-hide');if($commentRepliesBox.hasClass('cff-empty')){var $commentRepliesA=$commentReplies.find('a');$commentRepliesA.append('');$commentReplies.find('.cff-loader').css('background-color',$commentRepliesA.css('color'));jQuery.ajax({method:"GET",url:comments_url,success:function(data){$commentReplies.find('.cff-loader').remove();var data=jQuery.parseJSON(data),allComments='';if(typeof data.comments!=='undefined'){jQuery.each(data.comments.data,function(i,commentItem){var cff_comment_author_info=!0;if(typeof commentItem.from!=='undefined'){cff_comment_from_id=commentItem.from.id}else{cff_comment_author_info=!1;cff_comment_from_id=''}
allComments+=''})}
$commentRepliesBox.html(allComments).removeClass('cff-empty');if($this.closest('#cff').hasClass('cff-masonry')&&!$this.closest('#cff').hasClass('cff-masonry-css'))cffAddMasonry($this.closest('#cff'))}})}}}
function cffLightbox(){(function(){var $=jQuery;var LightboxOptions=(function(){function LightboxOptions(){this.fadeDuration=300;this.fitImagesInViewport=!0;this.resizeDuration=400;this.positionFromTop=50;this.showImageNumberLabel=!0;this.alwaysShowNavOnTouchDevices=!1;this.wrapAround=!1}
LightboxOptions.prototype.albumLabel=function(curImageNum,albumSize){return curImageNum+" / "+albumSize};return LightboxOptions})();var Lightbox=(function(){function Lightbox(options){this.options=options;this.album=[];this.currentImageIndex=void 0;this.init()}
Lightbox.prototype.init=function(){this.enable();this.build()};Lightbox.prototype.enable=function(){var self=this;$('body').on('click','a[data-cff-lightbox], area[data-cff-lightbox]',function(event){self.start($(event.currentTarget));return!1})};Lightbox.prototype.build=function(){var self=this;$("").appendTo($('body'));this.$lightbox=$('#cff-lightbox-wrapper');this.$overlay=$('#cff-lightbox-overlay');this.$outerContainer=this.$lightbox.find('.cff-lightbox-outerContainer');this.$container=this.$lightbox.find('.cff-lightbox-container');this.containerTopPadding=parseInt(this.$container.css('padding-top'),10);this.containerRightPadding=parseInt(this.$container.css('padding-right'),10);this.containerBottomPadding=parseInt(this.$container.css('padding-bottom'),10);this.containerLeftPadding=parseInt(this.$container.css('padding-left'),10);this.$overlay.hide().on('click',function(){self.end();if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','');return!1});this.$lightbox.hide().on('click',function(event){if($(event.target).attr('id')==='cff-lightbox-wrapper'){self.end();if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','')}
return!1});this.$outerContainer.on('click',function(event){if($(event.target).attr('id')==='cff-lightbox-wrapper'){self.end();if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','')}
return!1});this.$lightbox.find('.cff-lightbox-prev').on('click',function(){if(self.currentImageIndex===0){self.changeImage(self.album.length-1)}else{self.changeImage(self.currentImageIndex-1)}
if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','');return!1});this.$lightbox.find('.cff-lightbox-next').on('click',function(){if(self.currentImageIndex===self.album.length-1){self.changeImage(0)}else{self.changeImage(self.currentImageIndex+1)}
if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','');return!1});$('.cff-lightbox-thumbs').on('click','.cff-lightbox-attachment',function(){var $thumb=$(this),$thumbImg=$thumb.find('img'),captionText=$thumb.attr('data-caption');if(captionText==''||captionText=='undefined')captionText=$thumb.attr('orig-caption');self.changeImage(parseInt($thumb.attr('data-cff-lightbox-order')),$thumb.attr('href'),$thumbImg.attr('width'),$thumbImg.attr('height'),$thumb.attr('data-facebook'),captionText);return!1});this.$lightbox.find('.cff-lightbox-loader, .cff-lightbox-close').on('click',function(){self.end();if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','');return!1})};Lightbox.prototype.start=function($link){var self=this;var $window=$(window);$window.on('resize',$.proxy(this.sizeOverlay,this));$('select, object, embed').css({visibility:"hidden"});this.sizeOverlay();if(this.album.length==0)this.album=[];var imageNumber=0;function addToAlbum($link){var found=!1;$.each(self.album,function(i,imageitem){if(imageitem.link==$link.attr('href')){found=!0;return}});if(found==!0)return;self.album.push({link:$link.attr('href'),title:$link.attr('data-title')||$link.attr('title'),postid:$link.attr('data-id'),showthumbs:$link.attr('data-thumbs'),facebookurl:$link.attr('data-url'),video:$link.attr('data-video'),iframe:$link.attr('data-iframe'),type:$link.attr('data-type'),cffgroupalbums:$link.attr('data-cffgroupalbums'),isthumbnail:$link.attr('data-cff-isthumbnail'),pagename:$link.parent().attr('data-cff-page-name'),posttime:$link.parent().attr('data-cff-post-time'),lbcomments:$link.attr('data-lb-comments')})}
var dataLightboxValue=$link.attr('data-cff-lightbox');var $links;if(dataLightboxValue){$links=$($link.prop("tagName")+'[data-cff-lightbox="'+dataLightboxValue+'"]');for(var i=0;i<$links.length;i=++i){addToAlbum($($links[i]));if($links[i]===$link[0]){imageNumber=i;$.each(self.album,function(i,image){if((image.postid==$link.attr('data-id'))&&image.isthumbnail!=!0)imageNumber=i})}}}else{if($link.attr('rel')==='lightbox'){addToAlbum($link)}else{$links=$($link.prop("tagName")+'[rel="'+$link.attr('rel')+'"]');for(var j=0;j<$links.length;j=++j){addToAlbum($($links[j]));if($links[j]===$link[0]){imageNumber=j}}}}
var top=$window.scrollTop()+this.options.positionFromTop;var left=$window.scrollLeft();this.$lightbox.css({top:top+'px',left:left+'px'}).fadeIn(this.options.fadeDuration);this.changeImage(imageNumber)};Lightbox.prototype.changeImage=function(imageNumberVal,imageUrl,imgWidth,imgHeight,facebookLink,captionText){var self=this,isThumb=!1,bottomPadding=120;imageNumber=imageNumberVal;if(typeof imageUrl!=='undefined')isThumb=!0;this.disableKeyboardNav();var $image=this.$lightbox.find('.cff-lightbox-image');this.$overlay.fadeIn(this.options.fadeDuration);$('.cff-lightbox-loader').fadeIn('slow');this.$lightbox.find('.cff-lightbox-image, .cff-lightbox-nav, .cff-lightbox-prev, .cff-lightbox-next, .cff-lightbox-dataContainer, .cff-lightbox-numbers, .cff-lightbox-caption').hide();this.$outerContainer.addClass('animating');var preloader=new Image();preloader.onload=function(){var $preloader,imageHeight,imageWidth,maxImageHeight,maxImageWidth,windowHeight,windowWidth;$image.attr('src',self.album[imageNumber].link);if(isThumb){$image.attr('src',imageUrl);$('.cff-lightbox-facebook').attr('href',facebookLink);$('.cff-lightbox-caption .cff-lightbox-caption-text').html(captionText);preloader.width=imgWidth;preloader.height=imgHeight;bottomPadding=180}
$preloader=$(preloader);$image.width(preloader.width);$image.height(preloader.height);if(self.options.fitImagesInViewport){windowWidth=$(window).width();windowHeight=$(window).height();var cff_lb_comments_width=0;if($('#cff_'+self.album[0].postid).closest('#cff').attr('data-lb-comments')=='true'&&windowWidth>640)cff_lb_comments_width=300;maxImageWidth=windowWidth-self.containerLeftPadding-self.containerRightPadding-20-cff_lb_comments_width;maxImageHeight=windowHeight-self.containerTopPadding-self.containerBottomPadding-bottomPadding;if((preloader.width>maxImageWidth)||(preloader.height>maxImageHeight)){if((preloader.width/maxImageWidth)>(preloader.height/maxImageHeight)){imageWidth=maxImageWidth;imageHeight=parseInt(preloader.height/(preloader.width/imageWidth),10);$image.width(imageWidth);$image.height(imageHeight)}else{imageHeight=maxImageHeight;imageWidth=parseInt(preloader.width/(preloader.height/imageHeight),10);$image.width(imageWidth);$image.height(imageHeight)}}}
self.sizeContainer($image.width(),$image.height())};preloader.src=this.album[imageNumber].link;this.currentImageIndex=imageNumber};Lightbox.prototype.sizeOverlay=function(){this.$overlay.width($(window).width()).height($(document).height())};Lightbox.prototype.sizeContainer=function(imageWidth,imageHeight){var self=this;var oldWidth=this.$outerContainer.outerWidth();var oldHeight=this.$outerContainer.outerHeight();var newWidth=imageWidth+this.containerLeftPadding+this.containerRightPadding;var newHeight=imageHeight+this.containerTopPadding+this.containerBottomPadding;function postResize(){self.$lightbox.find('.cff-lightbox-dataContainer').width(newWidth);self.$lightbox.find('.cff-lightbox-prevLink').height(newHeight);self.$lightbox.find('.cff-lightbox-nextLink').height(newHeight);self.showImage()}
if(oldWidth!==newWidth||oldHeight!==newHeight){this.$outerContainer.animate({width:newWidth,height:newHeight},this.options.resizeDuration,'swing',function(){postResize()})}else{postResize()}};Lightbox.prototype.showImage=function(){this.$lightbox.find('.cff-lightbox-loader').hide();this.$lightbox.find('.cff-lightbox-image').fadeIn('slow');this.updateNav();this.updateDetails();this.preloadNeighboringImages();this.enableKeyboardNav()};Lightbox.prototype.updateNav=function(){var alwaysShowNav=!1;try{document.createEvent("TouchEvent");alwaysShowNav=(this.options.alwaysShowNavOnTouchDevices)?true:!1}catch(e){}
this.$lightbox.find('.cff-lightbox-nav').show();if(this.album.length>1){if(this.options.wrapAround){if(alwaysShowNav){this.$lightbox.find('.cff-lightbox-prev, .cff-lightbox-next').css('opacity','1')}
this.$lightbox.find('.cff-lightbox-prev, .cff-lightbox-next').show()}else{if(this.currentImageIndex>0){this.$lightbox.find('.cff-lightbox-prev').show();if(alwaysShowNav){this.$lightbox.find('.cff-lightbox-prev').css('opacity','1')}}
if(this.currentImageIndex");if(cff_supports_video()){$('#cff-lightbox-wrapper').removeClass('cff-has-video');if(typeof this.album[this.currentImageIndex].video!=='undefined'){if(this.album[this.currentImageIndex].video.length){$('#cff-lightbox-wrapper').addClass('cff-has-video');$('.cff-lightbox-video').attr({'src':this.album[this.currentImageIndex].video,'poster':this.album[this.currentImageIndex].link,'autoplay':'true'})}}}
var cff_lb_comments=(this.album[this.currentImageIndex].lbcomments=='true'&&$('#cff_'+this.album[this.currentImageIndex].postid+' .cff-lightbox-link').attr('data-lb-comments')!='false')?!0:!1;if($(window).width()<=640)cff_lb_comments=!1;if(cff_lb_comments){var lb_post_id=this.album[this.currentImageIndex].postid,page_id=lb_post_id.split('_')[0],author_name=this.album[this.currentImageIndex].pagename,date_in_correct_format=this.album[this.currentImageIndex].posttime,$lightbox_sidebar=$('.cff-lightbox-container .cff-lightbox-sidebar'),$lightbox_thumbs_holder=$('.cff-lightbox-thumbs-holder'),from_id=$('#cff_'+this.album[this.currentImageIndex].postid).attr('data-cff-from');$('.cff-lightbox-wrapper').addClass('cff-enable-lb-comments');$('.cff-lightbox-dataContainer').css('width',$('.cff-lightbox-dataContainer').innerWidth()+300);$lightbox_sidebar.css('display','block');var cff_post_author="";if(typeof from_id!=='undefined'){cff_post_author=""}else{cff_post_author=""+date_in_correct_format+"
"}
$('.cff-lightbox-dataContainer .cff-lightbox-close').remove();$lightbox_sidebar.html("'+$('#cff_'+this.album[this.currentImageIndex].postid+' .cff-comments-box')[0].outerHTML);this.$lightbox.find('.cff-lightbox-close').on('click',function(){self.end();if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','');return!1});setTimeout(function(){if($lightbox_thumbs_holder.find('a').length>1){$lightbox_sidebar.find('.cff-page-name a').text($lightbox_thumbs_holder.find('a.cff-selected').attr('data-page-name'));$lightbox_sidebar.find('.cff-date').text($lightbox_thumbs_holder.find('a.cff-selected').attr('data-post-date'))}},0);$('.cff-lightbox-dataContainer .cff-lightbox-caption').remove();$lightbox_thumbs_holder.css('margin-top',-10);if($lightbox_sidebar.find('.cff-reactions-count').innerWidth()>150){$lightbox_sidebar.find('.cff-likes-this-text').addClass('cff-long')}
$lightbox_sidebar.find('.cff-comment:visible').each(function(){var $thisComment=jQuery(this);$thisComment.find('.cff-comment-img:not(.cff-comment-reply-img) a').html('')});$lightbox_sidebar.find('.cff-comment-replies a').on('click',function(){cffLoadCommentReplies($(this))});$lightbox_sidebar.find('.cff-show-more-comments a').attr('href',$lightbox_sidebar.find('.cff-comment-on-facebook a').attr('href'))}else{$('.cff-lightbox-wrapper .cff-lightbox-sidebar').html('');$('.cff-lightbox-wrapper').removeClass('cff-enable-lb-comments')}
$('#cff-lightbox-wrapper').removeClass('cff-has-iframe cff-fb-player');if(typeof this.album[this.currentImageIndex].iframe!=='undefined'){if(this.album[this.currentImageIndex].iframe.length){var videoURL=this.album[this.currentImageIndex].iframe;$('#cff-lightbox-wrapper').addClass('cff-has-iframe');if(videoURL.indexOf("https://www.facebook.com/v2.3/plugins/video.php?")!=-1)$('#cff-lightbox-wrapper').addClass('cff-fb-player');if(videoURL.indexOf(".swf")>-1||videoURL.indexOf("&autoplay=1")!=-1){var autoplayParam=''}else{var autoplayParam='?autoplay=1'}
var vInt=setTimeout(function(){$('#cff-lightbox-wrapper iframe').attr({'src':videoURL+autoplayParam+"&mute=0"})},500)}}
var isThumbnail=!1;if(this.album[this.currentImageIndex].isthumbnail)isThumbnail=!0;if(!isThumbnail)$('.cff-lightbox-thumbs-holder').empty();if(this.album[this.currentImageIndex].link==$('.cff-lightbox-image').attr('src')){$('.cff-lightbox-facebook').attr('href',this.album[this.currentImageIndex].facebookurl)}
if(this.album[this.currentImageIndex].showthumbs=='true'){$('.cff-lightbox-thumbs').show();var thisPostId=this.album[this.currentImageIndex].postid,albumInfo='',albumThumbs='',albumsonly=!1;if(this.album[this.currentImageIndex].type=='albumsonly')albumsonly=!0;if(typeof thumbsArr[thisPostId]!=='undefined'){$.each(thumbsArr[thisPostId],function(i,thumb){var origCaption=thumb[5].replace(/"/g,'"');var albumIndex=0;$.each(self.album,function(i,albumItem){if(albumItem.postid==thisPostId){albumIndex=i;return!1}});var lightboxImageOrder=(parseInt(albumIndex)+parseInt(i));if(typeof thumb[8]=='undefined')thumb[8]=thumb[0];albumThumbs+='';if(i>0){cffInsertLightboxImage(lightboxImageOrder,thumb[0],thumb[4],thumb[3],thisPostId,albumsonly,!0,thumb[6],thumb[7],thumb[8])}});$('.cff-lightbox-thumbs-holder').html(''+albumThumbs+'
');jQuery(".cff-lightbox-thumbs-holder a").imgLiquid({fill:!0});$('.cff-loader').hide();$('.cff-lightbox-thumbs-holder').css('min-height',0)}else{if(typeof cffsiteurl==='undefined'||cffsiteurl=='')cffsiteurl=window.location.host+'/wp-content/plugins';var $cffClosest=$('#cff_'+thisPostId).closest('.cff'),cff_page_id=$('#cff_'+thisPostId).attr('data-page-id'),shortcode_token_param=cffGetShortcodeToken($cffClosest),useowntoken='';if($cffClosest.attr('data-own-token')=='true')useowntoken='&useowntoken=true';var cffAttachmentsUrl=cffsiteurl+"/custom-facebook-feed-pro/thumbs.php?id="+thisPostId+'&pageid='+cff_page_id+useowntoken+shortcode_token_param,thumbsData=[];if(albumsonly){cffAttachmentsUrl=cffAttachmentsUrl+'&albumsonly=true';$('.cff-lightbox-thumbs-holder').css('min-height',45).after('')}
var cffgroupalbums=this.album[this.currentImageIndex].cffgroupalbums;if(cffgroupalbums)cffAttachmentsUrl=cffAttachmentsUrl+'&usegrouptoken='+cffgroupalbums;$.ajax({method:"GET",url:cffAttachmentsUrl,success:function(data){data=jQuery.parseJSON(data);if(albumsonly){$.each(data.data,function(i,photoItem){var dataCaption='';if(photoItem.name)dataCaption=photoItem.name;dataCaption=cffLinkify(dataCaption);dataCaption=dataCaption.replace(hashRegex,cffReplaceHashtags);dataCaption=String(dataCaption).replace(/& /g,'& ').replace(//g,'>').replace(/"/g,'"').replace(/\n/g,"
");origCaption=String(origCaption).replace(/& /g,'& ').replace(//g,'>').replace(/"/g,'"').replace(/\n/g,"
");var lightboxImageOrder=(parseInt(self.currentImageIndex)+parseInt(i));var cffThumbHref=photoItem.source,cffPhotoItemWidth=photoItem.width,cffPhotoItemHeight=photoItem.height;if(typeof photoItem.images[0]!=='undefined'){cffThumbHref=photoItem.images[0].source;cffPhotoItemWidth=photoItem.images[0].width;cffPhotoItemHeight=photoItem.images[0].height}
if(typeof photoItem.images[photoItem.images.length-2]!=='undefined'){var cffThumbImg=photoItem.images[photoItem.images.length-2].source}else{var cffThumbImg=cffThumbHref}
albumThumbs+='';thumbsData.push([cffThumbHref,cffPhotoItemWidth,cffPhotoItemHeight,'http://facebook.com/'+photoItem.id,dataCaption,origCaption,undefined,undefined,cffThumbImg]);if(i>0){cffInsertLightboxImage(lightboxImageOrder,cffThumbHref,dataCaption,'http://facebook.com/'+photoItem.id,thisPostId,albumsonly,!0,cffThumbImg)}})}else{if(typeof data.attachments!=='undefined'){$.each(data.attachments.data[0].subattachments.data,function(i,subattachment){var dataCaption='';if(subattachment.description)dataCaption=subattachment.description;origCaption=String(origCaption).replace(/"/g,'"');dataCaption=cffLinkify(dataCaption);dataCaption=dataCaption.replace(hashRegex,cffReplaceHashtags);dataCaption=String(dataCaption).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"').replace(/\n/g,"
");var lightboxImageOrder=(parseInt(self.currentImageIndex)+parseInt(i));albumThumbs+='';thumbsData.push([subattachment.media.image.src,subattachment.media.image.width,subattachment.media.image.height,subattachment.url,dataCaption,origCaption,author_name,date_in_correct_format]);if(i>0){cffInsertLightboxImage(lightboxImageOrder,subattachment.media.image.src,dataCaption,subattachment.url,thisPostId,albumsonly,!0,author_name,date_in_correct_format,subattachment.media.image.src)}})}}
$('.cff-lightbox-thumbs-holder').append(''+albumThumbs+'
');jQuery(".cff-lightbox-thumbs-holder .cff-lightbox-attachment").imgLiquid({fill:!0});$('.cff-loader').hide();$('.cff-lightbox-thumbs-holder').css('min-height',0);thumbsArr[thisPostId]=thumbsData}})}}else{$('.cff-lightbox-thumbs').hide()}
$(".cff-lightbox-attachment").removeClass('cff-selected');$(".cff-lightbox-attachment[href='"+$('.cff-lightbox-image').attr('src')+"']").addClass('cff-selected');function cffInsertLightboxImage(currentImageIndex,link,title,facebookurl,postid,albumsonly,isThumbnail,cffThumbImg){var found=!1;$.each(self.album,function(i,thumbitem){if(thumbitem.link==link){found=!0;return}});if(found==!0)return;(albumsonly)?postType='albumsonly':postType='';(albumsonly)?lbcomments='false':lbcomments='true';self.album.splice(currentImageIndex,0,{link:link,title:title,postid:postid,showthumbs:'true',facebookurl:facebookurl,video:'',iframe:'',type:postType,cffgroupalbums:undefined,isthumbnail:isThumbnail,lbcomments:lbcomments,thumbimg:cffThumbImg})}
this.$lightbox.find('.cff-lightbox-caption').fadeIn('fast');if(typeof this.album[this.currentImageIndex].title!=='undefined'&&this.album[this.currentImageIndex].title!==""){var origCaption=this.album[this.currentImageIndex].title;origCaption=origCaption.replace(hashRegex,cffReplaceHashtags);origCaption=String(origCaption).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"');var $lightboxCaption=this.$lightbox.find('.cff-lightbox-caption'),$lightboxCaptionText=$lightboxCaption.find('.cff-lightbox-caption-text');if(this.album[this.currentImageIndex].link==$('.cff-lightbox-image').attr('src'))$lightboxCaptionText.html(origCaption);if($lightboxCaptionText.text()==' '||$lightboxCaptionText.text()==''){$lightboxCaption.addClass('cff-no-caption')}else{$lightboxCaption.removeClass('cff-no-caption')}}else{this.$lightbox.find('.cff-lightbox-caption').addClass('cff-no-caption').find('.cff-lightbox-caption-text').html('')}
this.$lightbox.find('.cff-lightbox-facebook, .cff-lightbox-caption-text a, .cff-lightbox-sidebar a:not(.cff-comment-replies-a)').unbind().on('click',function(event){window.open($(this).attr('href'),'_blank')});if(this.album.length>1&&this.options.showImageNumberLabel){this.$lightbox.find('.cff-lightbox-number').text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn('fast')}else{this.$lightbox.find('.cff-lightbox-number').hide()}
this.$outerContainer.removeClass('animating');this.$lightbox.find('.cff-lightbox-dataContainer').fadeIn(this.options.resizeDuration,function(){return self.sizeOverlay()})};Lightbox.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){var preloadNext=new Image();preloadNext.src=this.album[this.currentImageIndex+1].link}
if(this.currentImageIndex>0){var preloadPrev=new Image();preloadPrev.src=this.album[this.currentImageIndex-1].link}};Lightbox.prototype.enableKeyboardNav=function(){$(document).on('keyup.keyboard',$.proxy(this.keyboardAction,this))};Lightbox.prototype.disableKeyboardNav=function(){$(document).off('.keyboard')};Lightbox.prototype.keyboardAction=function(event){var KEYCODE_ESC=27;var KEYCODE_LEFTARROW=37;var KEYCODE_RIGHTARROW=39;var keycode=event.keyCode;var key=String.fromCharCode(keycode).toLowerCase();if(keycode===KEYCODE_ESC||key.match(/x|o|c/)){if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','');this.end()}else if(key==='p'||keycode===KEYCODE_LEFTARROW){if(this.currentImageIndex!==0){this.changeImage(this.currentImageIndex-1)}else if(this.options.wrapAround&&this.album.length>1){this.changeImage(this.album.length-1)}
if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','')}else if(key==='n'||keycode===KEYCODE_RIGHTARROW){if(this.currentImageIndex!==this.album.length-1){this.changeImage(this.currentImageIndex+1)}else if(this.options.wrapAround&&this.album.length>1){this.changeImage(0)}
if(cff_supports_video())$('#cff-lightbox-wrapper video.cff-lightbox-video')[0].pause();$('#cff-lightbox-wrapper iframe').attr('src','')}};Lightbox.prototype.end=function(){this.disableKeyboardNav();$(window).off("resize",this.sizeOverlay);this.$lightbox.fadeOut(this.options.fadeDuration);this.$overlay.fadeOut(this.options.fadeDuration);$('select, object, embed').css({visibility:"visible"})};return Lightbox})();$(function(){var options=new LightboxOptions();var lightbox=new Lightbox(options)})}).call(this);function cff_supports_video(){return!!document.createElement('video').canPlayType}}
if(jQuery('#cff.cff-lb').length)cffLightbox()};
(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)?0c?-1*c:c},H=function(c){var d=!1;b.each(h.elems,function(b,e){if(e.hash==c)return d=e,!1});return d},D=function(c){if(!c)return c;c=c.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'");return b.trim(c)},I=function(c,
d){var f=l[d];return-1!==f.indexOf("> ")?c.find(f.replace("> ","")).length?b.trim(c.find(f.replace("> ","")).html()):"":"undefined"!=typeof c.attr(f)?D(c.attr(f)):""},Z=function(c){var d=l,f=[];c.each(function(){var c=b(this),g=c.attr(d.src_attr),n=A(g);if(h.gallery_hook_val&&c.attr(d.gallery_hook)!=h.gallery_hook_val)return!0;n=H(n);if(!n){n=g;var k=c.data("lcl-type");"undefined"==typeof k&&(k=l.global_type);-1===b.inArray(k,"image video youtube vimeo dailymotion html iframe".split(" "))&&(n=n.toLowerCase(),
k=/^https?:\/\/(?:[a-z\-]+\.)+[a-z]{2,6}(?:\/[^\/#?]+)+\.(?:jpe?g|gif|png)$/.test(n)?"image":"#"==n.substr(0,1)&&b(n).length?"html":"unknown");"unknown"!=k?(n={src:g,type:k,hash:d.deeplink?A(g):!1,title:d.show_title?I(c,"title_attr"):"",txt:d.show_descr?I(c,"txt_attr"):"",author:d.show_author?I(c,"author_attr"):"",thumb:d.thumb_attr&&"undefined"!=typeof d.thumb_attr?c.attr(d.thumb_attr):"",width:"image"!=k&&"undefined"!=typeof c.data("lcl-w")?c.data("lcl-w"):!1,height:"image"!=k&&"undefined"!=typeof c.data("lcl-h")?
c.data("lcl-h"):!1,force_over_data:"undefined"!=typeof c.data("lcl-force-over-data")?parseInt(c.data("lcl-force-over-data"),10):"",force_outer_cmd:"undefined"!=typeof c.data("lcl-outer-cmd")?c.data("lcl-outer-cmd"):"",canonical_url:"undefined"!=typeof c.data("lcl-canonical-url")?c.data("lcl-canonical-url"):""},n.download="image"==k?"undefined"!=typeof c.data("lcl-path")?c.data("lcl-path"):g:!1):n={src:g,type:k,hash:d.deeplink?A(g):!1}}f.push(n)});2>f.length&&b(".lcl_prev, .lcl_next, #lcl_thumb_nav").remove();
if(!f.length)return!1;h.elems=f;return!0},O=function(){if(2>h.elems.length||!l.gallery)return!1;0").bind("load",function(){e.img_sizes_cache[g]={w:this.width,h:this.height};c&&d==e.elem_index&&P()}).attr("src",g):((c||"undefined"!=typeof f)&&b("#lcl_loader").addClass("no_loader"),c&&P())},aa=function(){var c=b("#lcl_wrap[lc-lelem="+h.elem_index+"] #lcl_elem_wrap > iframe");if(!c.length)return!1;b("#lcl_wrap").addClass("lcl_loading_iframe");"undefined"!=typeof lcl_slideshow&&clearInterval(lcl_slideshow);c.on("load",function(){b("#lcl_wrap").removeClass("lcl_loading_iframe");setTimeout(function(){b("iframe.lcl_elem").length&&
b("iframe.lcl_elem")[0].contentWindow.focus()},20);b(".lcl_is_playing").length&&lcl_start_slideshow(!0)})},Q=function(c,d){var f=b.data(c,"lcl_settings"),e=b.data(c,"lcl_vars");if(e.is_arr_instance){var g=[];b.each(c,function(c,d){var e={},h="undefined"==typeof d.type&&f.global_type?f.global_type:!1;"undefined"!=typeof d.type&&(h=d.type);h&&-1!==b.inArray(h,"image video youtube vimeo dailymotion html iframe".split(" "))?"undefined"!=typeof d.src&&d.src&&(e.src=d.src,e.type=h,e.hash=A(d.src),e.title=
"undefined"==typeof d.title?"":D(d.title),e.txt="undefined"==typeof d.txt?"":D(d.txt),e.author="undefined"==typeof d.author?"":D(d.author),e.width="undefined"==typeof d.width?!1:d.width,e.height="undefined"==typeof d.height?!1:d.height,e.force_over_data="undefined"==typeof d.force_over_data?!1:parseInt(d.force_over_data,10),e.force_outer_cmd="undefined"==typeof d.force_outer_cmd?!1:d.force_outer_cmd,e.canonical_url="undefined"==typeof d.canonical_url?!1:d.canonical_url,e.thumb="undefined"==typeof d.thumb?
!1:d.thumb,e.download="image"==h?"undefined"!=typeof d.download?d.download:d.src:!1,e.poster="image"==h||"undefined"==typeof d.poster?"":d.poster,g.push(e)):(e={src:e.src,type:"unknown",hash:f.deeplink?A(e.src):!1},g.push(e))});e.elems=g}else{var n=c;f.live_elements&&e.elems_selector&&(n=d&&f.gallery&&f.gallery_hook&&"undefined"!=typeof b(k[0]).attr(f.gallery_hook)?e.elems_selector+"["+f.gallery_hook+"="+d.attr(f.gallery_hook)+"]":e.elems_selector,n=b(n));if(!Z(n))return(!f.live_elements||f.live_elements&&
!e.elems_selector)&&console.error("LC Lightbox - no valid elements found"),!1}f.preload_all&&!e.preload_all_used&&(e.preload_all_used=!0,b(document).ready(function(c){b.each(e.elems,function(b,c){y(!1,b)})}));"function"==typeof f.elems_parsed&&f.elems_parsed.call({opts:l,vars:h});e.is_arr_instance||(n=e.elems_selector?b(e.elems_selector):c,n.first().trigger("lcl_elems_parsed",[e.elems]));return!0};Q(k);var K=function(c,d){if(lcl_shown||lcl_is_active)return!1;lcl_is_active=lcl_shown=!0;lcl_curr_obj=
c;l=b.data(c,"lcl_settings");h=b.data(c,"lcl_vars");lcl_curr_opts=l;lcl_curr_vars=h;var f=l,e=h,g="undefined"!=typeof d?d:!1;if(!h)return console.error("LC Lightbox - cannot open. Object not initialized"),!1;e.gallery_hook_val=g&&f.gallery&&f.gallery_hook&&"undefined"!=typeof g.attr(f.gallery_hook)?g.attr(f.gallery_hook):!1;if(!Q(c,d))return!1;if(g)b.each(e.elems,function(b,c){if(c.src==g.attr(f.src_attr))return e.elem_index=b,!1});else if(parseInt(e.elem_index,10)>=e.elems_count)return console.error("LC Lightbox - selected index does not exist"),
!1;y(!1);ba();ca();e.force_fullscreen&&J(!0,!0);b("#lcl_thumbs_nav").length&&da();y(!0);O()},R=function(){b("#lcl_wrap").removeClass("lcl_pre_show").addClass("lcl_shown");b("#lcl_loader").removeClass("lcl_loader_pre_first_el")},ba=function(){var c=l,d=h,f=[],e="";"number"==typeof document.documentMode&&(b("body").addClass("lcl_old_ie"),"outer"!=c.cmd_position&&(c.nav_btn_pos="normal"));b("#lcl_wrap").length&&b("#lcl_wrap").remove();b("body").append('');
b("#lcl_wrap").attr("data-lcl-max-w",c.max_width).attr("data-lcl-max-h",c.max_height);f.push("lcl_"+c.ins_close_pos+"_close lcl_nav_btn_"+c.nav_btn_pos+" lcl_"+c.ins_close_pos+"_close lcl_nav_btn_"+c.nav_btn_pos);(!0===c.tn_hidden||"number"==typeof c.tn_hidden&&(b(window).width()d.elems.length||!c.gallery)&&
b(".lcl_counter").remove();d.force_fullscreen=!1;if(!c.fullscreen)b(".lcl_fullscreen").remove();else if(!0===c.fs_only||"number"==typeof c.fs_only&&(b(window).width()d.elems.length||!c.gallery?b(".lcl_prev, .lcl_play, .lcl_next").remove():"middle"==c.nav_btn_pos&&(e+=".lcl_prev, .lcl_next {margin: "+c.padding+"px;}");!c.thumbs_nav||2>h.elems.length||!c.gallery?b("#lcl_thumbs_nav, .lcl_thumbs_toggle").remove():
(b("#lcl_thumbs_nav").css("height",c.thumbs_h),g=b("#lcl_thumbs_nav").outerHeight(!0)-c.thumbs_h,e+="#lcl_window {margin-top: "+-1*(c.thumbs_h-g)+"px;}",e+=".lcl_tn_hidden.lcl_outer_cmd:not(.lcl_fullscreen_mode) #lcl_window {margin-bottom: "+-1*b(".lcl_close").outerHeight(!0)+"px;}");f.push("lcl_txt_"+c.data_position+" lcl_"+c.skin);e+="#lcl_overlay {background-color: "+c.thumbs_h+"px; opacity: "+c.ol_opacity+";}";c.ol_pattern&&b("#lcl_overlay").addClass("lcl_pattern_"+c.ol_pattern);c.modal&&b("#lcl_overlay").addClass("lcl_modal");
c.wrap_padding&&(e+="#lcl_wrap {padding: "+c.wrap_padding+";}");c.border_w&&(e+="#lcl_window {border: "+c.border_w+"px solid "+c.border_col+";}");c.padding&&(e+="#lcl_subj, #lcl_txt, #lcl_nav_cmd {margin: "+c.padding+"px;}");c.radius&&(e+="#lcl_window, #lcl_contents_wrap {border-radius: "+c.radius+"px;}");c.shadow&&(e+="#lcl_window {box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);}");"inner"==c.cmd_position&&"corner"==c.ins_close_pos&&(e+="#lcl_corner_close {top: "+-1*(c.border_w+Math.ceil(b("#lcl_corner_close").outerWidth()/
2))+"px;right: "+-1*(c.border_w+Math.ceil(b("#lcl_corner_close").outerHeight()/2))+";}",b("#lcl_nav_cmd > *:not(.lcl_close)").length||(e+="#lcl_wrap:not(.lcl_fullscreen_mode):not(.lcl_forced_outer_cmd) #lcl_nav_cmd {display: none;}"));b("#lcl_inline_style").length&&b("#lcl_inline_style").remove();b("head").append('");c.remove_scrollbar&&(h.html_style="undefined"!=typeof jQuery("html").attr("style")?jQuery("html").attr("style"):"",h.body_style="undefined"!=typeof jQuery("body").attr("style")?jQuery("body").attr("style"):"",e=b(window).width(),b("html").css("overflow","hidden"),b("html").css({"margin-right":b(window).width()-e,"touch-action":"none"}),b("body").css({overflow:"visible","touch-action":"none"}));e=h.elems[d.elem_index];"image"!=e.type||"image"==e.type&&"undefined"!=typeof d.img_sizes_cache[e.src]?
f.push("lcl_show_already_shaped"):R();b("#lcl_wrap").addClass(f.join(" "));"function"==typeof c.html_is_ready&&c.html_is_ready.call({opts:l,vars:h});h.is_arr_instance||(h.elems_selector?b(h.elems_selector):lcl_curr_obj).first().trigger("lcl_html_is_ready",[l,h])},ea=function(c){var d=b(c)[0],f=null;d.addEventListener("touchstart",function(b){1===b.targetTouches.length&&(f=b.targetTouches[0].clientY)},!1);d.addEventListener("touchmove",function(b){if(1===b.targetTouches.length){var c=b.targetTouches[0].clientY-
f;0===d.scrollTop&&0c&&b.preventDefault()}},!1)},P=function(){if(!lcl_shown)return!1;var c=h,d=c.elems[c.elem_index];b("#lcl_wrap").attr("lc-lelem",c.elem_index);l.carousel||(b("#lcl_wrap").removeClass("lcl_first_elem lcl_last_elem"),c.elem_index?c.elem_index==c.elems.length-1&&b("#lcl_wrap").addClass("lcl_last_elem"):b("#lcl_wrap").addClass("lcl_first_elem"));b(document).trigger("lcl_before_populate_global",[d,c.elem_index]);var f=
h.elem_index;b("#lcl_elem_wrap").removeAttr("style").removeAttr("class").empty();b("#lcl_wrap").attr("lcl-type",d.type);b("#lcl_elem_wrap").addClass("lcl_"+d.type+"_elem");switch(d.type){case "image":b("#lcl_elem_wrap").css("background-image","url('"+d.src+"')");break;case "html":b("#lcl_elem_wrap").html(''+b(d.src).html()+"
");break;default:b("#lcl_elem_wrap").html('
Error loading the resource ..
')}-1===b.inArray(d.type,
["image","video","unknown","html"])&&aa();if(lcl_curr_opts.download)if(d.download){b(".lcl_download").show();var e=d.download.split("/");e=e[e.length-1];b(".lcl_download").html('')}else b(".lcl_download").hide();b(".lcl_counter").html(f+1+" / "+h.elems.length);L(d)&&"unknown"!=d.type?(b("#lcl_wrap").removeClass("lcl_no_txt"),b(".lcl_txt_toggle").show(),d.title&&b("#lcl_txt").append(''+d.title+"
"),d.author&&b("#lcl_txt").append('by '+
d.author+"
"),d.txt&&b("#lcl_txt").append('"),d.txt&&(d.title&&d.author?b("#lcl_txt h5").addClass("lcl_txt_border"):b("#lcl_txt h3").length?b("#lcl_txt h3").addClass("lcl_txt_border"):b("#lcl_txt h5").addClass("lcl_txt_border")),fa()):(b(".lcl_txt_toggle").hide(),b("#lcl_wrap").addClass("lcl_no_txt"));ea("#lcl_txt");c.is_arr_instance||(f=c.elems_selector?b(c.elems_selector):lcl_curr_obj,f.first().trigger("lcl_before_show",[d,c.elem_index]));b(document).trigger("lcl_before_show_global",
[d,c.elem_index]);b("#lcl_wrap").hasClass("lcl_pre_first_el")&&("function"==typeof l.on_open&&l.on_open.call({opts:l,vars:h}),c.is_arr_instance||(f=c.elems_selector?b(c.elems_selector):lcl_curr_obj,f.first().trigger("lcl_on_open",[d,c.elem_index])));x(d);b("#lcl_subj").removeClass("lcl_switching_el")},L=function(b){return b.title||b.txt||b.author?!0:!1},E=function(c,d,f){var e=0,g=b("#lcl_wrap"),h=b(window).width()-parseInt(g.css("padding-left"),10)-parseInt(g.css("padding-right"),10);g=b(window).height()-
parseInt(g.css("padding-top"),10)-parseInt(g.css("padding-bottom"),10);!isNaN(parseFloat(c))&&isFinite(c)?e=parseInt(c,10):-1!==c.toString().indexOf("%")?e=("w"==d?h:g)*(parseInt(c,10)/100):-1!==c.toString().indexOf("vw")?e=h*(parseInt(c,10)/100):-1!==c.toString().indexOf("vh")&&(e=g*(parseInt(c,10)/100));"undefined"==typeof f&&("w"==d&&e>h&&(e=h),"h"==d&&e>g&&(e=g));return e},x=function(c,d,f){var e=l,g=h;"undefined"==typeof d&&(d={});var k=b(".lcl_fullscreen_mode").length?!0:!1;f=k?0:2*parseInt(e.border_w,
10)+2*parseInt(e.padding,10);"undefined"!=typeof d.side_txt_checked||"undefined"!=typeof d.no_txt_under&&d.no_txt_under||b("#lcl_wrap").removeClass("lcl_force_txt_over");var B=b(".lcl_force_txt_over").length||b(".lcl_hidden_txt").length||-1===b.inArray(e.data_position,["rside","lside"])||!L(c)?0:b("#lcl_txt").outerWidth(),t=k||!b("#lcl_thumbs_nav").length||b(".lcl_tn_hidden").length?0:b("#lcl_thumbs_nav").outerHeight(!0)-parseInt(b("#lcl_wrap").css("padding-bottom"),10),q=!k&&b(".lcl_outer_cmd").length?
b(".lcl_close").outerHeight(!0)+parseInt(b("#lcl_nav_cmd").css("padding-top"),10)+parseInt(b("#lcl_nav_cmd").css("padding-bottom"),10):0;var p=f+B;t=f+t+q;var m=b("#lcl_wrap").attr("data-lcl-max-w");q=b("#lcl_wrap").attr("data-lcl-max-h");m=k?b(window).width():Math.floor(E(m,"w"))-p;q=k?b(window).height():Math.floor(E(q,"h"))-t;if("object"==typeof g.txt_und_sizes){p=g.txt_und_sizes.w;var r=g.txt_und_sizes.h;if("image"==c.type)var u=g.img_sizes_cache[c.src]}else switch(c.type){case "image":b("#lcl_elem_wrap").css("bottom",
0);if("undefined"==typeof g.img_sizes_cache[c.src])return!1;u=g.img_sizes_cache[c.src];u.w<=m?(p=u.w,r=u.h):(p=m,r=Math.floor(u.h/u.w*p));r>q&&(r=q,p=Math.floor(u.w/u.h*r));if(L(c)&&!b(".lcl_hidden_txt").length&&"under"==e.data_position&&"undefined"==typeof d.no_txt_under)return S(p,r,q),b(document).off("lcl_txt_und_calc").on("lcl_txt_und_calc",function(){if(g.txt_und_sizes)return"no_under"==g.txt_und_sizes&&(d.no_txt_under=!0),x(g.elems[g.elem_index],d)}),!1;b("#lcl_subj").css("maxHeight","none");
break;case "html":c.width&&(m=E(c.width,"w")-p);c.height&&(q=E(c.height,"h")-t);p=m;"under"==e.data_position&&(k?b("#lcl_wrap").addClass("lcl_force_txt_over"):b("#lcl_wrap").removeClass("lcl_force_txt_over"));t=k?"none":q;"under"!=e.data_position||k?(b("#lcl_contents_wrap").css("maxHeight","none"),b("#lcl_subj").css("maxHeight",t)):(b("#lcl_contents_wrap").css("maxHeight",t),b("#lcl_subj").css("maxHeight","none"));k||(b(".lcl_first_sizing").length?b("#lcl_window").css("height","auto"):(b(".lcl_html_elem").css("width",
p),r=b("#lcl_elem_wrap").outerHeight(!0),b(".lcl_html_elem").css("width","auto"),"under"==e.data_position&&!k&&b("#lcl_txt").length&&(b("#lcl_txt").css("width",p),r+=b("#lcl_txt").outerHeight(!0),b("#lcl_txt").css("width","auto")),r>q&&(r=q)));break;default:p=280,r=125}if(("rside"==e.data_position||"lside"==e.data_position)&&!b(".lcl_no_txt").length&&"undefined"==typeof d.side_txt_checked&&(u="image"==c.type?g.img_sizes_cache[c.src]:"",(t=c.force_over_data)||(t=400),("image"!=c.type||"image"==c.type&&
u.w>t&&u.h>t)&&!ha(c,t,p+f,r+f,B)))return d.side_txt_checked=!0,x(c,d);g.txt_und_sizes=!1;if("undefined"==typeof d.inner_cmd_checked&&("inner"==e.cmd_position||c.force_outer_cmd)&&ia(c,p))return d.inner_cmd_checked=!0,x(c,d);b("#lcl_wrap").removeClass("lcl_pre_first_el");b("#lcl_window").css({width:k?"100%":p+f+B,height:k?"100%":r+f});b(".lcl_show_already_shaped").length&&setTimeout(function(){b("#lcl_wrap").removeClass("lcl_show_already_shaped");R()},10);T();"undefined"!=typeof lcl_size_n_show_timeout&&
clearTimeout(lcl_size_n_show_timeout);r=b(".lcl_first_sizing").length?e.open_close_time+20:e.animation_time;if(b(".lcl_browser_resize").length||b(".lcl_toggling_fs").length||k)r=0;lcl_size_n_show_timeout=setTimeout(function(){lcl_is_active&&(lcl_is_active=!1);b(".lcl_first_sizing").length&&e.autoplay&&1=
f&&-1.15<=f&&350>=n&&350>=d?b(".lcl_image_elem").css("background-size","cover"):b(".lcl_image_elem").css("background-size","contain")}}else b(".lcl_image_elem").css("background-size","cover");b(".lcl_zoomable").length&&(parseFloat(b("#lcl_elem_wrap").attr("lcl-zoom")),d=h,d=d.elems[d.elem_index],"undefined"!=typeof d&&(d=h.img_sizes_cache[d.src],d.w<=b("#lcl_subj").width()&&d.h<=b("#lcl_subj").height()?(b(".lcl_zoom_icon").hide(),b("#lcl_elem_wrap").css({width:"100%",height:"100%"}),b("#lcl_elem_wrap").attr("lcl-zoom",
1),b(".lcl_zoom_out").addClass("lcl_zoom_disabled"),b(".lcl_zoom_in").removeClass("lcl_zoom_disabled"),b("#lcl_subj").removeClass("lcl_zoom_wrap")):b(".lcl_zoom_icon").show()))}b(".lcl_loading_iframe").length&&ja();b("#lcl_wrap").removeClass("lcl_first_sizing lcl_switching_elem lcl_is_resizing lcl_browser_resize");b("#lcl_loader").removeClass("no_loader");b(document).trigger("lcl_resized_window")},r)};b(window).resize(function(){if(!lcl_shown||k!=lcl_curr_obj||b(".lcl_toggling_fs").length)return!1;
b("#lcl_wrap").addClass("lcl_browser_resize");"undefined"!=typeof lcl_rs_defer&&clearTimeout(lcl_rs_defer);lcl_rs_defer=setTimeout(function(){lcl_resize()},50)});var S=function(c,d,f,e){var g="undefined"==typeof e?1:e,k=b(".lcl_fullscreen_mode").length;b("#lcl_txt").outerHeight();var B=c/d;if(k&&b("#lcl_thumbs_nav").length)return b("#lcl_wrap").addClass("lcl_force_txt_over"),b("#lcl_subj").css("maxHeight","none"),b("#lcl_txt").css({right:0,width:"auto"}),h.txt_und_sizes="no_under",b(document).trigger("lcl_txt_und_calc"),
!1;b("#lcl_wrap").removeClass("lcl_force_txt_over").addClass("lcl_txt_under_calc");k?b("#lcl_txt").css({right:0,width:"auto"}):b("#lcl_txt").css({right:"auto",width:c});"undefined"!=typeof lcl_txt_under_calc&&clearInterval(lcl_txt_under_calc);lcl_txt_under_calc=setTimeout(function(){var n=Math.ceil(b("#lcl_txt").outerHeight()),q=d+n-f;if(k)return b("#lcl_wrap").removeClass("lcl_txt_under_calc"),b("#lcl_subj").css("maxHeight","calc(100% - "+n+"px)"),h.txt_und_sizes={w:c,h:d},b(document).trigger("lcl_txt_und_calc"),
!1;if(0e)){n=d-q;q=Math.floor(n*B);var p=h.elems[h.elem_index].force_over_data;p||(p=400);return qf.elems.length||!l.gallery||b(".lcl_switching_elem").length)return!1;if("next"==c)if(f.elem_index==f.elems.length-1){if(!e)return!1;c=0}else c=f.elem_index+1;else if("prev"==c)if(f.elem_index)c=f.elem_index-1;else{if(!e)return!1;c=f.elems.length-1}else if(c=parseInt(c,10),0>c||c>=f.elems.length||c==f.elem_index)return!1;"undefined"!=typeof lcl_slideshow&&("undefined"==typeof d||!e&&c==f.elems.length-1)&&lcl_stop_slideshow();lcl_is_active=
!0;U(c);y(!1,c,!0);b("#lcl_wrap").addClass("lcl_switching_elem");setTimeout(function(){b("#lcl_wrap").removeClass("lcl_playing_video");"html"==f.elems[f.elem_index].type&&(b("#lcl_window").css("height",b("#lcl_contents_wrap").outerHeight()),b("#lcl_contents_wrap").css("maxHeight","none"));"function"==typeof l.on_elem_switch&&l.on_elem_switch.call({opts:l,vars:h,new_el:c});!f.is_arr_instance&&lcl_curr_obj&&(f.elems_selector?b(f.elems_selector):lcl_curr_obj).first().trigger("lcl_on_elem_switch",[f.elem_index,
c]);b("#lcl_wrap").removeClass("lcl_no_txt lcl_loading_iframe");b("#lcl_txt").empty();f.elem_index=c;y(!0);O()},l.fading_time)},V=function(c){var d=l;if(!d.progressbar)return!1;c=c?0:d.animation_time+d.fading_time;var f=d.slideshow_time+d.animation_time-c;b("#lcl_progressbar").length||b("#lcl_wrap").append('
');"undefined"!=typeof lcl_pb_timeout&&clearTimeout(lcl_pb_timeout);lcl_pb_timeout=setTimeout(function(){b("#lcl_progressbar").stop(!0).removeAttr("style").css("width",
0).animate({width:"100%"},f,"linear",function(){b("#lcl_progressbar").fadeTo(0,0)})},c)},M=function(){if(!lcl_shown)return!1;"function"==typeof l.on_close&&l.on_close.call({opts:l,vars:h});h.is_arr_instance||(h.elems_selector?b(h.elems_selector):lcl_curr_obj).first().trigger("lcl_on_close");b(document).trigger("lcl_on_close_global");b("#lcl_wrap").removeClass("lcl_shown").addClass("lcl_is_closing lcl_tn_hidden");lcl_stop_slideshow();b(".lcl_fullscreen_mode").length&&W();setTimeout(function(){b("#lcl_wrap, #lcl_inline_style").remove();
l.remove_scrollbar&&(jQuery("html").attr("style",h.html_style),jQuery("body").attr("style",h.body_style));b(document).trigger("lcl_closed_global");lcl_is_active=lcl_shown=lcl_curr_vars=lcl_curr_opts=lcl_curr_obj=!1},l.open_close_time+80);"undefined"!=typeof lcl_size_check&&clearTimeout(lcl_size_check)},F=function(){lcl_hashless_url=window.location.href;if(-1!==lcl_hashless_url.indexOf("#")){var b=lcl_hashless_url.split("#");lcl_hashless_url=b[0];lcl_url_hash="#"+b[1]}var d={};b=lcl_hashless_url.slice(lcl_hashless_url.indexOf("?")+
1).split("&");jQuery.each(b,function(b,c){var e=c.split("=");d[e[0]]=e[1]});return d};if(0==lcl_objs.length)b(document).on("lcl_before_show_global",function(b,d){if(lcl_curr_opts.deeplink&&d.hash&&-1===navigator.appVersion.indexOf("MSIE 9.")){var c=F(),e=d.title?d.hash+"/"+encodeURIComponent(d.title.replace(/\s+/g,"-")):d.hash,g="lcl="+e+lcl_url_hash;if(-1===lcl_hashless_url.indexOf("?"))history.pushState(null,null,lcl_hashless_url+"?"+g);else{if("undefined"!=typeof c.lcl&&c.lcl==e)return!0;var h=
lcl_hashless_url.slice(0,lcl_hashless_url.indexOf("?")+1),k=0,l=!1;jQuery.each(c,function(b,c){"undefined"!=typeof b&&(0=c.w&&b("#lcl_subj").height()>=
c.h)return!0;b("#lcl_elem_wrap").css({width:"100%",height:"100%"});b("#lcl_elem_wrap").attr("lcl-zoom",1);b("#lcl_subj").addClass("lcl_zoomable");b(".lcl_zoom_out").addClass("lcl_zoom_disabled");b(".lcl_zoom_in").removeClass("lcl_zoom_disabled");b(".lcl_zoom_in .lcl_zoom_helper").remove();b(".lcl_zoom_icon").show()});var z=function(c,d){var f=b("#lcl_elem_wrap"),e=f.width(),g=f.height(),k=parseFloat(b("#lcl_elem_wrap").attr("lcl-zoom")),l=0,t=h,q=h.img_sizes_cache[t.elems[t.elem_index].src];c&&(e<
q.w||gb("#lcl_subj").width()&&(l=k-.25,1>=l&&(l=1),f.css({width:100*l+"%",height:100*l+"%"}));l&&(b("#lcl_elem_wrap").attr("lcl-zoom",l),b(".lcl_zoom_in .lcl_zoom_helper").remove(),1'+l+"x"),1 *").last().addClass("lcl_txt_border"),b("#lcl_txt").append('
';if(cff_comment_author_info)cff_comments+=''+commentItem.from.name+'';if(cff_post_tags&&commentItem.hasOwnProperty('message_tags')){$.each(commentItem.message_tags,function(i,message_tag){tag_name=message_tag.name;tag_link=''+message_tag.name+'';comment_message=comment_message.replace(tag_name,tag_link)})} cff_comments+=comment_message+'
';if(commentItem.hasOwnProperty('attachment')){if(commentItem.attachment.hasOwnProperty('media')){cff_comments+=''}} cff_comments+='';var cff_middot='',cff_comment_time=$self.find('#cff_'+commentItem.id).attr('data-cff-comment-date');if(typeof cff_comment_time!=='undefined'){cff_comments+=cff_comment_time;cff_middot=' · '} if(commentItem.like_count>0)cff_comments+=''+cff_middot+''+commentItem.like_count+'';cff_comments+='';var cff_comment_count=parseInt(commentItem.comment_count);if(cff_comment_count>0){var cff_replies_text_string='';(cff_comment_count==1)?cff_replies_text_string=cff_translate_reply_text:cff_replies_text_string=cff_translate_replies_text;cff_comments+=''+cff_comment_count+' '+cff_replies_text_string+'
'} cff_comments+='