if(window.oc == undefined) { window.oc = {}; } //var oc = window.oc; if(window.oc.remainingTimeAtStartTime === undefined) { window.oc.remainingTimeAtStartTime=0; } !function(){ window.oc.wParams={"title":"","date_label":"","bg_color":"99CC3300","txt_color":"FFFFFFFF","unit_labels":"days,hours,minutes,seconds"}; window.oc.startTime=new Date().getTime() / 1000; window.oc.countDirection=1; window.oc.scale=1.444; window.oc.repeatMode=0; window.oc.showMilliseconds=false; window.oc.unitLabels = "d,h,m,s".split(","); window.oc.countdownExpired=function() { if(window.oc.repeatMode > 0) { if(window.oc.editor) { window.oc.editor.countdownExpired(); } else { if(oc.timerRef)clearInterval(oc.timerRef); location.reload(); } } } var $__container_oc,__scope_oc,bgColor,bgOpacity,bgRGBA,pad,periods,txtColor,update;__scope_oc=window.oc,$__container_oc=document.querySelectorAll("[data-cdt-id='1386925']"),bgRGBA=parseInt(__scope_oc.wParams.bg_color,16),bgOpacity=255&bgRGBA,bgColor=__scope_oc.wParams.bg_color.substr(0,6),txtColor=__scope_oc.wParams.txt_color.substr(0,6),periods={d:86400,h:3600,m:60},pad=function(o){for(;o.toString().length<2;)o="0"+o;return o},update=function(){var o,e,_,t,c,r,a,n,p,i,s,d;for(r=__scope_oc.unitLabels,n=(new Date).getTime()/1e3,e=n-__scope_oc.startTime,e*=__scope_oc.countDirection,p=Math.max(0,Math.round(__scope_oc.remainingTimeAtStartTime-e)),0===p&&__scope_oc.countdownExpired(),o=p-p%periods.d,_=p-o-p%periods.h,a=p-o-_-p%periods.m,s=p-o-_-a,d=[o/periods.d,pad(_/periods.h),pad(a/periods.m),pad(s)],c=0===o?""+d[1]+r[1]+" "+d[2]+r[2]+" "+d[3]+r[3]:""+d[0]+r[0]+" "+d[1]+r[1]+" "+d[2]+r[2]+" "+d[3]+r[3],t=$__container_oc.length,i=[];t--;)$__container_oc[t].innerHTML=c,$__container_oc[t].style.color="#"+txtColor,bgOpacity?i.push($__container_oc[t].style.background="#"+bgColor):i.push(void 0);return i},update(),__scope_oc.timerRef&&clearInterval(__scope_oc.timerRef),__scope_oc.timerRef=setInterval(update,100),__scope_oc.updateCountdownClock=update; }.call(this);