'+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=cffEncodeHTML(commentItem.message),comment_message=cffLinkify(comment_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 cffEncodeHTML(raw){if(typeof raw==='undefined'){return''}
var encoded=raw.replace(/(>)/g,'>'),encoded=encoded.replace(/(<)/g,'<');encoded=encoded.replace(/(<br\/>)/g,'
');encoded=encoded.replace(/(<br>)/g,'
');return encoded}
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 n(n){function t(t,r,e,u,i,o){for(;i>=0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(t),i=n>0?0:u-1;i>=0&&u>i;i+=n)if(r(t[i],i,t))return i;return-1}}function r(n,t,r){return function(e,u,i){var o=0,a=O(e);if("number"==typeof i)n>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(r&&i&&a)return i=r(e,u),e[i]===u?i:-1;if(u!==u)return i=t(l.call(e,o,a),m.isNaN),i>=0?i+o:-1;for(i=n>0?o:a-1;i>=0&&a>i;i+=n)if(e[i]===u)return i;return-1}}function e(n,t){var r=I.length,e=n.constructor,u=m.isFunction(e)&&e.prototype||a,i="constructor";for(m.has(n,i)&&!m.contains(t,i)&&t.push(i);r--;)i=I[r],i in n&&n[i]!==u[i]&&!m.contains(t,i)&&t.push(i)}var u=this,i=u._,o=Array.prototype,a=Object.prototype,c=Function.prototype,f=o.push,l=o.slice,s=a.toString,p=a.hasOwnProperty,h=Array.isArray,v=Object.keys,g=c.bind,y=Object.create,d=function(){},m=function(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):u._=m,m.VERSION="1.8.3";var b=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}},x=function(n,t,r){return null==n?m.identity:m.isFunction(n)?b(n,t,r):m.isObject(n)?m.matcher(n):m.property(n)};m.iteratee=function(n,t){return x(n,t,1/0)};var _=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var u=1;e>u;u++)for(var i=arguments[u],o=n(i),a=o.length,c=0;a>c;c++){var f=o[c];t&&r[f]!==void 0||(r[f]=i[f])}return r}},j=function(n){if(!m.isObject(n))return{};if(y)return y(n);d.prototype=n;var t=new d;return d.prototype=null,t},w=function(n){return function(t){return null==t?void 0:t[n]}},A=Math.pow(2,53)-1,O=w("length"),k=function(n){var t=O(n);return"number"==typeof t&&t>=0&&A>=t};m.each=m.forEach=function(n,t,r){t=b(t,r);var e,u;if(k(n))for(e=0,u=n.length;u>e;e++)t(n[e],e,n);else{var i=m.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},m.map=m.collect=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=Array(u),o=0;u>o;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},m.reduce=m.foldl=m.inject=n(1),m.reduceRight=m.foldr=n(-1),m.find=m.detect=function(n,t,r){var e;return e=k(n)?m.findIndex(n,t,r):m.findKey(n,t,r),e!==void 0&&e!==-1?n[e]:void 0},m.filter=m.select=function(n,t,r){var e=[];return t=x(t,r),m.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e},m.reject=function(n,t,r){return m.filter(n,m.negate(x(t)),r)},m.every=m.all=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},m.some=m.any=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},m.contains=m.includes=m.include=function(n,t,r,e){return k(n)||(n=m.values(n)),("number"!=typeof r||e)&&(r=0),m.indexOf(n,t,r)>=0},m.invoke=function(n,t){var r=l.call(arguments,2),e=m.isFunction(t);return m.map(n,function(n){var u=e?t:n[t];return null==u?u:u.apply(n,r)})},m.pluck=function(n,t){return m.map(n,m.property(t))},m.where=function(n,t){return m.filter(n,m.matcher(t))},m.findWhere=function(n,t){return m.find(n,m.matcher(t))},m.max=function(n,t,r){var e,u,i=-1/0,o=-1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>i&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(u>o||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},m.min=function(n,t,r){var e,u,i=1/0,o=1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],i>e&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(o>u||1/0===u&&1/0===i)&&(i=n,o=u)});return i},m.shuffle=function(n){for(var t,r=k(n)?n:m.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=m.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},m.sample=function(n,t,r){return null==t||r?(k(n)||(n=m.values(n)),n[m.random(n.length-1)]):m.shuffle(n).slice(0,Math.max(0,t))},m.sortBy=function(n,t,r){return t=x(t,r),m.pluck(m.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=x(r,e),m.each(t,function(e,i){var o=r(e,i,t);n(u,e,o)}),u}};m.groupBy=F(function(n,t,r){m.has(n,r)?n[r].push(t):n[r]=[t]}),m.indexBy=F(function(n,t,r){n[r]=t}),m.countBy=F(function(n,t,r){m.has(n,r)?n[r]++:n[r]=1}),m.toArray=function(n){return n?m.isArray(n)?l.call(n):k(n)?m.map(n,m.identity):m.values(n):[]},m.size=function(n){return null==n?0:k(n)?n.length:m.keys(n).length},m.partition=function(n,t,r){t=x(t,r);var e=[],u=[];return m.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},m.first=m.head=m.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:m.initial(n,n.length-t)},m.initial=function(n,t,r){return l.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},m.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:m.rest(n,Math.max(0,n.length-t))},m.rest=m.tail=m.drop=function(n,t,r){return l.call(n,null==t||r?1:t)},m.compact=function(n){return m.filter(n,m.identity)};var S=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=O(n);a>o;o++){var c=n[o];if(k(c)&&(m.isArray(c)||m.isArguments(c))){t||(c=S(c,t,r));var f=0,l=c.length;for(u.length+=l;l>f;)u[i++]=c[f++]}else r||(u[i++]=c)}return u};m.flatten=function(n,t){return S(n,t,!1)},m.without=function(n){return m.difference(n,l.call(arguments,1))},m.uniq=m.unique=function(n,t,r,e){m.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=x(r,e));for(var u=[],i=[],o=0,a=O(n);a>o;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?m.contains(i,f)||(i.push(f),u.push(c)):m.contains(u,c)||u.push(c)}return u},m.union=function(){return m.uniq(S(arguments,!0,!0))},m.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=O(n);u>e;e++){var i=n[e];if(!m.contains(t,i)){for(var o=1;r>o&&m.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n,function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this,r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+(t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[];if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.isFunction(t)?(u=m.allKeys(o),e=b(t,r)):(u=S(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=u.length;c>a;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},m.omit=function(n,t,r){if(m.isFunction(t))t=m.negate(t);else{var e=m.map(S(arguments,!1,!1,1),String);t=function(n,t){return!m.contains(e,t)}}return m.pick(n,t,r)},m.defaults=_(m.allKeys,!0),m.create=function(n,t){var r=j(n);return t&&m.extendOwn(r,t),r},m.clone=function(n){return m.isObject(n)?m.isArray(n)?n.slice():m.extend({},n):n},m.tap=function(n,t){return t(n),n},m.isMatch=function(n,t){var r=m.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;e>i;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof m&&(n=n._wrapped),t instanceof m&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var c=r.length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if(c=n.length,c!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=m.keys(n);if(c=l.length,m.keys(t).length!==c)return!1;for(;c--;)if(f=l[c],!m.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};m.isEqual=function(n,t){return N(n,t)},m.isEmpty=function(n){return null==n?!0:k(n)&&(m.isArray(n)||m.isString(n)||m.isArguments(n))?0===n.length:0===m.keys(n).length},m.isElement=function(n){return!(!n||1!==n.nodeType)},m.isArray=h||function(n){return"[object Array]"===s.call(n)},m.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){m["is"+n]=function(t){return s.call(t)==="[object "+n+"]"}}),m.isArguments(arguments)||(m.isArguments=function(n){return m.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(n){return"function"==typeof n||!1}),m.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},m.isNaN=function(n){return m.isNumber(n)&&n!==+n},m.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===s.call(n)},m.isNull=function(n){return null===n},m.isUndefined=function(n){return n===void 0},m.has=function(n,t){return null!=n&&p.call(n,t)},m.noConflict=function(){return u._=i,this},m.identity=function(n){return n},m.constant=function(n){return function(){return n}},m.noop=function(){},m.property=w,m.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},m.matcher=m.matches=function(n){return n=m.extendOwn({},n),function(t){return m.isMatch(t,n)}},m.times=function(n,t,r){var e=Array(Math.max(0,n));t=b(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},m.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T=m.invert(B),R=function(n){var t=function(t){return n[t]},r="(?:"+m.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};m.escape=R(B),m.unescape=R(T),m.result=function(n,t,r){var e=null==n?void 0:n[t];return e===void 0&&(e=r),m.isFunction(e)?e.call(n):e};var q=0;m.uniqueId=function(n){var t=++q+"";return n?n+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,L=function(n){return"\\"+z[n]};m.template=function(n,t,r){!t&&r&&(t=r),t=m.defaults({},t,m.templateSettings);var e=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,o,a){return i+=n.slice(u,a).replace(D,L),u=a+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(a){throw a.source=i,a}var c=function(n){return o.call(this,n,m)},f=t.variable||"obj";return c.source="function("+f+"){\n"+i+"}",c},m.chain=function(n){var t=m(n);return t._chain=!0,t};var P=function(n,t){return n._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(t){var r=m[t]=n[t];m.prototype[t]=function(){var n=[this._wrapped];return f.apply(n,arguments),P(this,r.apply(m,n))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=o[n];m.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],P(this,r)}}),m.each(["concat","join","slice"],function(n){var t=o[n];m.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this);
(function(t){var e=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global;if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,n){e.Backbone=t(e,n,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore"),r;try{r=require("jquery")}catch(n){}t(e,exports,i,r)}else{e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}})(function(t,e,i,r){var n=t.Backbone;var s=Array.prototype.slice;e.VERSION="1.3.3";e.$=r;e.noConflict=function(){t.Backbone=n;return this};e.emulateHTTP=false;e.emulateJSON=false;var a=function(t,e,r){switch(t){case 1:return function(){return i[e](this[r])};case 2:return function(t){return i[e](this[r],t)};case 3:return function(t,n){return i[e](this[r],o(t,this),n)};case 4:return function(t,n,s){return i[e](this[r],o(t,this),n,s)};default:return function(){var t=s.call(arguments);t.unshift(this[r]);return i[e].apply(i,t)}}};var h=function(t,e,r){i.each(e,function(e,n){if(i[n])t.prototype[n]=a(e,n,r)})};var o=function(t,e){if(i.isFunction(t))return t;if(i.isObject(t)&&!e._isModel(t))return l(t);if(i.isString(t))return function(e){return e.get(t)};return t};var l=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}};var u=e.Events={};var c=/\s+/;var f=function(t,e,r,n,s){var a=0,h;if(r&&typeof r==="object"){if(n!==void 0&&"context"in s&&s.context===void 0)s.context=n;for(h=i.keys(r);athis.length)n=this.length;if(n<0)n+=this.length+1;var s=[];var a=[];var h=[];var o=[];var l={};var u=e.add;var c=e.merge;var f=e.remove;var d=false;var v=this.comparator&&n==null&&e.sort!==false;var g=i.isString(this.comparator)?this.comparator:null;var p,m;for(m=0;m7);this._useHashChange=this._wantsHashChange&&this._hasHashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.history&&this.history.pushState);this._usePushState=this._wantsPushState&&this._hasPushState;this.fragment=this.getFragment();this.root=("/"+this.root+"/").replace(O,"/");if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";this.location.replace(e+"#"+this.getPath());return true}else if(this._hasPushState&&this.atRoot()){this.navigate(this.getHash(),{replace:true})}}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe");this.iframe.src="javascript:0";this.iframe.style.display="none";this.iframe.tabIndex=-1;var r=document.body;var n=r.insertBefore(this.iframe,r.firstChild).contentWindow;n.document.open();n.document.close();n.location.hash="#"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState){s("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){s("hashchange",this.checkUrl,false)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}if(!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};if(this._usePushState){t("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){t("hashchange",this.checkUrl,false)}if(this.iframe){document.body.removeChild(this.iframe);this.iframe=null}if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);N.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getHash(this.iframe.contentWindow)}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){if(!this.matchRoot())return false;t=this.fragment=this.getFragment(t);return i.some(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!N.started)return false;if(!e||e===true)e={trigger:!!e};t=this.getFragment(t||"");var i=this.root;if(t===""||t.charAt(0)==="?"){i=i.slice(0,-1)||"/"}var r=i+t;t=this.decodeFragment(t.replace(U,""));if(this.fragment===t)return;this.fragment=t;if(this._usePushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,r)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var n=this.iframe.contentWindow;if(!e.replace){n.document.open();n.document.close()}this._updateHash(n.location,t,e.replace)}}else{return this.location.assign(r)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else{t.hash="#"+e}}});e.history=new N;var q=function(t,e){var r=this;var n;if(t&&i.has(t,"constructor")){n=t.constructor}else{n=function(){return r.apply(this,arguments)}}i.extend(n,r,e);n.prototype=i.create(r.prototype,t);n.prototype.constructor=n;n.__super__=r.prototype;return n};y.extend=x.extend=$.extend=k.extend=N.extend=q;var F=function(){throw new Error('A "url" property or function must be specified')};var B=function(t,e){var i=e.error;e.error=function(r){if(i)i.call(e.context,t,r,e);t.trigger("error",t,r,e)}};return e});
!function(a){function b(a){return a=b.buildAjaxOptions(a),b.transport(a)}var c=window.wpApiSettings;b.buildAjaxOptions=function(b){var d,e,f,g,h,i=b.url,j=b.path;if("string"==typeof b.namespace&&"string"==typeof b.endpoint&&(d=b.namespace.replace(/^\/|\/$/g,""),e=b.endpoint.replace(/^\//,""),j=e?d+"/"+e:d),"string"==typeof j&&(i=c.root+j.replace(/^\//,"")),g=!(b.data&&b.data._wpnonce),f=b.headers||{},g)for(h in f)if(f.hasOwnProperty(h)&&"x-wp-nonce"===h.toLowerCase()){g=!1;break}return g&&(f=a.extend({"X-WP-Nonce":c.nonce},f)),b=a.extend({},b,{headers:f,url:i}),delete b.path,delete b.namespace,delete b.endpoint,b},b.transport=a.ajax,window.wp=window.wp||{},window.wp.apiRequest=b}(jQuery);
!function(a,b){"use strict";function c(){this.models={},this.collections={},this.views={}}a.wp=a.wp||{},wp.api=wp.api||new c,wp.api.versionString=wp.api.versionString||"wp/v2/",!_.isFunction(_.includes)&&_.isFunction(_.contains)&&(_.includes=_.contains)}(window),function(a,b){"use strict";var c,d;a.wp=a.wp||{},wp.api=wp.api||{},wp.api.utils=wp.api.utils||{},wp.api.getModelByRoute=function(a){return _.find(wp.api.models,function(b){return b.prototype.route&&a===b.prototype.route.index})},wp.api.getCollectionByRoute=function(a){return _.find(wp.api.collections,function(b){return b.prototype.route&&a===b.prototype.route.index})},Date.prototype.toISOString||(c=function(a){return d=String(a),1===d.length&&(d="0"+d),d},Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+c(this.getUTCMonth()+1)+"-"+c(this.getUTCDate())+"T"+c(this.getUTCHours())+":"+c(this.getUTCMinutes())+":"+c(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}),wp.api.utils.parseISO8601=function(a){var c,d,e,f,g=0,h=[1,4,5,6,7,10,11];if(d=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(a)){for(e=0;f=h[e];++e)d[f]=+d[f]||0;d[2]=(+d[2]||1)-1,d[3]=+d[3]||1,"Z"!==d[8]&&b!==d[9]&&(g=60*d[10]+d[11],"+"===d[9]&&(g=0-g)),c=Date.UTC(d[1],d[2],d[3],d[4],d[5]+g,d[6],d[7])}else c=Date.parse?Date.parse(a):NaN;return c},wp.api.utils.getRootUrl=function(){return a.location.origin?a.location.origin+"/":a.location.protocol+"/"+a.location.host+"/"},wp.api.utils.capitalize=function(a){return _.isUndefined(a)?a:a.charAt(0).toUpperCase()+a.slice(1)},wp.api.utils.capitalizeAndCamelCaseDashes=function(a){return _.isUndefined(a)?a:(a=wp.api.utils.capitalize(a),wp.api.utils.camelCaseDashes(a))},wp.api.utils.camelCaseDashes=function(a){return a.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})},wp.api.utils.extractRoutePart=function(a,b,c,d){var e;return b=b||1,c=c||wp.api.versionString,0===a.indexOf("/"+c)&&(a=a.substr(c.length+1)),e=a.split("/"),d&&(e=e.reverse()),_.isUndefined(e[--b])?"":e[b]},wp.api.utils.extractParentName=function(a){var b,c=a.lastIndexOf("_id>[\\d]+)/");return c<0?"":(b=a.substr(0,c-1),b=b.split("/"),b.pop(),b=b.pop())},wp.api.utils.decorateFromRoute=function(a,b){_.each(a,function(a){_.includes(a.methods,"POST")||_.includes(a.methods,"PUT")?_.isEmpty(a.args)||(_.isEmpty(b.prototype.args)?b.prototype.args=a.args:b.prototype.args=_.extend(b.prototype.args,a.args)):_.includes(a.methods,"GET")&&(_.isEmpty(a.args)||(_.isEmpty(b.prototype.options)?b.prototype.options=a.args:b.prototype.options=_.extend(b.prototype.options,a.args)))})},wp.api.utils.addMixinsAndHelpers=function(a,b,c){var d=!1,e=["date","modified","date_gmt","modified_gmt"],f={setDate:function(a,b){var c=b||"date";return!(_.indexOf(e,c)<0)&&void this.set(c,a.toISOString())},getDate:function(a){var b=a||"date",c=this.get(b);return!(_.indexOf(e,b)<0||_.isNull(c))&&new Date(wp.api.utils.parseISO8601(c))}},g=function(a,b,c,d,e){var f,g,h,i;return i=jQuery.Deferred(),g=a.get("_embedded")||{},_.isNumber(b)&&0!==b?(g[d]&&(h=_.findWhere(g[d],{id:b})),h||(h={id:b}),f=new wp.api.models[c](h),f.get(e)?i.resolve(f):f.fetch({success:function(a){i.resolve(a)},error:function(a,b){i.reject(b)}}),i.promise()):(i.reject(),i)},h=function(a,b,c,d){var e,f,g,h="",j="",k=jQuery.Deferred();return e=a.get("id"),f=a.get("_embedded")||{},_.isNumber(e)&&0!==e?(_.isUndefined(c)||_.isUndefined(f[c])?h={parent:e}:j=_.isUndefined(d)?f[c]:f[c][d],g=new wp.api.collections[b](j,h),_.isUndefined(g.models[0])?g.fetch({success:function(a){i(a,e),k.resolve(a)},error:function(a,b){k.reject(b)}}):(i(g,e),k.resolve(g)),k.promise()):(k.reject(),k)},i=function(a,b){_.each(a.models,function(a){a.set("parent_post",b)})},j={getMeta:function(a){var b=this.get("meta");return b[a]},getMetas:function(){return this.get("meta")},setMetas:function(a){var b=this.get("meta");_.extend(b,a),this.set("meta",b)},setMeta:function(a,b){var c=this.get("meta");c[a]=b,this.set("meta",c)}},k={getRevisions:function(){return h(this,"PostRevisions")}},l={getTags:function(){var a=this.get("tags"),b=new wp.api.collections.Tags;return _.isEmpty(a)?jQuery.Deferred().resolve([]):b.fetch({data:{include:a}})},setTags:function(a){var b,c,d=this,e=[];return!_.isString(a)&&void(_.isArray(a)?(b=new wp.api.collections.Tags,b.fetch({data:{per_page:100},success:function(b){_.each(a,function(a){c=new wp.api.models.Tag(b.findWhere({slug:a})),c.set("parent_post",d.get("id")),e.push(c)}),a=new wp.api.collections.Tags(e),d.setTagsWithCollection(a)}})):this.setTagsWithCollection(a))},setTagsWithCollection:function(a){return this.set("tags",a.pluck("id")),this.save()}},m={getCategories:function(){var a=this.get("categories"),b=new wp.api.collections.Categories;return _.isEmpty(a)?jQuery.Deferred().resolve([]):b.fetch({data:{include:a}})},setCategories:function(a){var b,c,d=this,e=[];return!_.isString(a)&&void(_.isArray(a)?(b=new wp.api.collections.Categories,b.fetch({data:{per_page:100},success:function(b){_.each(a,function(a){c=new wp.api.models.Category(b.findWhere({slug:a})),c.set("parent_post",d.get("id")),e.push(c)}),a=new wp.api.collections.Categories(e),d.setCategoriesWithCollection(a)}})):this.setCategoriesWithCollection(a))},setCategoriesWithCollection:function(a){return this.set("categories",a.pluck("id")),this.save()}},n={getAuthorUser:function(){return g(this,this.get("author"),"User","author","name")}},o={getFeaturedMedia:function(){return g(this,this.get("featured_media"),"Media","wp:featuredmedia","source_url")}};return _.isUndefined(a.prototype.args)?a:(_.each(e,function(b){_.isUndefined(a.prototype.args[b])||(d=!0)}),d&&(a=a.extend(f)),_.isUndefined(a.prototype.args.author)||(a=a.extend(n)),_.isUndefined(a.prototype.args.featured_media)||(a=a.extend(o)),_.isUndefined(a.prototype.args.categories)||(a=a.extend(m)),_.isUndefined(a.prototype.args.meta)||(a=a.extend(j)),_.isUndefined(a.prototype.args.tags)||(a=a.extend(l)),_.isUndefined(c.collections[b+"Revisions"])||(a=a.extend(k)),a)}}(window),function(){"use strict";var a=window.wpApiSettings||{},b=["Comment","Media","Comment","Post","Page","Status","Taxonomy","Type"];wp.api.WPApiBaseModel=Backbone.Model.extend({initialize:function(){-1===_.indexOf(b,this.name)&&(this.requireForceForDelete=!0)},sync:function(a,b,c){var d;return c=c||{},_.isNull(b.get("date_gmt"))&&b.unset("date_gmt"),_.isEmpty(b.get("slug"))&&b.unset("slug"),_.isFunction(b.nonce)&&!_.isEmpty(b.nonce())&&(d=c.beforeSend,c.beforeSend=function(a){if(a.setRequestHeader("X-WP-Nonce",b.nonce()),d)return d.apply(this,arguments)},c.complete=function(a){var c=a.getResponseHeader("X-WP-Nonce");c&&_.isFunction(b.nonce)&&b.nonce()!==c&&b.endpointModel.set("nonce",c)}),this.requireForceForDelete&&"delete"===a&&(b.url=b.url()+"?force=true"),Backbone.sync(a,b,c)},save:function(a,b){return!(!_.includes(this.methods,"PUT")&&!_.includes(this.methods,"POST"))&&Backbone.Model.prototype.save.call(this,a,b)},destroy:function(a){return!!_.includes(this.methods,"DELETE")&&Backbone.Model.prototype.destroy.call(this,a)}}),wp.api.models.Schema=wp.api.WPApiBaseModel.extend({defaults:{_links:{},namespace:null,routes:{}},initialize:function(b,c){var d=this;c=c||{},wp.api.WPApiBaseModel.prototype.initialize.call(d,b,c),d.apiRoot=c.apiRoot||a.root,d.versionString=c.versionString||a.versionString},url:function(){return this.apiRoot+this.versionString}})}(),function(){"use strict";window.wpApiSettings||{};wp.api.WPApiBaseCollection=Backbone.Collection.extend({initialize:function(a,b){this.state={data:{},currentPage:null,totalPages:null,totalObjects:null},_.isUndefined(b)?this.parent="":this.parent=b.parent},sync:function(a,b,c){var d,e,f=this;return c=c||{},_.isFunction(b.nonce)&&!_.isEmpty(b.nonce())&&(d=c.beforeSend,c.beforeSend=function(a){if(a.setRequestHeader("X-WP-Nonce",b.nonce()),d)return d.apply(f,arguments)},c.complete=function(a){var c=a.getResponseHeader("X-WP-Nonce");c&&_.isFunction(b.nonce)&&b.nonce()!==c&&b.endpointModel.set("nonce",c)}),"read"===a&&(c.data?(f.state.data=_.clone(c.data),delete f.state.data.page):f.state.data=c.data={},"undefined"==typeof c.data.page?(f.state.currentPage=null,f.state.totalPages=null,f.state.totalObjects=null):f.state.currentPage=c.data.page-1,e=c.success,c.success=function(a,b,c){if(_.isUndefined(c)||(f.state.totalPages=parseInt(c.getResponseHeader("x-wp-totalpages"),10),f.state.totalObjects=parseInt(c.getResponseHeader("x-wp-total"),10)),null===f.state.currentPage?f.state.currentPage=1:f.state.currentPage++,e)return e.apply(this,arguments)}),Backbone.sync(a,b,c)},more:function(a){if(a=a||{},a.data=a.data||{},_.extend(a.data,this.state.data),"undefined"==typeof a.data.page){if(!this.hasMore())return!1;null===this.state.currentPage||this.state.currentPage<=1?a.data.page=2:a.data.page=this.state.currentPage+1}return this.fetch(a)},hasMore:function(){return null===this.state.totalPages||null===this.state.totalObjects||null===this.state.currentPage?null:this.state.currentPage1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
function vc_js(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_googleplus(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_google_fonts(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{index=$tabs.tabs("option","active");var length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?length<=index+1?0:index+1:index-1<0?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);getColumnsCount(jQuery(this));jQuery(this).hasClass("columns_count_1")&&900;var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){screen_size!=(screen_size=getSizeName())&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1 ')}),vc_initVideoBackgrounds(),callSkrollInit=!1,window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSize,skrollrStart,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),($parallaxElement=$("
';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+='