/*! Project : 澳门蒙特卡罗app +-----YL.js-V-2019.09.28-----+ | | | Author | yeshiqiu | | Q__Q | 337676937 | | Addr | SC_Chengdu | | Date | 2019.09.28 | | | +--!-_-!--------------!-_-!--+ */ //**!!**Modernizr (Custom Build) | MIT * 自定义 ysqUEO supports chrome Safari !function(e,n,t){function r(e,n){return typeof e===n}function s(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):C?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,f,l,u="modernizr",d=s("div"),p=function(){var e=n.body;return e||(e=s(C?"svg":"body"),e.fake=!0),e}();if(parseInt(r,10))for(;r--;)f=s("div"),f.id=o?o[r]:u+(r+1),d.appendChild(f);return i=s("style"),i.type="text/css",i.id="s"+u,(p.fake?p:d).appendChild(i),p.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(n.createTextNode(e)),d.id=u,p.fake&&(p.style.background="",p.style.overflow="hidden",l=g.style.overflow,g.style.overflow="hidden",g.appendChild(p)),a=t(d,e),p.fake?(p.parentNode.removeChild(p),g.style.overflow=l,g.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 f(e,n){return function(){return e.apply(n,arguments)}}function l(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(l(n[s]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];s--;)i.push("("+l(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,f){function l(){p&&(delete E.style,delete E.modElem)}if(f=!r(f,"undefined")&&f,!r(o,"undefined")){var d=u(e,o);if(!r(d,"undefined"))return d}for(var p,c,m,h,v,y=["modernizr","tspan"];!E.style;)p=!0,E.modElem=s(y.shift()),E.style=E.modElem.style;for(m=e.length,c=0;m>c;c++)if(h=e[c],v=E.style[h],i(h,"-")&&(h=a(h)),E.style[h]!==t){if(f||r(o,"undefined"))return l(),"pfx"!=n||h;try{E.style[h]=o}catch(e){}if(E.style[h]!=v)return l(),"pfx"!=n||h}return l(),!1}function p(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")?f(s,t||n):s);return!1}(a,n,t))}function c(e,n,r){return p(e,t,t,n,r)}var m=[],h=[],v={_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){h.push({name:e,fn:n,options:t})},addAsyncTest:function(e){h.push({name:null,fn:e})}},y=function(){};y.prototype=v,y=new y;var g=n.documentElement,C="svg"===g.nodeName,S="CSS"in e&&"supports"in e.CSS,x="supportsCSS"in e;y.addTest("ysqUEO",function(){return c("transform","scale(1)",!0)&&(navigator.userAgent.indexOf("Chrome")>-1||navigator.userAgent.indexOf("Firefox")>-1)}),y.addTest("supports",S||x),y.addTest("chrome",function(){return navigator.userAgent.indexOf("Chrome")>-1}),y.addTest("Safari",function(){return MacTest()});v.testStyles=o;var w="Moz O ms Webkit",_=v._config.usePrefixes?w.split(" "):[];v._cssomPrefixes=_;var b=v._config.usePrefixes?w.split(" "):[];v._domPrefixes=b;var T={elem:s("modernizr")};y._q.push(function(){delete T.elem});var E={style:T.elem.style};y._q.unshift(function(){delete E.style}),v.testAllProps=p,v.testAllProps=c,function(){var e,n,t,s,o,i,a;for(var f in h)if(h.hasOwnProperty(f)){if(e=[],(n=h[f]).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)Global={DesignHeight:1080,FPduration:750,resWidth:1024},ysq.FzAuto=function(e){e=e||Global.resWidth,ysq.fontSize=(Math.min(w.width(),e)/e*20).toFixed(0),ysq.fontSize=Math.max(ysq.fontSize,12),$("html").css("font-size",ysq.fontSize+"px")},ysq.FzAuto();else{var s=parseInt($h.css("min-width")),i=parseInt(window.screen.width)/(s+20);ysq.IsMoble&&(ysq.Switch=!1,document.querySelector('meta[name="viewport"]').setAttribute("content","width="+(s+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]{opacity: 0;}",setTimeout(function(){$(ysq.wrap).hasClass("show")||ysq.htmlInit()},500)),window.onload=function(){document.documentMode<(ysq.Response?10:9)&&null==GetData("bIEOk")&&$b.hide()&&confirm("您的浏览器版本过低,建议可以使用最新版的chrome浏览器来获取最好的体验,是否继续访问?")&&($b.show().addClass("lowerIE"),SaveData("bIEOk",!0))}}};ysq.basic(); /*baseFn*/ $(document).ready(function() { w.Y_InitSet().Y_ScrollEle(); /*load*/ w.load(function() {fnLazyloadPd($b)&&$.fn.Y_LazyLoad.Init($b,!1); }); w.trigger('resize').trigger('scroll.unTriggered'); }); /*扩展组件*/ $.fn.extend({Y_InitSet:function(){return 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(e){if("#"==$(this).attr("href")||isNull($(this).attr("href")))return prevent_default(e)}),$(".backToHistory").click(function(){window.history.go(-1)}),window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),a=Math.max(0,16-(n-l)),i=window.setTimeout(function(){e(n+a)},a);return l=n+a,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),setTextLine($("[data-text-line]")),(ysq.UEO||ysq.IsMoble)&&$("[ActiveEle]").each(function(e,t){$(t).addClass("ActAni").on("click.ActAni",function(){var e=$(this),t=e.attr("ActiveEle");e.hasClass("animated")||e.hasClass(t)||(e.addClass(t),setTimeout(function(){e.removeClass(t)},getAniDur(e)))})}),w.trigger("scroll"),this} ,Y_ScrollEle:function(e){if(!ysq.Switch)return ysq.htmlInit(),this;var t={err:[0,w.height()/8],delay:200,fullscreen:!1,responsive:!1,ResAnimation:"fadeInDowns"};e=$.extend({},t,e);var n=[],a="[scrollEle],br,.AniDoing",i=function(t,n,a){return isNull($(t).attr("scrollEle"))?(cw("notScrollEle:"+sElements($(t))),$(t).removeAttr("scrollEle"),!1):$(t).is(":hidden")?(ysq.TT&&cw("hidden:"+sElements($(t))),!1):!e.fullscreen&&n==$b||($.fn.Y_ScrollEle.SE_Animate($(t),a),!1)},o=function(t,n,a){e.fullscreen&&t.attr("temp-scrollEle",t.attr("scrollEle")),t.removeAttr("scrollEle"),a=getAniDur(t)+(a||0),setTimeout(function(){t.attr("scrollCbk")&&t.addClass("AniDid")},t.attr("scrollCbk")/1*a),setTimeout(function(){var a=t.data("scReset")?"AniDoing":"AniDo AniDoing";t.removeAttr("scrollNext").removeClass(n).parent().add(t).removeClass(a),e.fullscreen||t.removeAttr("scrollArray")},a)},s=function(e,t){e.children().not("br").each(function(n,a){$(a).attr("scrollDelay",150+n%(e.attr("scrollColumns")||Math.round(e.outerWidth()/$(a).outerWidth()))*t)})};return $.fn.Y_ScrollEle.SE_Reset=function(e){$("[temp-scrollEle]",e).add(e).each(function(e,t){$(t).attr("scrollEle",$(t).attr("temp-scrollEle")).removeAttr("temp-scrollEle")})},$.fn.Y_ScrollEle.SE_Animate=function(t,n){if(isNull(t.attr("scrollEle"))||t.is(":hidden")||"1"==t.attr("scrollWait")||!isNull(t.attr("lazy-src")))return ysq.TT&&cw(t),!1;t.hasClass("AniDo")||t.addClass("AniDo");var i=t.attr("scrollEle"),s=t.attr("scrollDir")||"ltr",l=t.attr("scrollDelay")||0;if(n&&(l=n*(n>0?t.index():t.index()-t.parent().children().length)),"team"==i){var r=t.attr("scrollStep")||150;i=function(e){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"fadeUD":return["fadeInUp","fadeInDown"];case"fadeUDs":return["fadeInUps","fadeInDowns"];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"]}}(t.attr("scrollArray"))||t.attr("scrollArray")||"fadeIns";var c=t.children().not(a),d=c.length,u=1==t.attr("scrollSolo");c.addClass("AniDo"),setTimeout(function(){!!t.addClass("AniDoing").attr("scrollCbk")&&c.attr("scrollCbk",t.attr("scrollCbk")),c.each(function(e,t){var n="ltr"==s?e:d-(e+1),a=$.isArray(i)?i[n%i.length]:i;setTimeout(function(){$(t).addClass(a+" AniDoing").data("scReset",!1).attr("scrollCbk")&&$(t).addClass("AniStart"),o($(t),a)},$(t).attr("scrollDelay")||50+r*(n%(u?1:i.length)))}),function(t){e.fullscreen&&t.attr("temp-scrollEle",t.attr("scrollEle")),t.removeAttr("scrollEle")}(t)},l)}else t.addClass("AniDo").hasClass(i)||setTimeout(function(){t.addClass(i+" AniDoing").data("scReset",!1).attr("scrollCbk")&&t.addClass("AniStart"),o(t,i)},l)},$.fn.Y_ScrollEle.Do=function(t,a,o){if(t=t||$b,!ysq.shutDown){if(o&&$("[scrollWait]",t).removeAttr("scrollWait"),$("[scrollDelayArray]").each(function(e,t){s($(t),$(t).attr("scrollDelayArray")||125)}),n.length){var l=0;$.each(n,function(e,t){l+=0==e?0:getAniDur($(t))/3||200,ysq.TT&&cw("Y_ScrollEle_Step:"+l),setTimeout(function(){$.fn.Y_ScrollEle.SE_Animate($(t))},l)}),n=[]}$("[scrollEle]",t).add(t.is("[scrollEle]")).each(function(n,o){i(o,t,a)&&inWindow($(o),e.err)&&$.fn.Y_ScrollEle.SE_Animate($(o))})}},$.fn.Y_ScrollEle.Init=function(e){e=e||$b,$("[scrollEle]",e).children().add(e.is("[scrollEle]")).data("scReset",!0),$("[scrollNext]",e).each(function(e,t){$(t).children().not(a).attr("scrollEle",$(t).attr("scrollNext")).attr("scrollCbk",$(t).attr("scrollCbk")),s($(t),$(t).attr("scrollDelayArray")||125)}),$("[scrollEle]",e).each(function(e,t){var n=$(t).attr("scrollEle");"team"==n||"parent"==n?$(t).addClass("AniDo").children().not(a).addClass("AniDo"):$(t).addClass("AniDo")})},e.responsive&&!MinWidth(1024)&&$("[scrollEle]").each(function(t,n){var a=$(n).attr("scrollEle"),i=$(n).attr("scrollMAni")||e.ResAnimation;"team"==a||"parent"==a?$(n).attr("scrollArray",i):$(n).attr("scrollEle",i)}),e.fullscreen?ysq.htmlInit():setTimeout(function(){ysq.htmlInit();var t=$b;$("[scrollEle]").each(function(a,o){i(o,t,e.delay)&&inWindow($(o),e.err)&&n.push($(o))}),$.fn.Y_ScrollEle.Init(),w.on("scroll.Y_scrollEle",function(){$.fn.Y_ScrollEle.Do(t)}),$.fn.Y_ScrollEle.Do(t)},e.delay),this} ,Y_swAnimate:function(e){return e=$.extend({},{animation:"fadeInUp",interval:[300,133],va:"vat"},e),this.each(function(t,n){var a=$(n);if(!a.hasClass("_ed")){var i=a.find(">p").length?a.find(">p"):a;i.each(function(t,n){var o=$(n).html(),s="",l="dib AniDo "+e.va;$(n).html("");for(var r=0;r"+o.charAt(r)+"");$(n).html(s),setTimeout(function(){a.removeAttr("swAnimate")},1),"none"==e.animation?$(".dib",n).removeClass("AniDo"):setTimeout(function(){$(n).find(".dib").each(function(o,s){setTimeout(function(){$(s).addClass(e.animation),t==i.length-1&&o==$(n).find(".dib").length&&setTimeout(function(){a.removeAttr("swAnimate")},200)},o*e.interval[1])})},1+t*e.interval[0])}),a.addClass("_ed")}}),this} ,Y_LoadImg:function(e){return e=$.extend({},{imgSrc:null,delay:50,cls:".picBox,.pic,.img",callback:null},e),this.attr("scrollWait","1").each(function(t,n){var a=$(n),i=e.imgSrc;if(ysq.TT&&(i+="?time="+(new Date).getTime()),a.is("img"))if(a.attr("src",i||""),a.parents(e.cls).length){var o=e.delay,s=(new Date).getTime();a.load(function(t){var n=o-((new Date).getTime()-s);setTimeout(function(){a.parents(e.cls).addClass("imgLoaded loadDone").removeClass("loading").removeClass("loading-m"),a.hasClass("AniDo")||a.addClass("Done"),a.addClass("Loaded"),setTimeout(function(){a.removeClass("lazyimg Done").removeAttr("scrollWait"),ysq.Switch&&$.fn.Y_ScrollEle.SE_Animate(a)},1e3*parseFloat(a.css("transition-duration"))),e.callback&&e.callback.call(this)},n<1?1:n)}).error(function(t){$(this).data("loadOnce")?(a.parents(e.cls).removeClass("loading").removeClass("loading-m"),a.attr("data-default")?a.attr("src",a.attr("data-default")).addClass("default"):a.parents(e.cls).addClass("load-error loadDone"),e.callback&&e.callback.call(this)):($(this).data("loadOnce",!0),$(this).attr("src",i||""))})}else a.removeClass("lazyimg").addClass("Loaded").removeAttr("scrollWait"),e.callback&&e.callback.call(this),ysq.Switch&&$.fn.Y_ScrollEle.SE_Animate&&$.fn.Y_ScrollEle.SE_Animate(a);else i&&a.css("background-image","url("+i+")").addClass("Loaded").removeAttr("scrollWait");a.removeAttr("lazy-src")}),this} ,Y_LazyLoad:function(){return $.fn.Y_LazyLoad.Init=function(e,t,n,a){function i(e,t){!!$(e[t]).attr("lazy-src")&&$(e[t]).Y_LoadImg({imgSrc:$(e[t]).attr("lazy-src"),delay:n,callback:function(){i(e,t+1)}})}var o=e;ysq.LoadImgArray=[],t=!!t,!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(e,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"),(t||!$(n).parents(".waitLoad").length&&!$(n).is(":hidden")&&inWindow($(n),[w.height()/10,w.height()/10]))&&($(n).parents(".picBox,.pic,.img").addClass(function(){return $(this).outerWidth()<150?"loading-m":"loading"}),ysq.LoadImgArray.push(n)))}),i(ysq.LoadImgArray,0)))},w.add($(".hScroll,.vScroll")).scroll(function(){$.fn.Y_LazyLoad.Init($b)}),this} ,Y_Move:function(e){return e=$.extend({},{transparent:!0,slidable:!1,flipIn:!1,flipOut:!1,fullpageScroll:!1,anchors:[],setHash:!1,hashRoot:"Y_MoveSection",InOut:!1,steps:200,oddEven:!1,AniPagination:!1,AniItem:!1,synchro:!1,stopable:!0,IsLoop:!0,loopDir:!0,IsDrag:!1,instant:!1,clickPass:!0,IsPaging:!1,setPaging:!1,sptPaging:!1,backInit:!1,evenWidth:!1,contain:".ysqMoveBox,.box",item:".item",Pagination:".pagination",prev:".prev",next:".next",lazyLoad:[!1,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}},e),this.each(function(t,n){function a(){if(y)l=p?getW(1==e.MinNum?d:h):getH(1==e.MinNum?d:h),c(l),p?u.css({width:(2+l)*Math.max(m,e.MinNum)}):u.css({height:(2+l)*Math.max(m,e.MinNum)});else if(e.evenWidth){var t=d.outerWidth();d.find(".shade").css({left:"50%",marginLeft:-1*(t+(t%2!=0?1:0))/2})}}function i(){var t=window.location.hash.replace("#"+e.hashRoot+"=","").split("/");if(e.anchors.length)for(var a=0;a1;if(n.idx=e.initNum,n.Dragable=e.IsDrag,0==e.slidable&&(e.slidable=e.flipIn||e.flipOut),e.fn.before&&e.fn.before.call(this,d,h),UCTest()&&(e.TimeOut=!1),m<=e.MinNum)return d.addClass("_nojs"),o(!0),!0;if(y||h.each(function(e,t){$(t).css("z-index",9-e)}),e.setPaging){for(var b="01",C=1;C<=x;C++)b+=(e.sptPaging?"":"")+""+tensDigit(C+1)+"";$(e.Pagination,n).length?$(e.Pagination,n).append(b):d.append("")}if(e.IsPaging&&(r=$(e.Pagination,n).find(".btn"),TgL=r.length,getW(r),e.AniPagination&&r.Y_SetCss3({dur:e.TimeOut+"s"})),n.AutoNext=function(){e.TimeOut>0&&(clearInterval(n.Y_timer),n.Y_timer=setInterval(function(){n.next(!0)},1e3*e.TimeOut))},n.dirPD=function(e){e>0?d.addClass("dir_z").removeClass("dir_f"):d.addClass("dir_f").removeClass("dir_z")},n.resetDistance=function(e){n.Move(e,!1,null,!0)},n.prev=function(t,a){var i,o=n.idx;n.idx=--n.idx<0?!e.IsLoop||e.IsDrag&&e.MinNum>1?0:x:n.idx,i=e.loopDir?-1:o>n.idx?-1:1,n.idx==o?(t&&$(e.prev,n).Y_Animation({animation:"dotShake"}),e.instant&&n.resetDistance(i),e.fn.ctrReject&&e.fn.ctrReject.call(this,d,h,i)):h.eq(n.idx).hasClass("_stay")||n.prevDisable?n.idx=o:n.Move(i,!1,a)},n.next=function(t,a){var i,o=n.idx;n.idx=++n.idx>x?!e.IsLoop||e.IsDrag&&e.MinNum>1?x:0:n.idx,i=e.loopDir?1:o>n.idx?-1:1,n.idx==o?(t&&$(e.next,n).Y_Animation({animation:"dotShake"}),e.instant&&n.resetDistance(i),e.fn.ctrReject&&e.fn.ctrReject.call(this,d,h,i)):h.eq(n.idx).hasClass("_stay")||n.nextDisable?n.idx=o:n.Move(i,!1,a)},n.MoveTo=function(e){if(e==n.idx)return!0;var t=e>n.idx?1:e1)&&(n.idx*e.MinNum==0?$(e.prev,n).addClass("nagetive"):$(e.prev,n).removeClass("nagetive"),n.idx*e.MinNum>=m-e.MinNum?$(e.next,n).addClass("nagetive"):$(e.next,n).removeClass("nagetive")),setProperty(n,"ysqble",!1),n.AutoNext(),n.dirPD(t);var f=n.idx+1>m-1?0:n.idx+1,b=n.idx-1<0?m-1:n.idx-1;if(i=null==i?e.duration:i,t>=0?(v=a?n.idxed:b,g=f):t<0&&(v=a?n.idxed:f,g=b),1==e.MinNum&&e.oddEven&&(h.eq(n.idx).hasClass("odd")?h.eq(g).addClass("even").removeClass("odd"):h.eq(g).addClass("odd").removeClass("even"),h.eq(n.idx).hasClass("even")?h.eq(g).addClass("odd").removeClass("even"):h.eq(g).addClass("even").removeClass("odd")),c||e.fn.start&&e.fn.start.call(this,d,h,n.idx,v,g,t,a),e.setHash&&(location.hash=e.hashRoot+"="+(e.anchors.length?e.anchors[n.idx]:n.idx)),e.lazyLoad[0]&&fnLazyloadPd(h.slice(n.idx*e.MinNum,(n.idx+1)*e.MinNum))&&$.fn.Y_LazyLoad.Init(h.slice(n.idx*e.MinNum,(n.idx+1)*e.MinNum),!0,e.lazyLoad[1]),setTextLine($("[data-text-line]",d)),a&&e.fn.icoClick&&e.fn.icoClick.call(this,d,h,n.idx,v,g,t,a),e.AniItem&&setTimeout(function(){fnScrollElePd(h.eq(n.idx))&&($.fn.Y_ScrollEle.Init(h.eq(n.idx)),$.fn.Y_ScrollEle.Do(h.eq(n.idx),0,!0))},.88*i),y){e.instant&&e.IsPaging&&onoff(r.eq(n.idx)),e.synchro&&o();var C=n.idx>=x?Math.max(m,e.MinNum)/e.MinNum-1:n.idx,T=-Math.ceil(C*l*e.MinNum),w=Math.abs(parseInt(u.css(p?"left":"top"))-T)/l%1,I=p?{left:T}:{top:T};if(e.InOut){var M=d.hasClass("dir_z")?0:e.MinNum*e.steps,A=(C+1)*e.MinNum,_=A-e.MinNum;h.each(function(n,a){n+1>_&&n+1<=A?(d.hasClass("dir_z")?$(a).hasClass("in")?M+=0:M+=e.steps:$(a).hasClass("in")?M-=0:M-=e.steps,setTimeout(function(){$(a).addClass("in")},0==t?0:M)):setTimeout(function(){$(a).removeClass("in")},0==t?0:(w?1-w:1)*i)})}0==t?(s(t,a,c),u.css(I)):u.stop(!0,!1).animate(I,(w||1)*i,e.easing,function(){s(t,a,c)})}else{setProperty(n,"ysqble",e.clickPass&&!e.InOut);var D=e.transparent?0:1,k=e.transparent?0:1,q=e.slidable?100*t:0;if(h.eq(g).css("z-index",7),p)var E={left:q+"%",opacity:D},S={left:0,opacity:1},L={left:0,opacity:1},Y={left:-1*q+"%",opacity:k};else var E={top:q+"%",opacity:D},S={top:0,opacity:1},L={top:0,opacity:1},Y={top:-1*q+"%",opacity:k};h.css({"z-index":1}).css(E).eq(n.idx).css("z-index",9).css(L),e.lazyLoad[0]&&h.hide().eq(n.idx).stop(!0,!0).show(),setTimeout(function(){e.synchro&&o()},1),0==t?(s(t,a,c),e.oddEven&&h.eq(0).addClass("odd")):(e.InOut&&(onoff(h.eq(v),{cls:"leave"}),onoff(h.eq(n.idx),{cls:"come"}),e.IsPaging&&(onoff(r.eq(v),{cls:"Out"}),onoff(r.eq(n.idx),{cls:"In"})),setTimeout(function(){setTimeout(function(){e.IsPaging&&r.eq(v).removeClass("Out"),h.eq(v).removeClass("leave")},e.delaytion[0]),setTimeout(function(){e.IsPaging&&r.eq(n.idx).removeClass("In"),h.eq(n.idx).removeClass("come")},e.delaytion[1])},i)),h.eq(v).show().stop(!0,e.clickPass).css(S).css("z-index",16),setTimeout(function(){h.eq(v).animate(e.flipIn?S:Y,i,e.easing,function(){e.slidable&&e.backInit&&$(this).css(S),e.lazyLoad[0]&&$(this).stop(!0,!0).hide()})},e.delaytion[0]),h.eq(n.idx).show().stop(!0,e.clickPass).css(e.flipOut?L:E).css("z-index",!e.slidable||e.flipIn?22:12),setTimeout(function(){h.eq(n.idx).animate(L,i,e.easing,function(){s(t,a,c)})},e.delaytion[1]))}},h.addClass("moveItem"),e.lazyLoad[0]&&h.addClass("waitLoad"),e.flipOut&&h.Y_SetCss3({ppty:"transform",dur:e.duration+"ms"}),e.setHash&&i(),setTimeout(function(){n.Move(0,!1,0),n.dirPD(1),n.AutoNext(),e.fn.after&&e.fn.after.call(this,d,h,r)},1),(e.resizable||y||e.evenWidth)&&(w.resize(function(){a(),y&&n.Move(0)}),a()),(e.stopable||d.data("stopable"))&&(ysq.IsMoble||e.TimeOut)&&d.on({"mousemove.Y_Move":function(){clearInterval(n.Y_timer)},"mouseleave.Y_Move":function(){n.AutoNext()}}),e.setHash&&w.on("hashchange",function(t){var a=n.idx;i(),a!=n.idx&&(location.hash=e.hashRoot+"="+(e.anchors.length?e.anchors[n.idx]:n.idx),n.Move(e.duration,!1,0))}),e.IsDrag&&d.Y_Drag({contain:e.contain,direction:d[0].direction||e.direction,left:n.next,right:n.prev,up:n.next,down:n.prev,instant:y&&e.instant}),e.fullpageScroll&&($(document).on("mousewheel.Y_Move",function(e){n.ysqble&&(e.deltaY<0?n.next():n.prev())}),$(document).on("keydown.Y_Move",function(e){if(!n.ysqble)return!0;switch(e.which||e.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)}})),f.length){var T=$(e.prev,n),I=$(e.next,n);I.click(function(){n.ysqble||$(this).hasClass("unable")?n.next(!0):$(this).Y_Animation({animation:"dotShake"})}),T.click(function(){n.ysqble||$(this).hasClass("unable")?n.prev(!0):$(this).Y_Animation({animation:"dotShake"})}),ysq.IsMoble?f.addClass("ctrShow"):d.on({"mousemove.Y_Move":function(e){var t=e.pageX,n=e.pageY;(p?ti.offset().top;switch(a){case"h":h?(s.css({left:t.left+n.x2-n.x1}),r=!0):(r&&s.stop(!0,!1).animate({left:t.left},e.easing,Math.abs(n.x2-n.x1),u),r=!1);break;case"v":h?(s.css({top:t.top+n.y2-n.y1}),r=!0):(r&&s.stop(!0,!1).animate({top:t.top},e.easing,Math.abs(n.y2-n.y1),u),r=!1);break;case"o":h?(s.css({left:t.left+n.x2-n.x1,top:t.top+n.y2-n.y1}),r=!0):(r&&s.stop(!0,!1).animate({left:t.left,top:t.top},e.easing,Math.abs(n.x2-n.x1),u),r=!1)}var m=n.x2-n.x1,v=n.y2-n.y1;switch(a){case"h":Math.abs(m)>Math.abs(v)?(prevent_default(d),c=!1):c=!0;break;case"v":Math.abs(m)Math.min(h/8,w.width()/10)?(m(),v()):s.stop(!0,!1).animate({left:t.left},x,e.easing,function(){setProperty(o,"ysqble",!0)});break;case"v":y>Math.min($/8,w.height()/10)?(g(),p()):s.stop(!0,!1).animate({top:t.top},y,e.easing,function(){setProperty(o,"ysqble",!0)});break;case"o":x>Math.min(h/8,w.width()/10)&&(m(),v()),y>Math.min($/8,w.height()/10)&&(g(),p()),setProperty(o,"ysqble",!0)}Touchable?(s[0].removeEventListener(TouchIng,u,!1),s[0].removeEventListener(TouchEd,f,!1)):s.off(TouchIng,u).off(TouchEd,f),r=!1,prevent_default(d)},h=function(){(e.reMove||i.data("removeDrag"))&&(Touchable?s[0].removeEventListener(TouchOn,d,!1):i.off(TouchOn,d))},m=function(){$.isFunction(e.left)&&n.x2<=n.x1&&(e.left(!1),h())},v=function(){$.isFunction(e.right)&&n.x2>n.x1&&(e.right(!1),h())},g=function(){$.isFunction(e.up)&&n.y2<=n.y1&&(e.up(!1),h())},p=function(){$.isFunction(e.down)&&n.y2>n.y1&&(e.down(!1),h())};return Touchable?addEvent(s[0],TouchOn,d,!1):s.on(TouchOn,d).on("mouseleave",function(e){s.trigger(TouchEd)}),this} ,Y_SetCss3:function(e){return e=$.extend({},{ppty:"all",delay:"0ms",dur:"300ms"},e),this.css({"transition-property":e.ppty,"transition-duration":e.dur,"transition-delay":e.delay}),this} ,Y_Animation:function(e){var t="AniDo AniDoing "+(e=$.extend({},{animation:"",Inout:!0,delaytion:0,callback:function(){}},e)).animation,n=e.Inout?"vv":"vh";return this.each(function(a,i){var o=$(i);setTimeout(function(){o.addClass(t+" "+n),setTimeout(function(){o.removeClass(t),o.data("flag")||o.removeClass(n),e.callback.call(this,o)},getAniDur(o))},e.delaytion)}),this} ,Y_Tab:function(e){return e=$.extend({},{Tt:".Tt",Tg:".Tg",TBtn:".btn",contain:".box",item:null,link:".Ta",TgActCls:"on",TtActCls:"on",prev:".prev",next:".next",lazyLoad:[!0,100],event:"click",init:!0,initNum:0,TimeOut:0,duration:220,stopable:!0,PagingSept:!1,hasNum:!1,keyboard:!0,overviewMid:!1,IsDrag:!1,clickMoveTg:[!1,"h","scroll"],fn:{before:null,start:null,callback:null}},e),this.each(function(t,n){var a=$(n),i=$(e.Tt,n),o=$(e.Tg,n),s=$(e.link,n),l=i.find(e.contain),r=l.length,d=o.find(e.TBtn),u=d.length,f=$(e.next,n),h=$(e.prev,n),m=!1;if(setProperty(n,"ysqble",!0),n.idx=e.initNum,n.pdx=0,n.Dragable=e.IsDrag,n.Move=function(t,i){var r=d.eq(n.idx),u=l.eq(n.idx);n.idx>n.pdx?a.addClass("dir_z").removeClass("dir_f"):a.addClass("dir_f").removeClass("dir_z"),onoff(l.eq(n.pdx),{cls:"leave"}),onoff(l.eq(n.idx),{cls:"come"}),l.removeClass(e.TtActCls),o.length&&onoff(r,{cls:e.TgActCls}),s.length&&s.attr("href",r.attr("data-href")||r.attr("href")),i||e.fn.start&&e.fn.start.call(this,a,n.idx,l,d,s),e.clickMoveTg[0]&&setTimeout(function(){!function(t){var n=o.find(".viewport").length?o.find(".viewport"):o,i=($(".scrollBox",o),$(".btn.on",a));if("h"==t){var s=i.offset().left+n.scrollLeft()-n.offset().left+i.outerWidth()/2-n.outerWidth()/2,l="scroll"!=e.clickMoveTg[2]?{left:-1*s}:{scrollLeft:s};n.stop(!0,!1).animate(l,333)}else if("v"==t){var s=i.offset().top+n.scrollTop()-n.offset().top+i.outerHeight()/2-n.outerHeight()/2,l="scroll"!=e.clickMoveTg[2]?{top:-1*s}:{scrollTop:s};n.stop(!0,!1).animate(l,333)}}(e.clickMoveTg[1])},1),c(!u.length),u.length?(u.addClass(e.TtActCls),setTextLine($("[data-text-line]",a)),setTimeout(function(){setProperty(n,"ysqble",!0),e.overviewMid&&ysq.MsBoxSet(u.find(".overview")),i||e.fn.callback&&e.fn.callback.call(this,a,n.idx,l,d,s),t||e.lazyLoad[0]&&fnLazyloadPd(u)&&$.fn.Y_LazyLoad.Init(u,!0,e.lazyLoad[1]),t||fnScrollElePd(u)&&($.fn.Y_ScrollEle.Init(u),$.fn.Y_ScrollEle.Do(u,0,!0)),u.removeClass("waitLoad"),l.eq(n.pdx).removeClass("leave"),l.eq(n.idx).removeClass("come")},(t?0:e.duration)+1)):setProperty(n,"ysqble",!0)},n.next=function(){n.pdx=n.idx,n.idx=++n.idx%u,setProperty(n,"ysqble",!1),n.Move()},n.prev=function(){n.pdx=n.idx,n.idx=--n.idx<0?u-1:n.idx,setProperty(n,"ysqble",!1),n.Move()},!d.length){for(var v="",t=0;t":"")+""+(e.hasNum?t+1:" ")+"";o.append(v),d=o.find(e.TBtn)}e.lazyLoad[0]&&l.addClass("waitLoad"),e.fn.before&&e.fn.before.call(this,a,l,d,s),e.init&&n.Move(!0),d.on(e.event,function(t){if(n.ysqble&&!$(this).hasClass(e.TgActCls)){if(n.pdx=n.idx,n.idx=d.index($(this)),!e.item)return n.Move(),prevent_default(t);if(l.eq(n.idx).find(e.item).length)return n.Move(),prevent_default(t)}}),a.hover(function(){m=!0,e.TimeOut&&e.stopable&&clearInterval(n.Y_timer)},function(){m=!1,e.TimeOut&&(clearInterval(n.Y_timer),n.Y_timer=setInterval(function(){n.next()},1e3*e.TimeOut))}),1==d.length?(f.hide(),h.hide()):(f.length&&f.show().click(function(e){n.ysqble?n.next():$(this).Y_Animation({animation:"dotShake"})}),h.length&&h.show().click(function(e){n.ysqble?n.prev():$(this).Y_Animation({animation:"dotShake"})})),e.IsDrag&&a.Y_Drag({contain:e.Tt,direction:"h",left:n.next,right:n.prev}),e.keyboard&&$(document).keydown(function(e){m&&(39==e.keyCode&&f.trigger("click"),37==e.keyCode&&h.trigger("click"))})}),this} ,Y_NavSlideBlock:function(e){return e=$.extend({},{tag:"li",item:".item",actCls:"on",target:null,vertical:!1,blockSize:null,cssHide:null,duration:400,easing:"swing",delaytion:300,phantom:[!1,.2],fn:{before:null,mouseOn:null,mouseOut:null,come:null,leave:null}},e),$(".block",this).length||this.append("<"+e.tag+' class="block">"),this.each(function(t,n){var a=$(n),i=$(".block",n),o=$(e.item,n),s=e.vertical?{w:"100%",h:"0",l:"0",t:"50%"}:{w:0,h:"100%",l:"50%",t:0},l=!!$(e.item+"."+e.actCls,n).length&&a.find(e.item).index($(e.item+"."+e.actCls,n)),r=l;s=$.extend({},{op:0},s,e.cssHide),n.blurable=!0,n.switch=!0,n.backInit=function(){n.Y_timer=setTimeout(function(){var t={width:s.w,height:s.h,top:s.t,left:s.l,opacity:s.op};!1===l?i.stop(!0,!1).animate(t,200,function(){e.fn.leave&&e.fn.leave.call(this,a,r)}).siblings(e.tag).removeClass("on"):n.Move(l,e.duration,function(){e.fn.leave&&e.fn.leave.call(this,a,r)}),e.fn.mouseOut&&e.fn.mouseOut.call(this,a,r)},e.delaytion)},n.Move=function(t,n,s){t<0&&(t=l);var r=e.target?o.eq(t).children(e.target):o.eq(t),c=r.offset(),d=a.offset();if(e.vertical)u=e.blockSize?{top:c.top-d.top+(r.outerHeight()-i.height())/2,left:0,width:"100%",opacity:1}:{top:c.top-d.top,height:r.outerHeight(),left:0,width:"100%",opacity:1};else var u=e.blockSize?{left:c.left-d.left+(r.outerWidth()-i.width())/2,top:0,height:"100%",opacity:1}:{left:c.left-d.left,width:r.outerWidth(),top:0,height:"100%",opacity:1};e.phantom[0]&&i.css({opacity:e.phantom[1]}),$(e.item,a).removeClass(e.actCls),setTimeout(function(){onoff($(e.item,a).eq(t),{cls:e.actCls})},n-200),i.stop(!0,!1).animate(u,n,e.easing,function(){s&&s()})},$(e.item,a).hover(function(){if(clearTimeout(n.Y_timer),!n.switch||$(this).hasClass(e.actCls))return!1;r=a.find(e.item).index($(this)),i.addClass("Moving"),n.Move(r,e.duration,function(){i.removeClass("Moving"),e.fn.come&&e.fn.come.call(this,a,r)}),e.fn.mouseOn&&e.fn.mouseOn.call(this,a,r)},function(){if(!n.switch||l===a.find("."+e.actCls).index())return!1;n.blurable&&n.backInit()}),w.on("resize",function(e){n.switch&&!1!==l&&n.Move(l,1)}),i.css({width:s.w,height:s.h,top:s.t,left:s.l,opacity:s.op}).fadeIn(500,function(){e.blockSize&&(e.vertical?i.css({height:e.blockSize}):i.css({width:e.blockSize})),e.fn.before&&e.fn.before.call(this,a),c(!1!==l),!1!==l&&n.switch&&n.Move(l,1)})}),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*/ /*pluginsE*/ /* basic Fn S*/ function a(t){alert(t)}function c(t){console.log(t)}function cw(t){console.warn(t)}function ce(t){console.error(t)}function dbn(t,e){e=e||"",t.show().siblings(e).hide()}function mlr(t,e){return Math.ceil(parseInt(t.css(e?"margin-left":"margin-right")))||0}function mtb(t,e){return Math.ceil(parseInt(t.css(e?"margin-top":"margin-bottom")))||0}function plr(t,e){return Math.ceil(parseInt(t.css(e?"padding-left":"padding-right")))||0}function ptb(t,e){return Math.ceil(parseInt(t.css(e?"padding-top":"padding-bottom")))||0}function getW(t){return Math.ceil(parseInt(t.outerWidth()+mlr(t,1)+mlr(t,0)))}function getH(t){return Math.ceil(parseInt(t.outerHeight()+mtb(t,1)+mtb(t,0)))}function getWH(t,e){return Math.ceil(e?parseInt(t.outerHeight()+mtb(t,1)+mtb(t,0)):parseInt(t.outerWidth()+mlr(t,1)+mlr(t,0)))}function getAniDur(t){return parseFloat(t.css("animation-duration"))>10?parseFloat(t.css("animation-duration")):1e3*parseFloat(t.css("animation-duration"))}function sElements(t){return String(t[0].tagName+"."+t.attr("class"))}function fnScrollElePd(t){return ysq.Switch&&$.fn.Y_ScrollEle&&(t.is("[scrollEle]")||t.find("[scrollEle]").length)}function fnLazyloadPd(t){return $.fn.Y_LazyLoad&&t.find("[lazy-src]").length}function inWindow(t,e){var n=t.offset().top,o=t.offset().left,i=w.scrollTop(),s=w.scrollLeft(),r=i+w.height(),e=e||[0,0];ysq.IsMoble&&(e=[0,0]);var a=s+0,l=s+w.width()-0,c=i+e[0],u=r-e[1],d=o,f=o+t.outerWidth(),p=n,h=n+t.outerHeight(),v=f-d>=l-a?f>=a&&a>=d||f>=l&&d<=l:f>=a&&f<=l||d>=a&&d<=l,m=h-p>=u-c?h>=c&&c>=p||h>=u&&p<=u:h>=c&&(h<=u||r>=$b.outerHeight()-e[1]&&p<=r)||p<=u&&(p>=c||(i<=e[0]||"fixed"==t.css("position"))&&p>=i);return ysq.Test&&ysq.TT&&cw("outerWindow:"+sElements(t)),v&&m}function fnPen(t,e){t.hasClass("_pen")||(t.addClass("_pen"),setTimeout(function(){t.removeClass("_pen")},e||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(t,e,n){n=n||1;var o=new Date;o.setDate(o.getDate()+n),document.cookie=t+"="+e+";expires="+o}function GetData(t){for(var e=document.cookie.split("; "),n=0;nt}function isNull(t){return""==!!t||void 0==!!t||null==!!t||/^[ ]+$/.test(t)}function isSpace(t){return"\r"==t||"\n"==t||" "==t}function stopprop(t){return t=t||window.event,document.all?t.cancelBubble=!0:t.stopPropagation(),prevent_default(t)}function prevent_default(t){return t=t||window.event,document.all?t.returnValue=!1:t.preventDefault(),!1}function addEvent(t,e,n,o){if(t.addEventListener)return t.addEventListener(e,n,o),!0;if(t.attachEvent){return t.attachEvent("on"+e,n)}t["on"+e]=n}function removeEvent(t,e,n,o){if(t.removeEventListener)return t.removeEventListener(e,n,o),!0;if(t.detachEvent){return t.detachEvent("on"+e,n)}return void(t["on"+e]=null)}function SetVamCss(t,e,n,o){$(".css"+e).length&&$(".css"+e).remove();var i="."+e+" "+(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 t=w.scrollTop();w.on("scroll.lock",function(e){w.scrollTop(t)}),$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(t){var e=t.html(),n="";t.html("");for(var o=0;o"+e.charAt(o)+"":e.charAt(o);t.html(n)}function makeMask(t){return"
"}function onoff(t,e){e=$.extend({},{cls:"on",sib:""},e),t.addClass(e.cls).siblings(e.sib).removeClass(e.cls)}function inout(t,e){e=$.extend({},{cls:"on",sib:"",dur:0,cbk:null},e),t.addClass(e.cls).stop(!0,!0).fadeIn(e.dur,function(){e.cbk&&e.cbk(),fnScrollElePd(t)&&($.fn.Y_ScrollEle.Init(t),$.fn.Y_ScrollEle.Do(t,0,!0))}).siblings(e.sib).removeClass(e.cls).fadeOut(e.dur)}function setTextLine(t,e,n){t.each(function(t,o){if(o.lined||$(o).is(":hidden"))return!0;var i=(t=$(o)).attr("data-text-line")&&t.attr("data-text-line").split(","),s=e||i[0],r=t.css("font-size"),a=t.width()*s,l=$.trim(t.html()).replace(" "," "),c=$("
"+t.html()+"
").css({fontSize:r,position:"fixed",whiteSpace:"nowrap",visibility:"hidden"}).appendTo($("body")),u=c.width(),d=n||i[1]||2*parseInt(r);if(u>a){var f=Math.floor(l.length*a/u),p=l.substring(0,f)+"...";if((u=c.text(p).width()+d)>a)for(;u>a&&f>1;)f--,p=l.substring(0,f)+"... ",u=c.text(p).width()+d;else if(a>u){for(;a>u&&fa&&(p=l.substring(0,f-1)+"...")}t.removeAttr("data-text-line").html(p.replace(" "," "))}c.remove(),o.lined=!0})}function Y_BodyScroll(t){t=$.extend({},{contain:"html,body",goal:0,err:0,dur:400,cbk:null},t),$(t.contain).stop(!0,!1).animate({scrollTop:t.goal-t.err},t.dur,function(){t.cbk&&t.cbk()})}function Y_Tan(t,e){function n(t){ysq.HasTan[1]&&clearTimeout(i),$(".TAlert").removeClass("on").fadeOut(333,function(){r=!1,$(".TAlert,.cssTAlert").remove(),t&&t.call(this)})}var o={headWord:"提示信息",fnNo:null,fnYes:null,bAutoClose:!0,nTimeOut:1500};if(o=$.extend({},o,e),!ysq.HasTan[0])return a(t),!1;var i,s=o.fnYes?1:0,r=!0;$(".TAlert").length&&$(".TAlert").remove();var l='
'+o.headWord+'X
'+t+"
";sDiv2='',l+=s?'':sDiv2,l+="
",$b.append(l),r&&SetVamCss(w.height(),"TAlert"),o.bAutoClose&&ysq.HasTan[1]&&(i=setTimeout(function(){n(o.fnNo)},o.nTimeOut)),$(".TAlert").prepend(makeMask()).fadeIn(600,function(){$(this).find(".close").off(TouchEd).on(TouchEd,function(){n(o.fnNo)})}).addClass("on"),o.fnYes&&$(".TAlert .enter").off(TouchEd).on(TouchEd,function(){n(o.fnYes)}),w.resize(function(){r&&SetVamCss(w.height(),"TAlert")}),$(document).keydown(function(t){r&&27==t.keyCode&&n(o.fnNo)})} /* basic Fn E*/