";$wn("#sidebarContent .additionalLinks").before(n);var a=$wn("html").hasClass("raycom-media-2015-redesign");1==a&&($wn("#sidebarContainer #sidebarHeader.header span, #pollHeader").css("display","none"),$wn("#sidebarContainer #sidebarHeader.header span.redesignedPollHead").show())}else{var n="";$wn(".wnStoryBodyGraphic:last").after(n)}$wn("#pollContent").append($wn(D).contents()),$wn("#DisplaySizeId12 .wnGroup").hasClass("wnPollVoted")&&$wn("#pollContent").addClass("wnPollVoted")}function s(e,n,a,i,t,s){"wideSidebar"==n?1==s?$wn(i[C]).after(a):$wn(i[C]).before(a):"wideSidebar"!=n&&"APMOBILE"==e?$wn(i[1]).after(a):$wn(i[0]).after(a)}function d(e){{var n="#DisplaySizeId3 ul li.wnItem:not(.header)",a="#DisplaySizeId3 ul li.wnItem.feature.story",i=f(n);f(a)}if(""==e&&i>=1){var t=""==$wn("#DisplaySizeId3 ul li.wnItem.header h3 span.siteDefault").text()?"Related Links":$wn("#DisplaySizeId3 ul li.wnItem.header h3 span.siteDefault").text();$wn("#sidebarContent .additionalLinks").append(''),$wn("#sidebarContainer #sidebarHeader .FAL h3 span").text(t),$wn("#sidebarContent .additionalLinks").append($wn(n)),$wn(".additionalLinks").fadeIn("fast")}else if("featuring"==e&&i>=1){var t=""==$wn("#DisplaySizeId3 ul li.wnItem.header h3 span.siteDefault").text()?"Related Links":$wn("#DisplaySizeId3 ul li.wnItem.header h3 span.siteDefault").text();$wn(".additionalLinks .FAL").hide(),$wn("#sidebarContainer #sidebarHeader .FAL").show(),$wn("#sidebarContainer #sidebarHeader .moreHead").hide(),$wn("#sidebarContent .additionalLinks").append($wn(n)),$wn(".additionalLinks").fadeIn("fast")}}function r(e){var n="#DisplaySizeId22 ul li.wnItem.feature.story";$wn(""+n+":first").remove();var a=e.response.responseXML,i=a.getElementsByTagName("story"),t=(i[0].getElementsByTagName("body")[0].childNodes[0].nodeValue,$wn(a).find("story storyimage:first filename").text()),s=$wn(a).find("isclickable").text(),d=$wn(a).find("story abridged headline").text(),r=i[0].getElementsByTagName("body")[0].childNodes[0].nodeValue,p=i[0].getElementsByTagName("pageurl")[0].childNodes[0].nodeValue,c=i[0].getElementsByTagName("id")[0].childNodes[0].nodeValue,m=l(s,c,p,d),u=o(t,c,p),f="
"+r+"
",h=""+m+u+f+"Continue reading >>[1]";$wn("#sidebarContent .sideStory").append(h);var y=""!=u?!0:!1;w(s,y)}function l(e,n,a,i){return"True"==e?""+i+"[2]
":""+i+"[3]
"}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);if(typeof a == "undefined"){return 2;};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,P=$wn("html").hasClass("raycom-media-2015-redesign"),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||P==true)?"plainSidebar":"wideSidebar",W="