1/* ------------------------------------------------------------------------ 2 * News Box - News Box - jQuery contents slider and viewer 3 * 4 * @version: 1.232 5 * @requires: jQuery v1.5 or later (v1.7 to use the lightbox) 6 * @author: Luca Montanari (LCweb) (http://projects.lcweb.it) 7------------------------------------------------------------------------- */ 8 9(function(e){var I=function(C,p){var h=e.extend({src:[],theme:"light",layout:"horizontal",height:300,width:"100%",min_news_h:100,min_news_w:150,min_horiz_w:400,horiz_img_h:!1,vert_img_w:!1,read_more_txt:"..",boxed_news:!1,buttons_position:"bottom",btn_over_img:!1,max_news:6,news_per_time:3,cache_news:!1,social_share:!0,hide_elements:"",show_src_logo:!1,script_basepath:!1,touchswipe:!0,lightbox:!0,fb_share_fix:"http://www.lcweb.it/lcis_fb_img_fix.php",title_behavior:"expand",img_behavior:"lightbox", 10date_format:"d mmmm yyyy",elapsed_time:!1,read_more_btn:!1,read_more_btn_txt:"Read more",nav_arrows:!1,autoplay:!1,animation_time:700,slideshow_time:6E3,carousel:!1,expandable_news:!0,scroll_exp_elem:!0,exp_main_img_pos:"inside",manage_exp_images:!0,exp_img_w:"1_2",exp_img_h:225,short_d_names:"Sun Mon Tue Wed Thu Fri Sat".split(" "),full_d_names:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),short_m_names:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),full_m_names:"January February March April May June July August September October November December".split(" "), 11elapsed_names:"ago seconds minute minutes hour hours day days week weeks month months".split(" ")},p),q={lcnb_news_array:[],lcnb_ordered_news:[],lcnb_done_fetches:0,lcnb_news_number:0,lcnb_inline_news_count:0,lcnb_orig_texts:[],lcnb_news_w:0,lcnb_news_h:0,lcnb_news_to_show:0,lcnb_show_offset:0,lcnb_is_playing:!1,lcnb_is_expanded:!1,lcnb_lightbox_ready:!1,lcnb_carousel_obj:!1,lcnb_resizing_timeout:!1,lcnb_event_type:"click",lcnb_wrap_width:0,lcnb_css3_browser:!1},k=e(C);k.data("lcnb_vars",q);k.data("lcnb_settings", 12h);var I=function(){0==h.src.length&&D(k);var a="http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num="+h.max_news+"&callback=?&q=";e.each(h.src,function(c,b){var d="",f="";switch(this.type){case "facebook":f="https://www.facebook.com/feeds/page.php?id="+this.id+"&format=rss20";break;case "twitter":d="undefined"==typeof this.include_retweet||!0===this.include_retweet?"true":"false";f=lcnb_script_basepath+"php_assets/twitter_oauth.php";d={url:"statuses/user_timeline.json?screen_name="+this.id+ 13"&exclude_replies=true&include_rts="+d+"&count="+(h.max_news+2)};break;case "google":-1<this.id.indexOf("/")?(d=this.id.indexOf("?"),-1<d&&(this.id=this.id.substring(0,d)),f=this.id.split("/"),d=f[f.length-2]):d=this.id;f="https://www.googleapis.com/plus/v1/people/"+d+"/activities/public?key=AIzaSyCalvBYOVexkTeFT5aIELfgpTVlyGCIvvA";d={maxResults:h.max_news,prettyprint:!1,fields:"items(actor(image), annotation, object(content, attachments(content,fullImage,image,thumbnails,objectType)), published, url, verb)"}; 14break;case "youtube":f="http://gdata.youtube.com/feeds/api/users/"+this.id+"/uploads?alt=jsonc&v=2&start-index=1&max-results="+(50<h.max_news?50:h.max_news);break;case "pinterest":f=this.url;"/"==f.substr(f.length-1)&&(f=f.slice(0,-1));f+=".rss";break;case "soundcloud":f=this.url;"/"==f.substr(f.length-1)&&(f=f.slice(0,-1));f=f.split("/");f="http://api.soundcloud.com/users/"+f[f.length-1]+"/tracks.json?client_id=4bc0297066dd5e45babd36ce10075160";break;case "tumblr":f=this.url;f="http://api.tumblr.com/v2/blog/"+ 15f.toLowerCase().replace("http://","").replace("https://","").split("/")[0]+"/posts?api_key=pcCK9NCjhSoA0Yv9TGoXI0vH6YzLRiqKPul9iC6OQ6Pr69l2MV&filter=text&limit="+h.max_news;break;default:f=this.url}"twitter"!=this.type&&"google"!=this.type&&"youtube"!=this.type&&"soundcloud"!=this.type&&"tumblr"!=this.type&&(f=a+encodeURIComponent(f));O(c,this.type,f,d,this)})},O=function(a,c,b,d,f){var r="undefined"==typeof h.hide_elements?"":h.hide_elements;"string"==typeof f.hide_elements&&(r=r+","+f.hide_elements.replace("date.", 16""));var l=void 0==f.img?!1:f.img,g="object"==typeof f.max_img_size?f.max_img_size:!1;e.ajax({url:b,data:d,dataType:"twitter"==c?"json":"jsonp",cache:h.cache_news,success:function(d){var b=!1;switch(c){case "twitter":"undefined"!=typeof d.errors&&(b=d.errors);break;case "google":d=d.items;"undefined"!=typeof d.error&&(b=d.error);break;case "youtube":"undefined"!=typeof d.error?b=d.error.message:d=d.data.items;break;case "soundcloud":"undefined"!=typeof d.errors&&(b=d.errors.error_message);break;case "tumblr":200== 17d.meta.status?d=d.response.posts:b=d.response;break;default:200==d.responseStatus?d=d.responseData.feed.entries:b=d.responseDetails}b||"undefined"==typeof d||e.each(d,function(d,b){switch(c){case "facebook":var n=new Date(b.publishedDate),k=w(b.content,l,g,"","img"),m=e("<div/>").html(b.author.replace("&","&")).text(),s=k.img;s?-1==s.indexOf("fbcdn.net")&&-1==s.indexOf("akamaihd.net")||-1!=s.indexOf("?")||(s=s.replace("_s.","_o.")):s="";n={time:n.getTime(),date:b.publishedDate,title:m,txt:k.txt.replace(/ <br> /g, 18"<br/>").replace("/profile.php","https://www.facebook.com/profile.php"),link:b.link,s_link:b.link,img:s};break;case "twitter":m=A(b.created_at);n=new Date(m);k=l?l:b.user.profile_image_url;g&&(k=v(k,g.w,g.h));var p=/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,n={time:n.getTime(),date:m,title:"",txt:b.text.replace(p,'<a href="$1">$1</a>'),link:b.user.url,s_link:"",img:k.replace("_normal",""),user_id:h.src[a].id,tweet_id:b.id_str};break;case "google":m=A(b.published); 19n=new Date(m);
19k=-1!=r.indexOf("image")?"":l||"undefined"==typeof b.object.attachments?"":"album"==b.object.attachments[0].objectType?b.object.attachments[0].thumbnails[0].image.url:"video"==b.object.attachments[0].objectType?b.object.attachments[0].image.url:"undefined"==typeof b.object.attachments[0].fullImage.url||""==b.object.attachments[0].fullImage.url?b.actor.image.url.replace("?sz=50",""):b.object.attachments[0].fullImage.url;g&&(k=v(k,g.w,g.h));s="share"==b.verb?b.annotation:b.object.content; 20n={time:n.getTime(),date:m,title:"",txt:s,link:b.url,s_link:b.url,img:k};break;case "youtube":m=A(b.uploaded);n=new Date(m);k=l?l:b.thumbnail.hqDefault;g&&(k=v(k,g.w,g.h));p=/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;s=-1!=navigator.appVersion.indexOf("MSIE 8.")?"undefined"==typeof b.player.mobile?"":b.player.mobile.replace("m.youtube","www.youtube").replace("/details?","/watch?"):"undefined"==typeof b.player["default"]?"":b.player["default"].replace("&feature=youtube_gdata_player", 21"");n={time:n.getTime(),date:m,title:b.title,txt:b.description.replace(/\n/g,"<br/>").replace(p,'<a href="$1">$1</a>'),link:s,s_link:s,img:k};break;case "pinterest":n=new Date(b.publishedDate);k=w(b.content,l,g,"","a:first-child");n={time:n.getTime(),date:b.publishedDate,title:"",txt:k.txt,link:b.link,s_link:b.link,img:k.img.replace("/192x/","/550x/")};break;case "soundcloud":n=new Date(b.created_at);p=/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;m="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/"+ 22b.id+"&auto_play=true&hide_related=true&visual=true";k=b.artwork_url?b.artwork_url.replace("-large.","-t500x500."):b.user.avatar_url?b.user.avatar_url.replace("-large.","-t500x500."):"";n={time:n.getTime(),date:b.created_at,title:b.title,txt:b.description.replace(/\n/g,"<br/>").replace(p,'<a href="$1">$1</a>'),link:m,s_link:b.permalink_url,img:k};break;case "tumblr":"photo"!=b.type&&"link"!=b.type&&"text"!=b.type?n={}:("photo"==b.type?(m="",s=b.short_url,k=w(e.trim(b.caption),l,g,h.src[a].strip_tags, 23h.src[a].remove_tags),n=k.txt,k=l?l:b.photos[0].original_size.url,g&&(k=v(k,g.w,g.h))):("link"==b.type?(m=b.title,s=b.url,k=w(e.trim(b.description),l,g,h.src[a].strip_tags,h.src[a].remove_tags)):(m=b.title,s=b.short_url,k=w(e.trim(b.body),l,g,h.src[a].strip_tags,h.src[a].remove_tags)),n=k.txt,k=k.img),p=1E3*b.timestamp,n={time:p,date:new Date(p),title:m,txt:n,link:s,s_link:"link"==b.type?b.short_url:s,img:k});break;default:m=A(b.publishedDate),n=new Date(m),k=w(e.trim(b.content),l,g,h.src[a].strip_tags, 24h.src[a].remove_tags),n={time:n.getTime(),date:m,title:b.title,txt:k.txt,link:b.link,s_link:b.link,img:k.img}}-1!=r.indexOf("title")&&(n.title="");-1!=r.indexOf("link")&&(n.link="");-1!=r.indexOf("image")&&(n.img="");n.type=c;n.link_target=f.link_target;n.author="undefined"==typeof f.author?!1:f.author;k="undefined"!=typeof f.exp_img_manag?f.exp_img_manag:{};n.exp_img_pos="undefined"!=typeof k.pos?k.pos:!1;n.exp_img_w="undefined"!=typeof k.w?k.w:!1;n.exp_img_h="undefined"!=typeof k.h?k.h:!1;"undefined"!= 25typeof n.txt&&""!=n.txt&&q.lcnb_news_array.push(n);if(q.lcnb_news_array.length-q.lcnb_inline_news_count==h.max_news*(q.lcnb_done_fetches+1))return!1});q.lcnb_done_fetches+=1;q.lcnb_done_fetches==h.src.length&&D(k)}})},w=function(a,c,b,d,f){-1!=a.indexOf("<img")&&(a="undefined"!=typeof f&&-1!==f.indexOf("img")&&-1===f.indexOf("img:first")?v(a,b,!0):v(a,b));var r=e("<div />");r.append('<div id="lcnb_util" style="display: none !important;">'+a.replace(/\n/g,"<br/>")+"</div>");a=!c&&0<r.find("#lcnb_util img").size()? 26r.find("#lcnb_util img:first-child").attr("fake-src"):b?v(c,b.w,b.h):c;"undefined"!=typeof f&&0<e.trim(f).length&&(f=f.split(","),e.each(f,function(b,a){r.find("#lcnb_util "+a).remove()}));"all"==d?r.find("#lcnb_util *").not("p, br").each(function(){var b=e(this).contents();e(this).replaceWith(b)}):"undefined"!=typeof d&&0<e.trim(d).length&&(d=d.split(","),e.each(d,function(b,a){r.find("#lcnb_util "+a).each(function(){var b=e(this).contents();e(this).replaceWith(b)})}));r.find("#lcnb_util *").removeAttr("style"); 27r.find("*:empty").not("br, img").remove();for(x=0;2>x;x++)r.find(".lcnb_txt >
27 *:first").is("br")&&r.find(".lcnb_txt > *:first").remove(),r.find("br").each(function(){e(this).next().is("br")&&e(this).next().remove();e(this).prev().is("p")&&e(this).remove()});d=e.trim(r.find("#lcnb_util").html());return{txt:e.trim(d),img:a}},v=function(a,c,b){if(!a)return a;e.makeArray();var d=e("<div />");d.append('<div id="lcnb_fake_util" style="display: none !important;">'+a+"</div>");d.find("img").wrap("<span></span>"); 28a=d.find("#lcnb_fake_util").html();d.html('<div id="lcnb_fake_util" style="display: none !important;">'+a.replace(/<img/g,"<fake-img")+"</div>");d.find("fake-img").each(function(){var b=e(this).attr("src");-1!=b.indexOf("safe_image.php")&&(b=B(b,"url"));e('<img fake-src="'+b+'" />').insertBefore(this);e(this).remove()});"undefined"==typeof b&&c&&d.find("img").each(function(){var b=e(this).attr("fake-src"),b=lcnb_script_basepath+"php_assets/img_size_check.php?src="+encodeURIComponent(b)+"&max_w="+ 29c.w+"&max_h="+c.h;e(this).attr("fake-src",b)});return d.find("#lcnb_fake_util").html()},P=function(a,c,b){return parseInt(c)&&parseInt(b)?lcnb_script_basepath+"php_assets/img_size_check.php?src="+encodeURIComponent(a)+"&max_w="+c+"&max_h="+b:a},D=function(a){var c=a.data("lcnb_vars");if(c.lcnb_ordered_news.length==h.max_news||0==c.lcnb_news_array.length)return c.lcnb_news_number=c.lcnb_ordered_news.length,Q(),!0;var b=0,d=0;e.each(c.lcnb_news_array,function(a,c){c.time>d&&(b=a,d=c.time)});c.lcnb_ordered_news.push(c.lcnb_news_array[b]); 30c.lcnb_news_array.splice(b,1);D(a)},Q=function(){h.news_per_time>q.lcnb_news_number&&(h.news_per_time=q.lcnb_news_number);e.each(q.lcnb_ordered_news,function(a,c){var b=!0==h.social_share?R(c.type,c):"";if("undefined"!=typeof c.link&&""!=c.link)var d="soundcloud"==c.type?c.s_link:c.link,f='<div class="lcnb_link"><a href="'+d+'" target="_blank"></a></div>';else f="","link"==h.title_behavior&&(h.title_behavior="none"),"link"==h.img_behavior&&(h.img_behavior="none");if(-1==h.hide_elements.indexOf("date")){var e= 31'<div class="lcnb_btn_time" '+(h.read_more_btn?'style="display: none;"':"")+'><time class="lcnb_date" pubdate="pubdate" datetime="'+c.date+'">',l=new Date(c.date);if(h.elapsed_time){var g=Math.ceil(((new Date).getTime()-l.getTime())/1E3);60>g?g=g+" "+h.elapsed_names[1]:60<=g&&120>g?g="1 "+h.elapsed_names[2]:3600>g?(g=Math.floor(g/60),g=g+" "+h.elapsed_names[3]):3600<=g&&7200>g?g="1 "+h.elapsed_names[4]:86400>g?(g=Math.floor(g/60/60),g=g+" "+h.elapsed_names[5]):86400<=g&&172800>g?g="1 "+h.elapsed_names[6]: 32604800>g?(g=Math.floor(g/60/60/24),g=g+" "+h.elapsed_names[7]):604800<=g&&1209600>g?g="1 "+h.elapsed_names[8]:2592E3>g?(g=Math.floor(g/60/60/24/7),g=g+" "+h.elapsed_names[9]):2592E3<=g&&5184E3>g?g="1 "+h.elapsed_names[10]:(g=Math.floor(g/60/60/24/30),g=g+" "+h.elapsed_names[11]);g=g+" "+h.elapsed_names[0]}else{var g=h.date_format,n="";-1<g.indexOf("SS")&&(n=10>l.getSeconds()?"0":"",g=g.replace("SS",n+l.getSeconds()));-1<g.indexOf("MM")&&(n=10>l.getMinutes()?"0":"",g=g.replace("MM",n+l.getMinutes())); 33-1<g.indexOf("HHH")?(n=12<=l.getHours()?"PM":"AM",g=g.replace("HHH",l.getHours()%12+" "+n)):-1<g.indexOf("HH")?(n=10>l.getHours()?"0":"",g=g.replace("HH",n+l.getHours())):-1<g.indexOf("H")&&(g=g.replace("H",l.getHours()));-1<g.indexOf("dddd")?g=g.replace("dddd",h.full_d_names[l.getDay()]):-1<g.indexOf("ddd")?g=g.replace("ddd",h.short_d_names[l.getDay()]):-1<g.indexOf("dd")?(n=10>l.getDate()?"0":"",g=g.replace("dd",n+l.getDate())):-1<g.indexOf("d")&&(g=g=g.replace("d",l.getDate()));-1<g.indexOf("mmmm")? 34g=g.replace("mmmm",h.full_m_names[l.getMonth()]):-1<g.indexOf("mmm")?g=g.replace("mmm",h.short_m_names[l.getMonth()]):-1<g.indexOf("mm")?(n=10>l.getMonth()+1?"0":"",g=g.replace("mm",n+(l.getMonth()+1))):-1<g.indexOf("m")&&(g=g.replace("m",l.getMonth()+1));-1<g.indexOf("yyyy")?g=g.replace("yyyy",l.getFullYear()):-1<g.indexOf("yy")&&(l=l.getFullYear().toString(),g=g.replace("yy",l.substr(2)))}n=e+g+"</time></div>"}else n="";if(h.read_more_btn&&"undefined"!=typeof c.link&&""!=c.link)var m='<div class="lcnb_btn_time lcnb_rm_btn_wrap"><a class="lcnb_rm_btn" href="'+ 35d+'">'+h.read_more_btn_txt+"</a></div>",f="";else m="";if(!0==h.expandable_news)var p='<div class="lcnb_btn_expand noSwipe"></div>';else p="","expand"==h.title_behavior&&(h.title_behavior="none"),"expand"==h.img_behavior&&(h.img_behavior="none");l=g=e="";if("side"==h.buttons_position&&"vertical"==h.layout&&h.boxed_news){if(!0==h.social_share||f||-1==h.hide_elements.indexOf("date"))e='<div class="lcnb_buttons noSwipe" style="position: '+(!0!=h.btn_over_img||"undefined"==typeof c.img||""==c.img?"relative": 36"absolute")+';">'+p+f+b+"</div>";if(-1==h.hide_elements.indexOf("date")||m)l='<div class="lcnb_btm_bar">'+n+m+"</div>"}else if("top"==h.buttons_position){if(!0==h.social_share||f||-1==h.hide_elements.indexOf("date")||m)g='<div class="lcnb_top_bar">'+p+b+f+n+m+"</div>"}else if(!0==h.social_share||f||-1==h.hide_elements.indexOf("date")||m)l='<div class="lcnb_btm_bar">'+p+b+f+n+m+"</div>";f=""==c.title||"facebook"==c.type?"":"link"==h.title_behavior?'<h3 class="lcnb_title"><a href="'+d+'" class="lcnb_linked_title">'+ 37c.title+"</a></h3>":'<h3 class="lcnb_title '+("expand"==h.title_behavior?"lcnb_expand_trig noSwipe":"")+'">'+c.title+"</h3>";b="undefined"==typeof c.author||""==c.author?"":'<span class="lcnb_author">'+c.author+"</span> ";h.lightbox&&"none"!=h.img_behavior?(n="youtube"==c.type||"soundcloud"==c.type?"lcnb_video_lb":"lcnb_img_lb","inline"==c.type&&"undefined"!=typeof c.video&&(n="lcnb_video_lb"),"expand"==h.img_behavior&&h.expandable_news&&(n+=" lcnb_expand_trig"),"link"==h.img_behavior&&(n+=" lcnb_linked_img"),
38d=(m="youtube"==c.type?c.s_link:"soundcloud"==c.type?c.link:"inline"==c.type&&"undefined"!=typeof c.video?c.video:B(c.img,"src"))?'<div class="'+n+' noSwipe" data-mfp-src="'+m+'"><div class="lcnb_lb_icon">'+("link"==h.img_behavior?'<a href="'+d+'"></a>':"")+'</div><div class="lcnb_lb_overlay"></div></div>':""):d="";d="undefined"==typeof c.img||""==c.img?"":'<div class="lcnb_img"><div><img src="'+c.img+'"/></div>'+d+"</div>";f='<section class="lcnb_contents"><div><div class="lcnb_contents_inner">'+ 39f+' <div class="lcnb_txt">'+b+c.txt+"</div></div></div></section>";n="";c.exp_img_pos&&(n+=' lcnb_exp_img_pos="'+c.exp_img_pos+'"');c.exp_img_w&&(n+=' lcnb_exp_img_w="'+c.exp_img_w+'"');c.exp_img_h&&(n+=' lcnb_exp_img_h="'+c.exp_img_h+'"');d='<article class="lcnb_news lcnb_type_'+c.type+'" style="opacity: 0; filter: alpha(opacity=0); top: 30px;" rel="'+a+'" '+n+'><div class="lcnb_news_inner">'+e+d+g+f+l+"</div></article>";k.find(".lcnb_inner").append(d);q.lcnb_orig_texts[a]=b+c.txt;"undefined"!=typeof c.link_target&& 40k.find(".lcnb_news:last-child a").attr("target",c.link_target);a==q.lcnb_news_number-1&&(z(),E(),S(),J(),h.touchswipe&&F())})},S=function(){k.find(".lcnb_wrap").removeClass("lcnb_loading");var a=k.data("lcnb_vars");k.find(".lcnb_news").each(function(c,b){c+1>a.lcnb_news_to_show&&(c=0);var d=e(this);setTimeout(function(){d.animate({opacity:1,top:0},550)},300*c)});500>e(window).width()&&setTimeout(function(){z()},200);h.autoplay&&!1===a.lcnb_is_playing&&T(k)},A=function(a){if(-1!=navigator.appVersion.indexOf("MSIE")){if(-1!= 41a.indexOf("Z")||-1!=a.indexOf("T")){var c=/(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/,b=new Date;a.toString().match(new RegExp(c))?(a=a.match(new RegExp(c)),c=0,b.setUTCDate(1),b.setUTCFullYear(parseInt(a[1],10)),b.setUTCMonth(parseInt(a[3],10)-1),b.setUTCDate(parseInt(a[5],10)),b.setUTCHours(parseInt(a[7],10)),b.setUTCMinutes(parseInt(a[9],10)),b.setUTCSeconds(parseInt(a[11],10)),a[12]?b.setUTCMilliseconds(1E3*parseFloat(a[12])):b.setUTCMilliseconds(0), 42"Z"!=a[13]&&(c=60*a[15]+parseInt(a[17],10),c*="-"==a[14]?-1:1,b.setTime(b.getTime()-6E4*c))):b.setTime(Date.parse(a));return b}if(isNaN(new Date(a)))return b=a.split(" "),new Date(Date.parse(b[1]+" "+b[2]+", "+b[5]+" "+b[3]+" UTC"))}return a},z=function(a){var c=k.data("lcnb_settings"),b=k.data("lcnb_vars"),d=k.find(".lcnb_wrap"),f=d.find(".lcnb_news"),r="undefined"==typeof a?c.news_per_time:a;k.find(".lcnb_news").size()<=r?k.find(".lcnb_wrap").removeClass("lcnb_has_cmd"):0<k.find(".lcnb_cmd").size()&& 43k.find(".lcnb_wrap").addClass("lcnb_has_cmd");var l=d.hasClass("lcnb_uniblock")?d.hasClass("lcnb_horizontal")?-1*m(d.find(".lcnb_news").last().css("border-left-width")):-1*m(d.find(".lcnb_news").last().css("border-top-width")):0;d.css("width","");if(d.hasClass("lcnb_uniblock")){a=d.width()-m(d.css("border-left-width"))-m(d.css("border-right-width"))+l;var g=c.height-m(d.css("border-top-width"))-m(d.css("border-bottom-width"))+l}else a=d.width(),g=c.height;if(d.hasClass("lcnb_horizontal")){a=a/r-m(f.css("margin-left"))- 44m(f.css("margin-right"));d.hasClass("lcnb_uniblock")&&(a=a+m(f.css("border-right-width"))-m(f.css("border-left-width"))-l);if(a<c.min_news_w&&1<r)return z(r-1),!1;a=Math.floor(a);var h=d.height()-m(f.css("margin-top"))-m(f.css("margin-bottom")),g=r*(a+m(f.css("margin-left"))+m(f.css("margin-right")));d.hasClass("lcnb_uniblock")&&(g=g+r*l-l);l=d.width()+m(d.css("border-top-width"))+m(d.css("border-bottom-width"));l<g&&d.css("margin-right",m(d.css("margin-right"))-1);l>g&&d.css("margin-right",m(d.css("margin-right"))+ 451);b.lcnb_news_w=a;b.lcnb_news_h=h;b.lcnb_news_to_show=r;d.hasClass("lcnb_uniblock")&&(b=d.width()-(a*r-(r-1)*m(f.css("border-left-width"))),0!=b&&d.css("width",d.width()-b))}else{g=g/r-m(f.css("margin-top"))-m(f.css("margin-bottom"));d.hasClass("lcnb_uniblock")&&(g=g+m(f.css("border-bottom-width"))-m(f.css("border-top-width"))-l);if(g<c.min_news_h&&1<r)return z(r-1),!1;h=Math.round(g);a=a-m(f.css("margin-left"))-m(f.css("margin-right"));d.hasClass("lcnb_uniblock")&&(a-=l);g=r*(h+m(f.css("margin-top"))+ 46m(f.css("margin-bottom")));d.hasClass("lcnb_uniblock")&&(g=g+r*l-l);l=c.height+m(d.css("border-top-width"))+m(d.css("border-bottom-width"));b.lcnb_is_expanded||(l<g?d.css("height",g):d.css("height",c.height));b.lcnb_news_w=100;b.lcnb_news_h=h;b.lcnb_news_to_show=r}d.hasClass("lcnb_horizontal")?(f.find(".lcnb_contents").css("max-height","none"),f.find(".lcnb_contents").children().css("height","auto")):(b=h-(f.outerHeight(!0)-f.height()),f.find(".lcnb_contents").css("max-height",b),b=b-f.find(".lcnb_btm_bar, .lcnb_top_bar").outerHeight(!0)- 47(f.find(".lcnb_contents").outerHeight(!0)-f.find(".lcnb_contents").height()),0<f.find(".lcnb_btm_bar, .lcnb_top_bar").size()&&(b-=f.find(".lcnb_btm_bar, .lcnb_top_bar").outerHeight(!0)),f.find(".lcnb_contents").children().css("height",b));f.find(".lcnb_img, .lcnb_img_lb, .lcnb_video_lb").removeAttr("style");f.find(".lcnb_img").children().removeAttr("style");d.hasClass("lcnb_horizontal")?(b=c.horiz_img_h?c.horiz_img_h:"",f.find(".lcnb_img, .lcnb_img_lb, .lcnb_video_lb").css("width","100%").css("max-width", 48"none").css("height",b),f.find(".lcnb_img").children().css("max-height","none").css("width","100%").css("height",b)):(b=h-(f.find(".lcnb_img").outerHeight(!0)-f.find(".lcnb_img").height())-m(f.css("border-top-width"))-m(f.css("border-bottom-width")),f.find(".lcnb_img").outerHeight(!0),f.find(".lcnb_img").height(),r=m(f.find(".lcnb_img").css("border-left-width")),c.vert_img_w?(f.find(".lcnb_img").css("width",c.vert_img_w).css("max-width",c.vert_img_w),f.find(".lcnb_img_lb, .lcnb_video_lb").css("min-width", 49c.vert_img_w-r).css("max-width",c.vert_img_w-r)):(f.find(".lcnb_img").css("width","").css("max-width",""),f.find(".lcnb_img_lb, .lcnb_video_lb").css("max-width",m(f.find(".lcnb_img").css("max-width"))-r)),130>f.find(".lcnb_contents").width()&&(f.find(".lcnb_img").css("width",85).css("max-width",85),f.find(".lcnb_img_lb, .lcnb_video_lb").css("min-width",85-r).css("max-width",85-r)),f.find(".lcnb_img").css("height","100%").css("max-height","none"),f.find(".lcnb_img").children().css("max-height",b).css("width", 50f.find(".lcnb_img").width()));0<f.find(".lcnb_buttons > div").size()&&(f.find(".lcnb_buttons").each(function(){var b=e(this).children("div").size(),a=h-m(f.css("border-top-width"))-m(f.css("border-bottom-width"));"absolute"!=e(this).css("position")&&(e(this).css("height",a),e(this).css("max-height",a));e(this).children("div").css("height",Math.floor(100/b)+"%");3==b&&e(this).children("div").last().css("height","34%")}),c.btn_over_img||(c=m(f.find(".lcnb_buttons").css("max-width")),f.find(".lcnb_img_lb, .lcnb_video_lb").css("left",
51c)));f.css("width",a).css("height",h);0<f.find(".lcnb_btm_bar, .lcnb_top_bar").size()&&(f.find(".lcnb_btm_bar, .lcnb_top_bar").removeClass("lcnb_narrow_txt"),d.hasClass("lcnb_horizontal")?(f.find(".lcnb_btm_bar, .lcnb_top_bar").css("max-width","none"),e(this).find(".lcnb_contents_inner").removeAttr("style")):f.find(".lcnb_contents").each(function(){var b=e(this).parents(".lcnb_news").find(".lcnb_btm_bar, .lcnb_top_bar"),a=e(this).outerWidth(!1);b.css("max-width",a);0<e(this).parents(".lcnb_news").find(".lcnb_img").size()&& 52(28<b.height()?(b.addClass("lcnb_narrow_txt"),0<f.find(".lcnb_buttons > div").size()?(a=f.width()-m(f.find(".lcnb_buttons").css("max-width")),b.css("max-width",a)):b.css("max-width","none")):(a=e(this).outerWidth(!1),b.css("max-width",a)));b.hasClass("lcnb_top_bar")?e(this).find(".lcnb_contents_inner").css("padding-top",b.outerHeight(!1)):e(this).find(".lcnb_contents_inner").removeAttr("style")}));return!0},E=function(){k.find(".lcnb_news").each(function(a){if(0<e(this).find(".lcnb_img").size()){var c= 53e(this),b=e(this).find(".lcnb_img"),d=b.find("img");e("<img/>").bind("load",function(){var a=b.width(),e=b.height(),l=this.width,g=this.height;d.removeAttr("style");if(g>e&&l>a){var k=Math.max(a/l,e/g),l=Math.ceil(l*k),g=Math.ceil(g*k),e=-1*Math.floor((g-e)/2),a=-1*Math.floor((l-a)/2);0<e&&(e=0);0<a&&(a=0);d.css("width",l).css("height",g).css("margin-left",a).css("margin-top",e)}else l>=a&&g<e&&g+100>=e||g>e&&l<a&&l+100>=a||g<e&&l<a&&l+100>=a&&g+100>=e?(k=Math.max(a/l,e/g),l=Math.ceil(l*k),g=Math.ceil(g* 54k),e=-1*Math.floor((g-e)/2),a=-1*Math.floor((l-a)/2),0<a&&(a=0),d.css("width",l).css("height",g).css("margin-left",a).css("margin-top",e)):l>a&&g<=e?d.css("max-width","100%").css("max-height","").css("margin-left",0).css("margin-top",0):g>e&&l<=a?d.css("max-height","100%").css("max-width","").css("margin-left",0).css("margin-top",0):(a=Math.floor((e-g)/2),d.css("width","auto").css("height","auto").css("margin-top",a),h.lightbox&&0==c.find(".lcnb_video_lb").size()&&b.addClass("lcnb_no_lightbox")); 55b.hasClass("lcnb_shown_img")||b.addClass("lcnb_shown_img")}).attr("src",d.attr("src"))}})},J=function(){var a=k.find(".lcnb_wrap"),c=k.data("lcnb_settings"),b=k.data("lcnb_vars");k.find(".lcnb_news").each(function(){var d=e(this),f=e(this).attr("rel");d.find(".lcnb_txt *:empty").not("br, img").remove();var h=d.find(".lcnb_txt");"undefined"==typeof b.lcnb_orig_texts[f]&&(b.lcnb_orig_texts[f]=h.html());d.find(".lcnb_txt").html(b.lcnb_orig_texts[f]).removeClass("lcnb_shorten");if(a.hasClass("lcnb_horizontal")){f= 56d.outerHeight(!1)-(m(d.find(".lcnb_contents").css("padding-top"))+m(d.find(".lcnb_contents").css("padding-bottom")));0<d.find(".lcnb_img").size()&&(f-=d.find(".lcnb_img").outerHeight(!0));0<d.find(".lcnb_btm_bar, .lcnb_top_bar").size()&&(f-=d.find(".lcnb_btm_bar, .lcnb_top_bar").outerHeight(!1));var l=d.find(".lcnb_contents").height()}else f=parseFloat(d.find(".lcnb_contents").height()),l=parseFloat(d.find(".lcnb_contents_inner").outerHeight(!1)),0<d.find(".lcnb_btm_bar, .lcnb_top_bar").size()&&(f-= 57d.find(".lcnb_btm_bar, .lcnb_top_bar").outerHeight(!1));if(f<l){if(0<d.find(".lcnb_txt .lcnb_author").size()){var g=d.find(".lcnb_txt .lcnb_author").clone().wrap("<div>").parent().html();d.find(".lcnb_txt .lcnb_author").remove()}else g="";d.find(".lcnb_txt *").lcnb_remove_all_attr();d.find(".lcnb_txt *").not("a, p, br").each(function(){var a=e(this).contents();e(this).replaceWith(a)});for(var k=d.find(".lcnb_txt").html().split(" "),s="",p="",q=l=0;l<f&&q<k.length;)if("undefined"!=typeof k[q]){p=s; 58s=s+k[q]+" ";d.find(".lcnb_txt").html(g+s+'<span class="lcnb_read_more">'+c.read_more_txt+"</span>");for(x=0;2>x;x++)d.find(".lcnb_txt > *:first").is("br")&&d.find(".lcnb_txt > *:first").remove(),d.find(".lcnb_txt br").each(function(){e(this).next().is("br")&&e(this).next().remove();e(this).prev().is("p")&&e(this).remove()});for(;-1!=d.find(".lcnb_txt").html().indexOf('<br> <span class="lcnb_read_more">');)d.find(".lcnb_read_more").prev().remove();l=a.hasClass("lcnb_horizontal")?d.find(".lcnb_contents").height(): 59d.find(".lcnb_contents_inner").height();q++}var t=["a","p"];e.each(t,function(a,b){var f=p.match("<"+b,"g"),h=p.match("</"+b,"g");null!=f&&(null!=f&&null==h||f.length>h.length)&&(p=p+"</"+b+">");
59if(a==t.length-1){d.find(".lcnb_txt").html(g+p+'<span class="lcnb_read_more">'+c.read_more_txt+"</span>");d.find(".lcnb_txt *:empty").not("br").remove();for(x=0;2>x;x++)d.find(".lcnb_txt > *:first").is("br")&&d.find(".lcnb_txt > *:first").remove(),d.find(".lcnb_txt br").each(function(){e(this).next().is("br")&& 60e(this).next().remove();e(this).prev().is("p")&&e(this).remove()});for(;-1!=d.find(".lcnb_txt").html().indexOf('<br> <span class="lcnb_read_more">');)d.find(".lcnb_read_more").prev().remove()}});d.find(".lcnb_txt p").last().css("display","inline");h.addClass("lcnb_shorten")}})};e.fn.lcnb_remove_all_attr=function(){return this.each(function(){var a=e.map(this.attributes,function(a){return a.name}),c=e(this);e.each(a,function(a,d){"href"!=d&&"target"!=d&&c.removeAttr(d)})})};var K=function(){var a= 61k.data("lcnb_settings"),c=k.find(".lcnb_wrap"),b=a.min_horiz_w<a.min_news_w?a.min_news_w:a.min_horiz_w;c.width()<b?c.hasClass("lcnb_horizontal")&&(c.removeClass("lcnb_horizontal").addClass("lcnb_vertical"),q.lcnb_news_to_show=a.news_per_time,a.touchswipe&&F(!0)):"horizontal"!=a.layout||c.hasClass("lcnb_horizontal")||(c.removeClass("lcnb_vertical").addClass("lcnb_horizontal"),q.lcnb_news_to_show=a.news_per_time,a.touchswipe&&F(!0));return!0},L=function(a){var c=a.data("lcnb_vars"),b=e(".lcnb_wrap", 62a);a=e(".lcnb_news",a);b.hasClass("lcnb_horizontal")?(c=c.lcnb_news_w+m(a.css("margin-left"))+m(a.css("margin-right")),b.hasClass("lcnb_uniblock")&&(c-=m(b.find(".lcnb_news").css("border-left-width")))):(c=c.lcnb_news_h+m(a.css("margin-top"))+m(a.css("margin-bottom")),b.hasClass("lcnb_uniblock")&&(c-=m(b.find(".lcnb_news").css("border-top-width"))));return c};lcnb_news_slide=function(a,c){var b=a.data("lcnb_vars"),d=a.data("lcnb_settings"),f=e(".lcnb_wrap",a);if(b.lcnb_news_to_show<b.lcnb_news_number){if(d.carousel&& 63b.lcnb_news_to_show<b.lcnb_news_number){!1===b.lcnb_carousel_obj&&(b.lcnb_carousel_obj=[],f.find(".lcnb_news").each(function(a,c){b.lcnb_carousel_obj[a]=e(this).clone().wrap("<div>").parent().html()}));if("next"==c){var h=m(f.find(".lcnb_news").not(".lcnb_cloned_n").first().attr("rel"));f.find(".lcnb_news").not(".lcnb_cloned_n").first().addClass("lcnb_cloned_n");0<f.find('.lcnb_cloned_p[rel="'+h+'"]').size()?f.find('.lcnb_news[rel="'+h+'"]').not(".lcnb_cloned_n").first().removeClass("lcnb_cloned_p"): 64f.find(".lcnb_inner").append(b.lcnb_carousel_obj[h])}else if(h=m(f.find(".lcnb_news").not(".lcnb_cloned_p").last().attr("rel")),f.find(".lcnb_news").not(".lcnb_cloned_p").last().addClass("lcnb_cloned_p"),0<f.find('.lcnb_cloned_n[rel="'+h+'"]').size()?f.find('.lcnb_cloned_n[rel="'+h+'"]').last().removeClass("lcnb_cloned_n"):f.find(".lcnb_inner").prepend(b.lcnb_carousel_obj[h]),0==b.lcnb_show_offset){var l=L(a),h=e(".lcnb_wrap",a).hasClass("lcnb_horizontal")?"left":"top",l=e(".lcnb_inner",a).lcnb_get_pos(h)- 65l;e(".lcnb_inner",a).lcnb_set_pos(h,l)}f.find(".lcnb_news").lcnb_clone_fix(b)}b.lcnb_show_offset="next"==c?b.lcnb_news_to_show+b.lcnb_show_offset<b.lcnb_news_number||d.carousel?b.lcnb_show_offset+1:0:d.carousel?0+f.find(".lcnb_cloned_n").size():0>=b.lcnb_show_offset?0:b.lcnb_show_offset-1;b.lcnb_is_expanded&&(h=e(".lcnb_inner_wrapper",a),l="next"==c?h.find(".expanded").next(".lcnb_news"):h.find(".expanded").prev(".lcnb_news"),M(h,l,!0));d.carousel||U(a);G(a);d.carousel&&b.lcnb_news_to_show<b.lcnb_news_number&& 66("undefined"!=typeof carousel_timeout&&clearTimeout(carousel_timeout),carousel_timeout=setTimeout(function(){f.find(".lcnb_cloned_n, .lcnb_cloned_p").remove();b.lcnb_show_offset=0;G(a,!0)},d.animation_time+30))}};var G=function(a,c){var b=a.data("lcnb_vars"),d=a.data("lcnb_settings"),f=e(".lcnb_wrap",a);e(".lcnb_news",a);var h=L(a),l=Math.ceil(h*b.lcnb_show_offset);0!=l&&(l*=-1);if(!d.carousel){if(f.hasClass("lcnb_vertical")&&0==k.find(".lcnb_inner").lcnb_get_pos("top")){var g=h*(b.lcnb_news_number- 67b.lcnb_news_to_show)*-1;l<g&&(l=g)}f.hasClass("lcnb_horizontal")&&0==k.find(".lcnb_inner").lcnb_get_pos("left")&&(g=h*(b.lcnb_news_number-b.lcnb_news_to_show)*-1,l<g&&(l=g))}b=0==d.slideshow_time&&b.lcnb_is_playing?"linear":"swing";d="undefined"!=typeof c?0:d.animation_time;f.hasClass("lcnb_horizontal")?e(".lcnb_inner",a).lcnb_animate_pos("left",l,d,b):e(".lcnb_inner",a).lcnb_animate_pos("top",l,d,b)},U=function(a){var c=a.data("lcnb_vars");c.lcnb_news_to_show>=c.lcnb_news_number?(e(".lcnb_next", 68a).addClass("lcnb_disabled"),e(".lcnb_prev",a).addClass("lcnb_disabled")):(0<c.lcnb_show_offset?e(".lcnb_prev",a).removeClass("lcnb_disabled"):e(".lcnb_prev",a).addClass("lcnb_disabled"),c.lcnb_news_to_show+c.lcnb_show_offset<c.lcnb_news_number?e(".lcnb_next",a).removeClass("lcnb_disabled"):e(".lcnb_next",a).addClass("lcnb_disabled"))};e.fn.lcnb_clone_fix=function(a){this.css("opacity",1).css("filter","alpha(opacity=100)");this.each(function(){var a=0==m(e(this).find(".lcnb_img img").css("opacity"))? 690:1;e(this).find(".lcnb_img img").css("opacity",a).css("filter","alpha(opacity="+a+"00)");0==a&&E()});this.lcnb_animate_pos("top",0,0);return this};
69var T=function(a){var c=a.data("lcnb_vars"),b=a.data("lcnb_settings"),d=0==b.slideshow_time?1200:0;0==b.slideshow_time&&setTimeout(function(){c.lcnb_is_playing=!0;lcnb_news_slide(a,"next")},d);setTimeout(function(){c.lcnb_is_playing=setInterval(function(){lcnb_news_slide(a,"next")},b.slideshow_time+b.animation_time)},d+10)},u=function(a,c){if("undefined"== 70typeof c)var b=a.parents(".lcnb_wrap").parent().data("lcnb_vars"),d=a.parents(".lcnb_wrap").parent().data("lcnb_settings");else b=a.data("lcnb_vars"),d=a.data("lcnb_settings");clearInterval(b.lcnb_is_playing);b.lcnb_is_playing=null;if(d.autoplay&&0==d.slideshow_time&&1800<d.animation_time){var e=d.animation_time;d.animation_time=1800;setTimeout(function(){d.animation_time=e},200)}},N=function(a){var c=e("<div/>");c.append('<div id="lcnb_util_2" style="display: none !important;">'+a+"</div>");c.find("*").each(function(){var a= 71e(this).contents();e(this).replaceWith(a)});a=c.text().substring(0,117);return encodeURIComponent(a).replace(/'/g,"\\'")},R=function(a,c){var b=k.data("lcnb_settings"),d=e("<div />").append(c.txt);d.find(".lcnb_author").remove();d.find("*").not("a").each(function(){var a=e(this).contents();e(this).replaceWith(a)});var d=d.html(),f=encodeURIComponent(c.title).replace(/'/g,"\\'"),h=encodeURIComponent(d.substring(0,1E3)).replace(/'/g,"\\'"),l="undefined"==typeof c.s_link||""==c.s_link?encodeURIComponent(location.href): 72encodeURIComponent(c.s_link),b="undefined"==typeof c.img||""==c.img?"":"&picture="+b.fb_share_fix+"?u="+encodeURIComponent(c.img).replace(/'/g,"\\'"),b='<div class="lcnb_social_trigger noSwipe"><ul class="lcnb_social_box">'+('<li class="lcnb_share_fb" title="share on Facebook" onClick="window.open(\'https://www.facebook.com/dialog/feed?app_id=425190344259188&display=popup&name='+f+"&description="+h+" "+b+"&link="+l+"&redirect_uri=http://www.lcweb.it/lcis_redirect.php','sharer','toolbar=0,status=0,width=548,height=325');\" ontouchstart=\"window.open('https://www.facebook.com/dialog/feed?app_id=425190344259188&display=popup&name="+ 73f+"&description="+h+" "+b+"&link="+l+"&redirect_uri=http://www.lcweb.it/lcis_redirect.php','sharer','toolbar=0,status=0,width=548,height=325');\"></li>"),b="twitter"==a?b+('<li class="lcnb_share_tw lcnb_retweet" title="share on Twitter" onClick="window.open(\'https://twitter.com/intent/retweet?tweet_id='+c.tweet_id+"&via="+c.user_id+"','sharer','toolbar=0,status=0,width=548,height=325');\" ontouchstart=\"window.open('https://twitter.com/intent/retweet?tweet_id="+c.tweet_id+"&via="+c.user_id+ 74"','sharer','toolbar=0,status=0,width=548,height=325');\"></li>"):b+('<li class="lcnb_share_tw" title="share on Twitter" onClick="window.open(\'https://twitter.com/share?text='+N(d)+"&url="+l+"','sharer','toolbar=0,status=0,width=548,height=325');\" ontouchstart=\"window.open('https://twitter.com/share?text="+N(d)+"&url="+l+"','sharer','toolbar=0,status=0,width=548,height=325');\"></li>");"undefined"!=typeof c.s_link&&""!=c.s_link&&(b+='<li class="lcnb_share_gg" title="share on Google+" onClick="window.open(\'https://plus.google.com/share?url='+ 75l+"','sharer','toolbar=0,status=0,width=548,height=325');\" ontouchstart=\"window.open('https://plus.google.com/share?url="+l+"','sharer','toolbar=0,status=0,width=548,height=325');\"></li>");return b+"</ul></ul></div>"};e.fn.lcnb_btn_bar_toggle_socials=function(a){return this.each(function(){var c=e(this);e(this).parents(".lcnb_news");var b=e(this).find(".lcnb_social_box"),d=e(this).width();if("show"==a&&b.is(":hidden")){b.css("width",36*b.children().size());var f=m(c.parent(".lcnb_buttons").children().first().css("border-bottom-width")), 76h=c.height()+2*f;0<f&&b.css("top",-1*f);c.addClass("socials_shown");b.css("display","inline-block").css("height",h).lcnb_set_pos("left",-1*b.width()).lcnb_animate_pos("left",d,400,"linear")}else d=-1*b.width(),b.lcnb_animate_pos("left",d,400,"linear"),setTimeout(function(){c.removeClass("socials_shown");b.hide()},400)})};e.fn.lcnb_toggle_socials=function(a){return this.each(function(){var c=e(this),b=e(this).parents(".lcnb_news"),d=e(this).find(".lcnb_social_box");c.parent().hasClass("lcnb_btm_bar")|| 770<c.parents(".lcnb_wrap ").find(".lcnb_exp_data").size()?(c=25+29*d.children("li").size(),"show"==a&&d.is(":hidden")?(d.parent().addClass("socials_shown"),d.show(),9==m(d.css("bottom"))&&d.css("bottom",c+5
77),b.css("overflow","visible").css("z-index",60),d.clearQueue().animate({opacity:1,bottom:c},200)):(d.clearQueue().animate({opacity:0,bottom:c+5},200),setTimeout(function(){b.css("overflow","hidden").css("z-index","");d.parent().removeClass("socials_shown");d.hide()},200))):(c=-11+c.outerHeight(), 78"show"==a&&d.is(":hidden")?(d.parent().addClass("socials_shown"),d.show(),9==m(d.css("top"))&&d.css("top",c+5),b.css("overflow","visible").css("z-index",60),d.clearQueue().animate({opacity:1,top:c},200)):(d.clearQueue().animate({opacity:0,top:c+5},200),setTimeout(function(){b.css("overflow","hidden").css("z-index","");d.parent().removeClass("socials_shown");d.hide()},200)))})};e(".lcnb_social_trigger").unbind("click");k.delegate(".lcnb_social_trigger",q.lcnb_event_type,function(){var a=e(this);"undefined"!= 79typeof lcnb_one_click&&clearTimeout(lcnb_one_click);lcnb_one_click=setTimeout(function(){u(a);a.parent().hasClass("lcnb_buttons")?0<a.find(".visible_socials").size()?a.lcnb_btn_bar_toggle_socials("hide"):(a.lcnb_btn_bar_toggle_socials("show"),e(".socials_shown",k).not(a).lcnb_btn_bar_toggle_socials("hide")):0<a.find(".visible_socials").size()?a.lcnb_toggle_socials("hide"):(a.lcnb_toggle_socials("show"),e(".socials_shown",k).not(a).lcnb_toggle_socials("hide"))},5)});var M=function(a,c,b){var d=a.parents(".lcnb_wrap").parent().data("lcnb_vars"), 80f=a.parents(".lcnb_wrap").parent().data("lcnb_settings");if(!d.lcnb_is_expanded||"undefined"!=typeof b){d.lcnb_is_expanded=!0;var h="undefined"!=typeof c.attr("lcnb_exp_img_pos")?c.attr("lcnb_exp_img_pos"):f.exp_main_img_pos;a.find(".lcnb_news").removeClass("expanded");c.addClass("expanded");"undefined"!=typeof b&&(a.find(".lcnb_exp_block").last().css("z-index",150).fadeTo(300,0),setTimeout(function(){a.find(".lcnb_exp_block").last().remove()},300));var l=0<c.find(".lcnb_img").size()?!0:!1;if("hidden"== 81h||"inside"==h)l=!1;var g=l?'<div class="lcnb_exp_img_wrap">'+c.find(".lcnb_img").html()+"</div>":"",k=l?"":"lcnb_only_text";l&&g&&(g=e(g),c.find(".lcnb_img").hasClass("lcnb_no_lightbox")&&g.find(".lcnb_img_lb, .lcnb_video_lb").remove(),g=g.clone().wrap("<div>").parent().html());var p=f.social_share?c.find(".lcnb_social_trigger").clone().removeAttr("style").wrap("<div>").parent().html():"",q=0<c.find(".lcnb_link").size()?c.find(".lcnb_link").clone().removeAttr("style").wrap("<div>").parent().html(): 82"",p='<div class="lcnb_exp_data">'+(0<c.find(".lcnb_btn_time").not(".lcnb_rm_btn_wrap").size()?'<div class="lcnb_exp_date">'+c.find(".lcnb_btn_time").html()+"</div>":"")+p+q+"</div>",q=0<c.find(".lcnb_title").size()?c.find(".lcnb_title").clone().removeAttr("style").wrap("<div>").parent().html():"",d=d.lcnb_orig_texts[c.attr("rel")].replace(/fake-src="/g,'src="');"inside"==h&&0<c.find(".lcnb_img").size()&&(d='<p><img src="'+c.find(".lcnb_img img").attr("src")+'" class="lcnb_exp_main_img" /></p>'+d); 83f.manage_exp_images&&(d=V(d,f,c));c='<div class="lcnb_exp_block noSwipe '+k+'"><span class="lcnb_close"></span>'+g+'<div class="lcnb_exp_txt">'+q+d+p+'</div><div style="clear:both;"></div></div>';a.css("position","relative").prepend(c);f.boxed_news?(c=a.find(".lcnb_exp_block").first(),c=m(c.css("margin-top"))+m(c.css("margin-bottom")),f=f.height-c):f=f.height;a.find(".lcnb_exp_block").first().css("min-height",f);0<a.find(".lcnb_exp_txt:first img").size()&&W(a.parents(".lcnb_wrap"));l&&(l=a.find(".lcnb_exp_img_wrap:first img").parent(), 84l.css("height","auto").css("max-height","none"),l.find("img").removeAttr("style").css("opacity",0),a.find(".lcnb_exp_img_wrap .lcnb_img_lb, .lcnb_exp_img_wrap .lcnb_video_lb").removeAttr("style").removeClass("lcnb_expand_trig lcnb_linked_img"));"undefined"==typeof b&&(a.find(".lcnb_news").parent().fadeTo(500,0),a.find(".lcnb_news").lcnb_animate_pos("top","80%",500));setTimeout(function(){a.find(".lcnb_exp_block").stop().animate({opacity:1,top:0},400);setTimeout(function(){H(a.parents(".lcnb_wrap"))}, 85200)},100);setTimeout(function(){a.find(".lcnb_exp_txt").fadeIn(200)},400)}};k.delegate(".lcnb_btn_expand, .lcnb_expand_trig",q.lcnb_event_type,function(){var a=e(this).parents(".lcnb_news"),c=e(this).parents(".lcnb_inner_wrapper");u(e(this));0<c.find(".lcnb_buttons").size()?c.find(".socials_shown").lcnb_btn_bar_toggle_socials("hide"):c.find(".socials_shown").lcnb_toggle_socials("hide");var b=0<c.find(".socials_shown").size()?250:0;setTimeout(function(){M(c,a)},b)});var V=function(a,c,b){var d=e('<div class="outer_wrap">'+ 86a+"</div>");d.find("img").each(function(a,f){if(e(this).parent().hasClass("outer_wrap")){k=e(this);h="<div>"+k.clone().wrap("<div>").parent().html()+"</div>";if(c.lightbox)var g=B(k.attr("src"),"src"),h=h+('<div class="lcnb_img_lb noSwipe" data-mfp-src="'+g+'"><div class="lcnb_lb_icon"></div><div class="lcnb_lb_overlay"></div></div>');e(this).replaceWith('<div class="lcnb_exp_body_img"><div>'+h+"</div></div>")}else{var k=e(this),m=e(this).parent();d.children().each(function(){if(0<e(this).find(k).length)return m= 87e(this),!1});e(this).remove();var h="<div>"+k.clone().wrap("<div>").parent().html()+"</div>";
87if(c.lightbox){if(0<b.find(".lcnb_video_lb").size())var g="lcnb_video_lb",p=b.find(".lcnb_video_lb").attr("data-mfp-src");else g="lcnb_img_lb",p=B(k.attr("src"),"src");h+='<div class="'+g+' noSwipe" data-mfp-src="'+p+'"><div class="lcnb_lb_icon"></div><div class="lcnb_lb_overlay"></div></div>'}m.before('<div class="lcnb_exp_body_img"><div>'+h+"</div></div>")}});d.find("*:empty").not("br, img, .lcnb_exp_body_img *").remove(); 88d.find(".lcnb_exp_body_img img").addClass("lcnb_exp_man_img");a="undefined"!=typeof b.attr("lcnb_exp_img_w")?b.attr("lcnb_exp_img_w"):c.exp_img_w;var f="undefined"!=typeof b.attr("lcnb_exp_img_h")?b.attr("lcnb_exp_img_h"):c.exp_img_h;225!=f&&d.find(".lcnb_exp_body_img").css("height",f);"auto"==f&&d.find(".lcnb_exp_body_img img").css("max-width","100%").css("min-width",0).css("max-height","100%").css("min-height",0);d.find(".lcnb_exp_body_img").addClass("lcnb_exp_img_"+a);return d.html()},H=function(a){var c= 89a.parent().data("lcnb_settings"),b=1<a.find(".lcnb_exp_txt:first .lcnb_exp_body_img")?450:350;if(a.find(".lcnb_exp_txt").width()<b){a.find(".lcnb_exp_block").addClass("lcnb_exp_mobile");var d=!0}else a.find(".lcnb_exp_block").removeClass("lcnb_exp_mobile"),d=!1;if(0<a.find(".lcnb_exp_block .lcnb_exp_img_wrap:first").size()){var f=a.find(".lcnb_exp_block .lcnb_exp_img_wrap:first img").parent();e("<img />").bind("load",function(){f.css("height","");if(d)f.css("height","auto");else{var b=a.find(".lcnb_exp_txt").outerHeight(!0), 90c=m(a.find(".lcnb_exp_block").css("min-height"))-(a.find(".lcnb_exp_block").outerHeight()-a.find(".lcnb_exp_block").height()),b=b<c?c:b,c=f.find("img").height();c>b?f.css("height",b):f.css("height",c)}0==a.find(".lcnb_exp_img_wrap img").css("opacity")&&a.find(".lcnb_exp_img_wrap img").fadeTo(450,1);f.find("img").lcnb_center_img()}).attr("src",f.find("img").attr("src"))}setTimeout(function(){var b=a.find(".lcnb_exp_txt").outerHeight(!0)+(a.find(".lcnb_exp_block ").outerHeight(!1)-a.find(".lcnb_exp_block ").height()); 91d&&"undefined"!=typeof f&&0<f.size()&&(b+=f.find("img").outerHeight(!0));var e=c.boxed_news?m(a.css("margin-top"))+m(a.css("margin-bottom")):0;if(b+e>c.height){if(a.height()!=b+e)if(70<b+e-c.height){var g=Math.round((b+e-400)/30*17);a.clearQueue().animate({height:b+e},400+g)}else a.clearQueue().animate({height:b+e},400)}else a.height()!=c.height&&a.clearQueue().animate({height:c.height},400)},300)},W=function(a){var c=e.makeArray();a.find(".lcnb_exp_txt:first img").each(function(b,d){var f=e(this); 92c[b]=setTimeout(function(){f.addClass("lcnb_exp_img_preload")},120);e(this).bind("load",function(){clearTimeout(c[b]);if(f.hasClass("lcnb_exp_man_img")){if(this.width<this.height)f.addClass("lcnb_portrait_img");else if((-1!=navigator.appVersion.indexOf("MSIE")||-1!=navigator.appVersion.indexOf("rv:11."))&&"auto"!=a.find(".lcnb_exp_body_img").first().css("height")){var d=m(a.find(".lcnb_exp_body_img").first().css("height")),d=Math.ceil(d*this.width/this.height);e(this).css("width",d)}setTimeout(function(){f.lcnb_center_img(); 93f.parents(".lcnb_exp_body_img").addClass("lcnb_loaded")},400)}e(this).hasClass("lcnb_exp_img_preload")&&(e(this).removeClass("lcnb_exp_img_preload"),H(a))})})};e.fn.lcnb_center_img=function(){return this.each(function(){var a=e(this),c=e(this).parent(),b=a.width()-c.width();1<b?a.css("margin-left",-1*Math.floor(b/2)):a.css("margin-left",0);c=a.height()-c.height();1<c?a.css("margin-top",-1*Math.floor(c/2)):a.css("margin-top",0)})};var X=function(a){var c=a.parents(".lcnb_wrap").parent().data("lcnb_settings"); 94a.parents(".lcnb_wrap").parent().data("lcnb_vars").lcnb_is_expanded=!1;var b=a.find(".lcnb_exp_block").height(),d=70<b-c.height?500+Math.round(b/30*18):500;a.parents(".lcnb_wrap").stop().animate({height:c.height},500);if(c.scroll_exp_elem){var f=a.offset();e(window).scrollTop()>f.top+c.height-20&&e("html, body").animate({scrollTop:f.top-10},600,"linear")}a.find(".lcnb_exp_block").clearQueue().animate({top:"-"+(b+100)},d);a.find(".lcnb_exp_block").clearQueue().animate({opacity:0}
94,500);setTimeout(function(){a.find(".lcnb_news").parent().fadeTo(400, 951);a.find(".lcnb_news").lcnb_animate_pos("top",0,400)},100);setTimeout(function(){a.find(".lcnb_news").removeClass("expanded");a.find(".lcnb_exp_block").remove();e(window).trigger("resize")},550)};k.delegate(".lcnb_exp_block .lcnb_close",q.lcnb_event_type,function(){var a=e(this).parents(".lcnb_inner_wrapper");X(a)});k.delegate(".lcnb_img_lb:not(.lcnb_expand_trig, .lcnb_linked_img)","click ontouchstart",function(){u(e(this));var a=e(this).attr("data-mfp-src"),c=e(this).parent().find("img");e.magnificPopup.open({items:{src:a}, 96type:"image",mainClass:"mfp-with-zoom",closeOnContentClick:!0,image:{verticalFit:!0},zoom:{enabled:!0,duration:300,easing:"ease-in-out",opener:function(a){return c}}},0)});k.delegate(".lcnb_video_lb:not(.lcnb_expand_trig, .lcnb_linked_img)","click ontouchstart",function(){u(e(this));var a=e(this).attr("data-mfp-src");e.magnificPopup.open({items:{src:a},type:"iframe",iframe:{patterns:{youtube:{src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"}}}},0)});var F=function(a){"undefined"!=typeof a&&k.find(".lcnb_touchswipe .lcnb_inner_wrapper").swipe("destroy"); 97k.find(".lcnb_vertical.lcnb_touchswipe .lcnb_inner_wrapper").swipe({swipe:function(a,b){u(e(this));"up"==b&&lcnb_news_slide(k,"next");"down"==b&&lcnb_news_slide(k,"prev")},threshold:80,allowPageScroll:"horizontal"});k.find(".lcnb_horizontal.lcnb_touchswipe .lcnb_inner_wrapper").swipe({swipe:function(a,b){u(e(this));"right"==b&&lcnb_news_slide(k,"prev");"left"==b&&lcnb_news_slide(k,"next")},threshold:80,allowPageScroll:"vertical"})},m=function(a){a=parseInt(a);return isNaN(a)?0:a};e.fn.lcnb_animate_pos= 98function(a,c,b,d){return this.each(function(){var f=e(this);"undefined"==typeof d&&(d="swing");f.animate({lcnbSlide:f.lcnb_get_pos(a)},0).stop().animate({lcnbSlide:c},{easing:d,duration:b,step:function(b,c){f.lcnb_set_pos(a,b)}})})};e.fn.lcnb_set_pos=function(a,c){return this.each(function(){var b=e(this),d=b.parents(".lcnb_wrap").parent().data("lcnb_vars");"undefined"==typeof d&&(d=k.data("lcnb_vars"));d.lcnb_css3_browser?"left"==a?(b.css("-webkit-transform","translate3d("+c+"px, 0px, 0px)"),b.css("transform", 99"translate3d("+c+"px, 0px, 0px)")):(b.css("-webkit-transform","translate3d(0px, "+c+"px, 0px)"),b.css("transform","translate3d(0px, "+c+"px, 0px)")):b.css(a,c)})};e.fn.lcnb_get_pos=function(a){var c=0,c=this.parents(".lcnb_wrap").parent().data("lcnb_vars");"undefined"==typeof c&&(c=k.data("lcnb_vars"));if(c.lcnb_css3_browser){c=this.css("-webkit-transform")||this.css("transform");if("none"==c)return 0;c=c.split("(")[1];c=c.split(")")[0];c=c.split(",");c="left"==a?Math.round(c[4]):Math.round(c[5])}else if(c= 100"left"==a?parseFloat(this.css("left")):parseFloat(this.css("top")),isNaN(c))return 0;return c};var B=function(a,c){var b=(new RegExp("[?&]"+c+"=([^&#]*)")).exec(a);return null==b?a:decodeURIComponent(b[1])||0},Y=function(){if(-1!=navigator.appVersion.indexOf("MSIE")||-1!=navigator.appVersion.indexOf("rv:11.")||-1!=navigator.userAgent.indexOf("Opera")||-1!=navigator.appVersion.indexOf("Safari")&&(-1!=navigator.appVersion.indexOf("Version/5.")||-1!=navigator.appVersion.indexOf("Version/4.")))return!1; 101var a=e("<div/>");a.css("-webkit-transform","translate3d(100px, 0px, 0px)");a.css("transform","translate3d(100px, 0px, 0px)");return"none"==(a.css("-webkit-transform")||a.css("transform"))?!1:!0};e(".lcnb_next").unbind("click");k.delegate(".lcnb_next:not(.lcnb_disabled)","click",function(){var a=e(this);"undefined"!=typeof lcnb_one_click&&clearTimeout(lcnb_one_click);lcnb_one_click=setTimeout(function(){u(a);lcnb_news_slide(k,"next")},5)});e(".lcnb_prev").unbind("click");k.delegate(".lcnb_prev:not(.lcnb_disabled)", 102"click",function(){var a=e(this);"undefined"!=typeof lcnb_one_click&&clearTimeout(lcnb_one_click);lcnb_one_click=setTimeout(function(){u(a);lcnb_news_slide(k,"prev")},5)});var t=function(a,c,b,d){var e=function(a,b,c){var e;return function(){var f=this,h=arguments;e?clearTimeout(e):c&&a.apply(f,h);e=setTimeout(function(){c||a.apply(f,h);e=null},b||d)}};jQuery.fn[c]=function(a){return a?this.bind(b,e(a)):this.trigger(c)}};t(jQuery,"lcnb_smartresize","resize",100);e(window).lcnb_smartresize(function(){var a= 103k.data("lcnb_vars"),c=k.data("lcnb_settings");if(!a.lcnb_is_playing||50<=c.slideshow_time)K(),z(),E(),a.lcnb_is_expanded||a.lcnb_wrap_width==k.width()||(a.lcnb_wrap_width=k.width(),G(k),J(
103)),a.lcnb_is_expanded&&(H(k.find(".lcnb_wrap")),k.find(".lcnb_exp_man_img").lcnb_center_img())});t(jQuery,"lcnb_smartscroll","scroll",50);e(window).lcnb_smartscroll(function(){var a=k.data("lcnb_settings");if(0<k.find(".lcnb_exp_block").size()&&a.scroll_exp_elem){var c=k.find(".lcnb_exp_block").first(),b=c.offset(); 104c.height()>a.height+30&&e(window).scrollTop()>b.top+30?(e(window).scrollTop()<b.top+(c.height()-35)&&(a=Math.floor(e(window).scrollTop()-b.top-7),c.find(".lcnb_close").css("margin-top",a)),e(window).scrollTop()<b.top+(c.height()-(c.find(".lcnb_exp_img_wrap").height()-25))&&(c.hasClass("lcnb_exp_mobile")?c.find(".lcnb_exp_img_wrap").css("margin-top",0):(a=Math.floor(e(window).scrollTop()-b.top),c.find(".lcnb_exp_img_wrap").css("margin-top",a)))):c.find(".lcnb_close, .lcnb_exp_img_wrap").css("margin-top", 1050)}});q.lcnb_wrap_width=k.width();(function(){"undefined"==typeof lcnb_script_basepath&&(h.script_basepath?lcnb_script_basepath=h.script_basepath:e("script").each(function(a,c){var b=e(this).attr("src");if("undefined"!=typeof b&&-1!=b.indexOf("news-box")){var d=b.split("/");lcnb_script_basepath=b.replace(d[d.length-1],"")}}));"undefined"==typeof lcnb_loaded_themes&&(lcnb_loaded_themes=e.makeArray());-1==e.inArray(h.theme,lcnb_loaded_themes)&&(lcnb_loaded_themes.push(h.theme),e("head").append('<link rel="stylesheet" href="'+ 106lcnb_script_basepath+"themes/"+h.theme+'.css">'));"undefined"==typeof lcnb_loaded_scripts&&(lcnb_loaded_scripts=e.makeArray());h.lightbox&&-1==e.inArray("magnific_popup",lcnb_loaded_scripts)&&!eval("typeof magnificPopup == 'function'")&&(lcnb_loaded_scripts.push("magnific_popup"),e("head").append('<link rel="stylesheet" href="'+lcnb_script_basepath+'js_assets/magnific-popup/magnific-popup-style.css">'),e("body").append('<script src="'+lcnb_script_basepath+'js_assets/magnific-popup/magnific-popup.min.js" type="text/javascript">\x3c/script>')); 107h.touchswipe&&-1==e.inArray("touchswipe",lcnb_loaded_scripts)&&!eval("typeof swipe == 'function'")&&(lcnb_loaded_scripts.push("touchswipe"),e("body").append('<script src="'+lcnb_script_basepath+'js_assets/TouchSwipe/jquery.touchSwipe.min.js" type="text/javascript">\x3c/script>'));return!0})();(function(){0<k.find(".nb_news_wrap").size()&&k.find(".nb_news_wrap").each(function(){var a=e(this),c=parseInt(e(this).attr("img_max_w")),b=parseInt(e(this).attr("img_max_h"));e(this).find("article").each(function(d, 108f){c&&b&&e(this).find("section img").each(function(){var a=e(this).attr("src"),a=lcnb_script_basepath+"php_assets/img_size_check.php?src="+encodeURIComponent(a)+"&max_w="+max_w+"&max_h="+max_h;e(this).attr("src",a)});var k=e(this).attr("datetime"),l=e(this).find("header").text(),g=e(this).find("section").html(),m=e(this).find(".lcnb_inline_link").attr("href");e(this).find(".lcnb_inline_link").remove();var p=P(e(this).find("img").first().attr("src"),c,b),t=e(this).find(".lcnb_video").attr("src");if("undefined"!= 109typeof k&&"undefined"!=typeof g&&""!=e.trim(g)&&(k={type:"inline",time:(new Date(k)).getTime(),date:k,title:l,txt:g,link:m,s_link:m,img:p,video:t,exp_img_pos:"undefined"!=typeof a.attr("exp_img_pos")?a.attr("exp_img_pos"):!1,exp_img_w:"undefined"!=typeof a.attr("exp_img_w")?a.attr("exp_img_w"):!1,exp_img_h:"undefined"!=typeof a.attr("exp_img_h")?a.attr("exp_img_h"):!1},-1!=h.hide_elements.indexOf("title")&&(k.title=""),-1!=h.hide_elements.indexOf("link")&&(k.link=""),-1!=h.hide_elements.indexOf("image")&& 110(k.img=""),q.lcnb_news_array.push(k),q.lcnb_inline_news_count+=1,d==h.max_news-1))return!1})})})();t="lcnb_"+h.theme+"_theme";if(h.nav_arrows)y="lcnb_has_cmd lcnb_"+h.nav_arrows+"_cmd",h.nav_arrows.match(/top/g)&&(y+=" lcnb_top_cmd"),h.nav_arrows.match(/bottom/g)&&(y+=" lcnb_bottom_cmd");else var y="";t='<div class="lcnb_wrap lcnb_loading lcnb_'+h.layout+" "+(t+" "+y+" "+(h.touchswipe?"lcnb_touchswipe":"")+" "+(h.show_src_logo&&"horizontal"!=h.layout?"lcnb_src_logo":"")+" "+(h.boxed_news?"lcnb_boxed": 111"lcnb_uniblock"))+'" style="height: '+h.height+'px;">';h.nav_arrows&&(t+='<div class="lcnb_cmd"><div class="lcnb_prev '+(h.carousel?"":"lcnb_disabled")+'"><span></span></div><div class="lcnb_next"><span></span></div></div>');t+='<div class="lcnb_inner_wrapper"><div class="lcnb_inner" style="height: '+h.height+'px;"></div></div>';k.html(t+"</div>");"undefined"!=typeof lcnb_IE_css_appended||-1==navigator.appVersion.indexOf("MSIE 8.")&&-1==navigator.appVersion.indexOf("MSIE 9.")||(lcnb_IE_css_appended= 112!0,e("head").append("<style>.lcnb_btm_bar .lcnb_social_box:after, .lcnb_exp_data .lcnb_social_box:after, .lcnb_top_bar .lcnb_social_box:before {display: none !important;</style>"));
112t=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)|| 113/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent)? 114!0:!1;t&&(q.lcnb_event_type="tap");q.lcnb_css3_browser=h.carousel&&h.autoplay&&50>=h.slideshow_time||10<h.max_news?!1:Y();setTimeout(function(){K();I()},50);return this};e.fn.lc_news_box=function(C){e.fn.lcnb_destroy=function(){var p=e(this),h=p.data("lcnb_vars");h.lcnb_is_playing&&clearInterval(h.lcnb_is_playing);p.data("lcnb_settings").touchswipe&&p.find(".lcnb_touchswipe .lcnb_inner_wrapper").swipe("destroy");p.undelegate(".lcnb_social_trigger",h.lcnb_event_type);p.undelegate(".lcnb_btn_expand", 115h.lcnb_event_type);p.undelegate(".lcnb_exp_block .lcnb_close",h.lcnb_event_type);p.undelegate(".lcnb_img_lb, .lcnb_video_lb","click ontouchstart");p.find(".lcnb_next, .lcnb_prev").undelegate("click");p.removeData("lcnb_vars");p.removeData("lcnb_settings");p.removeData("lc_newsbox");return!0};e.fn.lcnb_start_slideshow=function(){var p=e(this),h=p.data("lcnb_vars"),q=p.data("lcnb_settings");0==q.slideshow_time&&(h.lcnb_is_playing=!0,lcnb_news_slide(p,"next"));h.lcnb_is_playing=setInterval(function(){lcnb_news_slide(p, 116"next")},q.slideshow_time+q.animation_time);return!0};e.fn.lcnb_stop_slideshow=function(){var p=e(this),h=p.data("lcnb_vars"),q=p.data("lcnb_settings");clearInterval(h.lcnb_is_playing);h.lcnb_is_playing=null;if(q.autoplay&&0==q.slideshow_time&&1800<q.animation_time){var k=q.animation_time;q.animation_time=1800;setTimeout(function(){q.animation_time=k},200)}return!0};return this.each(function(){if(e(this).data("lc_newsbox"))return e(this).data("lc_newsbox");var p=new I(this,C);e(this).data("lc_newsbox", 117p)})}})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.