(function(){function n(n){n=n.split(",").map(Number);$.ajax({type:"get",url:"/Product/GetBoxForCarousel",data:{boxIds:n},success:function(n){$(".imgCarousel").html(n).promise().done(function(){showHiddenImages()})},traditional:!0})}function t(n,t){$.get("/Product/GetProductsForScroller",{boxId:n}).done(function(n){$(".productScroller").eq(t).html(n);revealProductScroller()})}$(document).ready(function(){var r=$(".imgCarousel"),i,f,e,u;if(typeof r!="undefied")for(i=0;i0&&i)).join("0")+n}$(".nCountDowner").each(function(){var i=$(this),u,t,r,f;i.hide();u=$(this).parent().find(".nCountResult").first();i!=undefined&&i.length>0&&i.text()!=null&&i.text().length==16&&(t=i.text(),r=new Date(t).getTime(),isNaN(r)&&(t=t.substr(0,4)+"-"+t.substr(5,2)+"-"+t.substr(8,2)+" "+t.substr(11,2)+":"+t.substr(14,2)+":00",r=new Date(t).getTime()),isNaN(r)&&(t=t.substr(5,2)+"/"+t.substr(8,2)+"/"+t.substr(0,4)+" "+t.substr(11,2)+":"+t.substr(14,2)+":00",r=new Date(t).getTime()),f=setInterval(function(){var i=(new Date).getTime(),t=r-i,e=Math.floor(t/864e5),o=Math.floor(t%864e5/36e5),s=Math.floor(t%36e5/6e4),h=Math.floor(t%6e4/1e3);u.html(n(e,2)+" days<\/span> : "+n(o,2)+" hrs<\/span> : "+n(s,2)+" min<\/span> : "+n(h,2)+" sec<\/span> ");t<0&&(clearInterval(f),u.html("00 days<\/span> : 00 hrs<\/span> : 00 min<\/span> : 00 sec<\/span>"));u.removeClass("hidden")},1e3))})})