var hanul=hanul||{};hanul.Clock=function(a,b,e,c,d){this.B=a;this.g=b;this.k=e;this.r=c.split("|");this.F=d.split("|");this.f=0;this.I=this.p(this.m);this.a=new Date;this.m();this.o()};hanul.Clock.prototype.p=function(a){var b=this,e=[].slice.call(arguments,1);return function(){var c=e.concat([].slice.call(arguments));return a.apply(b,c)}};hanul.Clock.prototype._setTimezone=function(a){this.g=a;this.v();this.o()};hanul.Clock.prototype.j=function(a){return a<10?"0"+a:""+a};
hanul.Clock.prototype.w=function(){var a=new Date;a=a.getTime()+a.getTimezoneOffset()*6E4;this.a.setTime(a+this.g*36E5)};hanul.Clock.prototype._getDay=function(a){a=(this.a.getDay()+a)%7;return this.r[a]};hanul.Clock.prototype.s=function(){var a=this.a.getFullYear(),b=this.a.getMonth()+1,e=this.a.getDate(),c=this.a.getDay(),d=this.F[this.k];d=d.replace(/YY/,a);d=d.replace(/MM/,b);d=d.replace(/DD/,e);return d=d.replace(/DAY/,this.r[c])};
hanul.Clock.prototype.t=function(){var a=this.a.getHours(),b=this.a.getMinutes(),e=this.a.getSeconds();if(a>12)a-=12;var c=[];c.push(a);c.push(":");c.push(this.j(b));c.push(":");c.push(this.j(e));return c.join("")};hanul.Clock.prototype.m=function(){this.w();this.B(this.s(),this.t(),this.a.getHours(),this.a.getMinutes(),this.a.getSeconds())};hanul.Clock.prototype.o=function(){if(!this.f)this.f=window.setInterval(this.I,1E3)};
hanul.Clock.prototype.v=function(){if(this.f){window.clearInterval(this.f);this.f=0}};