if(discounts_time_end>0) { var currentT=discounts_time_end-1732113654; function show_date_time_0() { setTimeout("show_date_time_0()", 1000); var daysNow=hoursNow=minutesNow=secondNow=''; daysNow = (Math.floor(currentT/86400)>=10) ? (Math.floor(currentT/86400)).toString() : '0'+(Math.floor(currentT/86400)).toString(); hoursNow = (Math.floor((currentT%86400)/3600)>=10) ? (Math.floor((currentT%86400)/3600)).toString() : '0'+(Math.floor((currentT%86400)/3600)).toString(); minutesNow = (Math.floor((currentT%86400%3600)/60)>=10) ? (Math.floor((currentT%86400%3600)/60)).toString() :'0'+(Math.floor((currentT%86400%3600)/60)).toString(); secondNow = ((currentT%86400%3600)%60>=10) ? ((currentT%86400%3600)%60).toString() :'0'+((currentT%86400%3600)%60).toString(); currentT--; if (currentT<=0) { $("#discountTime").hide(); } else { $("#discountTimeArea").html('
  • '+daysNow+' D
  • '+hoursNow+' H
  • '+minutesNow+' M
  • '+secondNow+' S
  • '); } } if(currentT>0) { $("#discountTime").show(); setTimeout("show_date_time_0()", 100); } }