"+r+"
",h=""+m+u+f+"Continue reading >>";$wn("#sidebarContent .sideStory").append(h);var y=""!=u?!0:!1;w(s,y)}function l(e,n,a,i){return"True"==e?""+i+"
":""+i+"
"}function o(e,n,a){return""==e?"":""}function w(e,n){$wn(document).ready(function(){var a=$wn("#sidebarContainer").height(),i="#sidebarContent li.wnItem.feature",t="#sidebarContent li.featureSS",s=f(i),d=f(t),r=$wn("#firstStory").height();a>=h&&"True"==e?p(s,d,r,h,n):$wn(".continueReading.more").hide()})}function p(e,n,a,t,s){function d(e,n){var a=Math.floor(e*n);return 2>=a?2:a>=6?6:a}function r(e,n,a){return e>=1?n*e+a:e}var l=r(e,55,40),o=r(n,300,0),w=l+o+250,p=Math.round(.35*t+(t-w)),c=$wn("#firstStory .summary p, #firstStory .summary h3, #firstStory .summary ol, #firstStory .summary ul").length,m=1==s?(p/(a+85)).toFixed(2):(p/a).toFixed(2),u="false"==$wn("#sidebarContainer").hasClass("wideSidebar")?d(c,m):2;if(u>=c)$wn(".continueReading.more").hide();else for(i=c;i>=u;i--)$wn("#firstStory .summary.abridged >:eq("+i+")").hide()}function c(){}function m(e){WNHttpRequestManager.makeRequest(e,{onSuccess:u,onError:c})}function u(){r(this)}function f(e){if("special"==$wn(""+e+":first h4.wnContent.sectionTitle").text().toLowerCase()){var n=wng_pageInfo.affiliateName==wng_pageInfo.ownerAffiliateName?$wn(""+e).length:0;0==n&&$wn(""+e+":first").remove(),e=n}else e=$wn(""+e).length;return e}$wn("#WNStoryBody p + br").remove(),$wn("#WNStoryBody p").filter(function(){return""===$wn.trim($wn(this).text())&&0==$wn(this).children().length}).remove();var h,y=$wn("meta[name='DCSext.contentprovider']").attr("content"),v=document.getElementById("WNStoryBody"),g=v.getElementsByTagName("p"),$=g.length;h=$wn("#WNStoryBody").height();var C=parseInt($)-1,S=$wn.trim($wn("#WNStoryBody").text().replace(/\s+/gi," ")).split(" ").length,b="#DisplaySizeId22 ul li.wnItem.link",I="#DisplaySizeId22 ul li.wnItem.category",N="#DisplaySizeId22 ul li.wnItem.feature.story",D="#WNCol3 #DisplaySizeId12 .wnGroup ",B="#DisplaySizeId3 ul li.wnItem:not(.header)",x=f(b)+f(I),L=(f(I),f(N)),z=f(D)>=1?1:0,k=f(B),H=L+z+x+k,E=a(L,x,k,z),R=S>=E?"plainSidebar":"wideSidebar",W="< Prev | Next > |
---|