var UU=UU||{};var actEndTime=new Date("2026/05/01").getTime();(UU.init=function(){$(window).scroll(function(){var b=$(document).scrollTop();var f=$(window).height();var a=$("#bottomFloat").height();var d=$("#backTopFloat").height();var e=f+b-a;var c=f+b-d-20;if($.browser.msie&&($.browser.version=="6.0")&&!$.support.style){$("#bottomFloat").stop().animate({"top":e},"fast");$("#backTopFloat").stop().animate({"top":c},"fast")}if(b>300){$("#leftFloat").show();$("#rightFloat").show();$("#backTopFloat").show()}else{$("#leftFloat").hide();$("#rightFloat").hide();$("#backTopFloat").hide()}});$("[data-slow]").click(function(d){var a=$(this).attr("href").substring(1);var c=$("#"+a);var b=c.offset().top;$("window,body,html").animate({scrollTop:b},300);d.preventDefault()});$(document).ready(function(){if(new Date().getTime()>actEndTime){UU=null}UU.lazyload("img[src2]")})})();UU.tab=function(e,c){var f={paneCount:2,uevent:"hover"};var d=$.extend({},f,c);var b=d.paneCount;var a=d.uevent;$(e).each(function(){var i=$(this);var h=i.find(".tab-btn");var j=i.find(".tab-pane-box");var g=i.find(".tab-pane");h.live(a,function(){var l=$(this);var k=l.index();l.addClass("on").siblings().removeClass("on");g.eq(k).addClass("on").siblings().removeClass("on")})})};UU.slideFocus=function(a,n){var g={pageWidth:1000,pageHeight:500,pageCount:3,interval:3000,delay:5000,speed:500,auto:true,easing:"linear",pageNumWidth:12};var b=$.extend({},g,n);var l=b.pageWidth;var h=b.pageHeight;var f=b.pageCount;var d=b.interval;var i=b.delay;var e=b.speed;var m=b.auto;var k=b.easing;var j=b.pageNumWidth;var c=null;$(a).each(function(){var t=$(this);var p=t.find(".btn");var o=t.find(".prev");var w=t.find(".next");var v=t.find(".nums");var s=v.find(".num");var y=t.find(".box");var x=t.find(".content");var u=t.find(".page");var z=function(){var A=(j+4)*f;v.css({"width":A,"marginLeft":-A/2});y.css({"width":l,"height":h,"overflow":"hidden"});x.css({"width":l*f*2,"left":-l*f});u.css({"width":l,"height":h});x.append(x.html())}();var q=function(){x.stop().animate({left:[-l*(f+1),k]},e,function(){var A=x.find(".page");x.append(A.eq(0).clone());A.eq(0).remove();x.css({left:-l*f});r()})};var r=function(){var A=t.find(".page").eq(f).attr("data-page");t.find(".num").eq(A-1).addClass("on").siblings().removeClass("on")};if(m){c=setInterval(q,d);t.hover(function(){clearInterval(c)},function(){c=setTimeout(function(){c=setInterval(q,d)},i)})}w.click(function(){x.stop().animate({left:[-l*(f+1),k]},e,function(){var A=x.find(".page");x.append(A.eq(0).clone());A.eq(0).remove();x.css({left:-l*f});r()})});o.click(function(){x.stop().animate({left:[-l*(f-1),k]},e,function(){var A=x.find(".page");var B=f*2-1;x.prepend(A.eq(B).clone());A.eq(B).remove();x.css({left:-l*f});r()})});s.click(function(){var D=$(this);var B=D.index()+1;var A=t.find(".page").eq(f).attr("data-page");var C=-l*f-(B-A)*l;D.addClass("on").siblings().removeClass("on");x.stop().animate({left:[C,k]},e)})})};UU.slideProduct=function(a,o){var h={pageWidth:1000,pageHeight:500,pageCount:3,interval:3000,delay:5000,speed:500,auto:true,easing:"linear",pageNumWidth:12};var b=$.extend({},h,o);var m=b.pageWidth;var i=b.pageHeight;var f=b.pageCount;var d=b.interval;var j=b.delay;var e=b.speed;var n=b.auto;var l=b.easing;var k=b.pageNumWidth;var c=null,g=0;$(a).each(function(){var u=$(this);var q=u.find(".btn");var p=u.find(".prev");var x=u.find(".next");var w=u.find(".nums");var t=w.find(".num");var z=u.find(".box");var y=u.find(".content");var v=u.find(".page");var A=function(){var B=(k+4)*f;w.css({"width":B,"marginLeft":-B/2});z.css({"width":m,"height":i,"overflow":"hidden"});y.css({"width":m*f});v.css({"width":m,"height":i})}();var r=function(B){if(B==="prev"){g=g===0?f-1:g-1}else{g=g===f-1?0:g+1}y.stop().animate({left:[-m*g,l]},e,function(){s(g)})};var s=function(B){u.find(".nums").find("li").eq(B).addClass("on").siblings().removeClass("on")};if(n){c=setInterval(r,d);u.hover(function(){clearInterval(c)},function(){c=setTimeout(function(){c=setInterval(r,d)},j)})}p.click(function(){r("prev")});x.click(function(){r("next")});t.click(function(){var C=$(this);var B=-m*C.index();C.addClass("on").siblings().removeClass("on");y.stop().animate({left:[B,l]},e)})})};UU.roll=function(b,n){var i={itemWidth:150,itemHeight:40,itemCount:10,speed:20,step:1,auto:true,easing:"linear",direction:"right-to-left"};var c=$.extend({},i,n);var j=c.itemWidth;var g=c.itemHeight;var a=c.itemCount;var f=c.speed;var e=c.step;var m=c.auto;var k=c.direction;var l=0,h=0,d=null;$(b).each(function(){var p=$(this);var v=p.find(".roll-box");var s=p.find(".roll-content");var t=p.find(".roll-list");var u=t.find("li");var o=p.find(".prev");var q=p.find(".next");var w=function(){v.css({"overflow":"hidden"});u.css({"width":j,"height":g,"overflow":"hidden"});if(k==="right-to-left"||k==="left-to-right"){l=j*a;h=g;t.css({"width":l,"height":h});s.append(s.html()).css({"width":l*2,"height":h,"left":-l})}else{l=j;h=g*a;t.css({"width":l,"height":h});s.append(s.html()).css({"width":l,"height":h*2,"top":-h}) }}();var r=function(x){if(x==="left-to-right"){clearInterval(d);d=setInterval(function(){var y=parseInt(s.css("left"));if(y>=0){s.css("left",-l)}else{s.css("left",y+e)}},f)}else{if(x==="right-to-left"){clearInterval(d);d=setInterval(function(){var y=parseInt(s.css("left"));if(y<=-l){s.css("left",0)}else{s.css("left",y-e)}},f)}else{if(x==="top-to-bottom"){clearInterval(d);d=setInterval(function(){var y=parseInt(s.css("top"));if(y>=0){s.css("top",-h)}else{s.css("top",y+e)}},f)}else{clearInterval(d);d=setInterval(function(){var y=parseInt(s.css("top"));if(y<=-h){s.css("top",0)}else{s.css("top",y-e)}},f)}}}};p.hover(function(){clearInterval(d)},function(){r(k)});if(m){d=setInterval(function(){r(k)},f)}})};UU.dialog=function(a,l){var c={dialogWidth:500,dialogHeight:400,uevent:"click"};var b=$.extend({},c,l);var d=b.dialogWidth;var g=b.dialogHeight;var k=b.uevent;var j=$("#UU_mask"),i=$("#UU_close"),e=$("#UU_dialogCoat"),f=$("#UU_dialogContent");var h=function(){var m=''+'";if($("#UU_mask").length<=0){$("body").append(m);j=$("#UU_mask"),i=$("#UU_close"),e=$("#UU_dialogCoat"),f=$("#UU_dialogContent")}}();$(a).live(k,function(){var m=$(this);e.css({"width":d,"height":g,"position":"fixed","z-index":"1000","left":"50%","margin-left":-d/2,"top":"50%","margin-top":-g/2});f.html('');j.fadeIn();e.fadeIn()});i.live("click",function(){e.fadeOut();j.fadeOut()})};UU.timedown=function(f,c){var h={fromStart:"day",endDate:"2018/06/15 00:00:00"};var e=$.extend({},h,c);var a=e.fromStart;var g=e.endDate;var d=function(i){return i.toString().replace(/^(\d)$/,"0$1")};var b=function(k){var i=/^(\d{1,4})(\/|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;var j=k.match(i);if(j==null){alert("日期格式不正确,请重新输入");return false}else{return true}};$(f).each(function(){var j=$(this);if(!b(g)){return false}var i=new Date(g).getTime();var l=new Date().getTime();var n=null;if(i>l){var k=(i-l)/1000;n=setInterval(m,1000)}else{switch(a){case"hour":j.html('000000');break;case"minute":j.html('0000');break;default:j.html('00000000')}}function m(){if(k>0){var o=Math.floor(k/86400);var r=Math.floor((k-86400*o)/3600);var p=Math.floor((k-o*86400-r*3600)/60);var q=Math.floor(k%60);switch(a){case"hour":j.html(''+d(r+o*24)+""+d(p)+""+d(q)+"");break;case"minute":j.html(''+d(p+r*60+o*24*60)+""+d(q)+"");break;default:j.html(''+d(o)+''+d(r)+''+d(p)+''+d(q)+"")}k--}else{clearInterval(n)}}})};UU.addMedia=function(h,l){var e={mediaType:"flash",mediaContent:"",width:500,height:400,uid:"",listid:""};var a=$.extend({},e,l);var k=a.mediaType;var f=a.mediaContent;var b=a.width;var j=a.height;var i=a.uid;var d=a.listid;switch(k){case"flash":var g=''+''+''+''+''+''+''+''+"";$(h).html(g);break;case"weibo":var c='';$("html").attr("xmlns:wb","//open.weibo.com/wb");$("head").append('