text: $.fn.StartTimeOut=function(v,I){var w=$(this);var P=new Date();P.setSeconds(P.getSeconds()+I);var D=0;var z=0;var A=0;var E=function(){var b=new Date();if(P>b){var a=parseInt((P.getTime()-b.getTime())/1000);var c=a%60;D=parseInt(a/60);z=parseInt(c);if(c>=z){A=parseInt((c-z)*10)}else{A=0}setTimeout(E,3000)}};var J=w.find("b");var O=J.eq(0);var F=J.eq(1);var C=J.eq(2).children("i");var M=$(C[0]);var x=$(C[1]);var K=9;var B=function(){K--;if(K<0){K=9}x.html(K);setTimeout(B,10)};var N=function(){x.html("0");w.find("#dd_time").html("\u6b63\u5728\u8ba1\u7b97,\u8bf7\u7a0d\u540e\u2026");var a=null;var b=function(){$.ajax({url:"/lottery/lotteryUtil.html?id="+v,type:"GET",success:function(c){if(c=="true"){$.ajax({url:"/lottery/LatestlotteryByProductId.html?id="+v,type:"GET",success:function(h){if(h!="false"){var e="";e+='<dl style="display:none;">';e+='<dt><a href="/lotteryDetail/'+v+'.html" target="_blank" title="'+h.productName+'">';e+='<img alt="'+h.productName+'" src="'+$img+h.productImg+'" /></a></dt>';e+='<dd class="f-gx"><div class="f-gx-user"><span>\u606d\u559c</span><span class="blue"><a href="/u/'+h.userId+'.html" title="'+h.userName+'" target="_blank">'+h.userName+"</a></span><span>\u83b7\u5f97</span></div></dd>";e+='<dd class="u-name"><a href="/lotteryDetail/'+v+'.html" target="_blank" title=" (\u7b2c'+h.productPeriod+"\u671f)"+h.productName+'">(\u7b2c'+h.productPeriod+"\u671f)"+h.productName+"</a></dd>";e+='<dd class="gray">'+h.location+"</dd>";e+="</dl>";e+="<cite></cite>";var f=$(e);f.fadeIn("2000");if(w.hasClass("current2")){w.removeClass("current2");w.addClass("col5")}w.removeClass("current").html(f);var d=$("#em_lotcount");var g=parseInt(d.html());g=g+1;d.html(g);d.hide().fadeIn("1000");if(a!=null){clearInterval(a);a=null}}}})}}})};a=setInterval(b,2000)};var G=function(){A--;if(A<1){if(z<1){if(D<1){N();return}else{D--}z=59}else{z--}A=9}setTimeout(G,100)};var L=0,y=0;var H=function(){M.html(A);if(L!=z){if(z<10){F.html("0"+z)}else{F.html(z)}L=z}if(y!=D){if(D<10){O.html("0"+D)}else{O.html(D)}y=D}setTimeout(H,100)};E();G();B();H()};
  