(function(m){window.rt01MODULE=window.rt01MODULE||{};window.rt01VA||(window.rt01VA={rubyName:"rubytabs",rubyData:"tabs",namespace:"rt01",$ruby:m(),numID:0},rt01VA.optsDefault={tagCanvas:"div",nameCanvas:"canvas",nameViewport:"viewport",nameSlide:"slide",nameImageBack:"imgback",nameImageLazy:"img",nameNav:"nav",namePag:"pag",nameCap:"cap",nameNext:"nav-next",namePrev:"nav-prev",namePlay:"playpause",nameTimer:"timer",nameLayer:"layer",nameOverlay:"overlay",nameDataSlide:"slide",nameDataLazy:"src",name:null,current:"cur",actived:"actived",deactived:"deactived",optionsPlus:"tabs",fx:"line",fxEasing:"easeOutCubic",cssOne:"roDeal",cssTwoOut:"pullOut",cssTwoIn:"pushIn",cssThreePrev:"pullIn",cssThreeNext:"pushIn",cssFourNextOut:"roEdgeLeftOut",cssFourNextIn:"roEdgeRightIn",cssFourPrevOut:"roEdgeRightOut",cssFourPrevIn:"roEdgeLeftIn",cssEasing:null,imagePosition:null,direction:"hor",width:null,height:null,widthSlide:1,widthRange:null,padding:0,margin:30,speed:400,speedHeight:400,delayUpdate:1E3,perspective:800,slot:"auto",stepNav:1,stepPlay:1,idBegin:0,showBy:"all",showInRange:0,offsetBy:null,wheel:!1,isAutoInit:!0,isCenter:!0,isNav:!1,isPag:!0,isCap:!1,isSwipe:!0,isLoop:!0,isAnimRebound:!0,isKeyboard:!1,isOverlay:!1,isViewGrabStop:!1,isFullscreen:!1,isSlideshow:!1,isDeeplinking:!1,isCookie:!1,isLoader:!0,isParallaxScroll:!1,isLayerParallax:!1,isMask:"auto",load:{preload:1,amountEachLoad:2,isLazy:!0},swipe:{easing:"easeOutQuint",isBody:!0,isAutoOnPag:!0,isLiveEffect:!0},oneSlide:{isNav:!1,isPag:!0,isSwipe:!1},className:{grab:["grab","grabbing"],swipe:["","swiping"],stop:["stopLeft","stopRight"]},rubyAnimateKeyframes:{fadeOut:[{pos:100,opacity:0}],fadeIn:[{pos:0,opacity:0}]},rubyAnimateOne:{fade:{next:["fadeOut","fadeIn"],prev:["fadeOut","fadeIn"]}},fxMathName:"rectMove rectRun rectSlice rubyFade rubyMove rubyRun rubyScale zigzagRun randomMath".split(" "),coverflow3D:{widthSlide:.8,perspective:1200,zDeep:600,rotate:30,opacity:1,isDeepMulti:!0},nav:{isEventTap:!0,markup:"
prev
next
",markupOutside:"
prev
next
"},pag:{type:"tabs",width:null,height:null,minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,direction:"hor",position:"begin",align:"begin",speed:300,easing:"easeOutCubic",sizeAuto:"full",typeSizeItem:"self",isEventTap:!0,isItemCurCenterWhenTap:!0,isJustifyWhenLarge:!1,isArrow:!0,isTapOnArrow:!0,isMark:!1,sizeMarkTo:"border",moreClass:null,widthMinToHor:0,rangeMinToHor:0,wheel:"auto",markupArrow:"
",markupMark:"
"},image:{isResponsive:!0},imageback:{position:"center",isResponsive:!0},video:{height:480,isBtnPause:!1,isPauseThenRemove:!1},videoback:{position:"fill",posterPosition:"fill",opacity:.3,isResponsive:!0},hotspot:{widthItem:null,sizeArea:10,position:"top",eventToOpen:"tap",animIn:[{y:"100%",opacity:0},{y:0,opacity:1,duration:200}],animOut:[{y:0},{y:"100%",opacity:0,duration:200}],animTopIn:null,animTopOut:null,animBottomIn:null,animBottomOut:null,animLeftIn:null,animLeftOut:null,animRightIn:null,animRightOut:null,markupPoint:"
",isActivedAtFirst:!1,isResponsive:!1},layer:{width:null,height:null,count:1,direction:"normal",duration:400,delay:0,easing:"easeOutQuad",eventToPlay:null,isPlayWhenSlideActived:!0,isAutoPlay:!0,isResponsive:!0,isRandom:!0},layerParallax:{isParallax:!0,radiusLevelValue:[0,5,10,15,20,25,30,35,40,45,50],radiusLevel:3,radius:null,direction:"reverse"},parallax:{scrollDirection:"same",scrollDepth:80,scrollBgDepth:80,scrollLayerDepth:50,isScroll:!1,isScrollLayerFade:!0},parallaxScroll:{direction:"same",bgDepth:80,layerDepth:50,isLayerEnable:!0,isLayerFade:!0},slideshow:{delay:8E3,timer:"arc",isAutoRun:!0,isPlayPause:!0,isTimer:!0,isLoop:!0,isHoverPause:!1,isRunInto:!1,isRandom:!1},timerArc:{width:null,height:null,fps:30,rotate:0,radius:14,weight:4,stroke:"hsla(0,0%,0%,.6)",fill:"transparent",radiusOuter:14,weightOuter:2,strokeOuter:"hsla(0,0%,0%,.1)",fillOuter:"transparent"},flickr:{urlRequest:"//api.flickr.com/services/rest/?method=flickr.{method}&api_key={key}{typeID}&format=json&nojsoncallback=1",apiKey:"a85720e2fbb21eccea51fcb75cb22184",photoNum:10,photoRecentNum:null,photoAlbumNum:null,photoFavesNum:null,photoSize:"Large",photoPosition:"last",getPhotoRecentByUrl:null,getPhotoAlbumByUrl:null,getPhotoFavesByUrl:null,recentID:null,albumID:null,favesID:null,isRandomPhoto:!1,markupSlide:'
{photoTitle}{markupInfo}
',markupInfo:"
{markupPhotoTitle}{markupAlbumTitle}{markupSplit}{markupAuthor}
",markupSplit:" | ",markupPhotoTitle:"{photoTitle}",markupAlbumTitle:"{albumTitle}",markupAuthor:"{author}",infoLayer:[{x:20,y:"100%{parent}"},{y:"100%{parent} - 100% - 20",duration:400}],isInfo:!0,isPhotoTitle:!0,isAlbumTitle:!0,isAuthor:!0},markup:{loader:"
",loaderThumb:"
",ssControl:"
",navInto:"viewport",pagInto:"ruby",ssControlInto:"ruby",timerInto:"ssControl",playInto:"ssControl"},deeplinking:{prefixDefault:["ruby","slide"],prefix:null,isIDConvert:!0,isOnlyShowID:!0},cookie:{name:"",days:7},mobile:{speedHeight:null,direction:"hor"},fallback:{markup:{loader:"
loading
"}},rev:["erp"],versionBrand:"1",version:"1.5"},rt01VA.optsPlus={tabs:{},slider:{margin:0,load:{isLazy:!1},pag:{type:"thumbnail",position:"end",align:"center"}},carousel:{fx:"line",speed:600,widthSlide:300,margin:15,isCenter:!1,isLoop:!1,isPag:!1,isNav:!0,load:{isLazy:!1}}},rt01VA.M={Message:function(l,h){if("object"===typeof console&&void 0!==l){var k="["+rt01VA.rubyName+": "+l+"]";h&&(k+=" -> "+h);console.warn(k)}},StringToJson:function(l,h){if("string"==typeof l){l=l.replace(/\u0027/g,'"');try{l=m.parseJSON(l)}catch(k){rt01VA.M.Message(h)}}return m.isPlainObject(l)?m.extend(!0,{},l):m.isArray(l)?m.extend(!0,[],l):{}},JsonToString:function(l,h){if("object"==typeof l)try{l=JSON.stringify(l)}catch(k){rt01VA.M.Message(h)}return"string"==typeof l?l:""},PFloat:function(l){if(/^\-?\d*\.?\d+\w*$/g.test(l)){if(l=parseFloat(l),9007199254740992>l)return l}else{if(/^(true|on)$/g.test(l))return!0;if(/^(false|off)$/g.test(l))return!1}return 0},PInt:function(l){return/^\-?\d+/g.test(l)?parseInt(l,10):0},SizeNoTransform:function(l,h,k){if(!l||!l[0])return 0;var b=l[0];l=document.defaultView?getComputedStyle(b):b.currentStyle;var a=/Width/i.test(h),b=b[a?"offsetWidth":"offsetHeight"],e=a?this.PFloat(l.paddingLeft)+this.PFloat(l.paddingRight):this.PFloat(l.paddingTop)+this.PFloat(l.paddingBottom),f=a?this.PFloat(l.borderLeftWidth)+this.PFloat(l.borderRightWidth):this.PFloat(l.borderTopWidth)+this.PFloat(l.borderBottomWidth);l=a?this.PFloat(l.marginLeft)+ this.PFloat(l.marginRight):this.PFloat(l.marginTop)+this.PFloat(l.marginBottom);/^Outer\w+/.test(h)?k&&(b+=l):/^Inner\w+/.test(h)?b-=f:/^(Width|Height)$/.test(h)&&(b-=f+e);return b},Width:function(l){return this.SizeNoTransform(l,"Width")},Height:function(l){return this.SizeNoTransform(l,"Height")},InnerWidth:function(l){return this.SizeNoTransform(l,"InnerWidth")},InnerHeight:function(l){return this.SizeNoTransform(l,"InnerHeight")},OuterWidth:function(l,h){return this.SizeNoTransform(l,"OuterWidth",h)},OuterHeight:function(l,h){return this.SizeNoTransform(l,"OuterHeight",h)}});m[rt01VA.rubyName]=function(l,h){var k={},b={$ruby:l,$w:m(window),$doc:m(document),rubykey:Math.ceil(1E9*Math.random()),ns:rt01VA.namespace,data:{},numNSID:0},a={},e={},f={},r={},n={},p={},d={cs:k,o:f,oo:r,va:b,is:a,ti:e},g=m(window),c=m(document),t,y,v,z,u,x={Check:function(){q.Browser();q.CssName();q.FirstSetup();k.ev.trigger("init");B.Check()?a.DISPLAY?W.SetupInit():(a.showInRange=a.wake=!0,x.Ready()):l.remove()},Ready:function(){k.ev.trigger("ready");l.removeClass(b.ns+"none");a.RUBYANIMATE&&X.UpdateAllKeyframes();D.Structure();w.Ruby();a.SLIDESHOW&&K.RenderControl();a.TIMER&&Y.Render();a.NAV&&P.Render();a.PAG&&E.RenderSelf();a.CAP&&S.Render();w.Slides();D.Other();a.APIREMOTE&&Z.Init();w.DeepLinkCookie();a.FLICKR&&ia.Init();C.Way();a.pag&&!a.pagList&&E.TypeSizeItem();l.addClass(b.ns+"init");F.WidthForRuby();a.res&&T.UpdateVars();b.rateInit=b.rate;a.pag&&E.VerToHor();M.CombineAtFirst();a.LAYER?I.LoadHomeBegin():C.Next()},Load:function(){a.initLoaded=!0;k.ev.trigger("loaded");a.pag&&!a.pagList&&E.TypeSizeItem();a.res&&a.fullscreen&&aa.Variable();M.CombineAtFirst();H.Setup();H.LoadAll();q.LastSetup();a.initEnd=!0;a.LAYER&&(I.Init(y),I.Play("home"));setTimeout(function(){a.slideshow&&K.Init()},400)}},q=m.extend(!0,{},rt01VA.M,{FirstSetup:function(){w.MergeAllModules();w.MergeAllOpts();k.one=d;k=m.extend(!0,k,ba);m.data(l[0],rt01VA.rubyName,k);rt01VA.$ruby=rt01VA.$ruby.add(l);rt01VA.numID++;b.rubyID=rt01VA.numID;b.ns=rt01VA.namespace;b.name=f.name||l.attr("id")||null;b.nVideoOpen=0;a.tapEnable=!0;b.fxLast=b.fxCur="none";b.classAdd=[];b.actived=b.ns+f.actived;b.deactived=b.ns+f.deactived;b.addInfo=null},LastSetup:function(){!a.tf&&setTimeout(A.Resize,50)},Browser:function(){var c=navigator.userAgent;a.ie=document.documentMode;a.safari=/Constructor/i.test(Object.prototype.toString.call(window.HTMLElement));a.opera=!!window.opera||/\sOPR\//i.test(c);a.chrome=!!window.chrome&&!a.opera;a.firefox=void 0!==window.InstallTrigger;a.ie11=!(!a.ie||(new Function("/*@cc_on return @_jscript_version; @*/"))());a.ie7=!(!a.ie||!/MSIE\s7\./i.test(c));var d=["ie","safari","opera","chrome","firefox"];for(u=d.length;0<=u;u--)if(a[d[u]]){a.browser=d[u];break}a.evPointer=!!window.PointerEvent;a.evMSPointer=!!window.MSPointerEvent;a.evPointerAll=a.evPointer||a.evMSPointer;a.evSwipe=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);a.swipeSupport=a.evSwipe||a.evPointer||a.evMSPointer;d=c||navigator.vender||window.opera;a.mobile=a.swipeSupport&&(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(d)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(d.substr(0,4)));a.androidNative=a.mobile&&/Mozilla\/5\.0/i.test(c)&&/Android/i.test(c)&&/AppleWebKit/i.test(c)&&!/Chrome/i.test(c)&&!/Android\s+4\.4/i.test(c);a.iOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;c="."+b.ns+b.rubykey;d=["","",""];a.evSwipe?d=["touchstart","touchmove","touchend"]:a.evPointer?d=["pointerdown","pointermove","pointerup"]:a.evMSPointer&&(d=["MSPointerDown","MSPointerMove","MSPointerUp"]);b.ev={click:"click"+c,drag:"dragstart"+c+" selectstart"+c,resize:"resize"+c,scroll:"scroll"+ c,key:"keyup"+c,hash:"hashchange"+c,swipe:{start:d[0]+c,move:d[1]+c,end:d[2]+c,type:"swipe"},mouse:{start:"mousedown"+c,move:"mousemove"+c,end:"mouseup"+c,type:"mouse"},mouseenter:"mouseenter"+c,mouseleave:"mouseleave"+c};""==d[0]&&(b.ev.swipe={start:"",move:"",end:"",type:"swipe"});a.wheelNative=!!("onwheel"in document.createElement("div"));a.console="object"===typeof console;c=document.createElement("canvas");c=!(!c.getContext||!c.getContext("2d"));a.canvas2d=c;a.online=/https?/g.test(window.location.protocol)},CssName:function(){var c={CamelCase:function(a){return a.replace(/-([a-z])/gi,function(a,b){return b.toUpperCase()})},CSS:function(a,b){var c=document.createElement("p").style,d=["Webkit","Moz","ms","O"],ka=["-webkit-","-moz-","-ms-","-o-"],g=this.CamelCase(a);if(void 0!==c[g])return b?"":!0;for(var g=q.ProperCase(g),e=0,f=d.length;eb.botRuby||b.botWb)return c;void 0===b&&(b=a.length);for(var d=0;da&&(a*=b);return q.R(a)},PStyleToJson:function(a){var b=a.attr("style"),c=/\s*([\w-]+)\s*:\s*([^;]*)/g,d={};void 0!==a.attr("width")&&(d.width=a.attr("width"));void 0!==a.attr("height")&&(d.height=a.attr("height"));for(;a=c.exec(b);)d[a[1]]=a[2];b=/^-?\d*.?\d+px$/;b.test(d.width)&&(d.width=parseFloat(d.width));b.test(d.height)&&(d.height=parseFloat(d.height));return d},ElesIsNumber:function(a,b){var c=a.length,d=m.isArray(a)&&c===b;if(d)for(var g=0;g=a[u].to&&(d=a[u].to,g=u);return-1=v?c=v-1:0>=c&&(c=0);void 0===k.idCur&&(k.idCur=b.idBegin=c)}a.nav=f.isNav&&a.NAV;a.pag=f.isPag&&a.PAG;a.cap=f.isCap&&a.CAP;a.fullscreen=f.isFullscreen&&!!rt01MODULE.FULLSCREEN;1==v&&(a.nav=f.oneSlide.isNav?f.isNav&&a.NAV:!1,a.pag=f.oneSlide.isPag?f.isPag&&a.PAG:!1)},Transform:function(){b.xTimer=100;b.easing=f.swipe.easing;b.moveBy=b.moveLastBy="swipe"},Direction:function(){function c(d){var g="hor"==b[d].dirs;b[d].cssTf=a.tf?z:g?"left":"top";b[d].pageX=g?"pageX":"pageY"}b.can.dirs="ver"!=f.direction||a.mobile?"hor":"ver";b.addInfo&&b.addInfo.pagDirs||(b.pag.dirs=f.pag.direction);a.dirsHor="hor"==b.can.dirs;a.tf||(z=b.cssTf=a.dirsVer?"top":"left");c("can");c("pag")},Fx:function(){var a=["cssOne","cssTwo","cssThree","cssFour","none"],c=["coverflow3D"];a:{for(u=0;uv/2};a.centerLoop?(b.$slClone&&b.$slClone.remove(),b.$slClone=m(""),c.nLeft=~~((v-1)/2),c.nRight=c.nLeft+(c.isOdd?0:1)):w.CenterNoLoop()},CenterNoLoop:function(){b.center.nLeft=k.idCur;b.center.nRight=v-k.idCur-1},SwipeEvent:function(){b.stepSetupInit||(b.swipeTypeCur=null)},Responsive:function(){b.sizeRange=f.widthRange?w.Chain3(f.widthRange):null;b.pa={left:f.padding,top:0};b.paRange=0!=f.padding?w.Chain3(f.padding):null;b.maRange=0!=f.margin?w.Chain4(f.margin):null;a.res=m.isNumeric(f.width)&&a.RESPONSIVE;a.res&&(b.wRes=f.width,b.hRes=a.heightFixed?f.height:0,f.isFullscreen&&(0==b.hRes&&(b.hRes=b.wRes),b.rRes=b.wRes/b.hRes));b.stepSetupInit||(b.rate=1)},Grab:function(){f.isViewGrabStop?y.addClass(b.ns+"grabstop"):y.removeClass(b.ns+"grabstop")},Pagination:function(){var c=f.pag;"tab"==c.type&&(c.type="tabs");a.pagList="list"==c.type;a.pagTabs="tabs"==c.type;a.pagThumb="thumbnail"==c.type;a.alignJustify="justify"==c.align;a.pagList&&(a.swipeOnPag=!1);b.pagVer=a.pagOutside||a.pagList||!f.isPag||"ver"!=f.pag.direction||"ver"!=b.pag.dirs?null:"begin"==f.pag.position?"begin":"end";b.stepSetupInit&&!a.pagOutside&&!a.pagList&&r.isPag&&"ver"==r.pag.direction&&y.css({"margin-left":"","margin-right":""});a.pagItemSizeSelf="self"==c.typeSizeItem&&!a.alignJustify;if(m.isNumeric(c.width)||m.isNumeric(c.height))a.pagItemSizeSelf=!1},Slideshow:function(){var c=f.slideshow;a.slideshow=f.isSlideshow&&a.SLIDESHOW;a.timer=a.slideshow&&c.isTimer&&a.TIMER;b.timer="arc"!=c.timer||a.canvas2d?c.timer:"line";a.playpause=a.slideshow&&c.isPlayPause;a.ssControl=a.timer||a.playpause;a.autoRun=!(c.isPlayPause&&!c.isAutoRun);a.ssPauseAbsolute=!a.autoRun;a.ssRunInto=c.isRunInto;a.hoverAction=!1;a.stop=!1},LastSetup:function(){b.stepSetupInit&&a.heightFixed&&y.css("height","");"eerf"==f.rev[0]&&B.Eerf()},Ruby:function(){w.FirstSetup();w.IDNum();w.Transform();w.Direction();w.Fx();w.Layout();w.Center();w.SwipeEvent();w.Responsive();w.Grab();w.Pagination();w.Slideshow();w.LastSetup();!b.stepSetupInit&&l.removeAttr("data-"+rt01VA.rubyData).removeData(rt01VA.rubyData);void 0===b.stepSetupInit&&(b.stepSetupInit=1);A.AddClass()},Slides:function(){a.tf||b.$s.css({left:"",top:""});var c=b.fxType;b.$s.each(function(d){var g=m(this),e=q.Data(g),p=e.opts||{};e.id=d;a.pag&&q.Data(b.$pagItem.eq(d),{id:d});if(void 0===b.fx[d]||m.isEmptyObject(p)||"apiAdd"==e.loadBy){var n="data-"+f.nameDataSlide,t=g.data(f.nameDataSlide),h='options on "XX" in Slide YY not valid'.replace(/XX/,n).replace(/YY/,d),t=q.StringToJson(t,h),p=m.extend(!0,p,f,t);g.removeAttr(n)}else if(m.isPlainObject(b.optsUpdate)&&!m.isEmptyObject(b.optsUpdate))p=m.extend(!0,p,b.optsUpdate);else if(m.isPlainObject(b.optsSlides)&&m.isPlainObject(b.optsSlides[d]))p=m.extend(!0,p,b.optsSlides[d]);else if(!a.apiRemove)return;/^(cssOne|cssTwo|cssThree|cssFour)$/.test(c)?b.fx[d]=J.GetFxCss(c,p):b.fx[d]="none"==c?"none":"line"==b.layout?null:p.fx;b.slot[d]=p.slot;b.speed[d]=p.speed;b.delay[d]=p.slideshow.delay;e.opts=p;200>b.speed[d]&&(b.speed[d]=200);500>b.delay[d]&&(b.delay[d]=500);a.CLASSADD&&(b.classAdd[d]=ca.Filter(p));b.IDsOnNode[d]=g.attr("id");a.IFRAME&&ea.Init(g);e.control=p.control;e.tweenLayer=e.tweenLayer||new RubyTween});b.tDelay=b.delay[k.idCur];1===b.stepSetupInit&&(b.stepSetupInit=2);a.pag&&E.FirstLastClass()}},A={RemoveClass:function(){var c="{ns}layout-{layout} {ns}view-{view} {ns}fx-{fx} {ns}height-{height}".replace(/\{ns\}/g,b.ns).replace(/\{layout\}/,n.layout).replace(/\{view\}/,n.view).replace(/\{fx\}/,n.fxType).replace(/\{height\}/,p.heightFixed?"fixed":"auto");l.removeClass(c);a.pag&&E.ToggleClass(!1)},AddClass:function(){var c=" "+b.ns,d="{ns}layout-{layout} {ns}view-{view} {ns}fx-{fx} {ns}height-{height}".replace(/\{ns\}/g,b.ns).replace(/\{layout\}/,b.layout).replace(/\{view\}/,b.view).replace(/\{fx\}/,b.fxType).replace(/\{height\}/,a.heightFixed?"fixed":"auto"),d=d+(c+(a.tf?"transform":"no-transform")),d=d+(a.opacity?"":c+"no-opacity");a.showInRange||(d+=c+"none");l.addClass(d);a.pag&&E.ToggleClass(!0)},Reset:function(){if("dot"==b.layout){var a={};a[z]="";b.$s.css(a);G.AnimateX(t,0,1,1)}/^(basic)$/.test(b.view)&&(a={},a[b.prefix+"perspective"]="",y.css(a))},CanvasMask:function(){var a=q.Data(k.idCur).opts.isMask,c=b.ns+"mask";"auto"==a?/^css/.test(b.fxType)?y.removeClass(c):y.addClass(c):!1===a?y.removeClass(c):y.addClass(c)},Resize:function(){k.ev.trigger("resize");a.pag&&!a.pagList&&E.TypeSizeItem();F.WidthForRuby();a.res&&T.UpdateVars();a.IMAGE&&Q.UpdateAllImageBy("size");a.VIDEOBACK&&N.UpdateAllVideoBy("size","$videoback");a.heightFixed&&F.HeightFixedForRuby();F.EndOfRuby();a.res&&a.fullscreen&&aa.Variable();a.IMAGE&&Q.UpdateAllImageBy("position");a.VIDEOBACK&&(N.UpdateAllVideoBy("position","$videoback"),N.UpdateAllVideoBy("size","$videobackPoster"),N.UpdateAllVideoBy("position","$videobackPoster"));a.PARALLAX&&ha.Check(b.$s);M.CombineAtFirst();setTimeout(function(){a.LAYER&&(I.Update(),I.Resume(k.idCur),I.Resume("home"));a.HOTSPOT&&O.UpdatePosition(k.idCur)},0);F.AnimHeightForRuby(!0);k.ev.trigger("resizeEnd")}},B={Check:function(){var a=f.rev[0],c=!1;"erp"==a||"eerf"==a?c=!0:"omed"==a&&(a=f.rev[1].split("").reverse().join(""),-1!==document.URL.indexOf(a)&&(c=!0));return c},Eerf:function(){f=m.extend(!0,f,{cssOne:null,cssTwoIn:null,cssTwoOut:null,cssEasing:null,isSlideshow:!1,name:null});null===f.fx&&(f.fx=b.layout="line");f.pag.direction="hor"}},D={Structure:function(){D.Viewport();D.Canvas();D.OverlayGhost(y);a.LAYER&&I.LayerHomeMarkup();b.$s=m("");t.children().each(function(){D.Slide(m(this))});b.$s.each(function(){var c=m(this);D.CapPagHTML(c);a.VIDEOIFRAME&&V.ConvertTag(c)})},Viewport:function(){var a=b.ns+f.nameViewport,c=l.children("."+a);c.length?y=c:(l.wrapInner(m("
",{"class":a})),y=l.children("."+a));b.$viewport=y},Canvas:function(){var a=b.ns+f.nameCanvas,c=f.tagCanvas,d=y.children("."+a);d.length?c=d[0].tagName.toLowerCase():(d=y.children(),d.length?("div"==c&&"li"==d[0].tagName.toLowerCase()&&(c="ul"),d.wrapAll(m("ul"==c?"