function UpdateLiveNavFormatted(){showFullNumber=!1;UpdateLiveNav()}function UpdateLiveNav(){var n="/LiveNavHandler/Current.ashx?l="+langCode+"&t="+(new Date).getTime()+"&PreviousNavValue="+previousLastValue+"&key="+clientKey;$.get(n,function(n){var t=n,r,i;t=t.d;isRaised=0;GenerateValuesArray(t);r=t.liveNavParams.jobExcluded;r?(i=t.liveNavList[0].values[t.liveNavList[0].values.length-1],ShowStaticLiveNav(i.Value,i.Date),setTimeout(UpdateLiveNav,6e4)):($("#LiveNavDate").html(""),RollingCounter())})}function ShowStaticLiveNav(n,t){var i=t.substring(0,t.length-3);$("#liveNavNumber").html(thousandSeparator(n));$("#LiveNavDate").html(i+" "+livenavdatespecifier)}function GenerateValuesArray(n){var i,a,u,h,f,c,e,t,s;if(updateFactor!=1&&ChangeUpdateFactor(updateFactor),livNavChanges=[],livNavChanges=[],i=0,a=0,n.liveNavList.length>0)for(u=n.liveNavList[0],h=u.isRaised,h&&(isRaised=!0),previousLastValue=u.values[u.values.length-1].Value,previousLastValue=previousLastValue.split(" ").join(""),f=u.startSecond,f>=50&&(f=f-50),c=u.values.length-Math.floor(Math.random()*11),e=f;e<c;e++){if(t=u.values[e].Value,t=t.split(" ").join(""),t=parseFloat(t),updateFactor!=1){if(e>f)if(i<t)for(var l=t-i,o=l/updateFactor,r=i+o;r<t;)livNavChanges.push(thousandSeparator(r.toFixed())),r=r+o;else if(i>t)for(var l=i-t,o=l/updateFactor,r=i-o;r>t;)livNavChanges.push(thousandSeparator(r.toFixed())),r=r-o;else for(s=1;s<updateFactor;s++)livNavChanges.push(thousandSeparator(t.toFixed()));i=t}livNavChanges.push(thousandSeparator(t.toFixed()))}}function RollingCounter(){var n=0;this.startInverval=function(){var n=this;this.interval=setInterval(function(){n.displayNumber()},calculatedupdateFrequency)};this.stopInverval=function(){clearInterval(this.interval);UpdateLiveNav()};this.displayNumber=function(){n==livNavChanges.length?this.stopInverval():($("#liveNavNumber").html(livNavChanges[n]),n++)};this.startInverval()}function ChangeUpdateFactor(n){calculatedupdateFrequency=updateFrequency/n;calculatedNumberOfUpdates=_numberOfUpdates*n}function thousandSeparator(n){return showFullNumber?n.toString().replace(/\B(?=(?:\d{3})+(?!\d))/g," "):n.toString().replace(/\B(?=(?:\d{3})+(?!\d))/g," ").substring(0,5)}var livNavChanges,_numberOfUpdates=60,calculatedNumberOfUpdates=60,updateFrequency=1e3,calculatedupdateFrequency=1e3,updateFactor=8,previousLastValue=0,isRaised=0,showFullNumber=!0