'),l.containerSelector="#related_posts");var n=function(e){if(o++,e.feed.entry)for(var r=0,n=e.feed.entry.length;n>r;r++){for(var c,d,p,u,m,g,h,f,v,b,y=e.feed.entry[r],S=[],w=[],x=0,T=y.link.length;T>x;x++)if("alternate"==y.link[x].rel){c=y.link[x].href;break}for(var R=0,k=y.link.length;k>R;R++)if("replies"==y.link[R].rel&&"text/html"==y.link[R].type){m=y.link[R].title.split(" ")[0];break}if(d="content"in y?y.content.$t:"summary"in y?y.summary.$t:"","media$thumbnail"in y)u=y.media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+l.rlt_thumb+"-c"),-1!=y.media$thumbnail.url.indexOf("img.youtube.com")&&(u=y.media$thumbnail.url.replace("default","0"));else if(null!=(S=d.match(/src=(?:\"|\')?([^>]*[^\/].(?:jpg|bmp|gif|png))(?:\"|\')?/gi)))u=S[0].replace("src=","").replace(/"/g,"").replace(/'/g,"");else if(null!=(w=d.match(/(youtu.be\/|youtube.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&\"\'>]+)/gi))){var C=w[0].match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);C&&11==C[7].length&&(u="http://img.youtube.com/vi/"+C[7]+"/0.jpg")}else u=l.rlpBlank;d=d.replace(/<\S[^>]*>/g,""),d.length>l.rlt_summary&&(d=d.substring(0,l.rlt_summary)+"..."),p=y.title.$t,g=y.published.$t.substring(0,10),h=g.substring(0,4),f=g.substring(5,7),v=g.substring(8,10),b=l.MonthNames[parseInt(f,10)-1],location.href.toLowerCase()!=c.toLowerCase()&&i(c,p,u,d,h,v,b,m)}if(o>=l.tags.length&&(t(l.containerSelector+" ul").removeClass(l.loadingClass),t("#related-posts-loadingtext",s).remove(),l.maxPosts>0&&t("li:gt("+(l.maxPosts-1)+")",t(l.containerSelector+" ul")).remove(),"carousel"===a.RelatedStyle)){var _,P,I=t(l.containerSelector+" .relatednyacar").width();300>I?(P=1,_=I/P):450>I?(P=2,_=I/P):700>I?(P=3,_=I/P):(P=4,_=I/P),t(l.containerSelector+" .relatednyacar").flexslider({animation:"slide",selector:".rltcaraousel > li",animationLoop:!0,itemWidth:_,minItems:1,move:P,mousewheel:!0,maxItems:4})}},i=function(e,o,s,r,n,i,p,u){for(var m=t("li",t(l.containerSelector+" ul")),g=0,h=m.length;h>g;g++){var f=t("a",m.eq(g)),v=c(f);if(f.attr("href")==e){d(f,++v);for(var b=g-1;b>=0;b--){var y=t("a",m.eq(b));if(c(y)>v)return void(g-b>1&&m.eq(b).after(m.eq(g)))}return void(g>0&&m.eq(0).before(m.eq(g)))}}t(l.containerSelector+" ul").append('