/*! Project : 閲戞磱楂樻柊鎶€鏈紑鍙戞湁闄愬叕鍙 +-----YL.js-V-2020.07.15-----+ | | | Author | yeshiqiu | | Q__Q | 337676937 | | Addr | SC_Chengdu | | Date | 2020.07.15 | | | +--!-_-!--------------!-_-!--+ */ //**!!**Modernizr (Custom Build) | MIT * 鑷畾涔 ysqUEO supports chrome Safari svgable !function(e,n,t){function r(e,n){return typeof e===n}function s(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):S?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function o(e,t,r,o){var i,a,l,f,u="modernizr",d=s("div"),c=function(){var e=n.body;return e||(e=s(S?"svg":"body"),e.fake=!0),e}();if(parseInt(r,10))for(;r--;)l=s("div"),l.id=o?o[r]:u+(r+1),d.appendChild(l);return i=s("style"),i.type="text/css",i.id="s"+u,(c.fake?c:d).appendChild(i),c.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(n.createTextNode(e)),d.id=u,c.fake&&(c.style.background="",c.style.overflow="hidden",f=y.style.overflow,y.style.overflow="hidden",y.appendChild(c)),a=t(d,e),c.fake?(c.parentNode.removeChild(c),y.style.overflow=f,y.offsetHeight):d.parentNode.removeChild(d),!!a}function i(e,n){return!!~(""+e).indexOf(n)}function a(e){return e.replace(/([a-z])-([a-z])/g,function(e,n,t){return n+t.toUpperCase()}).replace(/^-/,"")}function l(e,n){return function(){return e.apply(n,arguments)}}function f(e){return e.replace(/([A-Z])/g,function(e,n){return"-"+n}).replace(/^ms-/,"-ms-")}function u(n,r){var s=n.length;if("CSS"in e&&"supports"in e.CSS){for(;s--;)if(e.CSS.supports(f(n[s]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];s--;)i.push("("+f(n[s])+":"+r+")");return i=i.join(" or "),o("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return t}function d(e,n,o,l){function f(){c&&(delete E.style,delete E.modElem)}if(l=!r(l,"undefined")&&l,!r(o,"undefined")){var d=u(e,o);if(!r(d,"undefined"))return d}for(var c,p,m,v,h,g=["modernizr","tspan"];!E.style;)c=!0,E.modElem=s(g.shift()),E.style=E.modElem.style;for(m=e.length,p=0;m>p;p++)if(v=e[p],h=E.style[v],i(v,"-")&&(v=a(v)),E.style[v]!==t){if(l||r(o,"undefined"))return f(),"pfx"!=n||v;try{E.style[v]=o}catch(e){}if(E.style[v]!=h)return f(),"pfx"!=n||v}return f(),!1}function c(e,n,t,s,o){var i=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+_.join(i+" ")+i).split(" ");return r(n,"string")||r(n,"undefined")?d(a,n,s,o):(a=(e+" "+b.join(i+" ")+i).split(" "),function(e,n,t){var s;for(var o in e)if(e[o]in n)return!1===t?e[o]:(s=n[e[o]],r(s,"function")?l(s,t||n):s);return!1}(a,n,t))}function p(e,n,r){return c(e,t,t,n,r)}var m=[],v=[],h={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){v.push({name:e,fn:n,options:t})},addAsyncTest:function(e){v.push({name:null,fn:e})}},g=function(){};g.prototype=h,g=new g;var y=n.documentElement,S="svg"===y.nodeName,C="CSS"in e&&"supports"in e.CSS,w="supportsCSS"in e;g.addTest("ysqUEO",function(){return p("transform","scale(1)",!0)}),g.addTest("supports",C||w),g.addTest("chrome",function(){return navigator.userAgent.indexOf("Chrome")>-1}),g.addTest("Safari",function(){return MacTest()}),g.addTest("svgable",function(){return!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect}),h.testStyles=o;var x="Moz O ms Webkit",_=h._config.usePrefixes?x.split(" "):[];h._cssomPrefixes=_;var b=h._config.usePrefixes?x.split(" "):[];h._domPrefixes=b;var T={elem:s("modernizr")};g._q.push(function(){delete T.elem});var E={style:T.elem.style};g._q.unshift(function(){delete E.style}),h.testAllProps=c,h.testAllProps=p,function(){var e,n,t,s,o,i,a;for(var l in v)if(v.hasOwnProperty(l)){if(e=[],(n=v[l]).name&&(e.push(n.name),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t0){ysq.IsMoble=!0;break}if(Touchable="ontouchstart"in window&&ysq.IsMoble&&!/hp-tablet/gi.test(navigator.appVersion),TouchOn=Touchable?"touchstart":"mousedown",TouchIng=Touchable?"touchmove":"mousemove",TouchEd=Touchable?"touchend":"mouseup",ysq.Switch&&(ysq.Switch=ysq.UEO),Global.device=MinWidth(1024)?"pc":"wap",$h.addClass(Global.device),w.data("device_status",Global.device),ysq.Response)ysq.IsMoble&&(ysq.Switch=!1),Global={DesignHeight:1080,FPduration:750,resWidth:1024};else{var o=parseInt($h.css("min-width")),i=parseInt(window.screen.width)/(o+20);ysq.IsMoble&&(ysq.Switch=!1,document.querySelector('meta[name="viewport"]').setAttribute("content","width="+(o+20)+",initial-scale="+i+",minimum-scale="+i+",target-densitydpi=device-dpi"))}ysq.Switch&&(document.documentElement.firstElementChild.appendChild(document.createElement("style")).innerHTML=ysq.wrap+"{opacity:0.67;} [scrollEle],[swAnimate]{visibility: hidden;}",setTimeout(function(){$(ysq.wrap).hasClass("show")||ysq.htmlInit()},500)),window.onload=function(){document.documentMode<(ysq.Response?10:9)&&null==GetData("bIEOk")&&$b.hide()&&confirm("鎮ㄧ殑娴忚鍣ㄧ増鏈繃浣庯紝寤鸿鍙互浣跨敤鏈€鏂扮増鐨刢hrome娴忚鍣ㄦ潵鑾峰彇鏈€濂界殑浣撻獙锛屾槸鍚︾户缁闂紵")&&($b.show().addClass("lowerIE"),SaveData("bIEOk",!0))}}};ysq.basic(); /*baseFn*/ $(document).ready(function() { w.Y_InitSet().Y_ScrollEle(); parseInt($h.css("min-width"))==1280&&w.on("resize.zoom",function(event) {$h.css({zoom:w.width()<=1280?".95":"1"}); }).trigger('resize.zoom'); }); /*鎵╁睍缁勪欢*/ $.fn.extend({Y_InitSet:function(){ysq.TT&&console.log("鍔犺浇鏃堕棿:"+((new Date).getTime()-ysq.TT)+"ms"),w.load(function(){console.log("\n%c鎶€鏈敮鎸侊細鎴愰兘浠婄綉绉戞妧\n https://www.28jw.cn/\n ~/^_^\\~ \n","color:#53b753;font-weight:700;font-size:12px;")}),w.on("scroll",function(t){$(".Y_AutoCheck").each(function(t,e){e.fnAuto.call(this)})}).load(function(){fnLazyloadPd($b)&&$.fn.Y_LazyLoad.Init($b,!1),setTimeout(function(){fnLazyloadPd($b)&&$.fn.Y_LazyLoad.Init($b,!1)},500)}).trigger("scroll").trigger("resize"),w.on("scroll.PointerNone",function(){$(".notPointerNone").length||($b.addClass("_pen"),clearTimeout($b[0].scrollTimer),$b[0].scrollTimer=setTimeout(function(){$b.removeClass("_pen")},200))}),$b.delegate("a","click",function(t){if("#"==$(this).attr("href")||isNull($(this).attr("href")))return prevent_default(t)}),$(".backToHistory").click(function(){window.history.go(-1)});for(var t=0,e=["ms","moz","webkit","o"],n=0;n0?t.index():t.index()-t.parent().children().length)),"team"==n){var r=t.attr("scrollStep")||150;n=SE_GetAniName(t.attr("scrollArray"));var c=t.children().not(i),d=c.length,f=1==t.attr("scrollSolo")||1==n.length;c.addClass("AniDo"),setTimeout(function(){"aniSerialize"==t.addClass("AniDoing").attr("scrollArray")||!!t.attr("scrollCbk")&&c.attr("scrollCbk",t.attr("scrollCbk")||1),c.each(function(e,i){var s="ltr"==a?e:d-(e+1);i.sAniName=n[s%n.length],setTimeout(function(){$(i).addClass(i.sAniName+" AniDoing").data("scReset",!1).attr("scrollCbk")&&$(i).addClass("AniStart"),!!t.attr("scrollStayCls")||o($(i),i.sAniName)},$(i).attr("scrollDelay")||50+r*(f?s:1))}),s(t)},l)}else t.addClass("AniDo").hasClass(n)||setTimeout(function(){t.addClass(n+" AniDoing").data("scReset",!1).attr("scrollCbk")&&t.addClass("AniStart"),s(t),o(t,n)},l);fnLazyloadPd(t)&&$.fn.Y_LazyLoad.Init(t,!0,0,!0)},$.fn.Y_ScrollEle.Do=function(e,i,o){if(e=e||$b,!ysq.shutDown)if(o&&$("[scrollWait]",e).removeAttr("scrollWait"),$("[scrollDelayArray]").each(function(t,e){l($(e),$(e).attr("scrollDelayArray")||125)}),n.length){var s=0;$.each(n,function(t,e){ysq.TT&&cw("Y_ScrollEle_Step:"+s),s+=0==t?0:getAniDur($(e))/3||200,setTimeout(function(){$.fn.Y_ScrollEle.SE_Animate($(e)),$(e).is("[scrollNext]")&&w.trigger("scroll.Y_scrollEle")},s)}),n=[]}else $("[scrollEle]",e).add(e.is("[scrollEle]")).each(function(n,o){a(o,e,i)&&inWindow($(o),t.err)&&$.fn.Y_ScrollEle.SE_Animate($(o))})},$.fn.Y_ScrollEle.Init=function(t){t=t||$b,$("[scrollEle]",t).children().add(t.is("[scrollEle]")).data("scReset",!0),$("[scrollNext]",t).each(function(t,e){var n=SE_GetAniName($(e).attr("scrollNext"));$(e).children().not(i).attr("scrollCbk",$(e).attr("scrollCbk")).each(function(t,e){$(e).attr("scrollEle",n[t%n.length])}),l($(e),$(e).attr("scrollDelayArray")||125)}),$("[scrollEle]",t).each(function(t,e){var n=$(e).attr("scrollEle");"team"==n||"parent"==n?$(e).addClass("AniDo").children().not(i).addClass("AniDo"):$(e).addClass("AniDo")})},t.responsive&&!MinWidth(1024)&&$("[scrollEle]").each(function(e,n){var i=$(n).attr("scrollEle"),a=$(n).attr("scrollMAni")||t.ResAnimation;"team"==i||"parent"==i?$(n).attr("scrollArray",a):$(n).attr("scrollEle",a)}),t.fullScreen?ysq.htmlInit():setTimeout(function(){ysq.htmlInit();var e=$b;$("[scrollEle]").each(function(i,o){a(o,e,t.delay)&&!isHidden($(o))&&$(o).parents("[scrollEle]").length&&inWindow($(o),t.err)&&n.push($(o))}),$.fn.Y_ScrollEle.Init(),w.on("scroll.Y_scrollEle",function(){$.fn.Y_ScrollEle.Do(e)}).trigger("scroll.Y_scrollEle")},t.delay),this} ,Y_swAnimate:function(t){if(!ysq.Switch)return this.removeAttr("swAnimate"),this;return t=$.extend({},{animation:"fadeInUp",interval:[300,133],va:"vat"},t),this.each(function(e,n){var i=$(n);if(i.attr("swAnimate-temp",t.animation),!i.hasClass("_ed")){var a=i.find(">p").length?i.find(">p"):i,o=i.attr("swDelay")?i.attr("swDelay")/1:333,s=i.html();a.each(function(e,n){var s=$(n).html(),l="",r="dib AniDo "+t.va;$(n).html("");for(var c=0;c"+s.charAt(c)+"");if($(n).html(l),setTimeout(function(){i.removeAttr("swAnimate")},1),"none"==t.animation)$(".dib",n).removeClass("AniDo");else{var d=SE_GetAniName(t.animation);setTimeout(function(){$(n).find(".dib").each(function(o,s){setTimeout(function(){$(s).addClass($.isArray(d)?d[o%d.length]:d),e==a.length-1&&o==$(n).find(".dib").length&&setTimeout(function(){i.removeAttr("swAnimate")},200)},o*t.interval[1])})},o+e*t.interval[0])}}),i.addClass("_ed").append(''+s+""),this.swAnimate_reset=function(){$(this).attr("swAnimate",$(this).attr("swAnimate-temp")).removeClass("_ed").html($("._backup",this).html())}}}),this} ,Y_LoadImg:function(t){return t=$.extend({},{imgSrc:null,delay:50,cls:".picBox,.pic,.img",callback:null},t),this.attr("scrollWait","1").each(function(e,n){var i=$(n),a=t.imgSrc;if(ysq.TT&&(a+="?time="+(new Date).getTime()),i.is("img"))if(i.attr("src",a||""),i.parents(t.cls).length){var o=t.delay,s=(new Date).getTime(),l=function(){var e=o-((new Date).getTime()-s);i.addClass("destroying"),setTimeout(function(){i.parents(t.cls).addClass("imgLoaded loadDone").removeClass("loading").removeClass("loading-m"),i.hasClass("AniDo")||i.addClass("Done"),i.addClass("Loaded"),setTimeout(function(){i.removeClass("lazyimg Done").removeAttr("scrollWait"),ysq.Switch&&$.fn.Y_ScrollEle.SE_Animate&&$.fn.Y_ScrollEle.SE_Animate(i)},1e3*parseFloat(i.css("transition-duration"))||1),t.callback&&t.callback.call(this),i.removeClass("destroying")},Math.max(e,1))};i.load(function(t){l()}).error(function(e){i.data("loadOnce")?(i.parents(t.cls).removeClass("loading").removeClass("loading-m"),i.attr("data-default")?i.attr("src",i.attr("data-default")).addClass("default"):i.parents(t.cls).addClass("load-error loadDone"),t.callback&&t.callback.call(this)):(i.data("loadOnce",!0),i.attr("src",a||""))}),i.hasClass("destroying")||setTimeout(function(){l()},5e3)}else i.removeClass("lazyimg").addClass("Loaded").removeAttr("scrollWait"),t.callback&&t.callback.call(this),ysq.Switch&&$.fn.Y_ScrollEle.SE_Animate&&$.fn.Y_ScrollEle.SE_Animate(i);else a&&i.css("background-image","url("+a+")").addClass("Loaded").removeAttr("scrollWait");i.removeAttr("lazy-src")}),this} ,Y_LazyLoad:function(){return $.fn.Y_LazyLoad.Init=function(t,e,n,i){function a(t,e){!!$(t[e]).attr("lazy-src")&&$(t[e]).Y_LoadImg({imgSrc:$(t[e]).attr("lazy-src"),delay:n,callback:function(){a(t,e+1)}})}var o=t;e=!!e,ysq.LoadImgArray=[],!ysq.shutDown&&$("[lazy-src]",o).length&&(MacTest()?$("[lazy-src]",o).attr("src",function(){return $(this).attr("lazy-src")}).removeAttr("lazy-src").error(function(){$(this).parents(".picBox,.pic,.img").addClass("load-error loadDone")}).parents(".picBox,.pic,.img").addClass("imgLoaded loadDone"):($("[lazy-src]",o).each(function(t,n){isNull($(n).attr("lazy-src"))&&$(n).attr("lazy-src","none"),$(n).hasClass("loaded")||!$(n).is("img")?inWindow($(n),[-w.height()/3,-w.height()/3])&&$(n).Y_LoadImg({imgSrc:$(n).attr("lazy-src")}):($(n).hasClass("AniDo")||$(n).addClass("lazyimg"),$(n).hasClass("_lz")||!(i?e&&inWindow($(n),[0,0]):e)&&($(n).parents(".waitLoad").length||isHidden($(n))||!inWindow($(n),[w.height()/10,w.height()/10]))||($(n).addClass("_lz").parents(".picBox,.pic,.img").addClass(function(){return $(this).outerWidth()<150?"loading-m":"loading"}),ysq.LoadImgArray.push(n)))}),a(ysq.LoadImgArray,0)))},w.add($(".oScroll,.hScroll,.vScroll")).scroll(function(){$.fn.Y_LazyLoad.Init($b)}),this} ,Y_Move:function(t){return t=$.extend({},{transparent:!0,slidable:!1,flipIn:!1,flipOut:!1,fullpageScroll:!1,anchors:[],setHash:!1,hashRoot:"Y_MoveSection",InOut:!0,steps:200,oddEven:!0,AniPagination:!1,AniItem:!1,synchro:!0,stopable:!0,IsLoop:!0,loopDir:!0,IsDrag:!1,dragHand:!1,instant:!1,clickPass:!0,IsPaging:!1,setPaging:!1,sptPaging:!1,backInit:!1,evenWidth:!1,contain:".ysqJsBox,.ysqMoveBox,.box",item:".item",Pagination:".pagination",prev:".prev",next:".next",clickMoveTg:[!1,"h","scroll"],lazyLoad:[!0,20],delaytion:[0,0],direction:"h",easing:"easeOutQuad",event:"click",duration:800,TimeOut:0,initNum:0,MinNum:1,fn:{before:null,after:null,start:null,callback:null,icoClick:null,ctrReject:null}},t),this.each(function(e,n){function i(){if(x){var e={width:parseInt(h.outerWidth()),height:parseInt(h.outerHeight())};l=getWH(1==t.MinNum?d:h,!p),p?f.css({width:(2+l)*Math.max(m,t.MinNum)}):f.css({height:(2+l)*Math.max(m,t.MinNum)}),ysq.IsMoble&&"border-box"==h.css("box-sizing")&&(p?h.css({width:e.width,marginRight:mlr(h,0)}):h.css({height:e.height,marginTop:mtb(h,1)})),t.fullpageScroll&&(p?h.css({width:e.width}):h.css({height:e.height}))}else if(t.evenWidth){var n=d.outerWidth();$(".shade",d).css({left:"50%",marginLeft:-1*(n+(n%2!=0?1:0))/2})}}function a(){var e=window.location.hash.replace("#"+t.hashRoot+"=","").split("/");if(t.anchors.length)for(var i=0;i1;if(n.idx=t.initNum,0==t.slidable&&(t.slidable=t.flipIn||t.flipOut),n.dragIn=!1,n.Dragable=t.IsDrag,t.fn.before&&t.fn.before.call(this,d,h),UCTest()&&(t.TimeOut=!1),m<=t.MinNum)return d.addClass("_nojs _loaded"),t.lazyLoad[0]&&fnLazyloadPd(d)&&$.fn.Y_LazyLoad.Init(d,!0,t.lazyLoad[1]),t.fn.start&&t.fn.start.call(this,d,h,n.idx,g,v,dir,icoClick),o(!0),!0;if(x||h.css({position:"absolute"}).each(function(t,e){$(e).css("z-index",9-t)}),t.setPaging){for(var y="01",C=1;C<=b;C++)y+=(t.sptPaging?"":"")+""+tensDigit(C+1)+"";$(t.Pagination,n).length?$(t.Pagination,n).append(y):d.append("
"+y+"
")}if(t.IsPaging&&(r=$(t.Pagination,n),c=r.find(".btn"),TgL=c.length,t.AniPagination&&c.Y_SetCss3({easing:"linear",dur:t.TimeOut+"s"})),n.AutoNext=function(){t.TimeOut>0&&(clearInterval(n.Y_timer),n.Y_timer=setInterval(function(){n.next(!0)},1e3*t.TimeOut))},n.dirPD=function(t){t>0?d.addClass("dir_z").removeClass("dir_f"):d.addClass("dir_f").removeClass("dir_z")},n.resetDistance=function(t){n.Move(t,!1,null,!0)},n.prev=function(e,i){var a,o=n.idx;n.idx=--n.idx<0?!t.IsLoop||n.Dragable&&n.dragIn&&t.MinNum>1?0:b:n.idx,a=t.loopDir?-1:o>n.idx?-1:1,n.idx==o?(e&&$(t.prev,n).Y_Animation({animation:"dotShake"}),t.instant&&n.resetDistance(a),t.fn.ctrReject&&t.fn.ctrReject.call(this,d,h,a)):h.eq(n.idx).hasClass("_stay")||n.prevDisable?n.idx=o:n.Move(a,!1,i)},n.next=function(e,i){var a,o=n.idx;n.idx=++n.idx>b?!t.IsLoop||n.Dragable&&n.dragIn&&t.MinNum>1?b:0:n.idx,a=t.loopDir?1:o>n.idx?-1:1,n.idx==o?(e&&$(t.next,n).Y_Animation({animation:"dotShake"}),t.instant&&n.resetDistance(a),t.fn.ctrReject&&t.fn.ctrReject.call(this,d,h,a)):h.eq(n.idx).hasClass("_stay")||n.nextDisable?n.idx=o:n.Move(a,!1,i)},n.MoveTo=function(t){if(t==n.idx)return!0;var e=t>n.idx?1:t1)&&(n.idx*t.MinNum==0?$(t.prev,n).addClass("nagetive"):$(t.prev,n).removeClass("nagetive"),n.idx*t.MinNum>=m-t.MinNum?$(t.next,n).addClass("nagetive"):$(t.next,n).removeClass("nagetive")),setProperty(n,"ysqble",!1),n.AutoNext(),n.dirPD(e);var u=n.idx+1>m-1?0:n.idx+1,y=n.idx-1<0?m-1:n.idx-1;if(a=null==a?t.duration:a,e>=0?(g=i?n.idxed:y,v=u):e<0&&(g=i?n.idxed:u,v=y),1==t.MinNum&&t.oddEven&&(h.eq(n.idx).hasClass("odd")?h.eq(v).addClass("even").removeClass("odd"):h.eq(v).addClass("odd").removeClass("even"),h.eq(n.idx).hasClass("even")?h.eq(v).addClass("odd").removeClass("even"):h.eq(v).addClass("even").removeClass("odd")),r||t.fn.start&&t.fn.start.call(this,d,h,n.idx,g,v,e,i),t.setHash&&(location.hash=t.hashRoot+"="+(t.anchors.length?t.anchors[n.idx]:n.idx)),t.lazyLoad[0]&&fnLazyloadPd(h.slice(0,(n.idx+1)*t.MinNum))&&$.fn.Y_LazyLoad.Init(h.slice(0,(n.idx+1)*t.MinNum),!0,t.lazyLoad[1]),setTextLine($("[data-text-line]",d)),i&&t.fn.icoClick&&t.fn.icoClick.call(this,d,h,n.idx,g,v,e,i),x){t.instant&&t.IsPaging&&onoff(c.eq(n.idx)),t.synchro&&o();var C=-Math.ceil(n.idx>=b?(Math.max(m,t.MinNum)-t.MinNum)*l:n.idx*l*t.MinNum),_=p?{left:C}:{top:C},w=Math.min(1,Math.abs(parseInt(C)-parseInt(f.css(p?"left":"top")))/l/t.MinNum);if(t.InOut){var M=d.hasClass("dir_z")?0:t.MinNum*t.steps,T=((n.idx>=b?m-1:n.idx)+1)*t.MinNum,k=T-t.MinNum;h.each(function(n,i){n+1>k&&n+1<=T?(d.hasClass("dir_z")?$(i).hasClass("in")?M+=0:M+=t.steps:$(i).hasClass("in")?M-=0:M-=t.steps,setTimeout(function(){$(i).addClass("in")},0==e?0:M)):setTimeout(function(){$(i).removeClass("in")},0==e?0:(w?1-w:1)*a)})}0==e?(s(e,i,r),f.css(_)):(d.addClass("_moveing"),f.stop(!0,!1).animate(_,(w||1)*a,t.easing,function(){s(e,i,r),d.removeClass("_moveing")}))}else{setProperty(n,"ysqble",t.clickPass&&!t.InOut);var A=t.transparent?0:1,Y=t.transparent?0:1,I=t.slidable?100*e:0;if(h.eq(v).css("z-index",7),p)var q={left:I+"%",opacity:A},S={left:0,opacity:1},L={left:0,opacity:1},z={left:-1*I+"%",opacity:Y};else var q={top:I+"%",opacity:A},S={top:0,opacity:1},L={top:0,opacity:1},z={top:-1*I+"%",opacity:Y};if(h.css({"z-index":1}).css(q).eq(n.idx).css("z-index",9).css(L),t.lazyLoad[0]&&h.hide().eq(n.idx).stop(!0,!0).show(),setTimeout(function(){t.synchro&&o()},1),t.AniItem&&ysq.Switch){var E=h.eq(n.idx);$("[scrollEle-temp]",E).add(E).each(function(t,e){$(e).attr("scrollEle-temp")&&$(e).attr("scrollEle",$(e).attr("scrollEle-temp"))}),$("[scrollEle]",E).add(E).addClass("AniDo").trigger("destroy.Y_ScrollEle")}0==e?(s(e,i,r),t.oddEven&&h.eq(0).addClass("odd")):(t.InOut&&(onoff(h.eq(g),{cls:"leave"}),onoff(h.eq(n.idx),{cls:"come"}),t.IsPaging&&(onoff(c.eq(g),{cls:"Out"}),onoff(c.eq(n.idx),{cls:"In"})),setTimeout(function(){setTimeout(function(){t.IsPaging&&c.eq(g).removeClass("Out"),h.eq(g).removeClass("leave")},t.delaytion[0]),setTimeout(function(){t.IsPaging&&c.eq(n.idx).removeClass("In"),h.eq(n.idx).removeClass("come")},t.delaytion[1])},a)),h.eq(g).show().stop(!0,t.clickPass).css(S).css("z-index",16),setTimeout(function(){h.eq(g).animate(t.flipIn?S:z,a,t.easing,function(){t.slidable&&t.backInit&&$(this).css(S),t.lazyLoad[0]&&$(this).stop(!0,!0).hide()})},t.delaytion[0]),h.eq(n.idx).show().stop(!0,t.clickPass).css(t.flipOut?L:q).css("z-index",!t.slidable||t.flipIn?22:12),setTimeout(function(){h.eq(n.idx).animate(L,a,t.easing,function(){s(e,i,r)})},t.delaytion[1]))}},bindScrollFn(n,function(){clearInterval(n.Y_timer),inWindow(d,null,!0)&&n.AutoNext()}),d.addClass("_loaded"),h.addClass("moveItem").eq(0).addClass("on"),t.lazyLoad[0]&&h.addClass("waitLoad"),t.flipOut&&h.Y_SetCss3({ppty:"transform",dur:t.duration+"ms"}),t.setHash&&a(),setTimeout(function(){n.Move(0,!1,0),n.dirPD(1),t.fn.after&&t.fn.after.call(this,d,h,c)},1),(t.resizable||x||t.evenWidth)&&(w.resize(function(){i(),x&&n.Move(0)}),i()),(t.stopable||d.data("stopable"))&&(ysq.IsMoble||t.TimeOut)&&d.on({"mousemove.Y_Move":function(){clearInterval(n.Y_timer)},"mouseleave.Y_Move":function(){n.AutoNext()}}),t.setHash&&w.on("hashchange",function(e){var i=n.idx;a(),i!=n.idx&&(location.hash=t.hashRoot+"="+(t.anchors.length?t.anchors[n.idx]:n.idx),n.Move(t.duration,!1,0))}),(n.Dragable||$h.hasClass("wap"))&&d.Y_Drag({cursorHand:!t.fullpageScroll&&t.dragHand,contain:t.contain,direction:d[0].direction||t.direction,left:n.next,right:n.prev,up:n.next,down:n.prev,instant:x&&t.instant,dragPass:t.transparent}),t.fullpageScroll&&($(document).on("mousewheel.Y_Move",function(t){$h.hasClass("pc")&&n.ysqble&&(t.deltaY<0?n.next():n.prev())}),$(document).on("keydown.Y_Move",function(t){if(!n.ysqble)return!0;switch(t.which||t.keyCode){case 37:p&&n.prev();break;case 39:p&&n.next();break;case 38:p||n.prev();break;case 40:p||n.next();break;case 33:n.prev();break;case 34:n.next();break;case 36:n.MoveTo(0);break;case 35:n.MoveTo(m-1)}})),u.length){u.show();var _=$(t.prev,n),M=$(t.next,n);M.click(function(){n.ysqble||$(this).hasClass("unable")?n.next(!0):$(this).Y_Animation({animation:"dotShake"})}),_.click(function(){n.ysqble||$(this).hasClass("unable")?n.prev(!0):$(this).Y_Animation({animation:"dotShake"})}),ysq.IsMoble?u.addClass("ctrShow"):d.on({"mousemove.Y_Move":function(t){var e=t.pageX,n=t.pageY;(p?ea.offset().top;switch(i){case"h":m?(s.css({left:e.left+n.x2-n.x1}),r=!0):(r&&s.stop(!0,!1).animate({left:e.left},t.easing,Math.abs(n.x2-n.x1),u),r=!1);break;case"v":m?(s.css({top:e.top+n.y2-n.y1}),r=!0):(r&&s.stop(!0,!1).animate({top:e.top},t.easing,Math.abs(n.y2-n.y1),u),r=!1);break;case"o":m?(s.css({left:e.left+n.x2-n.x1,top:e.top+n.y2-n.y1}),r=!0):(r&&s.stop(!0,!1).animate({left:e.left,top:e.top},t.easing,Math.abs(n.x2-n.x1),u),r=!1)}var g=n.x2-n.x1,v=n.y2-n.y1;switch((g>0||v>0)&&(Touchable||a.addClass("MouseMove")),i){case"h":Math.abs(g)>Math.abs(v)?(prevent_default(f),d=!1):d=!0;break;case"v":Math.abs(g)Math.min(m/8,w.width()/10)?(g(),v()):s.stop(!0,!1).animate({left:e.left},x,t.easing,function(){setProperty(o,"ysqble",!0)});break;case"v":y>Math.min($/8,w.height()/10)?(p(),b()):s.stop(!0,!1).animate({top:e.top},y,t.easing,function(){setProperty(o,"ysqble",!0)});break;case"o":x>Math.min(m/8,w.width()/10)&&(g(),v()),y>Math.min($/8,w.height()/10)&&(p(),b()),setProperty(o,"ysqble",!0)}Touchable?(s[0].removeEventListener(TouchIng,u,!1),s[0].removeEventListener(TouchEd,h,!1)):s.off(TouchIng,u).off(TouchEd,h),r=!1,prevent_default(f)},m=function(){(t.reMove||a.data("removeDrag"))&&(Touchable?s[0].removeEventListener(TouchOn,f,!1):a.off(TouchOn,f))},g=function(){$.isFunction(t.left)&&n.x2<=n.x1&&(t.left(!1),m())},v=function(){$.isFunction(t.right)&&n.x2>n.x1&&(t.right(!1),m())},p=function(){$.isFunction(t.up)&&n.y2<=n.y1&&(t.up(!1),m())},b=function(){$.isFunction(t.down)&&n.y2>n.y1&&(t.down(!1),m())};return Touchable?addEvent(s[0],TouchOn,f,!1):s.on(TouchOn,f).on("mouseleave",function(t){s.trigger(TouchEd)}),this} ,Y_SetCss3:function(t){return t=$.extend({},{ppty:"all",delay:"0ms",easing:"ease-out",dur:"300ms"},t),this.css({"transition-property":t.ppty,"transition-timing-function":t.easing,"transition-duration":t.dur,"transition-delay":t.delay}),this} ,Y_Animation:function(t){var e="AniDo AniDoing "+(t=$.extend({},{animation:"",Inout:!0,delaytion:0,callback:function(){}},t)).animation,n=t.Inout?"vv":"vh";return this.each(function(i,a){var o=$(a);setTimeout(function(){o.addClass(e+" "+n),setTimeout(function(){o.removeClass(e),o.data("flag")||o.removeClass(n),t.callback.call(this,o)},getAniDur(o))},t.delaytion)}),this} ,Y_NavSlideBlock:function(t){return t=$.extend({},{tag:"li",item:".item",actCls:"on",target:null,event:"mouseenter",vertical:!1,bInitial:!0,blockSize:null,blockImg:"",cssHide:null,duration:400,easing:"swing",delaytion:300,phantom:[!1,.2],fn:{before:null,mouseOn:null,mouseOut:null,come:null,leave:null}},t),$(".block",this).length||this.append("<"+t.tag+' class="block">'+t.blockImg+""),this.each(function(e,n){var i=$(n),a=$(".block",n),o=$(t.item,n),s=t.vertical?{w:"100%",h:"0",l:"0",t:"50%"}:{w:0,h:"100%",l:"50%",t:0},l=!!$(t.item+"."+t.actCls,n).length&&i.find(t.item).index($(t.item+"."+t.actCls,n)),r=l;s=$.extend({},{op:0},s,t.cssHide),n.blurable=!0,n.switch=!0,n.backInit=function(){n.Y_timer=setTimeout(function(){var e={width:s.w,height:s.h,top:s.t,left:s.l,opacity:s.op};!1===l?a.stop(!0,!1).animate(e,200,function(){t.fn.leave&&t.fn.leave.call(this,i,r)}).siblings(t.tag).removeClass("on"):n.Move(l,t.duration,function(){t.fn.leave&&t.fn.leave.call(this,i,r)}),t.fn.mouseOut&&t.fn.mouseOut.call(this,i,r)},t.delaytion)},n.Move=function(e,n,s){e<0&&(e=l);var r=t.target?o.eq(e).children(t.target):o.eq(e),c=r.offset(),d=i.offset();if(t.vertical)f=t.blockSize?{top:c.top-d.top+(r.outerHeight()-a.height())/2,left:0,width:"100%",opacity:1}:{top:c.top-d.top,height:r.outerHeight(),left:0,width:"100%",opacity:1};else var f=t.blockSize?{left:c.left-d.left+(r.outerWidth()-a.width())/2,top:0,height:"100%",opacity:1}:{left:c.left-d.left,width:r.outerWidth(),top:0,height:"100%",opacity:1};t.phantom[0]&&a.css({opacity:t.phantom[1]}),$(t.item,i).removeClass(t.actCls),setTimeout(function(){onoff($(t.item,i).eq(e),{cls:t.actCls})},n-200),a.stop(!0,!1).animate(f,n,t.easing,function(){s&&s()})},"mouseenter"==t.event?$(t.item,i).off("mouseenter.Y_NavSlideBlock").off("mouseleave.Y_NavSlideBlock").on("mouseenter.Y_NavSlideBlock",function(){if(clearTimeout(n.Y_timer),!n.switch)return!1;r=i.find(t.item).index($(this)),a.addClass("Moving"),n.Move(r,t.duration,function(){a.removeClass("Moving"),t.fn.come&&t.fn.come.call(this,i,r)}),t.fn.mouseOn&&t.fn.mouseOn.call(this,i,r)}).on("mouseleave.Y_NavSlideBlock",function(){if(!n.switch||l===i.find("."+t.actCls).index())return!1;n.blurable&&t.bInitial&&n.backInit()}):$(t.item,i).off("click.Y_NavSlideBlock").on("click.Y_NavSlideBlock",function(e){if(!n.switch||$(this).hasClass(t.actCls))return!1;r=i.find(t.item).index($(this)),a.addClass("Moving"),n.Move(r,t.duration,function(){a.removeClass("Moving"),t.fn.come&&t.fn.come.call(this,i,r)}),t.fn.mouseOn&&t.fn.mouseOn.call(this,i,r)}),w.on("resize.Y_NavSlideBlock",function(e){n.switch&&!1!==l&&n.Move(t.bInitial?l:$(t.item+".on",i).index($(t.item,i)),1)}),a.css({width:s.w,height:s.h,top:s.t,left:s.l,opacity:s.op}).fadeIn(500,function(){t.blockSize&&(t.vertical?a.css({height:t.blockSize}):a.css({width:t.blockSize})),t.fn.before&&t.fn.before.call(this,i),!1!==l&&n.switch&&n.Move(l,1)})}),this} ,Y_ModalAlbum:function(t){t=$.extend({},{triggerList:"",item:".item",btn:"",contain:".contain",list:".list0",albumItem:"albumItem",albumName:null,Pagination:".pagination",IsPaging:!0,PagingSept:!0,paginationEve:"click",IsDrag:!0,instant:!0,bLoop:!1,synchro:!0,zoomer:!1,easing:"easeInQuad",duration:500,pad:[0,0,0,0],posSet:[56,56,26,56],fn:{created:null,start:null,callback:null}},t);var e=this,n=e[0],i=t.triggerList+" "+t.item+" "+t.btn,a=$(t.contain,n),o=$(t.list,n),s=$(".totalNum",n),l=$(".presentNum",n),r=$(".picName",n),c=$(".originalBtn",n),d=0,f=0,u=0,h=!1;if(n.Dragable=t.IsDrag,e.length)return e.appendTo($b),n.destroy=function(){h=!1,e.removeClass("visible vvva"),c.attr("href"," "),setTimeout(function(){t.IsPaging&&$(t.Pagination,n).remove(),o.empty()},1),unlockScroll(),$(document).off("keydown.Y_ModalAlbum")},n.prev=function(){d=--d<0?t.bLoop?f-1:0:d,n.Move()},n.next=function(){d=++d>f-1?t.bLoop?0:f-1:d,n.Move()},n.Move=function(){t.bLoop||(0==d?e.find(".prev").hide():e.find(".prev").show(),d==f-1?e.find(".next").hide():e.find(".next").show());var i=-d*u,a=o.children("."+t.albumItem).eq(d),s=Math.min(Math.abs(parseInt(o.css("left"))-i)/u,1);t.fn.start&&t.fn.start.call(this,e,d),t.synchro&&(t.IsPaging&&onoff($Tg.eq(d)),onoff(a)),setProperty(n,"ysqble",!1),fnLazyloadPd(a)&&$.fn.Y_LazyLoad.Init(a,!0),o.stop(!0,!1).animate({left:i},t.duration*s,t.easing,function(){setProperty(n,"ysqble",!0),t.synchro||(t.IsPaging&&onoff($Tg.eq(d)),onoff(a)),t.fn.callback&&t.fn.callback.call(this,e,d),t.zoomer&&setTimeout(function(){a.find(".picBox").smartZoom({containerClass:"zoomableContainer",dblClickEnabled:!1,adjustOnResize:!0,maxScale:1})},501)}),l.html(d+1),r.text($("img",a).attr("alt")),c.attr("href",$("img",a).attr("src"))},w.off("resize.Y_ModalAlbum").on("resize.Y_ModalAlbum",function(){if(h){var e=$("."+t.albumItem,o);setVamCss(w.height()-t.posSet[0]-t.posSet[2]-t.pad[0]-t.pad[2],t.albumItem,".img"),e.css({width:a.width(),marginRight:mlr(e,0)}),u=getWH(e,!1),o.css({width:f*(2+u),left:-d*u})}}),$b.delegate(i,"click",function(i){if($(this).parents(".MouseMove").length)return!0;h=!0;var r=$(this),c=r.parents(t.triggerList),u=$(t.item,c);if(r.is(t.item))var m=p=r,g=u,v=1;else var p=r.parents(t.item),m=$(t.btn,p),g=$(t.btn,c),v=m.length;if(d=u.index(p)*v+m.index(r),f=g.length,g.each(function(n,i){var a=$("img",i).attr("big-src")||$("img",i).attr("lazy-src")||$("img",i).attr("src"),s=$("h3",i).text()||$("img",i).attr("alt");$("
  • ").appendTo(o),t.zoomer?$("",{src:a,alt:s}).appendTo($("."+t.albumItem,o).eq(n)).wrap("
    "):$("",{src:a,alt:s}).appendTo($("."+t.albumItem,o).eq(n)).wrap("
    ").wrap(""),t.fn.created&&t.fn.created.call(this,e,$("."+t.albumItem,o).eq(n),$(i))}),t.IsPaging){for(var b="01",x=1;x<=f-1;x++)b+=(t.PagingSept?"":"")+""+tensDigit(x+1)+"";$(t.Pagination,n).length?$(t.Pagination,n).append(b):a.append(""),$Tg=$(t.Pagination,n).find(".btn"),TgL=$Tg.length,TgW=getW($Tg),t.AniPagination&&$Tg.Y_SetCss3({dur:t.TimeOut+"s"})}s.html(f),l.html(d+1),e.addClass("visible vvva va"),setTimeout(function(){w.trigger("resize.Y_ModalAlbum"),n.Move(d),e.find(".close").off("click.Y_ModalAlbum").on("click.Y_ModalAlbum",function(){n.destroy()}),e.find(".prev").off("click.Y_ModalAlbum").on("click.Y_ModalAlbum",function(){n.prev()}),e.find(".next").off("click.Y_ModalAlbum").on("click.Y_ModalAlbum",function(){n.next()}),t.IsPaging&&$Tg.off(t.paginationEve+".Y_ModalAlbum").on(t.paginationEve+".Y_ModalAlbum",function(){if($(this).hasClass("on"))return $(this).Y_Animation({animation:"dotShake"});d=$Tg.index($(this)),n.Move()}),$(document).on("keydown.Y_ModalAlbum",function(t){switch(t.keyCode){case 27:n.destroy();break;case 37:n.prev();break;case 39:n.next()}})},1),lockScroll()}),this} ,Y_OffsetMove:function(t){return t=$.extend({},{viewport:".viewport",overview:".overview",item:".item",single:!0,prev:null,next:null,vertical:!1},t),this.each(function(e,n){var i=$(n),a=$(t.viewport,n),o=$(t.overview,n),s=$(t.item,a),l=t.vertical,r=$(t.prev,n),c=$(t.next,n),d=0,f=0,u=s.length,h=0;n.idx=0,n.bOnce=!0,n.Move=function(e,i){var o=l?a.scrollTop():a.scrollLeft();if(t.single||i){var r=s.eq(n.idx),c=Math.ceil(l?r.outerHeight():r.outerWidth()),u=Math.ceil(l?r.offset().top:r.offset().left);u>f&&u+cd&&(h=c+h-d)}else Math.round(s.eq(-1).outerWidth()+s.eq(-1).offset().left)<=Math.round(d+f)?h=0:s.each(function(t,e){var i=Math.ceil(l?$(e).outerHeight():$(e).outerWidth()),a=Math.ceil(l?$(e).offset().top:$(e).offset().left);i+a>d+f&&n.bOnce&&(h==a+o-f&&i>d?h+=d:h=a+o-f,n.bOnce=!1)});a.stop(!1,!0).animate(l?{scrollTop:h}:{scrollLeft:h},0==e?0:Math.min(600,Math.abs(h-o)),function(){n.bOnce=!0})};var m=$(t.item,i).filter(function(){return $(this).hasClass("on")});h=m.length?m.offset().left+a.scrollLeft()-a.offset().left+m.outerWidth()/2-a.outerWidth()/2:0,a.animate(l?{scrollTop:h}:{scrollLeft:h},0),w.off("resize.Y_OffsetMove").on("resize.Y_OffsetMove",function(t){i.is(":hidden")||(d=Math.ceil(l?a.outerHeight():a.outerWidth()),f=Math.ceil(l?a.offset().top:a.offset().left),o.outerWidth()>a.outerWidth()?$(".ctr",i).removeClass("reject"):$(".ctr",i).addClass("reject"))}).trigger("resize.Y_OffsetMove"),r.off("click.Y_OffsetMove").on("click.Y_OffsetMove",function(t){n.idx=--n.idx<0?u-1:n.idx,setTimeout(function(){n.Move(-1)},1)}),c.off("click.Y_OffsetMove").on("click.Y_OffsetMove",function(t){n.idx=++n.idx%u,setTimeout(function(){n.Move(1)},1)}),a.scroll(function(t){h=l?a.scrollTop():a.scrollLeft(),s.each(function(t,e){var i=Math.ceil(l?$(e).outerHeight():$(e).outerWidth()),a=Math.ceil(l?$(e).offset().top:$(e).offset().left);i+a<=d+f&&a>=f&&(n.idx=s.index($(e)))})})}),this} ,Y_HoverOn:function(t){return t=$.extend({},{item:".item",actCls:"on",delay:333,backInit:!0,initNum:null,lazyLoad:[!1,500],fn:{callback:null}},t),this.each(function(e,n){var i=$(t.item,n);n.nInitNum=null!==t.initNum?t.initNum:i.filter("."+t.actCls).length?i.filter("."+t.actCls).index():-1,n.idx=t.initNum||0,n.MouseIn=function(e){e>=0&&(n.idx=e),clearTimeout(n.timer),onoff(i.eq(n.idx),{sib:t.item,cls:t.actCls}),t.lazyLoad[0]&&fnLazyloadPd($oE)&&$.fn.Y_LazyLoad.Init($oE,!0,t.lazyLoad[1]),t.fn.callback&&t.fn.callback.call(this,$(n),n.idx)},n.MouseOut=function(){n.timer=setTimeout(function(){n.MouseIn(n.nInitNum)},t.delay)},null!=t.initNum&&n.MouseIn(),t.lazyLoad[0]&&i.addClass("waitLoad"),i.hover(function(){if($h.hasClass("wap"))return!0;$(this).hasClass(n.actCls)||(n.idx=$(this).index(),n.MouseIn(n.idx))},function(){if($h.hasClass("wap"))return!0;t.backInit&&n.nInitNum>=0&&n.MouseOut()})}),this} ,Y_RotateMove:function(t){return t=$.extend({},{bCss3:[!1,3],duration:800,TimeOut:0,stopable:!0,cssArray:null,IsPaging:!1,PagingSept:!1,initNum:0,IsDrag:!1,clickMove:!1,Pagination:".pagination",contain:".ysqJsBox,.ysqMoveBox,.box",item:".item",prev:".prev",next:".next",item_actClass:"on",pagination_actClass:"on",fn:{before:null,start:null,callback:null,after:null}},t),this.each(function(e,n){function i(t,e){return e>0?t+1>=u?0:t+1:t-1<0?u-1:t-1}var a,o,s,l,r=$(n),c=$(t.contain,n),d=c.find(t.item),f=$(t.prev+","+t.next,n),u=d.length,h=u,m=t.cssArray[0],g=c.html();if(n.Dragable=t.IsDrag,n.idx=0,n._cssArray=t.cssArray.slice(1),d.each(function(t,e){$(e).attr("data-index",t)}),t.fn.before&&t.fn.before.call(this,r),0!=u){if(u0?[10,22,25,18,15]:[15,18,25,22,10];t.IsPaging&&1!=h&&onoff(o.eq(e%h),{cls:t.pagination_actClass}),d.addClass("base").css("z-index",0).removeClass(t.item_actClass+" L0 L1 L2 on pOn nOn"),d.eq(n.idx).removeClass("base").addClass(t.item_actClass+" L0").css("z-index",c[2]),d.eq(i(n.idx,-1)).removeClass("base").addClass("L1 pOn").css("z-index",c[1]),d.eq(i(n.idx,1)).removeClass("base").addClass("L1 nOn").css("z-index",c[3]),(n._cssArray.length>3||5==t.bCss3[1])&&(d.eq(i(i(n.idx,-1),-1)).removeClass("base").addClass("L2 pOn").css("z-index",c[0]),d.eq(i(i(n.idx,1),1)).removeClass("base").addClass("L2 nOn").css("z-index",c[4])),t.bCss3[0]||(d.animate(m,a,"swing"),d.eq(n.idx).stop(!0,!1).animate(n._cssArray[r],a,"swing",function(){l||n.callback()}).siblings(t.item),d.eq(i(n.idx,-1)).stop(!0,!1).animate(n._cssArray[r-1],a,"swing"),d.eq(i(n.idx,1)).stop(!0,!1).animate(n._cssArray[r+1],a,"swing"))},n.start=function(){setProperty(n,"ysqble",t.clickMove),t.fn.start&&t.fn.start.call(this,r,n.idx%h),fnLazyloadPd(r)&&$.fn.Y_LazyLoad.Init(r,!1)},n.callback=function(){setProperty(n,"ysqble",!0),t.fn.callback&&t.fn.callback.call(this,r,n.idx%h)},n.prev=function(){n.idx=n.idx-1<0?u-1:n.idx-1,n.Move(n.idx,t.duration,-1)},n.next=function(){n.idx=n.idx+1>u-1?0:n.idx+1,n.Move(n.idx,t.duration,1)},t.IsPaging&&1!=h){for(var p="1",e=1;e<=h-1;e++)p+=(t.PagingSept?"":"")+""+(e+1)+"";$(t.Pagination,n).length?$(t.Pagination,n).append(p):r.append(""),a=$(t.Pagination,n),o=a.find(".btn"),s=a.length,l=getW(a),t.AniPagination&&a.Y_SetCss3({dur:t.TimeOut+"s"}),$(t.Pagination,n).hasClass("autoW")&&$(t.Pagination,n).css({width:s*l,left:"50%","margin-left":-s*l/2})}if(r.addClass("_loaded"),d.addClass("moveItem"),setTimeout(function(){n.Move(0,0,1),$(t.next+","+t.prev,n).show(),t.fn.after&&t.fn.after.call(this,r)},1),t.IsDrag&&r.Y_Drag({direction:"h",left:n.next,right:n.prev,instant:!1}),f.length){var b=$(t.prev,n),x=$(t.next,n);x.click(function(){n.ysqble=!0,n.ysqble||$(this).hasClass("unable")?n.next(!0):$(this).Y_Animation({animation:"dotShake"})}),b.click(function(){n.ysqble=!0,n.ysqble||$(this).hasClass("unable")?n.prev(!0):$(this).Y_Animation({animation:"dotShake"})}),ysq.IsMoble?f.addClass("ctrShow"):r.on({"mousemove.Y_RotateMove":function(t){var e=t.pageX;t.pageY;en.pdx?i.addClass("dir_z").removeClass("dir_f"):i.addClass("dir_f").removeClass("dir_z"),onoff(l.eq(n.pdx),{cls:"leave"}),onoff(l.eq(n.idx),{cls:"come"}),n.AutoNext(),l.removeClass(t.TtActCls),o.length&&onoff(r,{cls:t.TgActCls}),s.length&&s.attr("href",r.attr("data-href")||r.attr("href")),setTextLine($("[data-text-line]",r)),a||t.fn.start&&t.fn.start.call(this,i,n.idx,l,c,s),t.animateTt&&($("[scrollEle-temp]",d).add(d).each(function(t,e){$(e).attr("scrollEle-temp")&&$(e).attr("scrollEle",$(e).attr("scrollEle-temp"))}),$("[scrollEle]",d).addClass("AniDo").trigger("destroy.Y_ScrollEle")),t.clickMoveTg[0]?setTimeout(function(){!function(e){var a=o.find(".viewport").length?o.find(".viewport"):o,s=($(".overview",o),$(".btn.on",i));if(s.length){var l={x:s.offset().left+a.scrollLeft()-a.offset().left+s.outerWidth()/2-a.outerWidth()/2,y:s.offset().top+a.scrollTop()-a.offset().top+s.outerHeight()/2-a.outerHeight()/2},r="scroll"!=t.clickMoveTg[2]?{left:-1*l.x,top:-1*l.y}:{scrollLeft:l.x,scrollTop:l.y},c=(t.clickMoveTg[2],400);a.stop(!0,!1).animate(r,c,function(){t.lazyLoad[0]&&fnLazyloadPd(a)&&$.fn.Y_LazyLoad.Init(a,!0,t.lazyLoad[1]),t.btnAnimate&&n.barMove()})}}(t.clickMoveTg[1])},1):t.btnAnimate&&n.barMove(),d.length?(d.addClass(t.TtActCls),setTextLine($("[data-text-line]",i)),setTimeout(function(){setProperty(n,"ysqble",!0),t.overviewMid&&ysq.MsBoxSet(d.find(".overview")),a||t.fn.callback&&t.fn.callback.call(this,i,n.idx,l,c,s),e||t.lazyLoad[0]&&fnLazyloadPd(d)&&$.fn.Y_LazyLoad.Init(d,!0,t.lazyLoad[1]),e||fnScrollElePd(d)&&($.fn.Y_ScrollEle.Init(d),$.fn.Y_ScrollEle.Do(d,0,!0)),d.removeClass("waitLoad"),l.eq(n.pdx).removeClass("leave"),l.eq(n.idx).removeClass("come")},(e?0:t.duration)+1)):setProperty(n,"ysqble",!0)},n.barMove=function(){var e=$(".block",n),i={},a=c.eq(n.idx),s=a.offset(),l=o.offset();i="h"==t.clickMoveTg[1]?t.blockSize?{left:s.left-l.left+(a.outerWidth()-e.width())/2,top:0,height:"100%",opacity:1}:{left:s.left-l.left,width:a.outerWidth(),top:0,height:"100%",opacity:1}:t.blockSize?{top:s.top-l.top+(a.outerHeight()-e.height())/2,left:0,width:"100%",opacity:1}:{top:s.top-l.top,height:a.outerHeight(),left:0,width:"100%",opacity:1},$h.hasClass("pc")?e.stop(!0,!1).animate(i):e.show().css(i)},n.next=function(){n.pdx=n.idx,n.idx=++n.idx%d,setProperty(n,"ysqble",!1),n.Move()},n.prev=function(){n.pdx=n.idx,n.idx=--n.idx<0?d-1:n.idx,setProperty(n,"ysqble",!1),n.Move()},n.AutoNext=function(){t.TimeOut>0&&(clearInterval(n.Y_timer),n.Y_timer=setInterval(function(){n.next(!0)},1e3*t.TimeOut))},1==l.length)return i.addClass("_nojs"),n.Move(!0),!0;if(!c.length){for(var m="",e=0;e":"")+""+(t.hasNum?e+1:" ")+"";o.append(m),c=o.find(t.TBtn)}fnLazyloadPd($b)&&$.fn.Y_LazyLoad.Init($b,!1),t.lazyLoad[0]&&l.addClass("waitLoad"),t.fn.after&&t.fn.after.call(this,i,l,c,s),t.init&&!n.linkable&&n.Move(!0),c.off(t.event+".Y_Tab").on(t.event+".Y_Tab",function(e){if(n.ysqble&&!n.linkable)return $(this).hasClass(t.TgActCls)||(n.pdx=n.idx,n.idx=c.index($(this)),t.item?l.eq(n.idx).find(t.item).length&&n.Move():n.Move()),prevent_default(e)}),i.hover(function(){h=!0,t.TimeOut&&t.stopable&&clearInterval(n.Y_timer)},function(){h=!1,n.AutoNext()}),l.length>1&&(f.length&&f.show().click(function(t){n.ysqble?n.next():$(this).Y_Animation({animation:"dotShake"})}),u.length&&u.show().click(function(t){n.ysqble?n.prev():$(this).Y_Animation({animation:"dotShake"})})),n.Dragable&&i.Y_Drag({contain:t.Tt,direction:t.clickMoveTg[1],left:n.next,right:n.prev,down:n.prev,up:n.next}),t.btnAnimate&&w.on("resize.Y_Tab",function(e){t.btnAnimate&&n.barMove()}),t.keyboard&&$(document).keydown(function(t){h&&(39==t.keyCode&&(f.length?f.trigger("click"):n.next()),37==t.keyCode&&(u.length?u.trigger("click"):n.prev()))})}),this}}); //plugins.js /* linear swing jswing easeInQuad easeOutQuad easeInOutQuad easeInCubic easeOutCubic easeInOutCubic easeInQuart easeOutQuart easeInOutQuart easeInQuint easeOutQuint easeInOutQuint easeInSine easeOutSine easeInOutSine easeInExpo easeOutExpo easeInOutExpo easeInCirc easeInOutCirc easeInElastic easeOutElastic easeInOutElastic easeInBack easeInOutBack easeInBounce easeOutBounce easeInOutBounce */ jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(A,B,C,D,E){return jQuery.easing[jQuery.easing.def](A,B,C,D,E);},easeInQuad:function(A,B,C,D,E){return D*(B/=E)*B+C},easeOutQuad:function(A,B,C,D,E){return-D*(B/=E)*(B-2)+C},easeInOutQuad:function(A,B,C,D,E){if((B/=E/2)<1){return D/2*B*B+C}return-D/2*((--B)*(B-2)-1)+C},easeInCubic:function(A,B,C,D,E){return D*(B/=E)*B*B+C},easeOutCubic:function(A,B,C,D,E){return D*((B=B/E-1)*B*B+1)+C},easeInOutCubic:function(A,B,C,D,E){if((B/=E/2)<1){return D/2*B*B*B+C}return D/2*((B-=2)*B*B+2)+C},easeInQuart:function(A,B,C,D,E){return D*(B/=E)*B*B*B+C},easeOutQuart:function(A,B,C,D,E){return-D*((B=B/E-1)*B*B*B-1)+C},easeInOutQuart:function(A,B,C,D,E){if((B/=E/2)<1){return D/2*B*B*B*B+C}return-D/2*((B-=2)*B*B*B-2)+C},easeInQuint:function(A,B,C,D,E){return D*(B/=E)*B*B*B*B+C},easeOutQuint:function(A,B,C,D,E){return D*((B=B/E-1)*B*B*B*B+1)+C},easeInOutQuint:function(A,B,C,D,E){if((B/=E/2)<1){return D/2*B*B*B*B*B+C}return D/2*((B-=2)*B*B*B*B+2)+C},easeInSine:function(A,B,C,D,E){return-D*Math.cos(B/E*(Math.PI/2))+D+C},easeOutSine:function(A,B,C,D,E){return D*Math.sin(B/E*(Math.PI/2))+C},easeInOutSine:function(A,B,C,D,E){return-D/2*(Math.cos(Math.PI*B/E)-1)+C},easeInExpo:function(A,B,C,D,E){return(B==0)?C:D*Math.pow(2,10*(B/E-1))+C},easeOutExpo:function(A,B,C,D,E){return(B==E)?C+D:D*(-Math.pow(2,-10*B/E)+1)+C},easeInOutExpo:function(A,B,C,D,E){if(B==0){return C}if(B==E){return C+D}if((B/=E/2)<1){return D/2*Math.pow(2,10*(B-1))+C}return D/2*(-Math.pow(2,-10*--B)+2)+C},easeInCirc:function(A,B,C,D,E){return-D*(Math.sqrt(1-(B/=E)*B)-1)+C},easeOutCirc:function(A,B,C,D,E){return D*Math.sqrt(1-(B=B/E-1)*B)+C},easeInOutCirc:function(A,B,C,D,E){if((B/=E/2)<1){return-D/2*(Math.sqrt(1-B*B)-1)+C}return D/2*(Math.sqrt(1-(B-=2)*B)+1)+C},easeInElastic:function(A,B,C,D,E){var F=1.70158;var G=0;var H=D;if(B==0){return C}if((B/=E)==1){return C+D}if(!G){G=E*0.3}if(H=0?t:e,l=e,p=!0,top!=self)g=!0;else if(o>n&&(e.offsetHeight<=n||t.offsetHeight<=n)){var r=!1,a=function(){r||t.scrollHeight==document.height||(r=!0,setTimeout(function(){t.style.height=document.height+"px",r=!1},500))};if(t.style.height="",setTimeout(a,10),i("DOMNodeInserted",a),i("DOMNodeRemoved",a),x.offsetHeight<=n){var u=document.createElement("div");u.style.clear="both",e.appendChild(u)}}if(document.URL.indexOf("mail.google.com")>-1){var s=document.createElement("style");s.innerHTML=".iu { visibility: hidden }",(document.getElementsByTagName("head")[0]||t).appendChild(s)}b||w||(e.style.backgroundAttachment="scroll",t.style.backgroundAttachment="scroll")}}function t(e,t,n,o){if(o||(o=1e3),function(e,t){e=e>0?1:-1,t=t>0?1:-1,y.x===e&&y.y===t||(y.x=e,y.y=t,D=[],M=0)}(t,n),h){var i=+new Date-M;if(i1&&(r=Math.min(r,v),t*=r,n*=r)}M=+new Date}if(D.push({x:t,y:n,lastX:t<0?.99:-.99,lastY:n<0?.99:-.99,start:+new Date}),!H){var l=e===document.body,d=function(){for(var i=+new Date,r=0,h=0,m=0;m=s,y=g?1:w/s;c&&(y=function(e){return e>=1?1:e<=0?0:(1==f&&(f/=a(1)),a(e))}(y));var p=v.x*y-v.lastX>>0,b=v.y*y-v.lastY>>0;r+=p,h+=b,v.lastX+=p,v.lastY+=b,g&&(D.splice(m,1),m--)}l?window.scrollBy(r,h):(r&&(e.scrollLeft+=r),h&&(e.scrollTop+=h)),!t&&!n&&(D=[]),D.length?C(d,e,o/u+1):H=!1};C(d,e,0),H=!0}}function n(e,t){for(var n=e.length;n--;)E[q(e[n])]=t;return t}function o(e){var t=[],o=x.scrollHeight;do{var i=E[q(e)];if(i)return n(t,i);if(t.push(e),o===e.scrollHeight){if(!g||x.clientHeight+101.2&&(u*=stepsize/120),Math.abs(s)>1.2&&(s*=stepsize/120),t(a,-u,-s),n.preventDefault()}),i("load",e)}})(jQuery,300,120); /*pluginsS*/ var CountUp=function(a,t,n,e,i,r){function o(a){return"number"==typeof a&&!isNaN(a)}for(var l=0,s=["webkit","moz","ms","o"],u=0;u1?m.options.decimal+t[1]:"",i=/(\d+)(\d{3})/,m.options.useGrouping)for(;i.test(n);)n=n.replace(i,"$1"+m.options.separator+"$2");return m.options.prefix+n+e+m.options.suffix},prefix:"",suffix:""},r&&"object"==typeof r)for(var d in m.options)r.hasOwnProperty(d)&&null!==r[d]&&(m.options[d]=r[d]);""===m.options.separator&&(m.options.useGrouping=!1),m.initialize=function(){return!(!m.initialized&&(m.d="string"==typeof a?document.getElementById(a):a,m.d?(m.startVal=Number(t)||0,m.endVal=Number(n)||0,o(m.startVal)&&o(m.endVal)?(m.decimals=Math.max(0,e||0),m.dec=Math.pow(10,m.decimals),m.duration=1e3*Number(i)||2e3,m.countDown=m.startVal>m.endVal,m.frameVal=m.startVal,m.initialized=!0,0):(console.error("[CountUp] startVal or endVal is not a number",m.startVal,m.endVal),1)):(console.error("[CountUp] target is null or undefined",m.d),1)))},m.printValue=function(a){var t=m.options.formattingFn(a);"INPUT"===m.d.tagName?this.d.value=t:"text"===m.d.tagName||"tspan"===m.d.tagName?this.d.textContent=t:this.d.innerHTML=t},m.count=function(a){m.startTime||(m.startTime=a),m.timestamp=a;var t=a-m.startTime;m.remaining=m.duration-t,m.options.useEasing?m.countDown?m.frameVal=m.startVal-m.options.easingFn(t,0,m.startVal-m.endVal,m.duration,m.options.rate):m.frameVal=m.options.easingFn(t,m.startVal,m.endVal-m.startVal,m.duration,m.options.rate):m.countDown?m.frameVal=m.startVal-(m.startVal-m.endVal)*(t/m.duration):m.frameVal=m.startVal+(m.endVal-m.startVal)*(t/m.duration),m.countDown?m.frameVal=m.frameValm.endVal?m.endVal:m.frameVal,m.frameVal=Math.round(m.frameVal*m.dec)/m.dec,m.printValue(m.frameVal),tm.endVal,m.rAF=requestAnimationFrame(m.count))}},m.initialize()&&m.printValue(m.startVal)}; function transitionEnd(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var o in e)if(void 0!==t.style[o])return{end:e[o]};return!1}!function(t){t.fn.smartZoom=function(e){function o(t){}function n(t,e){var o=E.data("smartZoomData");o.currentWheelDelta*e<0&&(o.currentWheelDelta=0),o.currentWheelDelta+=e,S.zoom(o.mouseWheelDeltaFactor*o.currentWheelDelta,{x:t.pageX,y:t.pageY})}function i(t){t.preventDefault()}function a(){var t=E.data("smartZoomData");if(1==t.settings.mouseMoveEnabled&&1==t.settings.moveCursorEnabled){var e=w().width/t.originalSize.width;parseInt(100*e)>parseInt(100*t.adjustedPosInfos.scale)?E.css({cursor:"move"}):E.css({cursor:"default"})}}function s(t){f(t.pageX,t.pageY)}function r(e){e.preventDefault(),t(document).on("mousemove.smartZoom",u),t(document).bind("mouseup.smartZoom",c);var o=E.data("smartZoomData");o.moveCurrentPosition=new x(e.pageX,e.pageY),o.moveLastPosition=new x(e.pageX,e.pageY)}function u(t){var e=E.data("smartZoomData");(e.mouseMoveForPan||!e.mouseMoveForPan&&e.moveCurrentPosition.x!=t.pageX&&e.moveCurrentPosition.y!=t.pageY)&&(e.mouseMoveForPan=!0,h(t.pageX,t.pageY,0,!1))}function c(e){var o=E.data("smartZoomData");if(o.mouseMoveForPan)if(o.mouseMoveForPan=!1,o.moveLastPosition.distance(o.moveCurrentPosition)>4){var n=o.moveLastPosition.interpolate(o.moveCurrentPosition,-4);h(n.x,n.y,500,!0)}else h(o.moveLastPosition.x,o.moveLastPosition.y,0,!0);else o.settings.zoomOnSimpleClick&&f(e.pageX,e.pageY);t(document).unbind("mousemove.smartZoom"),t(document).unbind("mouseup.smartZoom")}function l(e){e.preventDefault(),t(document).unbind("touchmove.smartZoom"),t(document).unbind("touchend.smartZoom"),t(document).bind("touchmove.smartZoom",m),t(document).bind("touchend.smartZoom",d);var o=e.originalEvent.touches,n=o[0],i=E.data("smartZoomData");i.touch.touchMove=!1,i.touch.touchPinch=!1,i.moveCurrentPosition=new x(n.pageX,n.pageY),i.moveLastPosition=new x(n.pageX,n.pageY),i.touch.lastTouchPositionArr=new Array;for(var a,s=o.length,r=0;r2){var n=o.moveLastPosition.interpolate(o.moveCurrentPosition,-4);h(n.x,n.y,500,!0)}}else{if(1==o.settings.dblTapEnabled&&0!=o.touch.lastTouchEndTime&&(new Date).getTime()-o.touch.lastTouchEndTime<400){var i=o.touch.lastTouchPositionArr[0];f(i.x,i.y)}o.touch.lastTouchEndTime=(new Date).getTime()}}function h(t,e,n,i){p(o.PAN);var a=E.data("smartZoomData");a.moveLastPosition.x=a.moveCurrentPosition.x,a.moveLastPosition.y=a.moveCurrentPosition.y;var s=E.offset(),r=w(),u=v(s.left+(t-a.moveCurrentPosition.x),s.top+(e-a.moveCurrentPosition.y),r.width,r.height);P(o.PAN,o.START,!1),b(E,u.x,u.y,r.width,r.height,n,1==i?function(){P(o.PAN,o.END,!1)}:null),a.moveCurrentPosition.x=t,a.moveCurrentPosition.y=e}function f(t,e){var o,n=E.data("smartZoomData"),i=n.originalSize,a=w().width/i.width,s=n.adjustedPosInfos.scale,r=parseFloat(n.settings.dblClickMaxScale);o=a.toFixed(2)>r.toFixed(2)||Math.abs(r-a)>Math.abs(a-s)?r-a:s-a,S.zoom(o,{x:t,y:e})}function p(e){var o=E.data("smartZoomData");if(o.transitionObject){o.transitionObject.cssAnimHandler&&E.off(t.support.transition,o.transitionObject.cssAnimTimer);o.originalSize,w();var n=new Object;n[o.transitionObject.transition]="all 0s",o.transitionObject.css3dSupported,E.css(n)}else E.stop();a(),null!=e&&P(e,"",!0)}function v(t,e,o,n){var i=E.data("smartZoomData"),a=Math.min(i.adjustedPosInfos.top,e);a+=Math.max(0,i.adjustedPosInfos.top+i.adjustedPosInfos.height-(a+n));var s=Math.min(i.adjustedPosInfos.left,t);return s+=Math.max(0,i.adjustedPosInfos.left+i.adjustedPosInfos.width-(s+o)),new x(s.toFixed(2),a.toFixed(2))}function g(){var t=E.data("smartZoomData"),e=t.containerDiv,o=t.originalSize,n=e.parent().offset(),i=y(t.settings.left,n.left,e.parent().width()),s=y(t.settings.top,n.top,e.parent().height());e.offset({left:i,top:s}),e.width(D(t.settings.width,e.parent().width(),i-n.left)),e.height(D(t.settings.height,e.parent().height(),s-n.top));var r=T(e),u=Math.min(Math.min(r.width/o.width,r.height/o.height),1).toFixed(2),c=o.width*u,l=o.height*u;t.adjustedPosInfos={left:(r.width-c)/2+n.left,top:(r.height-l)/2+n.top,width:c,height:l,scale:u},p(),b(E,t.adjustedPosInfos.left,t.adjustedPosInfos.top,c,l,0,function(){E.css("visibility","visible")}),a()}function b(e,o,n,i,a,s,r){var u=E.data("smartZoomData"),c=u.containerDiv.offset(),l=o-c.left,m=n-c.top;if(null!=u.transitionObject){var d=u.originalSize,h=new Object;h[u.transitionObject.transform+"-origin"]="0 0",h[u.transitionObject.transition]="all "+s/1e3+"s ease-out",u.transitionObject.css3dSupported?h[u.transitionObject.transform]="translate3d("+l+"px, "+m+"px, 0) scale3d("+i/d.width+","+a/d.height+", 1)":h[u.transitionObject.transform]="translateX("+l+"px) translateY("+m+"px) scale("+i/d.width+","+a/d.height+")",$(".modal-fullScreen .sGuide-maps .dot").css({transform:"scale3d("+1/(i/d.width)+","+1/(a/d.height)+", 1)"}),null!=r&&(u.transitionObject.cssAnimHandler=r,e.one(t.support.transition.end,u.transitionObject.cssAnimHandler)),e.css(h)}else e.animate({"margin-left":l,"margin-top":m,width:i,height:a},{duration:s,easing:u.settings.easing,complete:function(){null!=r&&r()}})}function w(t){var e=E.data("smartZoomData"),o=E.width(),n=E.height(),i=E.offset(),a=parseInt(i.left),s=parseInt(i.top),r=e.containerDiv.offset();if(1!=t&&(a=parseInt(a)-r.left,s=parseInt(s)-r.top),null!=e.transitionObject){var u=E.css(e.transitionObject.transform);if(u&&""!=u&&-1!=u.search("matrix")){var c,l;-1!=u.search("matrix3d")?c=(l=u.replace("matrix3d(","").replace(")","").split(","))[0]:(c=(l=u.replace("matrix(","").replace(")","").split(","))[3],a=parseFloat(l[4]),s=parseFloat(l[5]),t&&(a=parseFloat(a)+r.left,s=parseFloat(s)+r.top)),o*=c,n*=c}}return{x:a,y:s,width:o,height:n}}function P(t,e,n){var i=E.data("smartZoomData"),a="";if(1==n&&i.currentActionType!=t?(a=i.currentActionType+"_"+o.END,i.currentActionType="",i.currentActionStep=""):i.currentActionType!=t||i.currentActionStep==o.END?(i.currentActionType=t,i.currentActionStep=o.START,a=i.currentActionType+"_"+i.currentActionStep):i.currentActionType==t&&e==o.END&&(i.currentActionStep=o.END,a=i.currentActionType+"_"+i.currentActionStep,i.currentActionType="",i.currentActionStep=""),""!=a){var s=jQuery.Event(a);s.targetRect=w(!0),s.scale=s.targetRect.width/i.originalSize.width,E.trigger(s)}}function D(t,e,o){return t.search&&-1!=t.search("%")?(e-o)*(parseInt(t)/100):parseInt(t)}function y(t,e,o){return t.search&&-1!=t.search("%")?e+o*(parseInt(t)/100):e+parseInt(t)}function Z(){g()}function T(t){var e=t.offset();if(!e)return null;return{x:e.left,y:e.top,width:t.outerWidth(),height:t.outerHeight()}}function x(t,e){this.x=t,this.y=e,this.toString=function(){return"(x="+this.x+", y="+this.y+")"},this.interpolate=function(t,e){return new x(e*this.x+(1-e)*t.x,e*this.y+(1-e)*t.y)},this.distance=function(t){return Math.sqrt(Math.pow(t.y-this.y,2)+Math.pow(t.x-this.x,2))}}var E=this;o.ZOOM="SmartZoom_ZOOM",o.PAN="SmartZoom_PAN",o.START="START",o.END="END",o.DESTROYED="SmartZoom_DESTROYED";var S={init:function(e){if(!E.data("smartZoomData")){settings=t.extend({top:"0",left:"0",width:"100%",height:"100%",easing:"smartZoomEasing",initCallback:null,maxScale:3,dblClickMaxScale:1.8,mouseEnabled:!0,scrollEnabled:!0,dblClickEnabled:!0,mouseMoveEnabled:!0,moveCursorEnabled:!0,adjustOnResize:!0,touchEnabled:!0,dblTapEnabled:!0,zoomOnSimpleClick:!1,pinchEnabled:!0,touchMoveEnabled:!0,containerBackground:"#FFFFFF",containerClass:""},e);var o=E.attr("style"),a="smartZoomContainer"+(new Date).getTime(),u=t('
    ');E.before(u),E.remove(),(u=t("#"+a)).css({overflow:"hidden"}),""==settings.containerClass&&u.css({"background-color":settings.containerBackground}),u.append(E);var c=new Object;c.lastTouchEndTime=0,c.lastTouchPositionArr=null,c.touchMove=!1,c.touchPinch=!1,E.data("smartZoomData",{settings:settings,containerDiv:u,originalSize:{width:E.width(),height:E.height()},originalPosition:E.offset(),transitionObject:function(){for(var e,o=(document.body||document.documentElement).style,n=["transition","WebkitTransition","MozTransition","MsTransition","OTransition"],i=["transition","-webkit-transition","-moz-transition","-ms-transition","-o-transition"],a=["transform","-webkit-transform","-moz-transform","-ms-transform","-o-transform"],s=n.length,r=0;rTranslate3d Test');if(t("body").append(u),e=new Object,e[a[r]]="translate3d(20px,0,0)",u.css(e),css3dSupported=u.offset().left-t("body").offset().left==20,u.empty().remove(),css3dSupported)return{transition:i[r],transform:a[r],css3dSupported:css3dSupported}}return null}(),touch:c,mouseWheelDeltaFactor:.15,currentWheelDelta:0,adjustedPosInfos:null,moveCurrentPosition:null,moveLastPosition:null,mouseMoveForPan:!1,currentActionType:"",initialStyles:o,currentActionStep:""}),g(),1==settings.touchEnabled&&E.bind("touchstart.smartZoom",l),1==settings.mouseEnabled&&(1==settings.mouseMoveEnabled&&E.bind("mousedown.smartZoom",r),1==settings.scrollEnabled&&(u.bind("mousewheel.smartZoom",n),u.bind("mousewheel.smartZoom DOMMouseScroll.smartZoom",i)),1==settings.dblClickEnabled&&0==settings.zoomOnSimpleClick&&u.bind("dblclick.smartZoom",s)),document.ondragstart=function(){return!1},1==settings.adjustOnResize&&t(window).bind("resize.smartZoom",Z),null!=settings.initCallback&&settings.initCallback.apply(this,E)}},zoom:function(t,e,n){var i,s,r=E.data("smartZoomData");if(e)i=e.x,s=e.y;else{var u=T(r.containerDiv);i=u.x+u.width/2,s=u.y+u.height/2}p(o.ZOOM);var c=w(!0),l=r.originalSize,m=c.width/l.width+t;m=Math.max(r.adjustedPosInfos.scale,m),m=Math.min(r.settings.maxScale,m);var d=l.width*m,h=l.height*m,f=i-c.x,g=s-c.y,D=d/c.width,y=v(c.x-(f*D-f),c.y-(g*D-g),d,h);null==n&&(n=700),P(o.ZOOM,o.START,!1),b(E,y.x,y.y,d,h,n,function(){r.currentWheelDelta=0,a(),P(o.ZOOM,o.END,!1)})},pan:function(t,e,n){if(null!=t&&null!=e){null==n&&(n=700);var i=E.offset(),a=w(),s=v(i.left+t,i.top+e,a.width,a.height);s.x==i.left&&s.y==i.top||(p(o.PAN),P(o.PAN,o.START,!1),b(E,s.x,s.y,a.width,a.height,n,function(){P(o.PAN,o.END,!1)}))}},destroy:function(){var e=E.data("smartZoomData");if(e){p();var n=e.containerDiv;E.unbind("mousedown.smartZoom"),E.bind("touchstart.smartZoom"),n.unbind("mousewheel.smartZoom"),n.unbind("dblclick.smartZoom"),n.unbind("mousewheel.smartZoom DOMMouseScroll.smartZoom"),t(window).unbind("resize.smartZoom"),t(document).unbind("mousemove.smartZoom"),t(document).unbind("mouseup.smartZoom"),t(document).unbind("touchmove.smartZoom"),t(document).unbind("touchend.smartZoom"),E.css({cursor:"default"}),n.before(E),b(E,e.originalPosition.left,e.originalPosition.top,e.originalSize.width,e.originalSize.height,5),E.removeData("smartZoomData"),n.remove(),E.attr("style",e.initialStyles),E.trigger(o.DESTROYED)}},isPluginActive:function(){return void 0!=E.data("smartZoomData")}};if(S[e])return S[e].apply(this,Array.prototype.slice.call(arguments,1));"object"!=typeof e&&e?t.error("Method "+e+" does not exist on e-smartzoom jquery plugin"):"img"!=E[0].tagName.toLowerCase()||E[0].complete?S.init.apply(E,[arguments[0]]):E.bind("load.smartZoom",{arguments:arguments[0]},function(t){E.unbind("load.smartZoom"),S.init.apply(E,[t.data.arguments])})}}(jQuery),function(t){t.extend(t.easing,{smartZoomEasing:function(e,o,n,i,a){return t.easing.smartZoomOutQuad(e,o,n,i,a)},smartZoomOutQuad:function(t,e,o,n,i){return-n*(e/=i)*(e-2)+o}})}(jQuery),function(t){function e(e){var o=e||window.event,n=[].slice.call(arguments,1),i=0,a=0,s=0;return e=t.event.fix(o),e.type="mousewheel",o.wheelDelta&&(i=o.wheelDelta/120),o.detail&&(i=-o.detail/3),s=i,void 0!==o.axis&&o.axis===o.HORIZONTAL_AXIS&&(s=0,a=-1*i),void 0!==o.wheelDeltaY&&(s=o.wheelDeltaY/120),void 0!==o.wheelDeltaX&&(a=-1*o.wheelDeltaX/120),n.unshift(e,i,a,s),(t.event.dispatch||t.event.handle).apply(this,n)}var o=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var n=o.length;n;)t.event.fixHooks[o[--n]]=t.event.mouseHooks;t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],e,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery),$.fn.emulateTransitionEnd=function(t){var e=!1,o=this;$(this).one($.support.transition.end,function(){e=!0});return setTimeout(function(){e||$(o).trigger($.support.transition.end)},t),this},$(function(){$.support.transition=transitionEnd()}); !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";function o(o,e){function s(){return l.update(),function(){z&&(d[0].ontouchstart=function(t){1===t.touches.length&&(t.stopPropagation(),h(t.touches[0]))});S.bind(TouchOn,function(t){t.stopPropagation(),h(t)}),p.bind(TouchOn,function(t){h(t,!0)}),t(window).resize(function(){l.update("relative")}),l.options.wheel&&window.addEventListener?o[0].addEventListener(b,a,!1):l.options.wheel&&(o[0].onmousewheel=a)}(),l}function c(){return l.contentPosition>=0&&l.contentPosition5&&o.addClass("unlock"),o.data("callback")&&o.data("callback")()):(o[0].counter=0,o.removeClass("unlock")),(l.options.wheelLock||c()&&!o.hasClass("unlock"))&&(n=t.event.fix(n)).preventDefault(),fnLazyloadPd(o)&&t.fn.Y_LazyLoad.Init(o),fnScrollElePd(o)&&(t.fn.Y_ScrollEle.Init(o),t.fn.Y_ScrollEle.Do(o,0,!0))}}function u(t){if(l.hasContentToSroll){var n=v?t.pageX:t.pageY,e=t[i+"Touch"]?k-n:n-k,s=Math.min(l.trackSize-l.thumbSize,Math.max(0,l.thumbPosition+e));l.contentPosition=s*l.trackRatio,o.trigger("move"),S.css(P,s),f.css(P,-l.contentPosition).find(".fixed").css(P,l.contentPosition)}}function r(){l.thumbPosition=parseInt(S.css(P),10)||0,f.removeClass("unsel"),f.hasClass("mousein")||f.trigger("mouseleave"),t(document).unbind(TouchIng+".moduleScroll",u),t(document).unbind(TouchEd+".moduleScroll",r),S.unbind(TouchEd+".moduleScroll",r),p.unbind(TouchEd+".moduleScroll",r),document.ontouchmove=document.ontouchend=null,setTimeout(function(){fnLazyloadPd(o)&&t.fn.Y_LazyLoad.Init(o),fnScrollElePd(o)&&(t.fn.Y_ScrollEle.Init(o),t.fn.Y_ScrollEle.Do(o,0,!0))},240)}this.options=t.extend({},n,e),this._defaults=n,this._name=i;var l=this,d=o.find(this.options.viewport),f=o.find(this.options.overview),m=o.find(this.options.scrollbar),p=m.find(this.options.track),S=m.find(this.options.thumb),z="ontouchstart"in document.documentElement,b="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",v="x"===this.options.axis,w=v?"width":"height",P=v?"left":"top",k=0;return this.contentPosition=0,this.viewportSize=0,this.contentSize=0,this.contentRatio=0,this.trackSize=0,this.trackRatio=0,this.thumbSize=0,this.thumbPosition=0,this.hasContentToSroll=!1,this.update=function(t){var o=w.charAt(0).toUpperCase()+w.slice(1).toLowerCase();switch(this.viewportSize=d[0]["offset"+o],this.contentSize=f[0]["scroll"+o],this.contentRatio=this.viewportSize/this.contentSize,this.trackSize=this.options.trackSize||this.viewportSize,this.thumbSize=Math.min(this.trackSize,Math.max(this.options.thumbSizeMin,this.options.thumbSize||this.trackSize*this.contentRatio)),this.trackRatio=(this.contentSize-this.viewportSize)/(this.trackSize-this.thumbSize),this.hasContentToSroll=this.contentRatio<1,m.toggleClass("disable",!this.hasContentToSroll),t){case"bottom":this.contentPosition=Math.max(this.contentSize-this.viewportSize,0);break;case"relative":this.contentPosition=Math.min(Math.max(this.contentSize-this.viewportSize,0),Math.max(0,this.contentPosition));break;default:this.contentPosition=parseInt(t,10)||0}return this.thumbPosition=this.contentPosition/this.trackRatio,S.css(P,l.thumbPosition),f.css(P,-l.contentPosition).find(".fixed").css(P,l.contentPosition),m.css(w,l.trackSize),p.css(w,l.trackSize),S.css(w,l.thumbSize),l},s()}var i="tinyscrollbar",n={axis:"y",wheel:!0,wheelSpeed:16,wheelLock:!1,touchLock:!1,trackSize:!1,thumbSize:!1,thumbSizeMin:20,viewport:".viewport",overview:".overview",scrollbar:".scrollbar",track:".track",thumb:".thumb"};t.fn[i]=function(n){return this.each(function(){t.data(this,"plugin_"+i)||t.data(this,"plugin_"+i,new o(t(this),n))})}}); /*pluginsE*/ /* basic Fn S*/ function a(e){alert(e)}function c(e){console.log(e)}function cw(e){console.warn(e)}function ce(e){console.error(e)}function dbn(e,t){t=t||"",e.show().siblings(t).hide()}function mlr(e,t){return Math.ceil(parseInt(e.css(t?"margin-left":"margin-right")))||0}function mtb(e,t){return Math.ceil(parseInt(e.css(t?"margin-top":"margin-bottom")))||0}function plr(e,t){return Math.ceil(parseInt(e.css(t?"padding-left":"padding-right")))||0}function ptb(e,t){return Math.ceil(parseInt(e.css(t?"padding-top":"padding-bottom")))||0}function getW(e){return Math.ceil(parseInt(e.outerWidth()+mlr(e,1)+mlr(e,0)))}function getH(e){return Math.ceil(parseInt(e.outerHeight()+mtb(e,1)+mtb(e,0)))}function getWH(e,t){return Math.ceil(t?parseInt(e.outerHeight()+mtb(e,1)+mtb(e,0)):parseInt(e.outerWidth()+mlr(e,1)+mlr(e,0)))}function getAniDur(e){return parseFloat(e.css("animation-duration"))>10?parseFloat(e.css("animation-duration")):1e3*parseFloat(e.css("animation-duration"))}function sElements(e){return String(e[0].tagName+"."+e.attr("class"))}function fnScrollElePd(e){return ysq.Switch&&$.fn.Y_ScrollEle&&(e.is("[scrollEle]")||e.find("[scrollEle]").length)}function fnLazyloadPd(e){return $.fn.Y_LazyLoad&&e.find("[lazy-src]").length}function bindScrollFn(e,t){$(e).addClass("Y_AutoCheck"),e.fnAuto=function(){t()}}function inWindow(e,t,n){var o=e.offset().top,s=e.offset().left,i=w.scrollTop(),r=w.scrollLeft(),a=i+w.height(),t=t||[0,0];ysq.IsMoble&&(t=[0,w.height()/10]);var l=r+0,c=r+w.width()-0,d=i+t[0],u=a-t[1],f=s,h=s+e.outerWidth(),p=o,m=o+e.outerHeight(),g=h-f>=c-l?h>=l&&l>=f||h>=c&&f<=c:h>=l&&h<=c||f>=l&&f<=c,v=m-p>=u-d?m>=d&&d>=p||m>=u&&p<=u:m>=d&&(m<=u||a>=$b.outerHeight()-t[1]&&p<=a)||p<=u&&(p>=d||(i<=t[0]||"fixed"==e.css("position"))&&p>=i);return n&&(g=h>=l&&h<=c||f<=c&&f>=l,v=m>=d&&m<=u||p<=u&&p>=d),ysq.Test&&ysq.TT&&cw("outerWindow:"+sElements(e)),g&&v}function SE_GetAniName(e){if((e=e||"").indexOf(",")>=0&&e.split(",").length>1)return e.split(",");switch(e){case"rotateS":return["rotateInUpRight","rotateInDownLeft"];case"rotateN":return["rotateInDownRight","rotateInUpLeft"];case"lightLR":return["lightSpeedInLeft","lightSpeedInRight"];case"slideLR":return["slideInLeft","slideInRight"];case"fadeLR":return["fadeInLeft","fadeInRight"];case"fadeLRs":return["fadeInLefts","fadeInRights"];case"fadeLRm":return["fadeInLeftm","fadeInRightm"];case"fadeUD":return["fadeInUp","fadeInDown"];case"fadeUDs":return["fadeInUps","fadeInDowns"];case"fadeUDm":return["fadeInUpm","fadeInDownm"];case"fade4s":return["fadeInUps","fadeInLefts","fadeInRights","fadeInDowns"];case"fade4":return["fadeInUp","fadeInLeft","fadeInRight","fadeInDown"];case"zoomLR":return["zoomInLeft","zoomInRight"];case"zoomUD":return["zoomInUp","zoomInDown"];case"bounceLR":return["bounceInLeft","bounceInRight"];case"bounceUD":return["bounceInUp","bounceInDown"];default:return[e]}}function isHidden(e){return e.is(":hidden")||"hidden"==e.parent().css("visibility")}function fnPen(e,t){e.hasClass("_pen")||(e.addClass("_pen"),setTimeout(function(){e.removeClass("_pen")},t||800))}function iPhoneTest(){return navigator.userAgent.indexOf("iPhone")>-1}function MacTest(){return navigator.userAgent.indexOf("Mac")>-1&&navigator.userAgent.indexOf("Safari")>-1}function UCTest(){return navigator.userAgent.indexOf("UCBrowser")>-1}function SaveData(e,t,n){n=n||1;var o=new Date;o.setDate(o.getDate()+n),document.cookie=e+"="+t+";expires="+o}function GetData(e){for(var t=document.cookie.split("; "),n=0;ne}function isNull(e){return""==!!e||void 0==!!e||null==!!e||/^[ ]+$/.test(e)}function isSpace(e){return"\r"==e||"\n"==e||" "==e}function stopprop(e){if(!(e=e||window.event)||!e.stopPropagation)return window.event.cancelBubble=!1,!1;e.stopPropagation()}function prevent_default(e){if(!(e=e||window.event)||!e.preventDefault)return window.event.returnValue=!1,!1;e.preventDefault()}function addEvent(e,t,n,o){if(e.addEventListener)return e.addEventListener(t,n,o),!0;if(e.attachEvent){return e.attachEvent("on"+t,n)}e["on"+t]=n}function removeEvent(e,t,n,o){if(e.removeEventListener)return e.removeEventListener(t,n,o),!0;if(e.detachEvent){return e.detachEvent("on"+t,n)}return void(e["on"+t]=null)}function setVamCss(e,t,n,o){$(".css"+t).length&&$(".css"+t).remove();var s="."+t+" "+(n||"");$("head").append('")}function setProperty(oE,ppty,_boole){_boole?$(oE).removeClass("_disabled"):$(oE).addClass("_disabled"),$(oE).attr("temp_ID",0),eval('$("[temp_ID]")[0].'+ppty+"="+_boole),$(oE).removeAttr("temp_ID")}function lockScroll(){if(ysq.IsMoble)w.lastPosTop=w.scrollTop(),setTimeout(function(){$h.add($b).css({height:"100%",overflow:"hidden"}),$(".scroll-wrap").css({top:-1*w.lastPosTop})},500);else{var e=w.scrollTop();w.on("scroll.lock",function(t){w.scrollTop(e)}),$b.css({overflow:"hidden"})}}function unlockScroll(){ysq.IsMoble?($h.add($b).css({height:"auto",overflow:"visible"}),w.scrollTop(w.lastPosTop),$(".scroll-wrap").css({top:"auto"})):(w.off("scroll.lock"),$b.css({overflow:"auto"}))}function packStr(e,t,n){n=n||"i",e.each(function(e,o){for(var s=$(o).html(),i="",r=0;r"+s.charAt(r)+"":s.charAt(r);$(o).html(i)})}function makeMask(e){return"
    "}function onoff(e,t){t=$.extend({},{cls:"on",sib:""},t),e.addClass(t.cls).siblings(t.sib).removeClass(t.cls)}function inout(e,t){t=$.extend({},{cls:"on",sib:"",dur:0,cbk:null},t),e.addClass(t.cls).stop(!0,!0).fadeIn(t.dur,function(){t.cbk&&t.cbk(),fnScrollElePd(e)&&($.fn.Y_ScrollEle.Init(e),$.fn.Y_ScrollEle.Do(e,0,!0))}).siblings(t.sib).removeClass(t.cls).fadeOut(t.dur)}function setTextLine(e,t,n){e.each(function(e,o){if(o.lined||$(o).is(":hidden"))return!0;var s=(e=$(o)).attr("data-text-line")&&e.attr("data-text-line").split(","),i=t||s[0],r=e.css("font-size"),a=e.width()*i,l=$.trim(e.html()).replace(" ","銆€"),c=$("
    "+e.html()+"
    ").css({fontSize:r}).appendTo($("body")),d=c.width(),u=n||s[1]||2*parseInt(r);if(d>a){var f=Math.floor(l.length*a/d),h=l.substring(0,f)+"...";if((d=c.text(h).width()+u)>a)for(;d>a&&f>1;)f--,h=l.substring(0,f)+"... ",d=c.text(h).width()+u;else if(a>d){for(;a>d&&fa&&(h=l.substring(0,f-1)+"...")}e.removeAttr("data-text-line").html(h.replace("銆€"," "))}c.remove(),o.lined=!0})}function Y_BodyScroll(e){e=$.extend({},{contain:"html,body",goal:0,err:0,dur:400,cbk:null},e),$(e.contain).stop(!0,!1).animate({scrollTop:e.goal-e.err},e.dur,function(){e.cbk&&e.cbk()})}function Y_Tan(e,t){function n(e,t){ysq.HasTan[1]&&clearTimeout(s),$(".TAlert").removeClass("on").fadeOut(333,function(){r=!1,$(".TAlert,.cssTAlert").remove(),e&&e.call(this,t.length?t:"")})}var o={headWord:"鎻愮ず淇℃伅",callback:null,fnNo:null,fnYes:null,bAutoClose:!0,nTimeOut:1500,cls:" "};if(o=$.extend({},o,t),!ysq.HasTan[0])return a(e),!1;var s,i=o.fnYes?1:0,r=!0;$(".TAlert").length&&$(".TAlert").remove();var l='
    '+o.headWord+'X
    '+e+"
    ";sDiv2='',l+=i?'':sDiv2,l+="
    ",$b.append(l),r&&setVamCss(w.height(),"TAlert"),o.bAutoClose&&ysq.HasTan[1]&&(s=setTimeout(function(){n(o.fnNo)},o.nTimeOut)),$(".TAlert").prepend(makeMask()).fadeIn(600,function(){o.callback&&o.callback.call(this,$(".TAlert")),$(this).find(".close").off(TouchEd).on(TouchEd,function(){n(o.fnNo,$(this))})}).addClass("on"),o.fnYes&&$(".TAlert .enter").off(TouchEd).on(TouchEd,function(){n(o.fnYes,$(this))}),w.resize(function(){r&&setVamCss(w.height(),"TAlert")}),$(document).keydown(function(e){r&&27==e.keyCode&&n(o.fnNo)})} /* basic Fn E*/