var gutc = new Date(2018,10-1,21,4,22,09);var gtz1 = -3600;var gtz2 = -10800;var gtz3 = 14400;var gtz4 = 25200;var gtz5 = -32400;var gtz6 = -28800;var gtz7 = 36000;var gtz8 = 7200;var gtz9 = -7200;var gtz10 = -39600;function $$(t){return document.getElementById(t)}function $URL(t){var c;switch(t){case 1:c="/";break;case 2:c="/worldclock";break;case 3:c="/time";break;case 4:c="/date";break;case 5:c="/alarm";break;case 6:c="/life";break;case 7:c="/articles";break;case 8:c="/more";break;case 9:c="/games";break;default:c=t}location.href=c}var gsw,gaw,gpth,gtz,gt=new Date,gct=(new Date).getTime(),gutcDif=gt-gutc,gtf=gutcDif/9e5,gmth=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gwkd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],gml=0,gmw=0,tmp,tmp2;!function(){function t(){0==b?(b=1,$("#SIDE").css("height","400px")):(b=0,$("#SIDE").css("height","0"))}function c(){gsw=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,gaw=676,676>gsw&&(gaw=gsw),336>gaw&&(gaw=336),gtz=1,676>gsw&&(gtz=0),gsw>639?($("#SIDE").css("height",""),tmp2=44,685>=gsw&&(tmp2=40),tmp2=""==gpth?2+0*tmp2:"worldclock"==gpth?2+1*tmp2:"time"==gpth?2+2*tmp2:"date"==gpth?2+3*tmp2:"alarm"==gpth?2+4*tmp2:"life"==gpth?2+5*tmp2:"ideas"==gpth||"news"==gpth?2+6*tmp2:"games"==gpth?2+7*tmp2:2+8*tmp2,$("#Hnll").css("left",tmp2+"px")):$("#SIDE").css("height","0"),b=0}function a(t){var c=$(t).val().toUpperCase();"WORLD POPULATION"==c||"WORLD POP"==c||"POP"==c||"POPULATION"==c||"POPULATION OF WORLD"==c||"WORLD OF THE WORLD"==c?window.location.href="/worldclock/":window.location.href="/time/?q="+$(t).val()}function s(t,c,a){var s=0,e=0,n='SunMonTueWedThuFriSat';$("#Ct").html(a+" "+gmth[c]+" "+t);var l=new Date(t,c+1,0),b=l.getDate();for(29>b&&(s=1),29==b&&l.getDay()>0&&(s=1),30==b&&l.getDay()>1&&(s=1),31==b&&l.getDay()>2&&(s=1),i=1;i<=b;i++){var l=new Date(t,c,i);i>0&&0==l.getDay()&&s++,e=l.getDay(),n+=a==i?''+i+"":''+i+""}$("#Cc").html(n)}function e(t,c,a){var s=(t+11)%12+1,i=t>=12?'PM':"",e=("0"+c).slice(-2),n=gt.getDay(),n=n!=a?''+gwkd[a]+"":"";return s+":"+e+i+n}var n=' ';$("#HEAD").html(n),n='About | Contact | Privacy Polocy',$("#FOOT").html(n),$("#Hcdi").html((gtf>0?"UTC + ":"UTC - ")+Math.abs(Math.round(gtf))/4),gtf=9e5*(gtf-Math.round(gtf)),n='LondonMoscowNew YorkLATokyoSydney',$("#SIDE").html(n);var l=window.location.pathname.split("/");gpth=l[1],tmp2=44,685>=gsw&&(tmp2=34),tmp2=""==gpth?2+0*tmp2:"worldclock"==gpth?2+1*tmp2:"time"==gpth?2+2*tmp2:"date"==gpth?2+3*tmp2:"alarm"==gpth?2+4*tmp2:"life"==gpth?2+5*tmp2:"ideas"==gpth||"news"==gpth?2+6*tmp2:"games"==gpth?2+7*tmp2:2+8*tmp2,$("#Hnll").css("left",tmp2+"px");var b=0;$("#Hnmb").click(function(){t()}),$(window).resize(function(){c()}),c(),$("#Hcsb").click(function(){a("#Hcst")}),$("#Hcst").keypress(function(t){13==t.which&&a("#Hcst")});var r,g,d,o,h,H,p,S,m=0,f=["-826px -350px","-866px -237px","-908px -350px"],v="transform:rotate(",u="deg);-webkit-transform:rotate(",w=-2,D=$$("Hcm"),k=$$("Hchh"),C=$$("Hcmh"),L=$$("Hcsh"),y=$$("Hchs"),U=$$("Hcms"),R=$$("Hcdh"),M=$$("Hcdm");Cds=$$("Hcds"),Cdp=$$("Hcdp"),Cdc=$$("Hcdc"),setInterval(function(){if(D.style.backgroundPosition=f[m],2==m?m=0:m++,gct=(new Date).getTime(),gt=new Date(gct-gtf),g=gt.getMinutes(),d=gt.getSeconds(),L.setAttribute("style",v+6*d+u+6*d+"deg);"),Cds.innerHTML=("0"+d).slice(-2),g!==w&&(r=gt.getHours(),o=gt.getMonth(),H=gt.getDate(),h=gt.getDay(),p=6*g,S=30*r+g/2.1,w=g,C.setAttribute("style",v+p+u+p+"deg);"),U.setAttribute("style",v+p+u+p+"deg);"),k.setAttribute("style",v+S+u+S+"deg);"),y.setAttribute("style",v+S+u+S+"deg);"),R.innerHTML=(r+11)%12+1,M.innerHTML=("0"+g).slice(-2),Cdp.innerHTML=r>=12?"PM":"",Cdc.innerHTML=gwkd[h]+" "+gt.getFullYear()+"
"+H+" "+gmth[o],1==gtz)){var t=new Date(gct-gutcDif-1e3*gtz1);$("#S3ct1").html(e(t.getHours(),t.getMinutes(),t.getDay()));var t=new Date(gct-gutcDif-1e3*gtz2);$("#S3ct2").html(e(t.getHours(),t.getMinutes(),t.getDay()));var t=new Date(gct-gutcDif-1e3*gtz3);$("#S3ct3").html(e(t.getHours(),t.getMinutes(),t.getDay()));var t=new Date(gct-gutcDif-1e3*gtz4);$("#S3ct4").html(e(t.getHours(),t.getMinutes(),t.getDay()));var t=new Date(gct-gutcDif-1e3*gtz5);$("#S3ct5").html(e(t.getHours(),t.getMinutes(),t.getDay()));var t=new Date(gct-gutcDif-1e3*gtz10);$("#S3ct6").html(e(t.getHours(),t.getMinutes(),t.getDay()))}},100),n='',$("#PGc").html(n);var j=new Date;s(j.getFullYear(),j.getMonth(),j.getDate())}();