var FRJournalArticle=function(){function k(){$(window).on("hashchange",function(){e()});$(document).on("click",".ui-accordion",function(n){$(n.target).toggleClass("closed").next(".ui-accordion-content").slideToggle()});$(document).on("click","#supplementary_view",function(){s()});$(document).on("click",function(n){if($(n.target).parents().andSelf().is(".popover, .popover-trigger")){var i=t.find(".popover");i.length>1&&i.each(function(){$(this).parent().has(n.target).length||$(this).prev(".popover-trigger").popover("hide")})}else $(t.find("a.popover-trigger")).popover("hide")});$(document).on("click",'a[href^="#"]',function(){var n=$(this).attr("href");n.length&&(n==="#impact"||n.indexOf("-tab")>=0||u(!0,n))});n.on("click","button[data-href]",function(){var n=$(this).data("href");n&&n.length&&(window.location.href=n)});n.find(".table-of-contents ul li a").on("click",function(){ga("send","event","AP_Action","navigation","nav_toc");var n=$(this).attr("href");n&&n.length&&(window.location.href=n)});i.find("#open-crossmark").on("click",function(){ga("send","event","AP_Action","button","view-crossmark")});g(),l()}function e(){var n=window.location.hash.replace("#","").toLowerCase();if(console.log(n),!n.length||n!="supplementary-material"){f.modal("hide");return}s()}function b(){t.find(".side-article-impact .impact-data").tooltip({placement:"bottom",delay:{show:400}}),$.getJSON("/Impact/GetArticleImpactViewsCount?articleId="+window.FRArticle.ArticleId).done(function(n){t.find(".impact-data span.title-number").text(n)})}function w(){$.post("/RecommendedArticle/InsertArticleRecommendations",{articleId:window.FRArticle.ArticleId})}function y(){$.getJSON("/Article/GetRelatedArticleByArticleId?articleId="+window.FRArticle.ArticleId).done(function(n){d(n)})}function s(){$.getJSON("/Article/GetSupplementaryFilesByArticleId?articleId="+window.FRArticle.ArticleId).done(function(n){var t=n.SupplimentalFileDetails,i=FRTemplate.bind("template-supplementary-files-modal",{supplimentalFileDetails:t});f.html(i).modal("show"),t.FileDetails==null?($(".supplementary-content").hide(),$(".supplementary-empty-message").show()):($(".supplementary-content").show(),$(".supplementary-empty-message").hide())})}function d(n){var t,i,u,f;n!=null&&(t=r.find(".widget-listing.original-article"),i=r.find(".widget-listing.commentary-article"),n.IsCommentaryVisible&&(u=h(n.CommentaryArticle),i.append(u).removeClass("hidden")),n.IsOriginalArticleVisible&&(f=h(n.OriginalArticle),t.append(f).removeClass("hidden")))}function h(n){var t="";return $.each(n,function(n,i){t=t+'

'+formatTextContent(i.ArticleTitle)+"

",t=t+'

'+o(i.AuthorDetails)+"

"}),t}function v(){$.getJSON("/RecommendedArticle/GetRecommendedArticleDetails?articleId="+window.FRArticle.ArticleId).done(function(n){a(n)})}function a(n){if(n&&n.RecommendedArticleDetails&&n.RecommendedArticleDetails.length){var t=r.find(".widget-listing.people-also-looked-at");$.each(n.RecommendedArticleDetails,function(n,i){var r=$(['

','

'].join(""));r.find("a").attr("href",i.ArticleUrl).html(formatTextContent(i.ArticleTitle)),r.find("p.teaser-authors").html(o(i.AuthorDetails)),t.append(r)}),t.removeClass("hidden")}}function o(n){if(!n||!n.length)return"";var i=0,t="",r=n.length;return $.each(n,function(n,u){(i++,t=u.WhosWhoUrl.length?t+''+u.FullName+"":t+u.FullName,r!==1)&&(i==r-1?t=t+" and ":i!=r&&(t=t+", "))}),t}function l(){var n=t.find("div.altmetric-icon");n.on("click",".altmetric-embed>a",function(){ga("send","event","AP_Action","link","goto-altmetric")})}function c(){i.find('a[id^="h"]').addClass("reset-hash-position")}function u(n,t){var r,u,f;t&&t.length&&(r=t.indexOf("/"),r>0&&(t=t.substring(0,r)),u=function(){var n=i.find(t),r;n&&n.length&&(n.hasClass("reset-hash-position")||(r=parseInt(n.offset().top)-parseInt($("body").css("padding-top")),$("html, body").animate({scrollTop:r},100)))},f=n?50:500,setTimeout(u,f))}function p(){n.find("#top-impact-factor").circleProgress({value:1,size:50,thickness:5,fill:{color:"rgba(0, 0, 0, 0.3)"}}).on("circle-animation-progress",function(){});n.find("#top-impact-factor .counter").counterUp()}function g(){var r;n.find("#anchors").find("a[href*=#]:not([href=#], .nav-tabs a)").click(function(){if(location.pathname.replace(/^\//,"")!=this.pathname.replace(/^\//,"")||location.hostname!=this.hostname)return!1;var n=$(this.hash);return(n=n.length?n:$("[name="+this.hash.slice(1)+"]"),!n.length)?!1:($("html,body").animate({scrollTop:n.offset().top},1e3),!1)}),n.find("#anchors").stick_in_parent();var t=200,i=!1,u=new Date(1,1,2e3,12,0,0);$(window).resize(function(){u=new Date,i===!1&&(i=!0,setTimeout(r,t))}),r=function(){new Date-u li > a",function(i){switch($(i.target).data("tabType")){case"views":n.views.IsPMCDataAvailable&&t.find(".modal-footer-pmc").show();break;case"demographics":t.find(".modal-footer-pmc").hide(),kt();break;case"socialbuzz":t.find(".modal-footer-pmc").hide(),oi();break;case"citations":t.find(".modal-footer-pmc").hide()}});t.on("click","#views-timeline-button",function(){ga("send","event","AP_Action","button","impact-tab-view-curve"),u="timeline",bt()});t.on("click","#views-bar-button",function(){ga("send","event","AP_Action","button","impact-tab-view-histogram"),u="bar",yi()});t.on("click",".dropdown-menu li",function(n){ga("send","event","AP_Action","button","impact-tab-change-timeframe"),li(n)});t.on("click",".btn-close",function(){ga("send","event","AP_Action","button","impact-tab-close-click")});t.on("keydown",function(n){n.keyCode==27&&ga("send","event","AP_Action","navigation","impact-tab-close-esc")})}function d(){if(window.FRArticle.IsViewImpactFromLoop)return!1;var n=window.location.hash.replace("#","").toLowerCase(),i=n.indexOf("/"),r="";if(i>0&&(r=n.substring(i+1),n=n.substring(0,i)),!n.length||n!="impact"){t.modal("hide");return}ii(),ri(),ei(),si(),tt(),r!=""&&ti(r)}function ti(n){t.find(".article-impact-tabs .tab-pane").removeClass("active"),t.find(".article-impact-tabs .impact-tabs > li").removeClass("active");switch(n){case"views":t.find(".article-impact-tabs .impact-tabs > li.nav-tab-views").addClass("active"),t.find(".article-impact-tabs .tab-pane#views-tab").addClass("active");break;case"demographics":t.find(".article-impact-tabs .impact-tabs > li.nav-tab-demographics").addClass("active"),t.find(".article-impact-tabs .tab-pane#demographics-tab").addClass("active");break;case"socialbuzz":t.find(".article-impact-tabs .impact-tabs > li.nav-tab-social-buzz").addClass("active"),t.find(".article-impact-tabs .tab-pane#social-buzz-tab").addClass("active");break;case"citations":t.find(".article-impact-tabs .impact-tabs > li.nav-tab-citations").addClass("active"),t.find(".article-impact-tabs .tab-pane#citations-tab").addClass("active")}}function ii(){var n=FRTemplate.bind("template-impact-modal",{doi:window.FRArticle.DOI});t.html(n).modal("show")}function ri(){$.getJSON("/impact/getimpactviews?articleId="+window.FRArticle.ArticleId).done(function(n){ui(n)}).always(function(){t.find(".loader").hide(),t.find(".article-impact-tabs").removeClass("hidden")})}function ui(i){if(!i||!i.IsVisible){t.find("#views-tab").html('

No records found.

');return}i.IsPMCDataAvailable&&t.find(".modal-footer-pmc").show(),n.views=i,fi(),setTimeout(function(){hi(),vi()},500)}function fi(){n.views.TotalViewsAndDownloads?t.find(".nav-tabs .total-views").text(n.views.TotalViewsAndDownloads):t.find(".nav-tabs .total-views").addClass("hidden")}function ei(){$.getJSON("/impact/getimpactdemographics?articleId="+window.FRArticle.ArticleId).done(function(i){i!=null&&i.IsVisible?n.demographics=i:t.find("#demographics-tab").html('

No records found.

')})}function oi(){window.FRArticle.DOI!=undefined&&window.FRArticle.DOI.length!=0&&($.isEmptyObject(n.socialBuzz)?$.getJSON("/Impact/GetImpactSocialBuzz?doi="+window.FRArticle.DOI).done(function(t){t!=null&&(n.socialBuzz=t,l())}):l())}function si(){(window.FRArticle.DOI==undefined||window.FRArticle.DOI.length==0)&&v(),$.isEmptyObject(n.citations)?$.getJSON("/impact/getimpactcitation?doi="+window.FRArticle.DOI).done(function(t){t!=null?(n.citations=t,y(),s()):(v(),s())}):(y(),s())}function v(){n.citations={CitationNumberByScopus:0,CitationNumberByCrossRef:0,HighestCitationNumber:""}}function y(){n.citations!=null&&n.citations.HighestCitationNumber!=null?t.find(".nav-tabs .highest-Citation").text(n.citations.HighestCitationNumber):t.find(".nav-tabs .highest-Citation").addClass("hidden")}function hi(){if(n.views.IsVisible==!1){t.find("#views-tab").html('

No records found.

');return}t.find("#views-bar-chart").hide(),t.find("#views-timeline-chart").show(),h(),ci()}function h(){(t.find(".thisyear, .thismonth").hide(),n.views.TotalViewsYearlySummary!=null)&&(t.find(".sincebeginning").show(),t.find(".sincebeginning").find(".begin-views-downloads").text(n.views.TotalViewsYearlySummary.TotalViewsAndDownloadsCount),t.find(".sincebeginning").find(".begin-views").text(n.views.TotalViewsYearlySummary.TotalViewsCount),t.find(".sincebeginning").find(".begin-downloads").text(n.views.TotalViewsYearlySummary.PDFDownloadCount))}function ci(){var i=t.find(".dropdown-menu"),r=i.find(".beginning");switch(n.views.DefaultViewScaleOption){case"SinceBeginning":f();break;case"LastTwelveMonths":o(),r=i.find(".year");break;case"LastThirtyDays":e(),r=i.find(".month");break;default:f()}ft(r)}function p(){($(".sincebeginning, .thismonth").hide(),n.views.TotalViewsLastTwelveMonthsSummary!=null)&&($(".thisyear").show(),$(".thisyear").find(".year-views-downloads").text(n.views.TotalViewsLastTwelveMonthsSummary.TotalViewsAndDownloadsCount),$(".thisyear").find(".year-views").text(n.views.TotalViewsLastTwelveMonthsSummary.TotalViewsCount),$(".thisyear").find(".year-downloads").text(n.views.TotalViewsLastTwelveMonthsSummary.PDFDownloadCount))}function w(){($(".sincebeginning, .thisyear").hide(),n.views.TotalViewsDailySummary!=null)&&($(".thismonth").show(),$(".thismonth").find(".month-views-downloads").text(n.views.TotalViewsDailySummary.TotalViewsAndDownloadsCount),$(".thismonth").find(".month-views").text(n.views.TotalViewsDailySummary.TotalViewsCount),$(".thismonth").find(".month-downloads").text(n.views.TotalViewsDailySummary.PDFDownloadCount))}function li(n){var t=$(n.currentTarget);u=="timeline"&&(t.text()=="Since beginning"&&f(),t.text()=="Last 12 months"&&o(),t.text()=="Last 30 days"&&e()),u=="bar"&&(t.text()=="Since beginning"&&g(),t.text()=="Last 12 months"&&k(),t.text()=="Last 30 days"&&b()),t.closest(".btn-group").find('[data-bind="label"]').text(t.text()).end().children(".dropdown-toggle").dropdown("toggle")}function f(){n.views.TotalViewsYearlySummary==null?($(".chart-container,#views-chart-controls").hide(),$(".views-empty-message").show(),$("h5.sincebeginning").show(),$("h5.thisyear").hide(),$("h5.thismonth").hide()):($(".chart-container,#views-chart-controls").show(),$(".views-empty-message").hide(),yt(),h()),r()}function o(){n.views.TotalViewsLastTwelveMonthsSummary==null?($(".chart-container,#views-chart-controls").hide(),$(".views-empty-message").show(),$("h5.sincebeginning").hide(),$("h5.thisyear").show(),$("h5.thismonth").hide()):($(".chart-container,#views-chart-controls").show(),$(".views-empty-message").hide(),at(),p()),r()}function e(){n.views.TotalViewsDailySummary==null?($(".chart-container,#views-chart-controls").hide(),$(".views-empty-message").show(),$("h5.sincebeginning").hide(),$("h5.thisyear").hide(),$("h5.thismonth").show()):($(".chart-container,#views-chart-controls").show(),$(".views-empty-message").hide(),et(),w()),r()}function g(){n.views.TotalViewsYearlySummary==null?($(".chart-container,#views-chart-controls").hide(),$(".views-empty-message").show(),$("h5.sincebeginning").show(),$("h5.thisyear").hide(),$("h5.thismonth").hide()):($(".chart-container,#views-chart-controls").show(),$(".views-empty-message").hide(),wt(),h()),r()}function k(){n.views.TotalViewsLastTwelveMonthsSummary==null?($(".chart-container,#views-chart-controls").hide(),$(".views-empty-message").show(),$("h5.sincebeginning").hide(),$("h5.thisyear").show(),$("h5.thismonth").hide()):($(".chart-container,#views-chart-controls").show(),$(".views-empty-message").hide(),vt(),p()),r()}function b(){n.views.TotalViewsDailySummary==null?($(".chart-container,#views-chart-controls").hide(),$(".views-empty-message").show(),$("h5.sincebeginning").hide(),$("h5.thisyear").hide(),$("h5.thismonth").show()):($(".chart-container,#views-chart-controls").show(),$(".views-empty-message").hide(),ht(),w()),r()}function bt(){$("#views-bar-chart").hide(),$("#views-timeline-chart").show(),$("#views-bar-button").removeClass("active"),$("#views-timeline-button").addClass("active");var n=$("#Period").text();n=="Since beginning"&&f(),n=="Last 12 months"&&o(),n=="Last 30 days"&&e()}function vi(){t.find("#views-bar-chart").hide(),t.find("#views-timeline-chart").show(),t.find("#views-bar-button").removeClass("active"),t.find("#views-timeline-button").addClass("active")}function yi(){$("#views-timeline-chart").hide(),$("#views-bar-chart").show(),$("#views-timeline-button").removeClass("active"),$("#views-bar-button").addClass("active");var n=$("#Period").text();n=="Since beginning"&&g(),n=="Last 12 months"&&k(),n=="Last 30 days"&&b()}function r(){$(".highcharts-legend-item").on("click",function(){ga("send","event","AP_Action","button","impact-tab-toggle-curve-selectors")})}function kt(){$.isEmptyObject(n.demographics)?$.getJSON("/impact/getimpactdemographics?articleId="+window.FRArticle.ArticleId).done(function(i){i!=null&&i.IsVisible?(n.demographics=i,c(),a()):t.find("#demographics-tab").html('

No records found.

')}):(c(),a())}function a(){pi(),ut(),nt(),it(),rt(),ot(),st(),ct(),lt()}function l(){var t,i,r;$("div#altmetric-donut a").on("click",function(){ga("send","event","AP_Action","link","goto-altmetric")});n.socialBuzz!=null&&n.socialBuzz.IsVisible?($("#social-buzz-tab").find(".social-buzz-content-area").removeClass("hidden"),n.socialBuzz.All&&(t=FRTemplate.bind("template-social-buzz-all-posts",{socialBuzzPosts:n.socialBuzz.All,allCount:n.socialBuzz.AllCount}),$(".all-posts").html(t)),n.socialBuzz.News&&n.socialBuzz.News.length?(i=FRTemplate.bind("template-social-buzz-news-posts",{socialBuzzPosts:n.socialBuzz.News,newsCount:n.socialBuzz.NewsCount}),$(".news-posts").html(i)):$(".news-posts").html('
So far Altmetric has seen no stories.
'),n.socialBuzz.Blogs&&n.socialBuzz.Blogs.length?(r=FRTemplate.bind("template-social-buzz-blogs-posts",{socialBuzzPosts:n.socialBuzz.Blogs,blogsCount:n.socialBuzz.BlogsCount}),$(".blogs-posts").html(r)):$(".blogs-posts").html('
So far Altmetric has seen no posts.
')):$("#social-buzz-tab").find(".social-buzz-content-area").remove()}function s(){(t.find(".citation-loader").hide(),t.find(".citation-container").removeClass("hidden"),n.citations!=null)&&(n.citations.CitationNumberByScopus!=null&&t.find(".impact-tabs .citation-panel .citaion-scopus").text(n.citations.CitationNumberByScopus),n.citations.CitationNumberByCrossRef!=null&&t.find(".impact-tabs .citation-panel .citation-crossref").text(n.citations.CitationNumberByCrossRef))}function c(){var f=new window.google.maps.LatLng(20,5),i=new window.google.maps.Map(document.getElementById("map"),{zoom:2,center:f,mapTypeId:window.google.maps.MapTypeId.ROADMAP,scrollwheel:!1}),e=[{featureType:"water",stylers:[{color:"#f5f8fc"}]},{featureType:"landscape.natural",stylers:[{color:"#deddbf"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#cac998"}]},{}],r,u;i.setOptions({styles:e}),r=[],n.demographics.OriginLocations!=null&&n.demographics.OriginLocations.IsVisible&&$.each(n.demographics.OriginLocations.DemographicsDetails,function(n,t){var f=new window.google.maps.LatLng(t.Latitude,t.Longitude),u=new MarkerWithLabel({position:f,draggable:!1,icon:"/Areas/Article/Images/Impact/marker2.png",labelContent:t.VisitCount,labelAnchor:new window.google.maps.Point(16,33),labelClass:"labels",labelInBackground:!1,title:this.City+" ("+this.VisitCount+" visits)"});window.google.maps.event.addListener(u,"click",function(){i.panTo(u.getPosition())}),r.push(u)}),mcOptions={styles:[{height:53,url:"/Areas/Article/Images/Impact/m1.png",width:53},{height:56,url:"/Areas/Article/Images/Impact/m2.png",width:56},{height:66,url:"/Areas/Article/Images/Impact/m3.png",width:66},{height:78,url:"/Areas/Article/Images/Impact/m4.png",width:78},{height:90,url:"/Areas/Article/Images/Impact/m5.png",width:90}]},u=new MarkerClusterer(i,r,mcOptions),u.setCalculator(function(n){for(var i=0,t,r,u=0;u500&&i<=1e3?(t=i,r=2):i>1e3&&i<1e6?(t=Math.floor(i/1e3),t>=1&&t<5?r=3:t>=5&&t<10?r=4:t>=10&&(r=5),t=t+"K+"):i>=1e6&&i<1e9?(t=Math.floor(i/1e6)+"M+",r=5):i>=1e9&&(t="1T+",r=5),{text:t,index:r}}),window.google.maps.event.addListenerOnce(i,"idle",function(){t.find("#map-container img.map-loading").hide()})}function pi(){if(n.demographics.TopViewingCountries!=null&&n.demographics.TopViewingCountries.IsVisible){var t=[],i=[];$.each(n.demographics.TopViewingCountries.DemographicsDetails,function(n,r){t.push(r.XValue),i.push({y:r.YValue})}),$("#demographics-top-countries").highcharts({chart:{type:"bar",width:370,height:300,marginLeft:0,style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14}},title:{text:null},xAxis:{categories:t,tickWidth:0,title:{text:null},labels:{align:"left",x:0,y:-18,style:{whiteSpace:"nowrap",color:"black"}}},yAxis:{min:0,title:{enabled:!1},labels:{overflow:"justify"},gridLineColor:"#e0e0e0"},plotOptions:{bar:{dataLabels:{enabled:!0,style:{color:"#000000",fontWeight:"700",fontSize:"16px",lineHeight:"30px"},y:-1},pointWidth:25}},legend:{enabled:!1},credits:{enabled:!1},series:[{name:"Views",color:"#7d7900",data:i}]})}else $("#demographics-top-countries").html('

No records found.

')}function nt(){var t,f,r,u;n.demographics.DomainDemographics!=null&&n.demographics.DomainDemographics.IsVisible?(t="",n.demographics.DomainDemographics.IsOtherVisible&&(t=["","",'','',"","{{fieldContents}}","
{{otherName}}{{otherCount}}
"].join(""),f=["","{{fieldName}}",'{{viewCount}}',""].join(""),r="",$.each(n.demographics.DomainDemographics.OtherDetails,function(n,t){r+=f.replace("{{fieldName}}",t.XValue).replace("{{viewCount}}",t.YValue)}),t=t.replace("{{otherName}}",n.demographics.DomainDemographics.Other.XValue).replace("{{otherCount}}",n.demographics.DomainDemographics.Other.YValue),t=t.replace("{{fieldContents}}",r)),u=[],$.each(n.demographics.DomainDemographics.DemographicsDetails,function(t,i){u.push({name:i.XValue,y:i.YValue,color:n.demographics.DomainDemographics.ColorCodes[t]})}),$("#demographics-domain").highcharts({credits:{enabled:!1},chart:{type:"pie",width:250,height:310,style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14,zIndex:30}},title:{text:null},legend:{layout:"vertical",itemMarginTop:2,itemMarginBottom:2,useHTML:!0,labelFormatter:function(){return''+i(this.name)+' '+this.y+""}},tooltip:{useHTML:!0,borderWidth:0,shadow:!1,backgroundColor:"transparent",formatter:function(){return this.point.name=="Other"&&n.demographics.DomainDemographics.IsOtherVisible?'
'+t+"
":'
'+this.point.name+" "+this.point.y+"
"},style:{zIndex:1e3}},plotOptions:{pie:{center:[96,60],size:160,innerSize:102,allowPointSelect:!0,point:{events:{legendItemClick:function(){return!1}}},allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}},series:[{data:u}]})):$("#demographics-domain").html('

No records found.

')}function it(){var t,f,r,u;n.demographics.FieldDemographics!=null&&n.demographics.FieldDemographics.IsVisible?(t="",n.demographics.FieldDemographics.IsOtherVisible&&(t=["","",'','',"","{{fieldContents}}","
{{otherName}}{{otherCount}}
"].join(""),f=["","{{fieldName}}",'{{viewCount}}',""].join(""),r="",$.each(n.demographics.FieldDemographics.OtherDetails,function(n,t){r+=f.replace("{{fieldName}}",t.XValue).replace("{{viewCount}}",t.YValue)}),t=t.replace("{{otherName}}",n.demographics.FieldDemographics.Other.XValue).replace("{{otherCount}}",n.demographics.FieldDemographics.Other.YValue),t=t.replace("{{fieldContents}}",r)),u=[],$.each(n.demographics.FieldDemographics.DemographicsDetails,function(t,i){u.push({name:i.XValue,y:i.YValue,color:n.demographics.FieldDemographics.ColorCodes[t]})}),$("#demographics-field").highcharts({credits:{enabled:!1},chart:{type:"pie",width:250,height:310,style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14,zIndex:20}},title:{text:null},legend:{layout:"vertical",itemMarginTop:2,itemMarginBottom:2,useHTML:!0,labelFormatter:function(){return''+i(this.name)+' '+this.y+""}},tooltip:{useHTML:!0,borderWidth:0,shadow:!1,backgroundColor:"transparent",formatter:function(){return this.point.name=="Other"&&n.demographics.FieldDemographics.IsOtherVisible?'
'+t+"
":'
'+this.point.name+" "+this.point.y+"
"},style:{zIndex:1e3}},plotOptions:{pie:{center:[96,60],size:160,innerSize:102,point:{events:{legendItemClick:function(){return!1}}},allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}},series:[{data:u}]})):$("#demographics-field").html('

No records found.

')}function rt(){var t,f,r,u;n.demographics.SpecialtyDemographics!=null&&n.demographics.SpecialtyDemographics.IsVisible?(t="",n.demographics.SpecialtyDemographics.IsOtherVisible&&(t=["","",'','',"","{{fieldContents}}","
{{otherName}}{{otherCount}}
"].join(""),f=["","{{fieldName}}",'{{viewCount}}',""].join(""),r="",$.each(n.demographics.SpecialtyDemographics.OtherDetails,function(n,t){r+=f.replace("{{fieldName}}",t.XValue).replace("{{viewCount}}",t.YValue)}),t=t.replace("{{otherName}}",n.demographics.SpecialtyDemographics.Other.XValue).replace("{{otherCount}}",n.demographics.SpecialtyDemographics.Other.YValue),t=t.replace("{{fieldContents}}",r)),u=[],$.each(n.demographics.SpecialtyDemographics.DemographicsDetails,function(t,i){u.push({name:i.XValue,y:i.YValue,color:n.demographics.SpecialtyDemographics.ColorCodes[t]})}),$("#demographics-specialty").highcharts({credits:{enabled:!1},chart:{type:"pie",width:250,height:310,style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14,zIndex:10}},title:{text:null},legend:{layout:"vertical",itemMarginTop:2,itemMarginBottom:2,useHTML:!0,labelFormatter:function(){return''+i(this.name)+' '+this.y+""}},tooltip:{useHTML:!0,borderWidth:0,shadow:!1,backgroundColor:"transparent",formatter:function(){return this.point.name=="Other"&&n.demographics.SpecialtyDemographics.IsOtherVisible?'
'+t+"
":'
'+this.point.name+" "+this.point.y+"
"},style:{zIndex:1e3}},plotOptions:{pie:{center:[96,60],size:160,innerSize:102,point:{events:{legendItemClick:function(){return!1}}},allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}},series:[{data:u}]})):$("#demographics-specialty").html('

No records found.

')}function ut(){if(n.demographics.TopReferringSites!=null&&n.demographics.TopReferringSites.IsVisible){var t=[],i=[];$.each(n.demographics.TopReferringSites.DemographicsDetails,function(n,r){t.push(r.XValue),i.push({y:r.YValue})}),$("#demographics-top-sites").highcharts({chart:{type:"bar",width:370,height:300,marginLeft:0,style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14,zIndex:25}},title:{text:null},xAxis:{categories:t,tickWidth:0,title:{text:null},labels:{align:"left",x:0,y:-18,style:{whiteSpace:"nowrap",color:"black"}}},yAxis:{min:0,title:{enabled:!1},labels:{overflow:"justify"},gridLineColor:"#e0e0e0"},tooltip:{},plotOptions:{bar:{dataLabels:{enabled:!0,style:{color:"#000000",fontWeight:"700",fontSize:"16px",lineHeight:"30px"},y:-1},pointWidth:25}},legend:{enabled:!1},credits:{enabled:!1},series:[{name:"Views",color:"#f29400",data:i}]})}else $("#demographics-top-sites").html('

No records found.

')}function ot(){var t,u;if(n.demographics.IndustryDemographics!=null&&n.demographics.IndustryDemographics.IsVisible){if(t="",n.demographics.IndustryDemographics.IsOtherVisible){var r=["","",'','',"","{{fieldContents}}","
{{otherName}}{{otherCount}}
"].join(""),e=["","{{fieldName}}",'{{viewCount}}',""].join(""),f="";$.each(n.demographics.IndustryDemographics.OtherDetails,function(n,t){f+=e.replace("{{fieldName}}",t.XValue).replace("{{viewCount}}",t.YValue)}),r=r.replace("{{otherName}}",n.demographics.IndustryDemographics.Other.XValue).replace("{{otherCount}}",n.demographics.IndustryDemographics.Other.YValue),t=r.replace("{{fieldContents}}",f)}u=[],$.each(n.demographics.IndustryDemographics.DemographicsDetails,function(t,i){u.push({name:i.XValue,y:i.YValue,color:n.demographics.IndustryDemographics.ColorCodes[t]})}),$("#demographics-industry").highcharts({credits:{enabled:!1},chart:{type:"pie",width:250,height:308,style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14,zIndex:15}},title:{text:null},legend:{layout:"vertical",itemMarginTop:1,itemMarginBottom:1,useHTML:!0,labelFormatter:function(){return''+i(this.name)+' '+this.y+""}},tooltip:{useHTML:!0,borderWidth:0,shadow:!1,backgroundColor:"transparent",formatter:function(){return this.point.name=="Other"&&n.demographics.IndustryDemographics.IsOtherVisible?'
'+t+"
":'
'+this.point.name+" "+this.point.y+"
"},style:{zIndex:1e3}},plotOptions:{pie:{center:[96,60],size:160,innerSize:102,point:{events:{legendItemClick:function(){return!1}}},allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}},series:[{data:u}]})}else $("#demographics-industry").html('

No records found.

')}function st(){var t,u;if(n.demographics.EducationDemographics!=null&&n.demographics.EducationDemographics.IsVisible){if(t="",n.demographics.EducationDemographics.IsOtherVisible){var r=["","",'','',"","{{fieldContents}}","
{{otherName}}{{otherCount}}
"].join(""),e=["","{{fieldName}}",'{{viewCount}}',""].join(""),f="";$.each(n.demographics.EducationDemographics.OtherDetails,function(n,t){f+=e.replace("{{fieldName}}",t.XValue).replace("{{viewCount}}",t.YValue)}),r=r.replace("{{otherName}}",n.demographics.EducationDemographics.Other.XValue).replace("{{otherCount}}",n.demographics.EducationDemographics.Other.YValue),t=r.replace("{{fieldContents}}",f)}u=[],$.each(n.demographics.EducationDemographics.DemographicsDetails,function(t,i){u.push({name:i.XValue,y:i.YValue,color:n.demographics.EducationDemographics.ColorCodes[t]})}),$("#demographics-education").highcharts({credits:{enabled:!1},chart:{type:"pie",width:250,height:308,style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14,zIndex:5}},title:{text:null},legend:{layout:"vertical",itemMarginTop:1,itemMarginBottom:1,useHTML:!0,labelFormatter:function(){return''+i(this.name)+' '+this.y+""}},tooltip:{useHTML:!0,borderWidth:0,shadow:!1,backgroundColor:"transparent",formatter:function(){return this.point.name=="Other"&&n.demographics.EducationDemographics.IsOtherVisible?'
'+t+"
":'
'+this.point.name+" "+this.point.y+"
"},style:{zIndex:1e3}},plotOptions:{pie:{center:[96,60],size:160,innerSize:102,point:{events:{legendItemClick:function(){return!1}}},allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}},series:[{data:u}]})}else $("#demographics-education").html('

No records found.

')}function ct(){var t,u;if(n.demographics.PositionDemographics!=null&&n.demographics.PositionDemographics.IsVisible){if(t="",n.demographics.PositionDemographics.IsOtherVisible){var r=["","",'','',"","{{fieldContents}}","
{{otherName}}{{otherCount}}
"].join(""),e=["","{{fieldName}}",'{{viewCount}}',""].join(""),f="";$.each(n.demographics.PositionDemographics.OtherDetails,function(n,t){f+=e.replace("{{fieldName}}",t.XValue).replace("{{viewCount}}",t.YValue)}),r=r.replace("{{otherName}}",n.demographics.PositionDemographics.Other.XValue).replace("{{otherCount}}",n.demographics.PositionDemographics.Other.YValue),t=r.replace("{{fieldContents}}",f)}u=[],$.each(n.demographics.PositionDemographics.DemographicsDetails,function(t,i){u.push({name:i.XValue,y:i.YValue,color:n.demographics.PositionDemographics.ColorCodes[t]})}),$("#demographics-position").highcharts({credits:{enabled:!1},chart:{type:"pie",width:250,height:308,style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14}},title:{text:null},legend:{layout:"vertical",itemMarginTop:1,itemMarginBottom:1,useHTML:!0,labelFormatter:function(){return''+i(this.name)+' '+this.y+""}},tooltip:{useHTML:!0,borderWidth:0,shadow:!1,backgroundColor:"transparent",formatter:function(){return this.point.name=="Other"&&n.demographics.PositionDemographics.IsOtherVisible?'
'+t+"
":'
'+this.point.name+" "+this.point.y+"
"},style:{zIndex:1e3}},plotOptions:{pie:{center:[96,60],size:160,innerSize:102,point:{events:{legendItemClick:function(){return!1}}},allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}},series:[{data:u}]})}else $("#demographics-position").html('

No records found.

')}function lt(){var i,f;if(n.demographics.GenderDemographics!=null&&n.demographics.GenderDemographics.IsVisible){var t=[],r=[],u=[];$.each(n.demographics.GenderDemographics.DemographicsDetails,function(n,i){t.push(i.AgeRange),u.push(0-i.MValue),r.push(i.FValue)}),i=n.demographics.GenderDemographics.MaxRange,f=0-i,$(document).ready(function(){$("#demographics-age").highcharts({chart:{type:"bar",style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14}},title:{text:null},xAxis:[{categories:t,reversed:!1,labels:{step:1},lineColor:"#e0e0e0",tickColor:"#e0e0e0"},{opposite:!0,reversed:!1,categories:t,linkedTo:0,labels:{step:1},lineColor:"#e0e0e0",tickColor:"#e0e0e0"}],yAxis:{title:{text:null},gridLineColor:"#e0e0e0",labels:{formatter:function(){return Math.abs(this.value)}},min:f,max:i},plotOptions:{series:{stacking:"normal"}},tooltip:{formatter:function(){return''+this.series.name+", age "+this.point.category+"
Views: "+Highcharts.numberFormat(Math.abs(this.point.y),0)+""}},series:[{name:"Male",data:u,color:"#7d7900",dataLabels:{enabled:!0,style:{color:"#7d7900",fontWeight:"700",fontSize:16},inside:!1,x:-2,formatter:function(){if(this.point.y!=0)return Highcharts.numberFormat(Math.abs(this.point.y),0)}}},{name:"Female",data:r,color:"#f29400",dataLabels:{enabled:!0,style:{color:"#f29400",fontWeight:"700",fontSize:16},inside:!1,x:2,formatter:function(){if(this.point.y!=0)return Highcharts.numberFormat(Math.abs(this.point.y),0)}}}]})})}else $("#demographics-age").html('

No records found.

')}function at(){$("#views-timeline-chart").highcharts({credits:{enabled:!1},chart:{type:"spline",style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14},marginLeft:78},title:{text:null},legend:{x:40},xAxis:{gridLineColor:"#e0e0e0",gridLineWidth:1,lineColor:"#e0e0e0",tickColor:"#e0e0e0",categories:n.views.TotalViewsLastTwelveMonthsSummary.Categories},yAxis:{gridLineColor:"#e0e0e0",gridLineWidth:1,lineColor:"#e0e0e0",title:{text:"Views"},min:0},plotOptions:{series:{allowPointSelect:!0}},series:[{name:"Views and Downloads",lineWidth:6,color:"#f29400",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsLastTwelveMonthsSummary.ViewsAndDownloadsData},{name:"Views",visible:!1,lineWidth:6,color:"#7d7900",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsLastTwelveMonthsSummary.ViewsData},{name:"Downloads",visible:!1,lineWidth:6,color:"#eccc00",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsLastTwelveMonthsSummary.DownloadsData}]}),$('text:contains("Highcharts.com")').hide()}function vt(){n.views.TotalViewsLastTwelveMonthsSummary!=null&&$("#views-bar-chart").highcharts({credits:{enabled:!1},chart:{type:"column",style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14},marginLeft:78},title:{text:null},legend:{x:140},xAxis:{categories:n.views.TotalViewsLastTwelveMonthsSummary.Categories},yAxis:{min:0,title:{text:"Views"}},tooltip:{headerFormat:'{point.key}',pointFormat:'',footerFormat:"
{series.name}: {point.y}
",shared:!0,useHTML:!0},plotOptions:{series:{stacking:"normal"}},series:[{name:"Views",color:"#dccd00",data:n.views.TotalViewsLastTwelveMonthsSummary.ViewsData},{name:"Downloads",color:"#7d7900",data:n.views.TotalViewsLastTwelveMonthsSummary.DownloadsData}]})}function yt(){var t="",i=!1;$("#views-timeline-chart").highcharts({credits:{enabled:!1},chart:{type:"spline",style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14},marginLeft:78},title:{text:null},legend:{x:40},xAxis:{gridLineColor:"#e0e0e0",gridLineWidth:1,lineColor:"#e0e0e0",tickColor:"#e0e0e0",categories:n.views.TotalViewsYearlySummary.Categories,labels:{formatter:function(){if(this.isFirst&&(i=this.value.indexOf("-")>0),i){var n=this.value.slice(-4);return t!=n?t=n:""}return this.isLast&&(t=""),this.value}}},yAxis:{gridLineColor:"#e0e0e0",gridLineWidth:1,lineColor:"#e0e0e0",title:{text:"Views"},min:0},plotOptions:{series:{allowPointSelect:!0}},series:[{name:"Views and Downloads",lineWidth:6,color:"#f29400",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsYearlySummary.ViewsAndDownloadsData},{name:"Views",visible:!1,lineWidth:6,color:"#7d7900",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsYearlySummary.ViewsData},{name:"Downloads",visible:!1,lineWidth:6,color:"#eccc00",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsYearlySummary.DownloadsData}]}),$('text:contains("Highcharts.com")').hide()}function wt(){if(n.views.TotalViewsYearlySummary!=null){var t="",i=!1;$("#views-bar-chart").highcharts({credits:{enabled:!1},chart:{type:"column",style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14},marginLeft:78},title:{text:null},legend:{x:140},xAxis:{categories:n.views.TotalViewsYearlySummary.Categories,labels:{formatter:function(){if(this.isFirst&&(i=this.value.indexOf("-")>0),i){var n=this.value.slice(-4);return t!=n?t=n:""}return this.isLast&&(t=""),this.value}}},yAxis:{min:0,title:{text:"Views"}},tooltip:{headerFormat:'{point.key}',pointFormat:'',footerFormat:"
{series.name}: {point.y}
",shared:!0,useHTML:!0},plotOptions:{series:{stacking:"normal"}},series:[{name:"Views",color:"#dccd00",data:n.views.TotalViewsYearlySummary.ViewsData},{name:"Downloads",color:"#7d7900",data:n.views.TotalViewsYearlySummary.DownloadsData}]})}}function et(){$("#views-timeline-chart").highcharts({credits:{enabled:!1},chart:{type:"spline",style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14},marginBottom:80,marginLeft:78},title:{text:null},legend:{x:40},xAxis:{gridLineColor:"#e0e0e0",gridLineWidth:1,lineColor:"#e0e0e0",tickColor:"#e0e0e0",categories:n.views.TotalViewsDailySummary.Categories,labels:{formatter:function(){return""}}},yAxis:{gridLineColor:"#e0e0e0",gridLineWidth:1,lineColor:"#e0e0e0",title:{text:"Views"},min:0},plotOptions:{series:{allowPointSelect:!0}},series:[{name:"Views and Downloads",lineWidth:6,color:"#f29400",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsDailySummary.ViewsAndDownloadsData},{name:"Views",visible:!1,lineWidth:6,color:"#7d7900",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsDailySummary.ViewsData},{name:"Downloads",visible:!1,lineWidth:6,color:"#eccc00",marker:{symbol:"circle",fillColor:"#FFFFFF",radius:7,lineWidth:5,lineColor:null},data:n.views.TotalViewsDailySummary.DownloadsData}]}),$('text:contains("Highcharts.com")').hide()}function ht(){n.views.TotalViewsDailySummary!=null&&$("#views-bar-chart").highcharts({credits:{enabled:!1},chart:{type:"column",style:{fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial',fontSize:14},marginBottom:80,marginLeft:78},title:{text:null},legend:{x:140},xAxis:{categories:n.views.TotalViewsDailySummary.Categories,labels:{formatter:function(){return""}}},yAxis:{min:0,title:{text:"Views"}},tooltip:{headerFormat:'{point.key}',pointFormat:'',footerFormat:"
{series.name}: {point.y}
",shared:!0,useHTML:!0},plotOptions:{series:{stacking:"normal"}},series:[{name:"Views",color:"#dccd00",data:n.views.TotalViewsDailySummary.ViewsData},{name:"Downloads",color:"#7d7900",data:n.views.TotalViewsDailySummary.DownloadsData}]})}function ft(n){n.closest(".btn-group").find('[data-bind="label"]').text(n.text())}function pt(){t.find("#views-chart-controls > div.btn-group.pull-left").tooltip(),t.find("li.pull-right.disable").tooltip()}function tt(){var n={ArticleId:window.FRArticle.ArticleId,LoggedInUserId:window.FRArticle.LoginUserId,DomainId:window.FRArticle.DomainId,FieldId:window.FRArticle.FieldId,SpecialtyId:window.FRArticle.SpecialityId};$.ajax({url:"/impact/logimpactviews",type:"POST",data:n,success:function(){},error:function(){throw new FRError({className:"FRArticleImpact",methodName:"logImpactPageView",message:"Failed to log impact"});}})}function i(n){return n.length>30?jQuery.trim(n).substring(0,27)+"...":n}function ai(n){return moment(n).format("dddd D MMMM YYYY h:mm A")}function wi(){typeof window._altmetric_embed_init!="undefined"&&window._altmetric_embed_init()}var u="timeline",dt=$(".page-container"),t=$(".impact-modal-container"),gt=dt.find(".right-container"),n={views:{},citations:{},demographics:{},socialBuzz:{}};return $(function(){ni(),d()}),{formattedPostedDate:ai}}(),FRAddThis=function(){function w(){window.addthis&&window.addthis.addEventListener&&window.addthis.addEventListener("addthis.menu.share",p)}function p(n){return n.type=="addthis.menu.share"&&l(n.data.service),!0}function a(){var n=t.find(".addthis_button_facebook");i.on("click",function(){if(n.length)n.click();else return});u.on("click",function(){var n=t.find(".addthis_button_google");if(n.length)n.click();else return});r.on("click",function(){var n=t.find(".addthis_button_twitter");if(n.length)n.click();else return});f.on("click",function(){var n=t.find(".addthis_button_linkedin");if(n.length)n.click();else return});e.on("click",function(){var n=t.find(".addthis_button_more");if(n.length)n.click();else return})}function y(){window.FRSocial.pageType==1?v():window.FRSocial.pageType==2&&b()}function v(){$.getJSON("/Social/GetSocialCountByArticleId?articleId="+window.FRArticle.ArticleId).done(function(n){s(n)})}function b(){$.getJSON("/ResearchTopic/"+window.FRResearchTopic.Id+"/SocialCounts").done(function(n){s(n)})}function s(n){typeof n!="undefined"&&n!=null&&(typeof n.Facebook=="undefined"?(i.html(0),i.data("count",0)):(i.html(n.Facebook),i.data("count",n.Facebook)),typeof n.Twitter=="undefined"?(r.html(0),r.data("count",0)):(r.html(n.Twitter),r.data("count",n.Twitter)),typeof n.GooglePlus=="undefined"?(u.html(0),u.data("count",0)):(u.html(n.GooglePlus),u.data("count",n.GooglePlus)),typeof n.LinkedIn=="undefined"?(f.html(0),f.data("count",0)):(f.html(n.LinkedIn),f.data("count",n.LinkedIn)),typeof n.Total=="undefined"||n.Total==0?(e.html("New"),e.data("count",0)):(e.html(n.Total),e.data("count",n.Total)))}function l(t){var i;t!="more"&&(t=="facebook"?(i=n.find(".facebook_count"),o(i)):t=="twitter"?(i=n.find(".twitter_count"),o(i)):t=="google"||t=="google_plusone_share"?(t="google",i=n.find(".googleplus_count"),o(i)):t=="linkedin"?(i=n.find(".linkedin_count"),o(i)):k(),window.FRSocial.pageType==1?c(t):window.FRSocial.pageType==2&&h(t))}function c(n){$.post("/Social/TrackCurrentSocialCounts?id="+window.FRArticle.ArticleId+"&provider="+n)}function h(n){$.post("/ResearchTopic/TrackCurrentSocialCounts?id="+window.FRResearchTopic.Id+"&provider="+n)}function o(t){var u=$(t).data("count"),i=parseInt(u)+parseInt(1),f=n.find(".total_count").data("count"),r=parseInt(f)+parseInt(1);$(t).html(i),n.find(".total_count").html(r),$(t).data("count",i),n.find(".total_count").data("count",r)}function k(){var i=n.find(".total_count").data("count"),t=parseInt(i)+parseInt(1);n.find(".total_count").html(t),n.find(".total_count").data("count",t)}var n=$(".share-media"),t=n.find(".social_block"),i=t.find(".facebook_count"),r=t.find(".twitter_count"),u=t.find(".googleplus_count"),f=t.find(".linkedin_count"),e=t.find(".total_count");$(function(){w(),y(),a()})}()