var timer=null,currentTime=null;
function showtimedate(){var a=null;if(null!=document.getElementById("legalTime")||null!=document.getElementById("legalTimeFull")){if(null!=document.getElementById("legalTime")){if(null==document.getElementById("timedisplay")||null==document.getElementById("legalTime").getAttribute("UserTimezone")||null==document.getElementById("legalTime").getAttribute("UserOffset"))return;a=parseInt(document.getElementById("legalTime").getAttribute("UserOffset"))}if(null!=document.getElementById("legalTimeFull")){if(null==document.getElementById("timedisplayfull")||
null==document.getElementById("legalTimeFull").getAttribute("UserTimezone")||null==document.getElementById("legalTimeFull").getAttribute("UserOffset"))return;a=parseInt(document.getElementById("legalTimeFull").getAttribute("UserOffset"))}currentTime=ServerDatetime.getTime()+6E4*a;increment()}}var latestDateTime=new Date;
function increment(){var a=Math.abs(latestDateTime-new Date);window.currentTime+=a;latestDateTime=new Date;var b=new Date(window.currentTime),a=NextWay.Localization.dayNames[b.getDay()]+", ",g=b.getDate()+" ",h=NextWay.Localization.monthNamesShort[b.getMonth()]+", ",k=b.getFullYear(),f=b.getHours(),c=b.getMinutes(),c=(10>c?"0":"")+c,b=b.getSeconds(),b=(10>b?"0":"")+b,d="";if(null!=document.getElementById("legalTime")||null!=document.getElementById("legalTimeFull")){if(null!=document.getElementById("legalTime")){document.getElementById("legalTime").getAttribute("UserTimezone");
var e=document.getElementById("legalTime").getAttribute("UserTimezoneAbreviation");null!=e?(d=f+":"+c+":"+b,document.getElementById("timedisplay_uct").innerHTML=e):(d=a+g+h+k+" "+f+":"+c+":"+b,document.getElementById("timedisplay_uct").innerHTML="");document.getElementById("timedisplay").innerHTML=d}null!=document.getElementById("legalTimeFull")&&(document.getElementById("legalTimeFull").getAttribute("UserTimezone"),e=document.getElementById("legalTimeFull").getAttribute("UserTimezoneAbreviation"),
d=g+h+k+"("+e+") "+f+":"+c+":"+b,document.getElementById("timedisplayfull").innerHTML=d);timer=setTimeout("increment()",1E3)}}initializeCompaniesSelector=function(){null!=document.getElementById("companiesSelector")&&($("[name=companiesSelector]").sb({fixedwidth:!0,ddCtx:function(){return $(this).closest("div")}}),$("div.companiesSelector").css("width",parseFloat($("div.companiesSelector").css("width"))-30))};
initializeSearchTypeSelector=function(){null!=document.getElementById("searchtypeselector")&&$("[name=searchtypeselector]").sb({fixedwidth:!0,ddCtx:function(){return $(this).closest("div")}})};function start(){showtimedate();initializeCompaniesSelector();initializeSearchTypeSelector()}
function SmartPagesRoundNumber(a){if(null==a||void 0==a||0==a.length)return"";a=a.toFixed(2);x=(a+"").split(".");x1=x[0];x2=1<x.length?","+x[1]:"";for(a=/(\d+)(\d{3})/;a.test(x1);)x1=x1.replace(a,"$1.$2");return x1+x2};
