function ChangeArticleSocialMediaImagesForRetina(){(isRetina()||isHighDensity())&&($("#fbArticleImage").attr("src","https://d3jkudlc7u70kh.cloudfront.net/resources/images/facebook-like2x.png"),$("#twitterArticleImage").attr("src","https://d3jkudlc7u70kh.cloudfront.net/resources/images/twitter-follow2x.png"),$("#instagramArticleImage").attr("src","https://d3jkudlc7u70kh.cloudfront.net/resources/images/instgram-follow2x.png"))}function GetAuggestedArticles(){$.ajax({type:"POST",url:"/webmethod.aspx/getsuggestedarticles",data:JSON.stringify({articleId:$("#hfArticleID").val()}),contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){suggestedArticles=JSON.parse(n.d);suggestedArticles.length>0&&($("#divSuggestedNav").show(),totalPages=Math.ceil(parseInt(suggestedArticles.length)/3),SuggestedArticlesPagination());$("#btnSuggestedPrev").addClass("btnSuggestedDisabled");totalPages>1&&$("#btnSuggestedNext").removeClass("btnSuggestedDisabled")}})}function SuggestedArticlesPagination(){var u=0,e=0,t=3,i,r,n,f;for(pageNo>1?(u=parseInt(pageNo-1)*3,t=parseInt(u+3),$("#btnSuggestedPrev").removeClass("btnSuggestedDisabled")):$("#btnSuggestedPrev").addClass("btnSuggestedDisabled"),t>=suggestedArticles.length&&(t=suggestedArticles.length,$("#btnSuggestedNext").addClass("btnSuggestedDisabled")),pageNo<totalPages&&$("#btnSuggestedNext").removeClass("btnSuggestedDisabled"),i="",r=u;r<t;r++)n=suggestedArticles[r],f="",e==0&&(f="noTopPadding",e++),i+='<a href="/'+n.URL+'" class="'+f+' divSuggestedBox"><div class="suggestedImageSection"><img class="lazyload" data-src="'+n.Image+'" alt="'+n.AltName+'" /><\/div><div class="suggestedTextSection ptSerif">'+n.Title.replace("[#]",n.Count)+"<\/div><\/a>";$.trim(i)!=""&&$("#divSuggestedArticles").html(i)}function GetMoreTrendingArticles(){$.ajax({type:"POST",url:"/webmethod.aspx/getmoretrendingarticles",data:JSON.stringify({pageNo:currentPage}),contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var t;$("#divLoadMoreTrending").text("Load More");var i="",r=JSON.parse(n.d),u=r.Articles,f=r.TotalCount;for(t=0;t<u.length;t++)i+=u[t].Content;$(".divTrendingArticles").append(i);isMobileSticky.matches||$(window).scrollTop($(window).scrollTop()+1);currentPage++;f<=currentPage*5&&$("#divLoadMoreTrending").hide()},failure:function(){console.log("Error loading articles")}})}var isMobileSticky,suggestedArticles,pageNo,totalPages,currentPage;!function(n,t,i){"use strict";function e(t,i){this.element=t;this.settings=n.extend({},h,i);this._defaults=h;this._name=r;this.init()}function a(n,r,u,f){var e=t.innerWidth?t.innerWidth:i.documentElement.clientWidth?i.documentElement.clientWidth:screen.width,o=t.innerHeight?t.innerHeight:i.documentElement.clientHeight?i.documentElement.clientHeight:screen.height,s=e/2-u/2+10,h=o/2-f/2+50;t.open(n,r,"scrollbars=yes, width="+u+", height="+f+", top="+h+", left="+s).focus()}function v(n){return n.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})}function y(n){return n>=1e9?(n/1e9).toFixed(1).replace(/\.0$/,"")+"G":n>=1e6?(n/1e6).toFixed(1).replace(/\.0$/,"")+"M":n>=1e3?(n/1e3).toFixed(1).replace(/\.0$/,"")+"K":n}function o(t,i,r,u){if(s()>961&&n.inArray(i,["content-right","content-left"])!=-1){var f="content-right"===i?r.offsetWidth:-75;t.css("margin-left",f+u)}else t.css("margin-left",0)}function s(){return t.innerWidth?t.innerWidth:i.documentElement.clientWidth?i.documentElement.clientWidth:screen.width}function u(t,i){t&&t>0&&i.append(n("<span>",{"class":"shareCount"}).append(y(t))).find("i").removeClass("margin-top-5")}function f(n){var t;try{t=n()}catch(i){t=0}return t}function p(t,i,r,e,o,s){switch(t){case"facebook":1==o&&n.getJSON("https://graph.facebook.com/?id="+i+"&callback=?",function(n){u(f(function(){return n.share.share_count}),r)});break;case"pinterest":1==s&&n.getJSON("https://api.pinterest.com/v1/urls/count.json?url="+i+"&callback=?",function(n){u(f(function(){return n.count}),r)});break;case"twitter":1==e&&n.getJSON("https://opensharecount.com/count.json?url="+i+"&callback=?",function(n){u(f(function(){return n.count}),r)});break;default:return-1}}var r="floatingSocialShare",h={place:"top-left",counter:!0,twitter_counter:!1,facebook_counter:!1,pinterest_counter:!1,buttons:["facebook","twitter","google-plus"],title:n('meta[property="og:title"]').attr("content")||"",url:t.location.href,description:n('meta[property="og:description"]').attr("content")||"",media:n('meta[property="og:image"]').attr("content")||"",text:{"default":"share with:"},text_title_case:!1,popup_width:400,popup_height:300,extra_offset:15},c,l;n.extend(e.prototype,{init:function(){var f;n.inArray(this.settings.place,c)==-1&&(this.settings.place=this._defaults.place);var i=this,u=n("<div>",{id:"floatingSocialShare"}),r=n("<div>",{"class":this.settings.place}).appendTo(u),e=i.settings.text.default||i.settings.text;n.each(this.settings.buttons,function(t,u){n.each(l,function(t,f){if(u===t){var h=n("<img>",{"class":"margin-top--6 SocialIcon "+u}).attr("src",f.src),c=f.url.replace("{url}",encodeURIComponent(i.settings.url)).replace("{title}",encodeURIComponent(i.settings.title)).replace("{description}",encodeURIComponent(i.settings.description)).replace("{media}",encodeURIComponent(i.settings.media)),o=u=="homebutton"?f.title:i.settings.text[u]||e+f.title,l=i.settings.text_title_case?v(o):o,s=n("<a>",{title:i.settings.title,"class":f.className+" pop-upper"}).attr("href",c).attr("title",l).append(h);return i.settings.counter===!0&&p(u,encodeURI(i.settings.url),s,i.settings.twitter_counter,i.settings.facebook_counter,i.settings.pinterest_counter),r.append(s),!1}})});u.appendTo(this.element);f=n(this.element).find(".pop-upper");f.on("click",function(r){r.preventDefault();n(this).attr("title")=="Home"?t.location.href=n(this).attr("href"):n(this).attr("title")=="Share With Pinterest"?t.location.href=n(this).attr("href"):a(n(this).attr("href"),n(this).attr("title"),i.settings.popup_width,i.settings.popup_height)});o(r,i.settings.place,i.element,i.settings.extra_offset);n(t).resize(function(){o(r,i.settings.place,i.element,i.settings.extra_offset)})}});c=["content-left","content-right","top-left","top-right"];l={homebutton:{title:"Home",className:"homebutton",url:"https://www.factretriever.com/",src:"https://d3jkudlc7u70kh.cloudfront.net/resources/images/homesocial.svg"},facebook:{title:"Facebook",className:"facebook",url:"https://www.facebook.com/sharer/sharer.php?u={url}&t={title}",src:"https://d3jkudlc7u70kh.cloudfront.net/resources/images/facebooksocial.svg"},twitter:{title:"Twitter",className:"twitter",url:"https://twitter.com/intent/tweet?text={title}&url={url}",src:"https://d3jkudlc7u70kh.cloudfront.net/resources/images/twittersocial.svg"},pinterest:{title:"Pinterest",className:"pinterest",url:"javascript:void((function(){ var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());",src:"https://d3jkudlc7u70kh.cloudfront.net/resources/images/pinterestsocial.svg"},whatsapp:{title:"Whatsapp",className:"whatsapp",url:"whatsapp://send?text={title}%20{url}",src:""}};n.fn[r]=function(t){return this.each(function(){n.data(this,"plugin_"+r)||n.data(this,"plugin_"+r,new e(this,t))})}}(jQuery,window,document);!function(n,t,i){"use strict";function f(t,i){this.element=t;this.settings=n.extend({},u,i);this._defaults=u;this._name=r;this.init()}function h(n,r,u,f){var e=t.innerWidth?t.innerWidth:i.documentElement.clientWidth?i.documentElement.clientWidth:screen.width,o=t.innerHeight?t.innerHeight:i.documentElement.clientHeight?i.documentElement.clientHeight:screen.height,s=e/2-u/2+10,h=o/2-f/2+50;t.open(n,r,"scrollbars=yes, width="+u+", height="+f+", top="+h+", left="+s).focus()}function c(n){return n.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})}function l(){return navigator.platform.indexOf("iPhone")!=-1||navigator.platform.indexOf("iPod")!=-1}var r="articleSocialShare",u={place:"article_Social_Sharing",counter:!0,buttons:["facebook","twitter","google-plus"],title:n('meta[property="og:title"]').attr("content")||"",url:t.location.href,description:n('meta[property="og:description"]').attr("content")||"",media:n('meta[property="og:image"]').attr("content")||"",text:{"default":"Share With "},text_title_case:!1,shareup_width:400,shareup_height:300,extra_offset:15},e,o;n.extend(f.prototype,{init:function(){var u;n.inArray(this.settings.place,e)==-1&&(this.settings.place=this._defaults.place);var i=this,r=n("<div>",{id:"articleSocialShare","class":""}),f=n("<div>",{"class":this.settings.place}).appendTo(r),s=i.settings.text["default"]||i.settings.text;n.each(this.settings.buttons,function(t,r){n.each(o,function(t,u){if(r===t){var o=n("<i>",{"class":"fa fa-"+u.iclassName}),h=u.url.replace("{url}",encodeURIComponent(i.settings.url)).replace("{title}",encodeURIComponent(i.settings.title)).replace("{title1}",encodeURIComponent(i.settings.title)).replace("{description}",encodeURIComponent(i.settings.description)).replace("{media}",encodeURIComponent(i.settings.media)),e=i.settings.text[r]||s+u.title,l=i.settings.text_title_case?c(e):e,a=n("<a>",{title:i.settings.title,"class":u.className+" "+u.aclassName}).attr("href",h).attr("title",l).append(o);return f.append(a),!1}})});r.appendTo(this.element);u=n(this.element).find(".click-shareup");u.on("click",function(r){r.preventDefault();n(this).attr("title")=="Share With Pinterest"?t.location.href=n(this).attr("href"):h(n(this).attr("href"),n(this).attr("title"),i.settings.shareUp_width,i.settings.shareup_height)})}});e=["content-left","content-right","top-left","top-right"];o={envelope:{title:"E-mail",className:"envelope",iclassName:"envelope",aclassName:"noclick-shareup",url:"mailto:?subject={title}&body={url}"},facebook:{title:"Facebook",className:"facebook",iclassName:"facebook",aclassName:"click-shareup",url:"https://www.facebook.com/sharer/sharer.php?u={url}&t={title}"},pinterest:{title:"Pinterest",className:"pinterest",iclassName:"pinterest-p",aclassName:"click-shareup",url:"javascript:void((function(){ var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());"},reddit:{title:"Reddit",className:"redditalien",iclassName:"reddit-alien",aclassName:"click-shareup",url:"https://www.reddit.com/submit?url={url}&title={title}"},stumbleupon:{title:"StumbleUpon",className:"stumbleupon",iclassName:"stumbleupon",aclassName:"click-shareup",url:"https://www.stumbleupon.com/submit?url={url}&title={title}"},mobile:{title:"Mobile",className:"mobile",iclassName:"mobile",aclassName:"noclick-shareup",url:l()?"sms:&body={url}":"sms:?body={title} {url}"},twitter:{title:"Twitter",className:"twitter",iclassName:"twitter",aclassName:"click-shareup",url:"https://twitter.com/intent/tweet?text={title}&url={url}"},whatsapp:{title:"Whatsapp",className:"whatsapp",iclassName:"whatsapp",aclassName:"noclick-shareup",url:"whatsapp://send?text={url}"}};n.fn[r]=function(t){return this.each(function(){n.data(this,"plugin_"+r)||n.data(this,"plugin_"+r,new f(this,t))})}}(jQuery,window,document);$(function(){function i(){var n=$("#hddArticleId").val();$.ajax({type:"POST",url:"/webmethod.aspx/getpinnablefact",data:JSON.stringify({Id:n}),contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){$.trim(n.d)!=""?($(".divPinnableFactsBody").html(n.d),r(),$(".divPinnableFacts").show()):$(".divPinnableFacts").hide()},failure:function(){}})}function r(){$(".pin").click(function(){var i=$(".divPinnableFactsBody .pin").length,r=window.matchMedia("only screen and (max-width: 760px)"),t;r.matches||(n=$(this).attr("data-value"),t=$(this).find("img").attr("src"),$(".divPinnableFactsZoomEfect .zoomImage").attr("src",t),$(".divPinnableFactsZoomEfect").show(),n==1&&$(".left.pinnable-control").addClass("disabled"),n==i&&$(".right.pinnable-control").addClass("disabled"))});$("#PrevPin").click(function(){if(n==1)$(this).addClass("disabled");else{$(this).removeClass("disabled");n=parseInt(n)-1;var t=$("#pin-"+n).find("img").attr("src");$(".divPinnableFactsZoomEfect .zoomImage").attr("src",t);$(".right.pinnable-control").removeClass("disabled");n==1&&$(this).addClass("disabled")}});$("#NextPin").click(function(){var t=$(".divPinnableFactsBody .pin").length,i;n==t?$(this).addClass("disabled"):(n=parseInt(n)+1,$(this).removeClass("disabled"),i=$("#pin-"+n).find("img").attr("src"),$(".divPinnableFactsZoomEfect .zoomImage").attr("src",i),$(".left.pinnable-control").removeClass("disabled"),n==t&&$(this).addClass("disabled"))});$("#closePin").click(function(){$(".divPinnableFactsZoomEfect").hide();$(".left.pinnable-control").removeClass("disabled");$(".right.pinnable-control").removeClass("disabled")});$(".slideButtom").click(function(){$(".divPinnableFactsBody").css("height","auto").css("overflow","auto");$(".divButtomMobile").hide()})}function u(){var n=0,t=$(".tblPurpleHeading").length;$(".tblPurpleHeading").each(function(i){var r=$(this).outerWidth();r>n&&(n=r);i==t-1&&$(".divTableContainer").find("table").css("min-width",n+43+"px")})}$(".tblBlueHeading").each(function(){$(this).after('<img class="blueHeadingBGArrow svgLogo" src="https://d3jkudlc7u70kh.cloudfront.net/resources/images/blank.png">')});$(".tblPurpleHeading").each(function(){$(this).after('<img class="purpleHeadingBGArrow svgLogo" src="https://d3jkudlc7u70kh.cloudfront.net/resources/images/blank.png">')});var t=0,n=0;$(document).scroll(function(){u();t==0&&(i(),t=1)})});$(function(){$(".factsList li").each(function(){var n=$(this).outerHeight();n<25&&$(this).css("padding-top","10px")})});$(document).ready(function(){$("body").floatingSocialShare({buttons:["homebutton","facebook","twitter","pinterest"],twitter_counter:!1,facebook_counter:!1,pinterest_counter:!1,text:"Share with ",text_title_case:!0,popup_width:650,popup_height:450});$(".divWriterSocialMediaIcons").articleSocialShare({buttons:["facebook","twitter","pinterest","mobile","whatsapp","reddit","stumbleupon","envelope"],twitter_counter:!1,facebook_counter:!1,pinterest_counter:!1,text:"Share With ",text_title_case:!1,popup_width:650,popup_height:450});$(".divSocialMediaIconsButtom").articleSocialShare({buttons:["facebook","twitter","pinterest","mobile","whatsapp","reddit","stumbleupon","envelope"],twitter_counter:!1,facebook_counter:!1,pinterest_counter:!1,text:"Share With ",text_title_case:!1,popup_width:650,popup_height:450})}),function(n,t,i){"use strict";var s=function(n){console.log(n)},u=n(t),f=t.document,e=n(f),o=function(){for(var i,n=3,t=f.createElement("div"),r=t.getElementsByTagName("i");t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->",r[0];);return n>4?n:i}(),r=function(){var n=t.pageXOffset!==i?t.pageXOffset:f.compatMode=="CSS1Compat"?t.document.documentElement.scrollLeft:t.document.body.scrollLeft,u=t.pageYOffset!==i?t.pageYOffset:f.compatMode=="CSS1Compat"?t.document.documentElement.scrollTop:t.document.body.scrollTop,e,o;typeof r.x=="undefined"&&(r.x=n,r.y=u);typeof r.distanceX=="undefined"?(r.distanceX=n,r.distanceY=u):(r.distanceX=n-r.x,r.distanceY=u-r.y);e=r.x-n;o=r.y-u;r.direction=e<0?"right":e>0?"left":o<=0?"down":o>0?"up":"first";r.x=n;r.y=u};u.on("scroll",r);n.fn.style=function(i){var u,e,r,o;return i?(u=n(this),r=u.clone().css("display","none"),r.find("input:radio").attr("name","copy-"+Math.floor(Math.random()*100+1)),u.after(r),o=function(n,i){var r;return n.currentStyle?r=n.currentStyle[i.replace(/-\w/g,function(n){return n.toUpperCase().replace("-","")})]:t.getComputedStyle&&(r=f.defaultView.getComputedStyle(n,null).getPropertyValue(i)),/margin/g.test(i)?parseInt(r)===u[0].offsetLeft?r:"auto":r},typeof i=="string"?e=o(r[0],i):(e={},n.each(i,function(n,t){e[t]=o(r[0],t)})),r.remove(),e||null):null};n.fn.extend({hcSticky:function(f){return this.length==0?this:(this.pluginOptions("hcSticky",{top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,className:"sticky",wrapperClassName:"wrapper-sticky",stickTo:null,responsive:!0,followScroll:!0,offResolutions:null,onStart:n.noop,onStop:n.noop,on:!0,fn:null},f||{},{reinit:function(){n(this).hcSticky()},stop:function(){n(this).pluginOptions("hcSticky",{on:!1}).each(function(){var t=n(this),i=t.pluginOptions("hcSticky"),r=t.parent("."+i.wrapperClassName),u=t.offset().top-r.offset().top;t.css({position:"absolute",top:u,bottom:"auto",left:"auto",right:"auto"}).removeClass(i.className)})},off:function(){n(this).pluginOptions("hcSticky",{on:!1}).each(function(){var t=n(this),i=t.pluginOptions("hcSticky"),r=t.parent("."+i.wrapperClassName);t.css({position:"relative",top:"auto",bottom:"auto",left:"auto",right:"auto"}).removeClass(i.className);r.css("height","auto")})},on:function(){n(this).each(function(){n(this).pluginOptions("hcSticky",{on:!0,remember:{offsetTop:u.scrollTop()}}).hcSticky()})},destroy:function(){var i=n(this),r=i.pluginOptions("hcSticky"),t=i.parent("."+r.wrapperClassName);i.removeData("hcStickyInit").css({position:t.css("position"),top:t.css("top"),bottom:t.css("bottom"),left:t.css("left"),right:t.css("right")}).removeClass(r.className);u.off("resize",r.fn.resize).off("scroll",r.fn.scroll);i.unwrap()}}),f&&typeof f.on!="undefined"&&(f.on?this.hcSticky("on"):this.hcSticky("off")),typeof f=="string")?this:this.each(function(){var f=n(this),s=f.pluginOptions("hcSticky"),h=function(){var n=f.parent("."+s.wrapperClassName);return n.length>0?(n.css({height:f.outerHeight(!0),width:function(){var t=n.style("width");return t.indexOf("%")>=0||t=="auto"?(f.css("box-sizing")=="border-box"||f.css("-moz-box-sizing")=="border-box"?f.css("width",n.width()):f.css("width",n.width()-parseInt(f.css("padding-left")-parseInt(f.css("padding-right")))),t):f.outerWidth(!0)}()}),n):!1}()||function(){var t=f.style(["width","margin-left","left","right","top","bottom","float","display"]),i=f.css("display"),r=n("<div>",{"class":s.wrapperClassName}).css({display:i,height:f.outerHeight(!0),width:function(){return t.width.indexOf("%")>=0||t.width=="auto"&&i!="inline-block"&&i!="inline"?(f.css("width",parseFloat(f.css("width"))),t.width):t.width=="auto"&&(i=="inline-block"||i=="inline")?f.width():t["margin-left"]=="auto"?f.outerWidth():f.outerWidth(!0)}(),margin:t["margin-left"]?"auto":null,position:function(){var n=f.css("position");return n=="static"?"relative":n}(),float:t.float||null,left:t.left,right:t.right,top:t.top,bottom:t.bottom,"vertical-align":"top"});return f.wrap(r),o===7&&n("head").find("style#hcsticky-iefix").length===0&&n('<style id="hcsticky-iefix">.'+s.wrapperClassName+" {zoom: 1;}<\/style>").appendTo("head"),f.parent()}(),p,v,w,b;if(!f.data("hcStickyInit")){f.data("hcStickyInit",!0);p=s.stickTo&&(s.stickTo=="document"||s.stickTo.nodeType&&s.stickTo.nodeType==9||typeof s.stickTo=="object"&&s.stickTo instanceof(typeof HTMLDocument!="undefined"?HTMLDocument:Document))?!0:!1;v=s.stickTo?p?e:typeof s.stickTo=="string"?n(s.stickTo):s.stickTo:h.parent();f.css({top:"auto",bottom:"auto",left:"auto",right:"auto"});u.load(function(){f.outerHeight(!0)>v.height()&&(h.css("height",f.outerHeight(!0)),f.hcSticky("reinit"))});var l=function(n){f.hasClass(s.className)||(n=n||{},f.css({position:"fixed",top:n.top||0,left:n.left||h.offset().left}).addClass(s.className),s.onStart.apply(f[0]),h.addClass("sticky-active"))},a=function(n){(n=n||{},n.position=n.position||"absolute",n.top=n.top||0,n.left=n.left||0,f.css("position")=="fixed"||parseInt(f.css("top"))!=n.top)&&(f.css({position:n.position,top:n.top,left:n.left}).removeClass(s.className),s.onStop.apply(f[0]),h.removeClass("sticky-active"))},d=function(){var y;if(s.on&&f.is(":visible")){if(f.outerHeight(!0)>=v.height()){a();return}var t=s.innerSticker?n(s.innerSticker).position().top:s.innerTop?s.innerTop:0,b=h.offset().top,k=v.height()-s.bottomEnd+(p?0:b),w=h.offset().top-s.top+t,i=f.outerHeight(!0)+s.bottom,e=u.height(),o=u.scrollTop(),c=f.offset().top,d=c-o,g;if(typeof s.remember!="undefined"&&s.remember){y=c-s.top-t;i-t>e&&s.followScroll?y<o&&o+e<=y+f.height()&&(s.remember=!1):s.remember.offsetTop>y?o<=y&&(l({top:s.top-t}),s.remember=!1):o>=y&&(l({top:s.top-t}),s.remember=!1);return}o>w?k+s.bottom-(s.followScroll&&e<i?0:s.top)<=o+i-t-(i-t>e-(w-t)&&s.followScroll?(g=i-e-t)>0?g:0:0)?a({top:k-i+s.bottom-b}):i-t>e&&s.followScroll?d+i<=e?r.direction=="down"?l({top:e-i}):d<0&&f.css("position")=="fixed"&&a({top:c-(w+s.top-t)-r.distanceY}):r.direction=="up"&&c>=o+s.top-t?l({top:s.top-t}):r.direction=="down"&&c+i>e&&f.css("position")=="fixed"&&a({top:c-(w+s.top-t)-r.distanceY}):l({top:s.top-t}):a()}},y=!1,c=!1,k=function(){var r,i,n,t;(b(),w(),s.on)&&(r=function(){f.css("position")=="fixed"?f.css("left",h.offset().left):f.css("left",0)},s.responsive&&(c||(c=f.clone().attr("style","").css({visibility:"hidden",height:0,overflow:"hidden",paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}),h.after(c)),i=h.style("width"),n=c.style("width"),n=="auto"&&i!="auto"&&(n=parseInt(f.css("width"))),n!=i&&h.width(n),y&&clearTimeout(y),y=setTimeout(function(){y=!1;c.remove();c=!1},250)),r(),f.outerWidth(!0)!=h.width()&&(t=f.css("box-sizing")=="border-box"||f.css("-moz-box-sizing")=="border-box"?h.width():h.width()-parseInt(f.css("padding-left"))-parseInt(f.css("padding-right")),t=t-parseInt(f.css("margin-left"))-parseInt(f.css("margin-right")),f.css("width",t)))};f.pluginOptions("hcSticky",{fn:{scroll:d,resize:k}});w=function(){if(s.offResolutions){n.isArray(s.offResolutions)||(s.offResolutions=[s.offResolutions]);var t=!0;n.each(s.offResolutions,function(n,i){i<0?u.width()<i*-1&&(t=!1,f.hcSticky("off")):u.width()>i&&(t=!1,f.hcSticky("off"))});t&&!s.on&&f.hcSticky("on")}};w();u.on("resize",k);b=function(){var r=!1;if(n._data(t,"events").scroll!=i&&n.each(n._data(t,"events").scroll,function(n,t){t.handler==s.fn.scroll&&(r=!0)}),!r){s.fn.scroll(!0);u.on("scroll",s.fn.scroll)}};b()}})}})}(jQuery,this),function(n,t){"use strict";n.fn.extend({pluginOptions:function(i,r,u,f){return(this.data(i)||this.data(i,{}),i&&typeof r=="undefined")?this.data(i).options:(u=u||r||{},typeof u=="object"||u===t?this.each(function(){var t=n(this);t.data(i).options?t.data(i,n.extend(t.data(i),{options:n.extend(t.data(i).options,u||{})})):(t.data(i,{options:n.extend(r,u||{})}),f&&(t.data(i).commands=f))}):typeof u=="string"?this.each(function(){n(this).data(i).commands[u].call(this)}):this)}})}(jQuery);isMobileSticky=window.matchMedia("only screen and (max-width: 992px)");$(document).ready(function(){});$(document).ready(function(){$(function(){var n=$("#ContentPlaceHolder1_suggestedforyou1_IsShowSuggestForYou").val();n=="false"?($("#divSuggestedForYouContainer").show(),GetAuggestedArticles()):$("#divSuggestedForYouContainer").hide();$("#btnSuggestedNext").click(function(){pageNo<totalPages&&(pageNo=pageNo+1,SuggestedArticlesPagination())});$("#btnSuggestedPrev").click(function(){pageNo>1&&(pageNo=pageNo-1,SuggestedArticlesPagination())})})});pageNo=1;totalPages=0;$(function(){$("#divLoadMoreTrending").click(function(){GetMoreTrendingArticles()})});currentPage=1