/**
 * RUBYTABS JQUERY PLUGIN
 * @package         RubyTabs
 * @author          HaiBach
 * @link            http://haibach.net/rubytabs
 * @version         1.5
 * @lastUpdate      16-10-2016
 */

(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:"<div class='{ns}nav'><div class='{ns}nav-prev'>prev</div><div class='{ns}nav-next'>next</div></div>",
markupOutside:"<div class='{ns}nav-prev'>prev</div><div class='{ns}nav-next'>next</div>"},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:"<div class='{ns}pagarrow-item {ns}pagarrow-{dirs}'><div class='{ns}pagarrow-icon'></div></div>",
markupMark:"<div class='{ns}pagmark'><div class='{ns}pagmark-item'></div></div>"},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:"<div class='{ns}hspoint'></div>",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:"https://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:'<div><a class=\'{ns}imgback\' data-flickr=\'{"numID": {numID}, "photoID": "{photoID}"}\'>{photoTitle}</a>{markupInfo}</div>',markupInfo:"<div class='{ns}flickr-info' data-layer-animate='{infoLayer}'>{markupPhotoTitle}{markupAlbumTitle}{markupSplit}{markupAuthor}</div>",
markupSplit:" | ",markupPhotoTitle:"<a class='{ns}flickr-photo-title' href='{photoURL}'>{photoTitle}</a>",markupAlbumTitle:"<a class='{ns}flickr-album-title' href='{albumURL}'>{albumTitle}</a>",markupAuthor:"<a class='{ns}flickr-author' href='{authorURL}'>{author}</a>",infoLayer:[{x:20,y:"100%{parent}"},{y:"100%{parent} - 100% - 20",duration:400}],isInfo:!0,isPhotoTitle:!0,isAlbumTitle:!0,isAuthor:!0},markup:{loader:"<div class='{ns}loader'><svg class='{ns}loader-circular'><circle class='{ns}loader-path' cx='50%' cy='50%' r='20' fill='none' stroke-width='4' stroke-miterlimit='15'/></svg></div>",
loaderThumb:"<div class='{ns}loader {ns}loader-small'><svg class='{ns}loader-circular'><circle class='{ns}loader-path' cx='50%' cy='50%' r='10' fill='none' stroke-width='3' stroke-miterlimit='15'/></svg></div>",ssControl:"<div class='{ns}ss-control'></div>",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:"<div class='{ns}loader {ns}loader-old'>loading</div>"}},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;e<f;e++)if(void 0!==c[d[e]+g])return b?ka[e]:!0;return!1},Prefix:function(a){return this.CSS(a,!0)}};a.tf=c.CSS("transform");a.tf3D=c.CSS("perspective");a.ts=c.CSS("transition");
a.opacity=c.CSS("opacity");c=b.prefix=c.Prefix("transform");b.cssTf=z=c+"transform";c=a.tf3D;b.tl0=c?"translate3d(":"translate(";b.tl1=c?",0)":")";b.tlx0=c?"translate3d(":"translateX(";b.tlx1=c?",0,0)":")";b.tly0=c?"translate3d(0,":"translateY(";b.tly1=c?",0)":")"},ToggleSlide:function(){if(1<=k.num){var c=k.idCur,d=k.idLast,g=b.$s.eq(c),e=b.$s.eq(d),p=b.ns+f.current,n=b.deactived;b.$s.not(g).removeClass(p).addClass(n);g.addClass(p).removeClass(n);void 0!==d&&k.ev.trigger("deselectID",d);k.ev.trigger("selectID",
c);!a.centerLoop&&w.CenterNoLoop();a.pag&&(c=b.$pagItem.eq(c),b.$pagItem.not(c).removeClass(p),c.addClass(p),f.pag.isMark&&E.SizePosOfMark());a.nav&&P.Toggle();a.cap&&S.Toggle(g,e);C.Add(g);a.CLASSADD&&ca.Toggle();A.CanvasMask();void 0!==d&&(f.isDeeplinking&&a.DEEPLINKING&&U.Write(),f.isCookie&&a.COOKIE&&da.Write());a.IFRAME&&ea.ToggleSource(g);a.NESTED&&ja.RefreshInSlide(g);a.SWIPE&&fa.ToggleEvent()}},ToggleClass:function(c,d,g){if(!a.mobile||"grab"!=c){var e=f.className[c];c=b.ns+e[0];var e=b.ns+
e[1],p=d?e:c,n=d?c:e;void 0===g&&(g=y);-1==d?g.removeClass(c+" "+e):g.addClass(p).removeClass(n)}},ValueX:function(a){a=a.substr(7,a.length-8).split(", ");return q.PInt(a[4])},Scroll:{Setup:function(){a.ssRunInto?(a.into=!1,q.Scroll.Check(),g.off(b.ev.scroll),g.on(b.ev.scroll,function(){clearTimeout(e.scroll);e.scroll=setTimeout(function(){!a.ssPauseAbsolute&&q.Scroll.Check()},200)})):a.into=!0},Check:function(c){q.Scroll.Position();c=!c&&a.slideshow&&a.ssRunInto;b.topW>b.botRuby||b.botW<b.topRuby?
a.into&&(a.into=!1,c&&K.Go("scrollOut")):a.into||(a.into=!0,c&&K.Go("scrollInto"))},Position:function(){b.hWin=g.height();b.topW=g.scrollTop();b.botW=b.hWin+b.topW;b.topRuby=l.offset().top;b.botRuby=b.topRuby+q.OuterHeight(l)}},A:function(a){return Math.abs(a)},R:function(a){return Math.round(a)},C:function(a){return Math.ceil(a)},Ra:function(){return Math.random()},Rm:function(a,b){return q.Ra()*(b-a)+a},Sum:function(a,b){var c=0;if(0>b)return c;void 0===b&&(b=a.length);for(var d=0;d<b;d++)c+=a[d];
return c},PPercent:function(a,b){0<a&&1>a&&(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<c;g++)d=
d&&m.isNumeric(a[g]);return d},Tl:function(a,c,d){d=d||"px";return b.tl0+a+d+", "+c+d+b.tl1},Tlx:function(c,d){d=d||"px";return a.tf?b.tlx0+c+d+b.tlx1:c+d},Tly:function(c,d){d=d||"px";return a.tf?b.tly0+c+d+b.tly1:c+d},TfRemove:function(a){var b={};b[z]="";a.css(b)},Shift:function(a,b){return b?a.shift():a.pop()},Push:function(a,b,c){return c?a.push(b):a.unshift(b)},RandomInArray:function(a,b){if(m.isArray(a)){if(1===a.length)return a[0];var c=m.extend(!0,[],a),d=m.inArray(b,c);-1===d&&(d=c.length+
1);c.splice(d,1);return c[q.R(q.Rm(0,c.length-1))]}return a},RandomInArray2:function(a,b,c){if(m.isArray(a)){if(!b.length||1==b.length&&b[0]==c)b=m.extend(!0,b,a);void 0!==c&&(a=m.inArray(c,b),-1!==a&&b.splice(a,1));a=q.R(q.Rm(0,b.length-1));c=b[a];b.splice(a,1);return c}return a},SwapVaOnSwipe:function(){return b.$swipeCur.is(t.add(b.$s))?b.can:b.pag},XClass:function(a,b,c){a[(b?"add":"remove")+"Class"](c)},ProperCase:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},NS:function(a){return"string"==
typeof a?a.replace(/\{ns\}/g,b.ns):""},MatchMedia:function(a,b,c){if(c){if(c=q.OuterWidth(l),a<=c&&c<=b)return!0}else if(window.matchMedia){if(a="(min-width: WMINpx) and (max-width: WMAXpx)".replace("WMIN",a).replace("WMAX",b),window.matchMedia(a).matches)return!0}else if(c=g.width(),a<=c&&c<=b)return!0;return!1},GetValueInRange:function(a,b){var c=b?b:"value",d=1E5,g=-1;for(u=a.num-1;0<=u;u--)q.MatchMedia(a[u].from,a[u].to)&&d>=a[u].to&&(d=a[u].to,g=u);return-1<g?a[g][c]:null},Find:function(a,c){var d=
a.find(c),g=a.find("."+b.ns).find(c);return d=d.not(g)},Data:function(a,c){var d=b.data;m.isNumeric(a)&&0<=a&&a<k.num?a=b.$s.eq(a):"home"===a&&(a=y);if(!(a instanceof jQuery))return!1;m.isPlainObject(c)?(c=m.extend(!0,{},c),delete c.$self,delete c.nsid):c={};for(var g in d)if(a.is(d[g].$self))return m.extend(!0,d[g],c);g=b.numNSID;b.numNSID++;d[g]={$self:a,nsid:g};return m.extend(!0,d[g],c)},GetTween:function(a){a=q.Data(a);a.tweenSelf=a.tweenSelf||new RubyTween;return a.tweenSelf},Module:function(a){return m.extend({},
rt01MODULE[a],d)}}),w={MergeAllModules:function(){d.INIT=x;d.M=q;d.PROP=w;d.RENDER=D;d.LOAD=C;d.EVENTS=H;d.POSITION=G;d.SIZE=F;d.POSSIZE=M;d.TOSLIDE=L;d.FX=ga;d.VIEW=J;fa=q.Module("SWIPE");T=q.Module("RESPONSIVE");P=q.Module("NAV");E=q.Module("PAG");S=q.Module("CAPTION");Q=q.Module("IMAGE");N=q.Module("VIDEOBACK");V=q.Module("VIDEOIFRAME");ea=q.Module("IFRAME");O=q.Module("HOTSPOT");I=q.Module("LAYER");R=q.Module("LAYERPARALLAX");ha=q.Module("PARALLAX");X=q.Module("RUBYANIMATE");K=q.Module("SLIDESHOW");
Y=q.Module("TIMER");ia=q.Module("FLICKR");W=q.Module("DISPLAY");U=q.Module("DEEPLINKING");da=q.Module("COOKIE");aa=q.Module("FULLSCREEN");ja=q.Module("NESTED");ca=q.Module("CLASSADD");q.Module("OLD");Z=q.Module("APIREMOTE");ba=m.extend(ba,rt01MODULE.APIMORE);J=m.extend(J,rt01MODULE.VIEWMATH,rt01MODULE.VIEWCSS,rt01MODULE.VIEWCOVERFLOW3D,d);a.SWIPE=!!rt01MODULE.SWIPE;a.RESPONSIVE=!!rt01MODULE.RESPONSIVE;a.NAV=!!rt01MODULE.NAV;a.PAG=!!rt01MODULE.PAG;a.CAP=!!rt01MODULE.CAPTION;a.IMAGE=!!rt01MODULE.IMAGE;
a.VIDEOBACK=!!rt01MODULE.VIDEOBACK;a.VIDEOIFRAME=!!rt01MODULE.VIDEOIFRAME;a.IFRAME=!!rt01MODULE.IFRAME;a.HOTSPOT=!!rt01MODULE.HOTSPOT;a.LAYER=!!rt01MODULE.LAYER;a.LAYERPARALLAX=!!rt01MODULE.LAYERPARALLAX;a.PARALLAX=!!rt01MODULE.PARALLAX;a.RUBYANIMATE=!!rt01MODULE.RUBYANIMATE;a.SLIDESHOW=!!rt01MODULE.SLIDESHOW;a.TIMER=!!rt01MODULE.TIMER;a.FLICKR=!!rt01MODULE.FLICKR;a.DISPLAY=!!rt01MODULE.DISPLAY;a.DEEPLINKING=!!rt01MODULE.DEEPLINKING;a.COOKIE=!!rt01MODULE.COOKIE;a.NESTED=!!rt01MODULE.NESTED;a.CLASSADD=
!!rt01MODULE.CLASSADD;a.APIREMOTE=!!rt01MODULE.APIREMOTE},MergeAllOpts:function(){var b=rt01VA.optsDefault,c=l.data(rt01VA.rubyData),c=q.StringToJson(c),d=null;c.optionsPlus&&(d=c.optionsPlus);!d&&h.optionsPlus&&(d=h.optionsPlus);d||(d=b.optionsPlus);f=m.extend(!0,f,b,rt01VA.optsPlus[d],h,c);a.tf||m.isEmptyObject(f.fallback)||(f=m.extend(!0,f,f.fallback));a.mobile&&!m.isEmptyObject(f.mobile)&&(f=m.extend(!0,f,f.mobile))},Chain3:function(a,b){b||(b="value");m.isNumeric(a)?a=[[a,0,1E5]]:q.ElesIsNumber(a,
3)&&(a=[a]);if(!m.isArray(a))return!1;var c={num:a.length},d=0;for(u=c.num-1;0<=u;u--){var g=a[u];m.isNumeric(g)&&(g=[g,0,1E5]);g[1]=q.PInt(g[1]);g[2]=q.PInt(g[2]);c[u]={from:g[1],to:g[2]};c[u][b]=parseFloat(g[0]);d=d<g[2]?g[2]:d}c.wMax=q.PInt(d);return c},Chain4:function(a){m.isNumeric(a)?a=[[a,a,0,1E5]]:q.ElesIsNumber(a,2)?a=[[a[0],a[1],0,1E5]]:q.ElesIsNumber(a,4)&&(a=[a]);if(!m.isArray(a))return!1;var b={num:a.length},c=0;for(u=b.num-1;0<=u;u--){var d=a[u];m.isNumeric(d)&&(d=[d,d,0,1E5]);2==d.length?
(d[2]=0,d[3]=1E5):3==d.length&&d.unshift(d[0]);b[u]={left:parseFloat(d[0]),right:parseFloat(d[1]),from:q.PInt(d[2]),to:q.PInt(d[3])};c=c<q.PInt(d[3])?d[3]:c}b.wMax=q.PInt(c);return b},DeepLinkCookie:function(){f.isDeeplinking?a.DEEPLINKING&&U.Read():f.isCookie&&a.COOKIE&&da.Read()},FirstSetup:function(){if(!b.stepSetupInit){a.loop=f.isLoop;b.$swipeCur=t;b.tweenView=new RubyTween;b.tweenSlide=new RubyTween;b.tweenCaption=new RubyTween;b.tweenClone=new RubyTween;b.tweenMath=new RubyTween;b.tweenParallaxScroll=
new RubyTween;b.fxCSS={};b.fxMath={};b.ssIDRandom=[];b.fxMathRandom=[];b.flickrData={};b.flickrListPhoto=[];b.xBuffer=0;b.can={viewport:y};b.pag={};b.nLoadAtFirst=0;b.nLoaded=0;a.preloaded=!1;var c=" "+b.ns,d="";"firefox"==a.browser&&(d+=c+"firefox");a.ie7&&(d+=c+"ie7");a.mobile&&(d+=c+"mobile");a.androidNative&&(d+=c+"androidNative");l.addClass(d);b.fx={};b.slot={};b.speed={};b.delay={};b.IDsOnNode=[];q.Data(y,{id:"home",opts:m.extend(!0,{},f),tweenLayer:new RubyTween})}c=f.fx;b.sSlideRange=w.Chain3(f[c]&&
f[c].widthSlide?f[c].widthSlide:f.widthSlide,"width");a.heightFixed=m.isNumeric(f.height);f.isFullscreen&&(a.heightFixed=!0)},IDNum:function(){v=k.num=b.$s.length;if(!b.stepSetupInit){var c=f.idBegin;"begin"==c?c=0:"center"==c?c=~~(v/2-.5):"centerRight"==c?c=~~(v/2):"end"==c?c=v-1:-1==c||c>=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;u<a.length;u++)if(f.fx==a[u]){c=a[u];break a}c="line"===f.fx?"line":-1!==m.inArray(f.fx,c)?"3d":"math"}b.fxType=c;c=["randomMath"];c=m.merge(c,a);c=m.merge(c,f.fxMathName);b.fxInLayoutDot=c},Layout:function(){b.view="basic";-1!==m.inArray(f.fx,["mask","coverflow3D","zoom3D"])&&(b.view=f.fx);-1!==m.inArray(f.fx,["cssOne","cssTwo","cssThree","cssFour"])&&a.RUBYANIMATE&&(b.view="css");-1!==m.inArray(f.fx,f.fxMathName)&&(b.view="math");1===v&&(b.view="basic");
a.dirsHor||(b.view="basic");/^(mask|coverflow3D)$/.test(b.view)&&!rt01MODULE["VIEW"+b.view.toUpperCase()]&&(b.view="basic");b.View=q.ProperCase(b.view);b.layout="line";f.stepNav=f.stepPlay=1;if("line"==f.fx)b.layout="line";else if(-1!==m.inArray(f.fx,b.fxInLayoutDot)||m.isArray(f.fx))b.layout="dot";-1!==m.inArray(f.fx,["mask","coverflow3D"])&&(b.layout="line")},Center:function(){1==v||2==v?"line"===b.layout&&(a.center=a.loop=!1):(a.center=f.isCenter,a.loop=f.isLoop);a.centerLoop=a.center&&a.loop;
var c=b.center={isOdd:q.C(v/2)>v/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("<div/>",{"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?"<ul/>":"<div/>",{"class":a}))):y.append(m("<div/>",{"class":a})));t=b.$canvas=
y.children("."+a);q.Data(t,{tagName:c,pos:{x:0}})},OverlayGhost:function(a){var c=m("<div/>",{"class":b.ns+"overlay-ghost"});a.append(c)},Slide:function(a){var c=b.ns+f.nameSlide,d=a[0].tagName.toLowerCase();if(!/^(div|li|article|section)$/.test(d)&&!a.hasClass(c)){if(/^(style|script)$/.test(d))return;if(/^(br)$/.test(d))return a.remove(),!1;d="ul"==q.Data(t).tagName?"<li/>":"<div/>";d=m(d,{"class":c});a.wrap(d);a=a.closest("."+c)}a.addClass(c).addClass(q.NS("{ns}sleep {ns}no-loaded")).addClass(b.deactived);
q.Data(a,{isLoading:!1,isLoaded:!1,isImgback:!1,isVideo:!1,isAjax:!1,isPagEmpty:!1,loadBy:"normal"});D.LoaderAdd(a,a,"$slLoader");b.$s=b.$s.add(a);return a},CapPagHTML:function(a){var c=b.ns,d="",g=q.Data(a);a.find("."+c+f.nameImageBack).each(function(){var a=m(this),c=this.tagName.toLowerCase();"img"===c?d=a.attr("alt"):"a"===c&&(d=a.html())});var e=a.children("."+c+"capitem");e.length&&(d=e.html(),e.remove());g.htmlCap=d;a=a.children("."+c+"pagitem");a.length||(a=m("<div/>",{"class":c+"pagitem"}),
g.isPagEmpty=!0);g.$pagItem=a;a.remove()},SearchNode:function(a){var c=m(),d=b.name;if(null!==d&&void 0!==d&&(m(a).each(function(){var a=m(this);a.data(rt01VA.rubyName+"Markup")===d&&(c=a)}),c.length))return c;a=q.Find(l,a);return a.length?a:m()},Into:function(a,c){var d=f.markup;switch(a){case "viewport":d=y;break;case "nav":b.$nav||(b.$nav=m("<div/>",{"class":b.ns+f.nameNav}),D.Into(d.navInto,b.$nav));d=b.$nav;break;case "ssControl":d=b.$ssControl;break;default:d=l}d.append(c)},LoaderAdd:function(a,
c,b){if(f.isLoader){var d="$loaderThumb"===b?q.NS(f.markup.loaderThumb):q.NS(f.markup.loader),d=m(d);q.Data(a)[b]=d;c.append(d)}},LoaderRemove:function(a,c){var b=q.Data(a)[c];b&&b.remove()},DivImg:function(a,c,d){var g=b.ns+f[a+"Name"],e=q.ProperCase(a);b[a]=l.find("."+g);f["is"+e]?b[a].length||(a=(e=l.data("img"+a))?'<div class="'+g+'"><img src="'+e+'" alt="['+a+']"></div>':'<div class="'+g+'"></div>',d&&c.after(m(a))||c.before(m(a))):b[a].length&&b[a].remove()},Other:function(){r.isOverlay!=f.isOverlay&&
D.DivImg("overlay",t,!0)}},C={Way:function(){function c(a){return q.Data(b.$s.eq(a)).isLoading}function d(){for(var a=0;a<v;a++)!c(a)&&p.push(a)}function g(){for(var a=b.idMap,d=q.C(v/2-1),e=d,f=1,n=1,t=!0,h=0;h<v;h++)0!=h&&(t?(e=d+n,n++,t=!1):(e=d-f,f++,t=!0)),!c(a[e])&&p.push(a[e])}function e(){for(var a=1,d=1,g=0,f=0,t=0;t<v;t++)0==t?!c(b.idBegin)&&p.push(b.idBegin):n!=v-1&&(a||g)?(!c(n+d)&&p.push(n+d),g?d++:a=0,p[t]>=v-1&&(f=1)):(!c(n-d)&&p.push(n-d),d++,a=!f,0>=p[t]&&(g=1))}var p=[],n=k.idCur,
t=f.load;b.nLoadParallel=t.amountEachLoad+1;b.preload=t.preload;"all"==t.preload&&(b.preload=v);0>=t.preload&&(b.preload=1);C.IDMap();0<k.num&&("line"==b.layout&&a.centerLoop?g():0==n?d():e());b.IDToLoad=p},IDMap:function(){var c=[];if("line"==b.layout&&a.centerLoop){var d=q.C(v/2)+k.idCur;b.center.isOdd||d++;d>=v&&(d-=v);for(u=0;u<v;u++)d>=v&&(d=0),c[u]=d++}else for(u=0;u<v;u++)c.push(u);b.idMap=c},ParallelWhenSlideBegin:function(){var a=b.IDToLoad;a.length&&a.shift();b.nLoadAtFirst++;b.nLoadAtFirst<
b.preload&&a.length&&C.SlideBegin(b.$s.eq(a[0]))},ParallelWhenSlideEnd:function(c){var d=b.IDToLoad,g=f.load;b.nLoaded++;a.preloaded||b.nLoaded!=b.preload||(a.preloaded=!0);if(!g.isLazy&&(a.preloaded&&(b.nLoadParallel--,b.nLoadParallel||(b.nLoadParallel=f.load.amountEachLoad)),d.length&&a.preloaded&&b.nLoadParallel>=g.amountEachLoad&&!q.Data(c).isLoadAdd))for(u=b.nLoadParallel;0<u;u--)C.Next()},Add:function(c){var d=q.Data(c);if(d&&!d.isLoading){a.loadAll=!1;d=b.IDToLoad;if(d.length)for(u=d.length-
1;0<=u;u--)d[u]===k.idCur&&(d.splice(0,0,d.splice(u,1)[0]),u=-1);C.Next(c)}},Next:function(a){k.num&&b.IDToLoad.length&&(a||(a=b.$s.eq(b.IDToLoad[0])),C.SlideBegin(a))},SlideBegin:function(c){var d=q.Data(c);c.length&&(k.ev.trigger("loadBegin",[c,d.id]),C.ParallelWhenSlideBegin(),c.removeClass(b.ns+"sleep"),d.isLoading=!0,d.id===b.idBegin&&(0==k.idCur&&k.ev.trigger("start"),q.ToggleSlide()),a.VIDEOBACK&&N.SetupAtLoadSlideBegin(c),a.IMAGE&&Q.SetupAtLoadSlideBegin(c),d.isVideoback||d.imageLen||C.SlideEnd(c))},
SlideEnd:function(c){var d=q.OuterHeight(c,!0),g=q.Data(c),e=g.id,p=b.ns;g.height=d;g.isLoaded=!0;c.removeClass(p+"no-loaded");a.initLoaded||(l.addClass(p+"ready").removeClass(p+"init"),a.heightFixed?F.HeightFixedForRuby():F.HeightAutoForRuby(d),F.EndOfRuby(),x.Load());a.IMAGE&&Q.BackPosition(g.$imgback);a.VIDEOBACK&&(N.Position(g.$videoback),d=g.$videobackPoster,N.Properties(d),N.SizeResponsive(d),N.Position(d),e==k.idCur&&N.Run("play"));!a.dirsHor&&la.SlideLoaded();c.addClass(p+"ready");D.LoaderRemove(c,
"$slLoader");a.pag&&E.SetupWhenLoadSlideEnd(c);a.HOTSPOT&&(O.Init(c),setTimeout(function(){O.Reset(e)},10));a.LAYER&&(I.Init(c),e==k.idCur&&I.Play(e));a.LAYERPARALLAX&&(R.Init(c),e==k.idCur&&R.ToggleEvent(e));a.VIDEOIFRAME&&V.Init(c);a.PARALLAX&&ha.Check(c);a.slideshow&&K.Go("slideLoaded");k.ev.trigger("loadSlide."+e);k.ev.trigger("loadEnd",[c,e]);b.IDToLoad.length||(a.loadAll=!0,k.ev.trigger("loadAll"));C.ParallelWhenSlideEnd(c)}},G={AnimateX:function(a,c,d,g,e,p){a=null===a?b.$swipeCur:a;var f=
a.is(t.add(b.$s))?b.can:b.pag;c=g?c:-c*f.sTranslate+f.xCanvas;e=e||b.speed[k.idCur];p=p||b.easing;c=G.LimitInCarouselX(c);f.xCanvas=c;c="hor"===f.dirs?{x:c}:{y:c};g=q.GetTween(a);d?g.css(a,c):g.animate(a,c,{isNew:!0,duration:e,easing:p})},LimitInCarouselX:function(c){if("line"==b.layout&&!a.loop&&b.$swipeCur.is(b.$canvas)){var d=b.can;c>d.xMin?c=d.xMin:c<d.xMax&&(c=d.xMax)}return c},TranslateX:function(c,d,g,e,p){d=g?d:d*b.can.sTranslate;m.isNumeric(e)&&(d+=e);e=(void 0===p?a.dirsHor:p)?{x:d}:{y:d};
q.GetTween(c).css(c,e)},Balance:function(c,d,g){if(a.loop){var e=0<b.nMove,p=e?{s:1,id0:0,idN:v-1}:{s:-1,id0:v-1,idN:0};d=d?1:q.A(b.nMove);p.speed=void 0===g?b.speed[k.idCur]:g;p.isNext=e;p.isContinuity=c;for(u=0;u<d;u++){c=b.idMap[p.id0];g=b.$s.eq(c);var n=b.pBegin[p.idN]+b.can.sTranslate*p.s,t={};"basic"==b.view||"mask"==b.view?(t[z]=q[a.dirsHor?"Tlx":"Tly"](n),g.css(t)):"coverflow3D"==b.view&&(t=f.coverflow3D,b.tweenSlide.css(g,{x:n,z:-(t.isDeepMulti?t.zDeep*((e?b.center.nRight:b.center.nLeft)+
1):t.zDeep),rotateY:-t.rotate*p.s}));q.Shift(b.idMap,e);q.Push(b.idMap,c,e);q.Shift(b.pBegin,e);q.Push(b.pBegin,n,e);c="Balance"+b.View;J[c]&&J[c](p)}}},FillHole:function(){if(a.loop){b.$slClone.length&&b.$slClone.remove();b.$slClone=m("");var c=b.center,d=(0<b.nMove?c.nLeft:c.nRight)-c.nEdge,c=q.A(b.nMove);if(c>d){for(u=d;u<c;u++){var d=b.$s.eq(0<b.nMove?b.idMap[u]:b.idMap[v-1-u]),g=d.clone().addClass(b.deactived).removeClass(b.ns+f.current).appendTo(t);q.Data(g,{$slSource:d});b.$slClone=b.$slClone.add(g)}c=
"FillHole"+b.View;J[c]&&J[c]();clearTimeout(e.fillHole);e.fillHole=setTimeout(function(){b.$slClone.remove()},b.speed[k.idCur]+10)}}},AnimRebound:function(c){function d(){G.AnimateX(null,n,0,1)}if(f.isAnimRebound){var g=b.can,p="next"==c;c=p?-1:1;var n=p?g.xMax:g.xMin,g=130*c+n,p=t.css(z),p=a.tf?"none"==p?n:q.ValueX(p):"auto"==p?n:q.PInt(p),p=30*c+p;p/c>g/c?d():(G.AnimateX(null,p,0,1,150),clearTimeout(e.rebound),e.rebound=setTimeout(d,150))}},Flywheel:function(){var a=t.is(b.$swipeCur),c=a?b.can:
b.pag;a||(a=b.tDrag1-b.tDrag0,0>b.xBuffer&&b.xBuffer>c.xMax&&200>a&&10<q.A(b.xOffset)&&(a=b.xBuffer+(b.pageX1-b.x0Fix),0<a+50?a=0:a-50<c.xMax&&(a=c.xMax),E.TranslateTo(a)))},CanvasBegin:function(){var c=b.layout,d=b.can,g=0;"line"==c&&a.center&&(g=a.dirsHor?b.wSlide:q.OuterHeight(b.$s.eq(k.idCur),!0),g=q.R((b.sRuby-g)/2));d.xCanvas=g;"dot"==c?d.xMin=d.xMax=0:"line"==c&&(d.xMin=g,c=q.Sum(b.sSlideMap)-(b.ma[0]+b.ma[1]),d.xMax=b.wRuby<c?-(c-b.wRuby+g):g);b.$swipeCur=t;a.loop?G.AnimateX(null,g,!0,!0):
G.AnimateX(null,k.idCur,!0)}},F={Margin:function(){var c=1E5,d=null,e=b.maRange,p=b.wRuby,f=g.width();if(b.maRange)for(u=e.num-1;0<=u;u--)e[u].from<=f&&f<=e[u].to&&c>=e[u].to&&(c=e[u].to,d=u);b.ma=null!==d?[q.PPercent(e[d].left,p),q.PPercent(e[d].right,p)]:[0,0];b.maRange||(a.dirsHor&&b.wRuby!==q.InnerWidth(y)&&(b.ma[0]=q.PInt(y.css("padding-left")),b.ma[1]=q.PInt(y.css("padding-right"))),a.dirsHor||b.hRuby===q.InnerHeight(y)||(b.ma[0]=q.PInt(y.css("padding-top")),b.ma[1]=q.PInt(y.css("padding-bottom"))))},
TranslateS:function(){F.Margin();b.wSlideFull=b.can.sTranslate=b.wSlide+b.ma[0]+b.ma[1]},WidthForRuby:function(){a.pag&&b.pagVer&&(!b.pag.maRight&&E.GetSizeOfItems(),E.MarginOnViewport());b.wRuby=q.Width(y);var c=null;a.dirsHor?(c=q.GetValueInRange(b.sSlideRange,"width"),0<c&&1>=c&&(c*=b.wRuby)):c=b.wRuby;b.wSlide=q.PInt(c)},HeightLockForAnim:function(){y.css("height",q.Height(y));clearTimeout(e.heightLock);e.heightLock=setTimeout(function(){y.css("height","")},f.speedHeight+10)},AnimHeightForRuby:function(c){function d(g){b.hRuby=
g;a.dirsHor||(b.sRuby=g);null===f.speedHeight||c?q.Scroll.Check():b.tweenView.animate(y,{height:g},{isNew:!0,duration:f.speedHeight-30,complete:function(){y.css("height","");q.Scroll.Check()}})}var g=q.OuterHeight(b.$s.eq(k.idCur),!0);setTimeout(function(){!a.heightFixed&&(b.hRuby!=g&&0<g||c)&&(d(g),!a.pag||a.pagList||"ver"!=b.pag.dirs||a.pagOutside||"full"!=f.pag.sizeAuto||E.PropAndStyle())},30)},HeightAutoForRuby:function(a){b.hRuby=q.PInt(a)},HeightFixedForRuby:function(){function c(a){y.css("height",
a)}if(f.isFullscreen){var d=g.height();if(null!==f.offsetBy){var e=0,p=!1,n=m(f.offsetBy);n.each(function(){e+=q.OuterHeight(m(this),!0)});n.find("img").length&&(p=!0);d-=e;if(p)g.on("load",function(){k.refresh()})}b.hRuby=d;c(b.hRuby)}else b.hRes?(b.hRuby=q.R(b.hRes*b.rate),c(b.hRuby)):(d=q.Height(y),a.heightFixed&&d!=f.height&&(d=f.height,c(d)),d||(d=0),b.hRuby=d)},EndOfRuby:function(){b.wSlide!==q.Width(y)&&(F.WidthForRuby(),a.res&&T.UpdateVars(),a.heightFixed?F.HeightFixedForRuby():F.HeightAutoForRuby(q.OuterHeight(b.$s.eq(k.idCur),
!0)));b.sRuby=a.dirsHor?b.wRuby:b.hRuby}},M={CombineAtFirst:function(){if("line"==b.layout||"dot"==b.layout)b.sCanvas=a.dirsHor?b.wSlide:b.wRuby,t.css("width",b.sCanvas);F.TranslateS();if("line"==b.layout){if(a.centerLoop){for(var c=0,d=0;c<b.wRuby;)c=(b.wSlide+b.ma[0]+b.ma[1])*(2*d+1),d++;c=d-1;2*c>=v&&(c=~~((v-1)/2));b.center.nEdge=c}c="TFSlide"+b.View;J[c]&&J[c]()}G.CanvasBegin();a.pag&&!a.pagList&&(E.PropAndStyle(),E.PosAndSizeOfItems(),E.UpdateThumbnail(),f.pag.isMark&&E.SizePosOfMark(),E.PosCenterForItemCur(!0,
!0),setTimeout(function(){E.VerToHor()},40))},SlideBasic:function(){function c(a){return q.OuterHeight(b.$s.eq(a),!0)+b.ma[0]+b.ma[1]}var d=b.pBegin=[],g=b.sSlideMap=[],e=a.centerLoop?b.center.nLeft:0;if(a.dirsHor)for(u=0;u<v;u++)g[u]=b.wSlideFull,d[u]=g[u]*(-e+u);else if(a.centerLoop){var p=0,f=0;for(u=e;u<v;u++)g[u]=c(b.idMap[u]),d[u]=p,p+=g[u];for(u=e-1;0<=u;u--)g[u]=c(b.idMap[u]),f-=g[u],d[u]=f}else for(u=0;u<v;u++)3[u]=c(u),d[u]=g[u]*u}},J={TFSlideBasic:function(){M.SlideBasic();var c=b.can,
d="hor"==c.dirs?"Tlx":"Tly";b.tfMap=[];for(u=0;u<v;u++){var g=a.centerLoop?b.idMap[u]:u,e={};e[c.cssTf]=q[d](b.pBegin[u]);b.tfMap.push(e);b.$s.eq(g).css(e)}}},la={SlideLoaded:function(){J.TFSlideBasic();"line"==b.layout&&G.CanvasBegin()}},L={Run:function(c,d,g,e){var p=k.idCur;if(!d&&c<=k.num||d&&p!==c){b.ts={num:c,isIDFixed:!!d,isContinuity:!!g,isPagCenter:void 0===e?!0:!!e};a.fxRun=!0;l.addClass(b.ns+"fxRun");a.slideNext=d?0<c-k.idCur:0<c;k.ev.trigger("fxBegin");q.Data(b.$s.eq(p)).isLoaded&&(a.HOTSPOT&&
O.Reset(p),a.LAYER&&I.Reset(p),a.VIDEOIFRAME&&V.SlideDeactived(p),a.LAYERPARALLAX&&R.Reset(p),a.VIDEOBACK&&N.Run("pause"));a.slideshow&&K.Go("slideToBegin");d?0==c&&k.ev.trigger("start"):(0==p+c||0==p+c-v)&&k.ev.trigger("start");k.ev.trigger("before");d&&(b.ts.num-=p);var n;"swipe"==b.moveBy&&"swipe"!=b.moveLastBy?n=f.swipe.easing:"tap"==b.moveBy&&"tap"!=b.moveLastBy&&(n=f.fxEasing);n&&(b.easing=n,b.moveLastBy=b.moveBy);L[b.layout]()}},line:function(){var c=b.ts;L.ToggleID();!a.heightFixed&&F.AnimHeightForRuby();
clearTimeout(e.lineEnd);e.lineEnd=setTimeout(L.End,b.speed[k.idCur]);if(a.dirsHor)a.centerLoop?(c.isIDFixed&&G.FillHole(),G.Balance(c.isContinuity),!c.isContinuity&&G.AnimateX(t,c.num)):(!c.isContinuity&&G.AnimateX(t,c.num),"3d"==b.fxType&&(c="Restore"+b.View,J[c]&&J[c]()));else if(a.centerLoop&&1==q.A(c.num)){var d=-((q.OuterHeight(b.$s.eq(0<c.num?k.idLast:k.idCur),!0)+b.ma[0]+b.ma[1])*c.num-b.can.xCanvas);G.Balance(c.isContinuity);!c.isContinuity&&G.AnimateX(t,d,!1,!0)}},dot:function(){var c=b.ts;
"math"==b.fxType&&(c.isDelayWhenToggleID=!0);L.ToggleID();!a.heightFixed&&F.AnimHeightForRuby();ga.Init()},ToggleID:function(){!a.heightFixed&&null!==f.speedHeight&&F.HeightLockForAnim();var c=b.ts,d=k.idCur,g=b.nMove=c.num;k.idLast=d;d+=g;a.loop&&(0>g&&0>d?d=v+d:0<g&&d>=v&&(d-=v));k.ev.trigger("beforeSwapIDCur");k.idCur=d;k.ev.trigger("afterSwapIDCur");c.isDelayWhenToggleID?setTimeout(q.ToggleSlide,10):q.ToggleSlide();L.AfterToggleID()},AfterToggleID:function(){a.pag&&!a.pagList&&b.ts.isPagCenter&&
("swipe"==b.moveBy||"tap"==b.moveBy&&f.pag.isItemCurCenterWhenTap||"ver"==b.pag.dirs)&&E.PosCenterForItemCur("ver"==b.pag.dirs?!0:!1);a.VIDEOBACK&&N.Run("play")},End:function(){var c=k.idCur;a.fxRun=!1;l.removeClass(b.ns+"fxRun");k.ev.trigger("fxEnd");a.LAYER&&(I.Update(c),I.Play(c),I.Resume("home"));a.HOTSPOT&&O.UpdatePosition(c);a.LAYERPARALLAX&&R.ToggleEvent(c);k.ev.trigger("after");c==v-1&&k.ev.trigger("end");a.slideshow&&(a.hoverAction=!0,f.slideshow.isLoop||k.idLast!=v-1||0!=c?K.Go("slideToEnd"):
k.pause())}},H={Setup:function(){a.NAV&&P.EventTap();a.PAG&&E.EventTap();a.SLIDESHOW&&(K.EventHover(),K.EventTap());H.Keyboard();H.Wheel({$wheel:y,direction:b.can.dirs,optsWheel:f.wheel});a.PAG&&H.Wheel({$wheel:b.$pag,direction:b.pag.dirs,optsWheel:f.pag.wheel});a.DEEPLINKING&&U.Events();H.Resize()},GetEventRight:function(c){var a=c;/^touch/.test(c.type)?a=c.originalEvent.touches[0]:/pointer/i.test(c.type)&&(a=c.originalEvent);return a},DelayToTapNext:function(){a.tapEnable=!1;setTimeout(function(){a.tapEnable=
!0},10)},PrevCore:function(c){b.moveBy="tap";a.loop&&1<k.num||!a.loop&&0<k.idCur?L.Run(-(c||1)):G.AnimRebound("prev")},NextCore:function(c){b.moveBy="tap";a.loop&&1<k.num||!a.loop&&k.idCur<v-1?L.Run(c||1):G.AnimRebound("next")},Prev:function(){a.tapEnable&&(H.PrevCore(f.stepNav),H.DelayToTapNext())},Next:function(c){a.tapEnable&&(H.NextCore(c?f.stepPlay:f.stepNav),H.DelayToTapNext())},Keyboard:function(){c.off(b.ev.key);if(f.isKeyboard)c.on(b.ev.key,function(c){q.Scroll.Check(!0);a.into&&(c=c.keyRuby,
37==c?H.PrevCore(1):39==c&&H.NextCore(1))})},Wheel:function(c){function d(b,g){function e(c){0!==c&&void 0!==c&&(p+=0<c?c:-c,f=!0)}var p=t.delta,f=!1;a.firefox&&(b*=20,g*=20);switch(c.optsWheel){case "auto":"hor"==c.direction?e(b):e(g);break;case "both":e(b||g)}-300>=p?(H.PrevCore(1),p=0,t.type=null):300<=p&&(H.NextCore(1),p=0,t.type=null);t.delta=p;return f}var g="."+b.ns+b.rubykey,e="wheel"+g,g="mousewheel"+g,p=c.$wheel;if(c.$wheel){p.off(e+" "+g);var n=q.Data(p);n.wheelValue||(n.wheelValue={type:null,
delta:0});var t=n.wheelValue;if(!1!==f.wheel)p.on(g+" "+e,function(c){var a=c.type;c=c.originalEvent;if(null===t.type||t.type==a)if(null===t.type&&(t.type=a),d(c.wheelDeltaX||c.deltaX||0,c.wheelDeltaY||c.deltaY||0))return!1})}},LoadAll:function(){k.ev.off("loadAll").on("loadAll",function(){a.res&&b.rateInit!=b.rate&&k.refresh()});g.on("load",function(c){setTimeout(k.refresh,100)})},Resize:function(){g.off(b.ev.resize);g.on(b.ev.resize,function(){clearTimeout(e.resize);e.resize=setTimeout(function(){f.isFullscreen&&
(b.hRuby=g.height());a.slideshow&&!a.ssPauseAbsolute&&q.Scroll.Check();f.showInRange&&a.DISPLAY&&W.Toggle();!a.showInRange||q.Width(y)===b.wRuby&&q.Height(y)===b.hRuby||A.Resize()},100)});clearInterval(e.resizeLoop);e.resizeLoop=setInterval(function(){var c=q.OuterHeight(b.$s.eq(k.idCur),!0),d=q.Width(y);a.fxRun||a.swiping||d==b.wRuby&&c==b.hRuby||A.Resize()},f.delayUpdate)}},ga={Init:function(c){c=b.fxType;var a="ToSlide"+b.View;if("math"==c&&J[a])J[a]();else if(/^css/.test(c)&&J[a])J[a]();else ga.none()},
End:function(c){null===c?L.End():(m.isNumeric(c)||(c=b.speed[k.idCur]),clearTimeout(e.fxEnd),e.fxEnd=setTimeout(L.End,c))},none:function(){L.End()}},ba={prev:function(c){H.PrevCore(c)},next:function(c){H.NextCore(c)},first:function(){L.Run(0,!0)},last:function(){L.Run(v-1,!0)},"goto":function(c){function a(c){c.length&&b.$s.is(c)&&(c=q.Data(c).id,m.isNumeric(c)&&L.Run(c,!0))}m.isNumeric(c)&&(c=q.PInt(c));0<=c&&c<v?L.Run(c,!0):"string"===typeof c?(c=m(c),a(c)):c instanceof jQuery&&a(c)},play:function(){a.slideshow&&
K.Api("play")},pause:function(){a.slideshow&&K.Api("pause")},stop:function(){a.slideshow&&K.Api("stop")},playLayer:function(){a.LAYER&&I.Play(k.idCur)},pauseLayer:function(){a.LAYER&&I.Pause(k.idCur)},resumeLayer:function(){a.LAYER&&I.Resume(k.idCur)},update:function(c,g){d.oo=r=m.extend(!0,{},f);d.vava=n=m.extend(!0,{},b);d.isis=p=m.extend(!0,{},a);f=m.extend(!0,f,c);b.optsUpdate=c;a.awake&&!g&&k.refresh();b.optsUpdate=b.addInfo=null},updateOnSlides:function(c){m.isPlainObject(c)&&(b.optsSlides=
c,k.refresh(),b.optsSlides=null)},refresh:function(){w.MergeAllModules();A.RemoveClass();b.name=f.name||l.attr("id")||null;a.RUBYANIMATE&&X.UpdateAllKeyframes();w.Ruby();a.SLIDESHOW&&K.RenderControl();a.TIMER&&Y.Render();a.NAV&&P.Render();a.PAG&&E.RenderSelf();a.CAP&&S.Render();w.Slides();C.IDMap();w.DeepLinkCookie();q.ToggleSlide();A.Reset();A.Resize();D.Other();H.Setup();a.APIREMOTE&&Z.Init();a.SLIDESHOW&&K.UpdateAll()},destroy:function(d){a.SWIPE&&fa.Events(!1);var p=b.ev.mouse.end+" "+b.ev.swipe.end+
" "+b.ev.click;f.isNav&&b.$prev.add(b.$next).off(p);f.isPag&&b.$pagItem.off(p);c.off(b.ev.key);y.off(b.ev.wheel);clearInterval(e.resizeLoop);g.off(b.ev.resize);f.isSlideshow&&(clearInterval(e.timer),g.off(b.ev.scroll),this.stop());d&&(l.removeData(rt01VA.rubyName),b.$nav&&b.$nav.remove(),b.$pag&&b.$pag.remove(),f.isCap&&b.$cap.remove(),f.isSlideshow&&(b.$timer&&b.$timer.remove(),b.$playpause&&b.$playpause.remove(),b.$ssControl&&b.$ssControl.remove()),rt01VA.$ruby=rt01VA.$ruby.not(l),l.remove())},
restore:function(){x.Load()},width:function(){return b.wRuby},height:function(){return b.hRuby},slideLength:function(){return v},slideCur:function(){return b.$s.eq(k.idCur)},slideAll:function(){return b.$s},opts:function(){return f},optsCur:function(){return q.Data(k.idCur).opts},variable:function(){return b},browser:function(){return a.browser},isMobile:function(){return a.mobile},isTransform:function(){return a.tf},isTransition:function(){return a.ts},ev:m("<div/>")},fa,T,P,E,S,Q,N,V,ea,O,I,ha,
R,X,K,Y,ia,W,U,da,aa,ja,ca,Z;x.Check()};m.fn[rt01VA.rubyName]=function(){var l=arguments,h=rt01VA.rubyName,k=null;m(this).each(function(){var b=m(this),a=b.data(h);void 0===l[0]&&(l[0]={});if(m.isPlainObject(l[0]))a?m.isEmptyObject(l[0])||a.update(l[0]):new m[h](b,l[0]),k=b.data(h);else try{a[l[0]](l[1])}catch(e){window.console&&console.warn("["+h+": function not exist!]")}});return k};rt01MODULE.AUTOINIT=function(l){l.each(function(){var h=m(this),k=h.data(rt01VA.rubyData)||{},b=rt01VA.rubyName,
a=!0;if(!m.isPlainObject(k)||!m.isEmptyObject(k)){if("string"===typeof k){var e='main options on "data-XX" not valid'.replace(/XX/,rt01VA.rubyData),k=rt01VA.M.StringToJson(k,e);m.isEmptyObject(k)&&(a=!1)}k=k.isAutoInit;void 0===k&&(k=rt01VA.optsDefault.isAutoInit);a&&k&&!h.data(b)?h[b]():h.addClass(rt01VA.namespace+"none")}})};m(document).ready(function(){rt01MODULE.AUTOINIT(m("."+rt01VA.namespace))})})(jQuery);
(function(m){m.GSGDEasing=m.GSGDEasing||{def:"easeOutQuad",swing:function(l,h,k,b,a){return m.GSGDEasing[m.GSGDEasing.def](l,h,k,b,a)},easeInQuad:function(l,h,k,b,a){return b*(h/=a)*h+k},easeOutQuad:function(l,h,k,b,a){return-b*(h/=a)*(h-2)+k},easeInOutQuad:function(l,h,k,b,a){return 1>(h/=a/2)?b/2*h*h+k:-b/2*(--h*(h-2)-1)+k},easeInCubic:function(l,h,k,b,a){return b*(h/=a)*h*h+k},easeOutCubic:function(l,h,k,b,a){return b*((h=h/a-1)*h*h+1)+k},easeInOutCubic:function(l,h,k,b,a){return 1>(h/=a/2)?b/
2*h*h*h+k:b/2*((h-=2)*h*h+2)+k},easeInQuart:function(l,h,k,b,a){return b*(h/=a)*h*h*h+k},easeOutQuart:function(l,h,k,b,a){return-b*((h=h/a-1)*h*h*h-1)+k},easeInOutQuart:function(l,h,k,b,a){return 1>(h/=a/2)?b/2*h*h*h*h+k:-b/2*((h-=2)*h*h*h-2)+k},easeInQuint:function(l,h,k,b,a){return b*(h/=a)*h*h*h*h+k},easeOutQuint:function(l,h,k,b,a){return b*((h=h/a-1)*h*h*h*h+1)+k},easeInOutQuint:function(l,h,k,b,a){return 1>(h/=a/2)?b/2*h*h*h*h*h+k:b/2*((h-=2)*h*h*h*h+2)+k},easeInSine:function(l,h,k,b,a){return-b*
Math.cos(h/a*(Math.PI/2))+b+k},easeOutSine:function(l,h,k,b,a){return b*Math.sin(h/a*(Math.PI/2))+k},easeInOutSine:function(l,h,k,b,a){return-b/2*(Math.cos(Math.PI*h/a)-1)+k},easeInExpo:function(l,h,k,b,a){return 0==h?k:b*Math.pow(2,10*(h/a-1))+k},easeOutExpo:function(l,h,k,b,a){return h==a?k+b:b*(-Math.pow(2,-10*h/a)+1)+k},easeInOutExpo:function(l,h,k,b,a){return 0==h?k:h==a?k+b:1>(h/=a/2)?b/2*Math.pow(2,10*(h-1))+k:b/2*(-Math.pow(2,-10*--h)+2)+k},easeInCirc:function(l,h,k,b,a){return-b*(Math.sqrt(1-
(h/=a)*h)-1)+k},easeOutCirc:function(l,h,k,b,a){return b*Math.sqrt(1-(h=h/a-1)*h)+k},easeInOutCirc:function(l,h,k,b,a){return 1>(h/=a/2)?-b/2*(Math.sqrt(1-h*h)-1)+k:b/2*(Math.sqrt(1-(h-=2)*h)+1)+k},easeInElastic:function(l,h,k,b,a){l=1.70158;var e=0,f=b;if(0==h)return k;if(1==(h/=a))return k+b;e||(e=.3*a);f<Math.abs(b)?(f=b,l=e/4):l=e/(2*Math.PI)*Math.asin(b/f);return-(f*Math.pow(2,10*--h)*Math.sin(2*(h*a-l)*Math.PI/e))+k},easeOutElastic:function(l,h,k,b,a){l=1.70158;var e=0,f=b;if(0==h)return k;
if(1==(h/=a))return k+b;e||(e=.3*a);f<Math.abs(b)?(f=b,l=e/4):l=e/(2*Math.PI)*Math.asin(b/f);return f*Math.pow(2,-10*h)*Math.sin(2*(h*a-l)*Math.PI/e)+b+k},easeInOutElastic:function(l,h,k,b,a){l=1.70158;var e=0,f=b;if(0==h)return k;if(2==(h/=a/2))return k+b;e||(e=.3*a*1.5);f<Math.abs(b)?(f=b,l=e/4):l=e/(2*Math.PI)*Math.asin(b/f);return 1>h?-.5*f*Math.pow(2,10*--h)*Math.sin(2*(h*a-l)*Math.PI/e)+k:f*Math.pow(2,-10*--h)*Math.sin(2*(h*a-l)*Math.PI/e)*.5+b+k},easeInBack:function(l,h,k,b,a,e){void 0==e&&
(e=1.70158);return b*(h/=a)*h*((e+1)*h-e)+k},easeOutBack:function(l,h,k,b,a,e){void 0==e&&(e=1.70158);return b*((h=h/a-1)*h*((e+1)*h+e)+1)+k},easeInOutBack:function(l,h,k,b,a,e){void 0==e&&(e=1.70158);return 1>(h/=a/2)?b/2*h*h*(((e*=1.525)+1)*h-e)+k:b/2*((h-=2)*h*(((e*=1.525)+1)*h+e)+2)+k},easeInBounce:function(l,h,k,b,a){return b-m.GSGDEasing.easeOutBounce(l,a-h,0,b,a)+k},easeOutBounce:function(l,h,k,b,a){return(h/=a)<1/2.75?7.5625*b*h*h+k:h<2/2.75?b*(7.5625*(h-=1.5/2.75)*h+.75)+k:h<2.5/2.75?b*(7.5625*
(h-=2.25/2.75)*h+.9375)+k:b*(7.5625*(h-=2.625/2.75)*h+.984375)+k},easeInOutBounce:function(l,h,k,b,a){return h<a/2?.5*m.GSGDEasing.easeInBounce(l,2*h,0,b,a)+k:.5*m.GSGDEasing.easeOutBounce(l,2*h-a,0,b,a)+.5*b+k},linear:function(l,h,k,b,a){return h/a}}})(jQuery);
(function(m){function l(n){function p(c,a){if("string"==typeof a)if(/px$/.test(a))a=parseFloat(a);else if(/\%$/.test(a)){var d=h.percentRef[c];void 0!==d&&(a=g.size[d]*parseFloat(a)/100)}return a}var d=this,g={},c={},t={};d.next=function(d){for(var b=c.opts,e=!1,k=!1,l=c.tCur=h.tsCur-c.tsInit,r=0,w=b.length;r<w;r++){var A=b[r];if(l<A.tPlay&&0==r){d?(g.optsPos=r,g.xCur=0):g.xCur=null;break}else if(l>A.tEnd&&r==w-1){g.optsPos=r;g.xCur=1;k=!0;break}else if(A.tPlay<=l&&l<=A.tEnd){g.optsPos=r;g.xCur=m.GSGDEasing[A.easing](null,
l-A.tPlay,0,1,A.duration);e=!0;break}else if(b[r+1]&&A.tEnd<l&&l<b[r+1].tPlay){g.optsPos=r;g.xCur=1;break}}if(null!==g.xCur&&b.length){g.size={OuterWidth:a.OuterWidth(n),OuterHeight:a.OuterHeight(n)};t={};d=c.opts[g.optsPos];for(var B in d.styleBegin){r=d.styleBegin[B];w=d.styleEnd[B];if(m.isArray(r)){for(var l=B,A=[],D=0,C=w.length;D<C&&(!(2<=D)||h.isTf3D);D++){var G=p(l+D,w[D]),F=p(l+D,r[D]);void 0===F&&(F=G);A.push(Math.round(10*(F+(G-F)*g.xCur))/10+"px")}l=A.join(" ")}else r=p(B,r),w=p(B,w),m.isNumeric(r)&&
m.isNumeric(w)?(l=r,r=(w-l)*g.xCur,r=-1!==m.inArray(B,["opacity"])?Math.round(1E3*r)/1E3:Math.round(10*r)/10,l+=r):l=r;d.isClearStyleDefault&&h.styleDefault[B]===l&&(l="");t[B]=l}d=c.opts[g.optsPos];l=d.tfBegin;r=d.tfEnd;B={};for(var M in r)w=f.ConvertValueToPX(n,M,l[M]),A=(f.ConvertValueToPX(n,M,r[M])-w)*g.xCur,B[M]=w+A;M=f.ToCss(B,d);t[h.prefix+"transform"]=M;c.tfCur=B;n.css(t)}k&&(A=b[g.optsPos],A.complete&&A.complete());return e};(function(){g.rubyID=r.GetRubyID(n);c=d.data=b[g.rubyID];void 0==
c.tsInit&&(c.tsInit=h.tsCur);var p=c.prop,t=c.opts;g.propEnd=p[p.length-1];g.optsEnd=t[t.length-1];var p=g.optsEnd.styleBegin,t=g.optsEnd.styleEnd,k=c.opts,l=1<k.length,x;for(x in g.propEnd)if(-1===m.inArray(x,h.nameTf)){var q=g.propEnd[x];t[x]=a.ParseCssStyle(q);-1!==m.inArray(x,h.propFixed)?p[x]=t[x]:(q=n.css(x),p[x]=a.ParseCssStyle(q))}l&&(p=m.extend(p,k[k.length-2].styleEnd));null!==c.cssStyle&&(p=m.extend(!0,p,c.cssStyle),c.cssStyle=null);for(x in p)void 0===t[x]&&(t[x]=p[x]);x=c.opts;1<x.length?
x=m.extend({},x[x.length-2].tfEnd):(x=c.tfCur,void 0==x&&(x=e.getFromItem(n),x=e.parse(x)));null!==c.cssTf&&(x=m.extend(!0,x,c.cssTf),c.cssTf=null);var p=f.FromProp(g.propEnd),p=f.Extend(x,p,g.optsEnd),t=h.tfDefault,w;for(w in p)void 0===x[w]&&(p[w]!=t[w]?-1!==m.inArray(w,h.propFixed)?x[w]=p[w]:x[w]=t[w]:delete p[w]),x[w]==t[w]&&p[w]==t[w]&&(delete x[w],delete p[w]);g.optsEnd.tfBegin=x;g.optsEnd.tfEnd=p;(w=n.attr("style"))&&w.indexOf("overflow");g.optsEnd.start&&g.optsEnd.start()})()}window.rt00VA||
(window.rt00VA={fps:60,data:{},nTween:0,nameTf:"x y z rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skew skewX skewY perspectiveTF".split(" "),nameTf3D:["z","rotateZ","scaleZ","perspectiveTF"],tfDefault:{x:0,y:0,z:0,scale:1,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skew:0,skewX:0,skewY:0,skewZ:0,perspectiveTF:null},styleDefault:{opacity:1},propFixed:["perspectiveTF","overflow"],percentRef:{x:"OuterWidth",y:"OuterHeight",left:"OuterWidth",right:"OuterWidth",top:"OuterHeight",
bottom:"OuterHeight"},optsAnimDefault:{duration:1E3,delay:0,easing:"easeOutQuad",xParentOrigin:0,yParentOrigin:0,styleBegin:{},styleEnd:{},isFallbackTF:!0,isXYAlone:!1,isClearStyleDefault:!1,isClearTFDefault:!0,isTFOrderByEnd:!1,isNew:!1},optsCssDefault:{type:"reset"},nameOptsInherit:["xParentOrigin","yParentOrigin"]},window.rt00VA.GetData=function(a){var b=null,d=window.rt00VA.data,g;for(g in d)if(d[g].$item.is(a)){b=d[g];break}return b});var h=window.rt00VA,k={},b=h.data,a=m.extend({},rt01VA.M,
{GetSize:function(a){var b=0,d;for(d in a)void 0!==a[d]&&b++;return b},ToPI:function(a){return a*Math.PI/180},ProperCase:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},CamelCase:function(a){return a.replace(/-([a-z])/gi,function(a,d){return d.toUpperCase()})},CssCheck:function(b,p){var d=document.createElement("p").style,g=["Webkit","Moz","ms","O"],c=["-webkit-","-moz-","-ms-","-o-"],e=this.CamelCase(b);if(void 0!==d[e])return p?"":!0;for(var e=a.ProperCase(e),f=0,h=g.length;f<h;f++)if(void 0!==
d[g[f]+e])return p?c[f]:!0;return!1},ArrayMinToMax:function(a){a=m.extend([],a);for(var b=[],d,g,c=0,e=a.length;c<e;c++){g=a[0];d=0;for(var f=1;f<a.length;f++)g>a[f]&&(g=a[f],d=f);b.push(g);a.splice(d,1)}return b},ValidName:function(a,b){var d={},g;for(g in a)"originTF"==g?d[h.prefix+"transform-origin"]=a[g]:d[g]=a[g];if(!h.isTf3D)for(g in d)-1!==m.inArray(g,h.nameTf3D)&&delete d[g];if(!h.isTf){if(b.isFallbackTF)for(var c=["x","y"],e=["left","top"],f=0,k=c.length;f<k;f++)void 0!==d[c[f]]&&(d[e[f]]=
d[c[f]],delete d[c[f]]);for(g in d)-1!==m.inArray(g,h.nameTf)&&delete d[g]}c=[];for(g in h.optsAnimDefault)c.push(g);f=0;for(k=c.length;f<k;f++)g=d[c[f]],void 0!==g&&(b[c[f]]=g,delete d[c[f]]);return d},ParseCssStyle:function(a){if("string"==typeof a)if(2<=a.split(" ").length)a=a.split(" "),a=m.grep(a,function(a){return""!==a});else if(/px$/.test(a))a=parseFloat(a);else if(!/\%$/.test(a)){var b=parseFloat(a);isNaN(b)||(a=b)}return a},MergeOptions:function(a,b){var d=h.nameOptsInherit,g=b.length,c=
{};if(0<g)for(c=b[g-1],g=0,d=d.length;g<d;g++);return m.extend(!0,{},c,h.optsAnimDefault,a)}}),e={getFromItem:function(a){a=a.css(h.prefix+"transform");if(/^matrix(3d)?\(/i.test(a)){var b=a.indexOf("(")+1;a=a.substr(b,a.length-b-1).split(", ");for(var b=0,d=a.length;b<d;b++)a[b]=parseFloat(a[b]);return a}return[1,0,0,1,0,0]},getFromProp:function(b){var p=[1,0,0,1,0,0],d;for(d in b){var g=null;switch(d){case "x":g=[1,0,0,1,b[d],0];break;case "y":g=[1,0,0,1,0,b[d]];break;case "rotate":var c=a.ToPI(b[d]),
g=parseFloat(Math.cos(c).toFixed(5)),c=parseFloat(Math.sin(c).toFixed(5)),g=[g,c,-c,g,0,0];break;case "scale":g=[b[d],0,0,b[d],0,0];break;case "scaleX":g=[b[d],0,0,1,0,0];break;case "scaleY":g=[1,0,0,b[d],0,0];break;case "skew":case "skewX":case "skewY":0!=(b[d]-90)%180&&(c=a.ToPI(b[d]),c=parseFloat(Math.tan(c).toFixed(5)),"skew"==d?g=[1,0,c,1,0,0]:"skewX"==d?g=[1,0,c,1,0,0]:"skewY"==d&&(g=[1,c,0,1,0,0]))}null!==g&&(p=e.combine(p,g))}return p},propertyInherit:function(a,b,d){1==b[0]&&0==b[1]&&0==
b[2]&&1==b[3]&&void 0==d.rotate&&void 0==d.scale&&void 0==d.scaleX&&void 0==d.scaleY&&void 0==d.skew&&void 0==d.skewX&&void 0==d.skewY&&(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3]);0==b[4]&&void 0==d.x&&(b[4]=a[4]);0==b[5]&&void 0==d.y&&(b[5]=a[5]);return b},parse:function(a){var b={};b.x=a[4];b.y=a[5];0==a[1]&&0==a[2]&&(b.scaleX=a[0],b.scaleY=a[3]);1==a[0]&&1==a[3]&&(0!=a[2]&&(b.skewX=parseFloat((180*Math.atan(a[2])/Math.PI).toFixed(1))),0!=a[1]&&(b.skewY=parseFloat((180*Math.atan(a[1])/Math.PI).toFixed(1))));
a[0]==a[3]&&a[1]==-a[2]&&(b.rotate=parseFloat((180*Math.acos(a[0])/Math.PI).toFixed(1)));return b},combine:function(a,b){a=[a[0],a[1],0,a[2],a[3],0,a[4],a[5],1];b=[b[0],b[1],0,b[2],b[3],0,b[4],b[5],1];for(var d=[],g=0,c=b.length;g<c;g++){var e=g%3,f=~~(g/3);d[g]=a[e+0]*b[3*f+0];d[g]+=a[e+3]*b[3*f+1];d[g]+=a[e+6]*b[3*f+2]}return[d[0],d[1],d[3],d[4],d[6],d[7]]},toCss:function(a){var b={};b[h.prefix+"transform"]="matrix("+a.join(", ")+")";return b}},f={CheckValueDefault:function(a,b){var d=!0;if(b.isClearTFDefault)for(var g in a)d&&
a[g]!==h.tfDefault[g]&&(d=!1);else d=!1;return d?{}:a},Extend:function(a,b,d){if(d.isTFOrderByEnd)for(var g in a)void 0===b[g]&&(b[g]=a[g]);else b=m.extend(!0,{},a,b);a=b.perspectiveTF;void 0!==a&&(b=m.extend(!0,{perspectiveTF:a},b));return b},FromProp:function(a){var b={},d;for(d in a)-1!==m.inArray(d,h.nameTf)&&("scale"==d?b.scaleX=b.scaleY=a[d]:"skew"==d?b.skewX=a[d]:b[d]=a[d]);return b},ConvertValueToPX:function(b,e,d){var g="x y left right top bottom".split(" "),c="OuterWidth OuterHeight OuterWidth OuterWidth OuterHeight OuterHeight".split(" "),
f=function(d){var f=m.inArray(e,g);-1!==f&&(d=parseFloat(d),d=a[c[f]](b)*d/100,d=Math.round(d));return d},h=function(d,f){var t=m.inArray(e,g);if(-1!==t){var h=b.parent();if(f){var k=b.closest(f);k.length&&(h=k)}d=a[c[t]](h)*d/100;d=Math.round(d)}return d},k=/^[0-9\(\)\+\-\*\/\%\s]|(\{.+\})+$/;if("string"==typeof d&&k.test(d)&&200>d.length){var l=d.match(/\d+\.?\d*\%?\{.+\}/g);if(m.isArray(l))for(var k=0,r=l.length;k<r;k++){var x=l[k],q=parseFloat(x),w=/\d+\.?\d*\%\{(.+)\}/;if(w.test(x)){var w=x.match(w),
A=null;if(w&&w[1])try{m(w[1]),A=w[1]}catch(B){console&&console.warn(B)}q=h(q,A)}d=d.replace(x,q)}w=/\d+\.?\d*\%/g;h=d.match(w);if(m.isArray(h))for(k=0,r=h.length;k<r;k++)l=h[k],x=f(l),d=d.replace(l,x);/^[0-9\(\)\+\-\*\/\%\s]+$/.test(d)&&(d=eval(d))}return d},ToCss:function(a,b){a=f.CheckValueDefault(a,b);var d={},g;for(g in a){var c=/^(x|y|z)$/.test(g)?100:1E4,c=Math.round(a[g]*c)/c;/^(x|y|z)$/.test(g)?b.isXYAlone?("x"==g&&void 0!==a.x&&(d.x=c),"y"==g&&void 0!==a.y&&(d.y=c),"z"==g&&void 0!==a.z&&
(d.z=c)):(d.xy=d.xy||[0,0,0],"x"==g&&void 0!==a.x&&(d.xy[0]=c),"y"==g&&void 0!==a.y&&(d.xy[1]=c),"z"==g&&void 0!==a.z&&(d.xy[2]=c)):/^scale/.test(g)?(d.scale=d.scale||[1,1],"scaleX"==g&&void 0!==a.scaleX&&(d.scale[0]=c),"scaleY"==g&&void 0!==a.scaleY&&(d.scale[1]=c),"scaleZ"==g&&void 0!==a.scaleZ&&d.scale.push(c)):/^skew/.test(g)?(d.skew=d.skew||[0,0],"skewX"==g&&void 0!==a.skewX&&(d.skew[0]=c),"skewY"==g&&void 0!==a.skewY&&(d.skew[1]=c)):/^rotate/.test(g)?("rotate"==g&&void 0!==a.rotate&&(d.rotate=
c),"rotateX"==g&&void 0!==a.rotateX&&(d.rotateX=c),"rotateY"==g&&void 0!==a.rotateY&&(d.rotateY=c),"rotateZ"==g&&void 0!==a.rotateZ&&(d.rotateZ=c)):/^perspectiveTF$/.test(g)&&(d.perspectiveTF=c)}var c=k.tf3D,e="";for(g in d)if("xy"==g)e+=(c?"translate3d(_x_px, _y_px, _z_px) ":"translate(_x_px, _y_px) ").replace(/_x_/,d.xy[0]).replace(/_y_/,d.xy[1]).replace(/_z_/,d.xy[2]);else if("x"==g)e+="translateX(_x_px) ".replace(/_x_/,d.x);else if("y"==g)e+="translateY(_y_px) ".replace(/_y_/,d.y);else if("z"==
g)e+=(c?"translateZ(_z_px) ":"").replace(/_z_/,d.z);else if("scale"==g){var h=d.scale,l=(c&&3==h.length?"scale3d(_x_, _y_, _z_) ":"scale(_x_, _y_) ").replace(/_x_/,h[0]).replace(/_y_/,h[1]).replace(/_z_/,h[2]);2==h.length&&h[0]===h[1]&&(l="scale(_x_) ".replace(/_x_/,h[0]));e+=l}else"skew"==g?(h=d.skew,e=0===h[1]?e+"skew(_x_deg) ".replace(/_x_/,h[0]):e+"skew(_x_deg, _y_deg) ".replace(/_x_/,h[0]).replace(/_y_/,h[1])):"rotate"==g?e+="rotate(_x_deg) ".replace(/_x_/,d.rotate):"rotateX"==g?e+=(c?"rotateX(_x_deg) ":
"rotate(_x_deg) ").replace(/_x_/,d.rotateX):"rotateY"==g?e+=(c?"rotateY(_y_deg) ":"").replace(/_y_/,d.rotateY):"rotateZ"==g?e+=(c?"rotateZ(_z_deg) ":"").replace(/_z_/,d.rotateZ):"perspectiveTF"==g&&(e+=(c?"perspective(_x_px) ":"").replace(/_x_/,d.perspectiveTF));return e.replace(/\s+$/,"")}},r={CheckRubyID:function(a){var e=null,d;for(d in b)if(b[d].$item.is(a)){e=d;break}return e},GetRubyID:function(e){var f=r.CheckRubyID(e);if(null===f)for(var d=0,g=a.GetSize(b);d<=g;d++)if(void 0===b[d]){b[d]=
{$item:e,id:null,idDB:d,prop:[],opts:[],cssStyle:null,cssTf:null,isAnimate:!1};f=d;break}return f},Update:function(b,e,d){b=r.GetRubyID(b);b=h.data[b];e||(e={});d||(d={});d.isNew?(d=m.extend(!0,{},h.optsAnimDefault,d),b.prop=[],b.opts=[]):d=a.MergeOptions(d,b.opts);e=a.ValidName(e,d);b.prop.push(e);b.opts.push(d);return b},Delete:function(a){a=r.CheckRubyID(a);null!==a&&delete h.data[a]}};(function(){h.timeLoop=~~(1E3/h.fps);h.prefix=a.CssCheck("transform",!0);h.isTf=k.tf=a.CssCheck("transform");
h.isTf3D=k.tf3D=a.CssCheck("perspective");h.isTs=k.ts=a.CssCheck("transition");h.isOpacity=k.opacity=a.CssCheck("opacity");var b=h.prefix;h.percentRef[b+"transform-origin0"]="OuterWidth";h.percentRef[b+"transform-origin1"]="OuterHeight"})();window.RubyTween=function(){function e(){for(var a=0,b=c.animate.length;a<b;a++)c.animate[a].data.tsInit=c.tsInit}function p(){var a=c.dirs,b=c.tsCur;c.tsCur=h.tsCur=+new Date;"forward"==a?c.tCur=c.tsCur-c.tsInit:"reverse"==a&&(c.tCur-=c.tsCur-b,c.tsInit=c.tsCur-
c.tCur,e());for(var b=null,g=0,f=c.timeline.length;g<f;g++)if(c.timeline[g].time>c.tCur){b=g-1;break}null===b&&(b=c.timeline.length-1);c.timePosCur=b;"reverse"==a&&0>c.timePosCur?d():(b=c.timeline[c.timePosCur],g=0,"timeout"==b.type&&("forward"==a&&(g=b.delay-(c.tCur-b.time)),"reverse"==a&&(g=c.tCur-b.time)),c.animateCur=m.extend([],c.animate),"wait"==c.status?(clearTimeout(c.timer),"timeout"==b.type?c.timer=setTimeout(p,g):"interval"==b.type&&(c.timer=setInterval(d,h.timeLoop))):"pause"==c.status&&
("timeout"==b.type?(c.status="wait",c.timer=setTimeout(p,g)):"interval"==b.type&&(c.status="play",c.timer=setInterval(d,h.timeLoop))))}function d(){var a=c.dirs,b=c.animateCur.length;if(b){var d=c.tsCur;c.tsCur=h.tsCur=+new Date;"forward"==a?c.tCur=c.tsCur-c.tsInit:"reverse"==a&&(c.tCur-=c.tsCur-d,c.tsInit=c.tsCur-c.tCur,e());for(var d=0,f=c.animateCur.length;d<f;d++)c.animateCur[d].next()||b--,b||(clearInterval(c.timer),c.tCur<c.tMax?"forward"==a?(c.status="wait",p()):"reverse"==a&&(0<c.tCur?(c.status=
"wait",p()):(c.dirs="forward",g.go(0),c.evComplete&&c.evComplete())):c.tCur>=c.tMax&&(c.status="pause",c.evComplete&&c.evComplete()))}else clearInterval(c.timer)}var g=this,c=g.tw={id:h.nTween++,$items:m(),data:[],animate:[],tsInit:+new Date,tCur:0,tMax:Number.MAX_VALUE,status:"pause",dirs:"forward",timeline:[],timeData:[],timeRef:{},timePosCur:0,timeTypeCur:null};g.animate=function(b,d,e,f){if(!b||!b.length)return g;c.tsCur=h.tsCur=+new Date;c.tCur=c.tsCur-c.tsInit;var k=r.Update(b,d,e);e||(e=k.opts[k.opts.length-
1]);e.isNew&&(k.tweenID=null);k.isAnimate=!0;var n=k;void 0===n.tweenID?n.tweenID=c.id:n.tweenID!=c.id&&(e.isNew=!0,n.tsInit=c.tsCur,n.tCur=0,n=r.Update(b,d,e),n.tweenID=c.id);c.$items=c.$items.add(b);d=k.opts.length;n=k.opts[d-1];e=k.opts[d-2];n.tWait=1==d?0:e.tEnd;n.tPlay=n.tWait+n.delay;n.tEnd=n.tPlay+n.duration;-1===m.inArray(n.tWait,c.timeData)&&(c.timeData.push(n.tWait),c.timeRef[n.tWait]="wait");-1===m.inArray(n.tPlay,c.timeData)&&c.timeData.push(n.tPlay);c.timeRef[n.tPlay]="play";-1===m.inArray(n.tEnd,
c.timeData)&&(c.timeData.push(n.tEnd),c.timeRef[n.tEnd]="end");c.timeData=a.ArrayMinToMax(c.timeData);c.tMax=c.timeData[c.timeData.length-1];c.timeline=[];e="end";d=0;for(var q=c.timeData.length;d<q;d++){var w=c.timeData[d],A=c.timeData[d+1],B=c.timeRef[w],D=c.timeRef[A],n="end"==e&&"wait"==B,D="end"==B&&"play"==D;if(n||D){var C;if(n)for(n=d;n<q;n++)if("play"==c.timeRef[c.timeData[n]]){C=c.timeData[n];break}D&&(C=A);c.timeline.push({type:"timeout",time:w,delay:C-w})}/^(wait|end)$/.test(e)&&"play"==
B&&c.timeline.push({type:"interval",time:w});e=B}C=m.extend([],c.timeline);for(d=0;d<C.length;d++)if("timeout"==C[d].type)for(n=0,e=c.animate.length;n<e;n++)if(q=c.animate[n].data,q.tPlay<C[d].time&&C[d].time<q.tEnd){C.splice(d,2);d--;break}c.timeline=C;b=new l(b);a:{C=0;for(d=c.animate.length;C<d;C++)if(c.animate[C].data.$item.is(k.$item)){k=!0;break a}k=!1}!k&&c.animate.push(b);(void 0===f||f)&&p();return g};g.css=function(b,d,e){if(!b||!b.length)return g;e=m.extend(!0,{},h.optsCssDefault,e);var p=
e.type;if("reset"==p){d=m.extend({originTF:"",perspective:""},d);g.pause();e.isNew=!0;var k=r.Update(b,d,e);k.tweenID=null;p={};d=k.prop[0];e=k.opts[0];for(var l in d)-1===m.inArray(l,h.nameTf)&&(p[l]=d[l]);d=f.FromProp(d);k.tfCur=m.extend({},d);for(l in d)d[l]=f.ConvertValueToPX(b,l,d[l]);var n=f.ToCss(d,e);p[h.prefix+"transform"]=n;b.css(p);c.$items=c.$items.add(b)}else if(/^(point|inherit)$/.test(p)){k=r.GetRubyID(b);k=h.data[k];b={};n={};d=a.ValidName(d,e);for(l in d)e=d[l],-1===m.inArray(l,h.nameTf)?
b[l]=a.ParseCssStyle(e):n[l]=e;"point"==p&&(n=f.Extend(h.tfDefault,n,{isTFOrderByEnd:!0}));k.cssStyle=b;k.cssTf=n}return g};g.go=function(a,b){g.pause();var d=a*c.tMax/100;"ms"==b&&(d=a);var e=c.animate.length;if(0!=d||e)for(c.tCur=d,c.tsCur=h.tsCur=+new Date,c.tsInit=c.tsCur-c.tCur,d=0,e=c.animate.length;d<e;d++)c.animate[d].data.tsInit=c.tsInit,c.animate[d].next(!0);else for(d=0,e=c.$items.length;d<e;d++){var f=c.$items.eq(d),p=h.data[r.GetRubyID(f)];p.isAnimate||1!=p.prop.length||g.css(f,p.prop[0],
p.opts[0])}return g};g.pause=function(){/^(stop|pause)$/.test(c.status)||(clearTimeout(c.timer),clearInterval(c.timer),c.status="pause");return g};g.play=function(){!/^(wait|play)$/.test(c.status)&&c.animate.length&&(c.tsCur=h.tsCur=+new Date,c.tsInit=c.tsCur-c.tCur,e(),p());return g};g.resume=function(){g.go(c.tCur,"ms").play();return g};g.restart=function(){g.go(0).play();return g};g.reverse=function(){c.dirs="reverse";g.go(c.tCur,"ms");0>=c.tCur&&g.go(100);g.play();return g};g.reset=function(a){if(a){a=
0;for(var d=c.animate.length;a<d;a++)delete b[c.animate[a].data.idDB]}c.dirs="forward";c.tCur=0;c.animate=[];c.$items=m();c.evComplete=null;return g};g.clearDB=function(a){};g.eventComplete=function(a){c.evComplete=a;return g};g.complete=function(){g.go(100);c.evComplete&&c.evComplete();return g}}})(jQuery);
(function(m){function l(d){h=d;k=d.o;b=d.cs;a=d.va;e=d.is;f=d.M;r=d.VIEW;n=d.POSITION;p=f.Module("PAG")}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e,f,r,n,p;rt01MODULE.SWIPE={ToggleEvent:function(){l(this);h.Properties(f.Data(b.idCur).opts);e.swipeCur!=e.swipeLast&&h.Events(e.swipeCur?!0:!1);void 0!==e.swipeOnBodyLast&&e.swipeOnBodyCur!==e.swipeOnBodyLast&&h.Events(e.swipeOnBodyCur?"onBody":"offBody");e.swipeLast=e.swipeCur;e.swipeOnBodyLast=e.swipeOnBodyCur},Properties:function(a){l(this);
e.swipeCur=a.isSwipe;1==b.num&&(e.swipeCur=k.oneSlide.isSwipe?a.isSwipe:!1);e.swipeOnBodyCur=a.swipe.isBody;e.swipeCur?e.swipeOnPag=!0:e.swipeOnBodyCur=e.swipeOnPag=!1},Events:function(b){var g=this;l(g);var c=e.swipeSupport,p=a.ev.mouse,h=a.ev.swipe,n={offStart:function(c){c.removeClass(a.ns+"swipe-on").addClass(a.ns+"swipe-off").off(a.ev.mouse.start+" "+a.ev.swipe.start).off(a.ev.drag)},offMoveEnd:function(){var c=a.ev;a.$doc.off(c.mouse.move+" "+c.mouse.end+" "+c.swipe.move+" "+c.swipe.end)},offBody:function(){f.ToggleClass("grab",
-1);n.offStart(a.$viewport)},offPag:function(){e.swipePagCur=!1;f.ToggleClass("grab",-1,a.$pag);e.pag&&n.offStart(a.$pag)},onBody:function(){e.swipeOnBodyCur&&(n.offMoveEnd(),n.offBody(),f.ToggleClass("grab",0),g.EventStart(a.$viewport,a.$canvas,p),c&&g.EventStart(a.$viewport,a.$canvas,h))},onPag:function(){e.swipeOnPag&&e.pag&&(n.offMoveEnd(),n.offPag(),e.swipePagCur=!0,f.ToggleClass("grab",0,a.$pag),g.EventStart(a.$pag,a.$pagInner,p),c&&g.EventStart(a.$pag,a.$pagInner,h))}};if(!0===b)if(n.onBody(),
k.swipe.isAutoOnPag)!a.pag.isViewLarge&&n.onPag();else n.onPag();else if(!1===b)n.offBody(),n.offPag();else n[b]()},EventStart:function(d,g,c){l(this);var p=this,h=a.ns;d.addClass(h+"swipe-on").removeClass(h+"swipe-off");d.off(a.ev.drag).on(a.ev.drag,function(a){return!1});d.on(c.start,{swipeType:c.type},function(n){l(p);a.swipeDirs=null;var z=n.data.swipeType;null===a.swipeTypeCur&&(a.swipeTypeCur=z);var u=n.target,x=u.tagName.toLowerCase();if(x=-1===m.inArray(x,["input","textarea","label","a"])){var q=
"."+h+"swipe-prevent, ."+h+k.namePrev+", ."+h+k.nameNext;m(u).closest(q).length&&(x=!1,p.EventDragToggle(d,a.ev[z]))}x&&(u=m(u),q=u.closest("a"),q.length&&(q=q.closest("."+h+k.nameViewport),q.length&&q.is(a.$viewport)&&(x=!1)),x&&(u=u.closest("."+rt01VA.namespace).parent().closest("."+rt01VA.namespace),a.$ruby.is(u)&&(x=!1)));x&&!e.lockSwipe&&a.swipeTypeCur==z&&0<b.num&&(p.EventMoveEnd(a.ev[z]),a.$doc.one(c.end,{swipeType:c.type},function(a){p.is.iOS?setTimeout(function(){p.LastSetup(a,a.data.swipeType,
!1)},0):p.LastSetup(a,a.data.swipeType,!1)}),x=g.is(a.$canvas),a.tDrag0=a.tDrag1=+new Date,a.$swipeCur=g,f.GetTween(a.$swipeCur).go(100),u=f.SwapVaOnSwipe(),"3d"==a.fxType&&a.tweenSlide.go(100),q=p.EVENTS.GetEventRight(n),a.x0=a.x0Fix=a.pageX1=f.R(q[u.pageX]),a.y0=q.pageY,a.xOffset=a.xBuffer=0,a.xBuffer=u.xCanvas,e.swipeBegin=!0,a.nMoveEvent=0,a.$swipeCur.is(a.$canvas.add(a.$s))&&f.ToggleClass("grab",1),u="SwipeBegin"+a.View,x&&r[u]&&r[u](),"mouse"==z&&n.preventDefault())})},EventMoveEnd:function(d){var g=
this;m(document).on(d.move,{swipeType:d.type},function(c){l(g);var d=c.data.swipeType,p=a.$swipeCur.is(a.$canvas.add(a.$s));if(!e.lockSwipe&&a.swipeTypeCur==d){a.nMoveEvent||(p&&(e.swiping=!0),b.ev.trigger("swipeBegin"));a.nMoveEvent++;var h=g.EVENTS.GetEventRight(c),k=f.SwapVaOnSwipe();a.pageX0=a.pageX1;a.pageX1=f.R(h[k.pageX]);a.pageX0!=a.pageX1&&(a.xOffset=a.pageX1-a.x0,e.swipeNav=a.pageX1>a.pageX0?"right":"left","swipe"==d?(a.y=f.A(a.y0-h.pageY),null===a.swipeDirs&&f.A(a.xOffset)>=a.y&&(a.swipeDirs=
"chieuX"),null===a.swipeDirs&&5<a.y&&(a.swipeDirs="chieuY"),null===a.swipeDirs||"chieuX"==a.swipeDirs?(c.preventDefault(),g.XBuffer(a.pageX1)):g.Events("offMoveEnd")):g.XBuffer(a.pageX1));!p&&f.ToggleClass("grab",1,a.$pag);10<f.A(a.xOffset)&&e.tapEnable&&(e.tapEnable=!1)}})},LastSetup:function(d,g,c){l(this);var p=a.$swipeCur.is(a.$canvas.add(a.$s));e.lockSwipe||a.swipeTypeCur!=g||("swipe"!=g||c||d.preventDefault(),p&&(e.swiping=!1),!e.swipeBegin&&b.ev.trigger("swipeEnd"),a.tDrag1=+new Date,h.XNear(),
p?f.ToggleClass("grab",e.swipeOnBodyCur?0:-1):f.ToggleClass("grab",-1,a.$pag),k.isViewGrabStop&&f.ToggleClass("stop",-1));a.swipeTypeCur==g&&(a.swipeTypeCur=null);e.mobile?e.tapEnable=!0:setTimeout(function(){e.tapEnable=!0},10);h.Events("offMoveEnd")},EventDragToggle:function(b,e){var c=this;l(c);b.off(a.ev.drag);var f=e.end+"stopDrag";a.$doc.on(f,function(e){l(c);b.on(a.ev.drag,function(){return!1});a.$doc.off(f)})},XBuffer:function(d){function g(){if(m&&a.xBuffer>u.xMin||v&&a.xBuffer<u.xMax)w/=
e.mobile?4:8}l(this);d=a.layout;var c=a.view,n=b.idCur,m="right"==e.swipeNav,v="left"==e.swipeNav,z=a.$swipeCur.is(a.$canvas.add(a.$s)),u=z?a.can:a.pag,x=u.sTranslate,q=0>a.xOffset?1:-1,w=a.pageX1-a.pageX0,A=!0,B=!0;if(z){if("math"==a.fxType||"css"==a.view)B=!1;k.swipe.isLiveEffect||(A=B=!1)}B&&A&&(z?("line"!=d||e.loop||g(),"dot"==d&&(w/=e.mobile?3:6,!e.loop&&(0>=n&&m||n>=b.num-1&&v)&&(w/=4)),!e.loop&&k.isViewGrabStop&&(m&&0<a.xBuffer?f.ToggleClass("stop",0):v&&a.xBuffer<u.xMax&&f.ToggleClass("stop",
1))):e.pag&&(g(),k.pag.isArrow&&p.ArrowActived(a.xBuffer),k.pag.isMark&&p.XBufferOnMark(w)));a.xBuffer+=w;B&&(n="hor"===u.dirs?{x:f.R(a.xBuffer)}:{y:f.R(a.xBuffer)},f.GetTween(a.$swipeCur).css(a.$swipeCur,n));k.swipe.isLiveEffect&&(n="Buffer"+a.View,z&&r[n]&&r[n](q));z&&"line"==d&&a.xBuffer*q<(u.xCanvas-x*q)*q&&(e.swipeBegin=!0,a.x0=a.pageX1,u.xCanvas-=x*q,h.TOSLIDE.Run(q,!1,!0));e.swipeBegin&&(e.swipeBegin=!1,"mask"==c&&r.CloneImgbackInMask())},XNear:function(){l(this);var d=a.$swipeCur.is(a.$canvas.add(a.$s)),
g=a.layout,c=b.num,t=d?a.can:a.pag,m=a.xOffset;a.moveBy="swipe";if(d){var v=a.pa.left?a.wSlideFull-2*a.pa.left:a.wSlideFull,t=a.tDrag1-a.tDrag0<(e.mobile?600:400),d=f.R(v/3),v=f.R(v/20),t=t?v:d;m<-t&&(e.loop||!e.loop&&b.idCur<c-1)&&c-1?("dot"==g&&n.AnimateX(null,0,!1,!1,100),h.TOSLIDE.Run(1)):m>t&&(e.loop||!e.loop&&0<b.idCur)&&c-1?("dot"==g&&n.AnimateX(null,0,!1,!1,100),h.TOSLIDE.Run(-1)):m&&(n.AnimateX(null,0,!1,!1,400),g="Restore"+a.View,r[g]&&r[g]());(m<-t||m>t)&&k.isSlideshow&&(e.hoverAction=
!0)}else e.pag&&0!=m&&(t.xCanvas=a.xBuffer,m=k.pag.speed,"center"==t.align||"end"==t.align?t.xCanvas!=t.xMin&&n.AnimateX(null,t.xMin,!1,!0,m):0<t.xCanvas?n.AnimateX(null,0,!1,!0,m):t.xCanvas<t.xMax&&n.AnimateX(null,t.xMax,!1,!0,m),k.pag.isArrow&&p.ArrowActived(t.xCanvas),k.pag.isMark&&p.SizePosOfMark());n.Flywheel()}}})(jQuery);
(function(m){window.rt01MODULE=window.rt01MODULE||{};rt01MODULE.RESPONSIVE={UpdateVars:function(){function l(){var a=0;k.paRange&&(a=h.M.GetValueInRange(k.paRange),null===a&&(a=0));return a}var h=this,k=h.va;if(h.o.widthRange){var b=k.sizeRange.wMax;(b>k.wRes?b>=k.wRuby:k.wRes>k.wSlide)?(b=h.M.GetValueInRange(k.sizeRange),k.pa.left=null===b?l():(k.wSlide-b)/2):k.pa.left=(k.wSlide-k.wRes)/2}else k.pa.left=k.wRes>k.wSlide?l():(k.wSlide-k.wRes)/2;k.pa.left=~~k.pa.left;b=(k.wSlide-2*k.pa.left)/k.wRes;
k.rate=1<b?1:b}}})(jQuery);
(function(m){function l(f){h=f;k=f.o;b=f.cs;a=f.va;e=f.is}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e;rt01MODULE.NAV={Render:function(){l(this);var b=a.ns;if(e.nav&&!e.$nav){var r=h.RENDER.SearchNode("."+b+k.nameNav);r.length?(a.$nav=r,a.$nav.append(h.M.NS(k.nav.markupOutside)),e.navOutside=!0):(a.$nav=m(h.M.NS(k.nav.markup)),h.RENDER.Into(k.markup.navInto,a.$nav));a.$prev=a.$nav.find("."+b+k.namePrev);a.$next=a.$nav.find("."+b+k.nameNext);e.$nav=!0}else!e.nav&&e.$nav&&(a.$nav[e.navOutside?
"empty":"remove"](),e.$nav=!1)},EventTap:function(){l(this);var e=this,h=a.ev.click+" "+a.ev.swipe.end;if(!a.$nav)return!1;a.$prev.add(a.$next).off(h);e.is.nav&&(a.$prev.on(h,function(a){l(e);b.ev.trigger("beforeTap");k.nav.isEventTap&&e.EVENTS.Prev();a.preventDefault()}),a.$next.on(h,function(a){l(e);b.ev.trigger("beforeTap");k.nav.isEventTap&&e.EVENTS.Next();a.preventDefault()}))},Toggle:function(){l(this);var f=a.deactived,h=b.idCur,k=b.num;e.loop?a.$prev.add(a.$next).removeClass(f):(0==h&&a.$prev.addClass(f),
h==k-1&&a.$next.addClass(f),0!=h&&a.$prev.removeClass(f),h!=k-1&&a.$next.removeClass(f))}}})(jQuery);
(function(m){function l(p){h=p;k=p.o;b=p.oo;a=p.cs;e=p.va;f=p.is;r=p.ti;n=p.M}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e,f,r,n;rt01MODULE.PAG={RenderSelf:function(){var a=this;l(a);if(k.isPag&&!f.$pag){var b=" "+e.ns,g=b+"pag-",c=k.pag,h=b+"outside",r=c.direction,b=b+k.namePag+b+c.type+g+r+g+c.position,v=a.RENDER.SearchNode("."+e.ns+k.namePag);"string"==typeof c.moreClass&&(b+=" "+c.moreClass);f.pagOutside=!!v.length;e.$pag=v.length?v.addClass(b+h):m("<div/>",{"class":b});e.$pagItem=m("");
e.$s.each(function(){a.RenderPagItem(m(this))});e.$pagInner=m("<div/>",{"class":e.ns+"paginner"});e.$pagInner.append(e.$pagItem);e.$pag.prepend(e.$pagInner);if(!f.pagOutside)e.$ruby["begin"==c.position?"prepend":"append"](e.$pag);b=g+c.type;f.pagList||(b+=g+r+g+c.position,f.pagOutside&&(b+=h));e.$ruby.addClass(b);f.$pag=!0}else!k.isPag&&f.$pag&&(e.$s.each(function(){n.Data(m(this),{$thumbWrap:void 0})}),e.$pag[f.pagOutside?"empty":"remove"](),f.$pag=f.$pagArrow=f.$pagMark=!1,f.swipePagCur=!1);k.isPag&&
(a.RenderPagArrow(),a.RenderPagMark());f.$pag&&e.$s.each(function(){a.RenderThumbnail(m(this))})},RenderPagItem:function(a){l(this);a=n.Data(a).$pagItem;e.$pagItem=e.$pagItem.add(a);return a},RenderPagArrow:function(){l(this);if(k.pag.isArrow&&!f.$pagArrow){var a=n.NS(k.pag.markupArrow);e.$pagArrowLeft=m(a.replace(/\{dirs\}/g,"left"));e.$pagArrowRight=m(a.replace(/\{dirs\}/g,"right"));e.$pag.append(e.$pagArrowLeft,e.$pagArrowRight);f.$pagArrow=!0}!k.pag.isArrow&&f.$pagArrow&&(e.$pagArrowLeft.remove(),
e.$pagArrowRight.remove(),f.$pagArrow=!1)},RenderPagMark:function(){l(this);k.pag.isMark&&!f.$pagMark?(e.$pagMark=m(n.NS(k.pag.markupMark)),e.$pagMarkItem=e.$pagMark.children(),e.$pag.append(e.$pagMark),f.$pagMark=!0):!k.pag.isMark&&f.$pagMark&&(e.$pagMark.remove(),f.$pagMark=!1)},RenderThumbnail:function(a){l(this);var b=n.Data(a);if(f.pagThumb&&!b.$thumbWrap){var g=n.Find(a,"."+e.ns+"thumbitem"),c=n.Find(a,"."+e.ns+k.nameImageBack),h=n.Find(a,"."+e.ns+"videoback"),r=h.length&&!/^\s*$/.test(h.attr("href")),
v;if(c.length||h.length)v=(c.length&&c||h.length&&h).data("thumbnail-link"),/^\s*$/g.test(v)&&(v=!1);if(g.length||c.length||v||r||b.isLoaded&&b.$thumbItem)h=b.$pagItem,r=m("<div/>",{"class":"{ns}thumbwrap {ns}wfit".replace(/\{ns\}/g,e.ns)}),h.append(r),b.$thumbWrap=r,this.RENDER.LoaderAdd(a,h,"$loaderThumb"),b.isLoaded&&b.$thumbItem?(r.append(b.$thumbItem),this.SetupWhenLoadSlideEnd(a),this.PosCenterForThumbItem(a)):g.length?r.append(g):v?(g=m("<img></img>",{src:v,"class":e.ns+"thumbitem"}),r.append(g)):
c.length&&(g=c.clone(),g.addClass(e.ns+"thumbitem").removeClass(e.ns+"imgback").css({width:"",height:""}),r.append(g))}else!f.pagThumb&&b.$thumbWrap&&(b.$thumbWrap.remove(),b.$thumbWrap=null)},SetupWhenLoadSlideEnd:function(a){l(this);f.pagThumb&&h.RENDER.LoaderRemove(a,"$loaderThumb")},ToggleClass:function(a){l(this);if(!m.isEmptyObject(b)){var d=(a?k:b).pag,g=" "+e.ns,c=g+"pag-",f="",h="",n="";k.pag.moreClass!=b.pag.moreClass&&(h+=" "+d.moreClass);k.pag.type!=b.pag.type&&(h+=g+d.type,n+=c+d.type);
k.pag.position!=b.pag.position&&(f+=c+"pos-"+d.position);k.pag.direction!=b.pag.direction&&d.direction?f+=c+d.direction:e.addInfo&&(d=e.addInfo.pagDirs,f=a?f+(c+d):f+(c+("hor"==d?"ver":"hor")));e.$pag&&e.$pag[a?"addClass":"removeClass"](h+(" "+f));e.$ruby[a?"addClass":"removeClass"](n+(" "+f))}},FirstLastClass:function(){var a=this.va,b=a.$pagItem,e=a.ns+"first",a=a.ns+"last";b&&(b.removeClass(e+" "+a),b.first().addClass(e),b.last().addClass(a))},EventTap:function(){var b=this;l(b);if(!e.$pag)return!1;
var d=e.ev.click+" "+e.ev.swipe.end;e.$pagItem.off(d);if(f.pag){var g=m();e.$pagItem.each(function(){var a=m(this),c="a"===a[0].tagName.toLowerCase(),b=a.attr("href");c&&b||(g=g.add(a))});g.on(d,function(c){l(b);var d=m(this);a.ev.trigger("beforeTap");k.pag.isEventTap&&f.tapEnable&&(e.moveBy="tap",b.TOSLIDE.Run(n.Data(d).id,!0,!1,!0),b.EVENTS.DelayToTapNext());c.preventDefault()})}if(k.pag.isArrow){var c=e.$pagArrowLeft.add(e.$pagArrowRight);c.off(d);if(k.pag.isTapOnArrow)c.on(d,function(a){l(b);
if(f.tapEnable){var c=m(this).is(e.$pagArrowLeft)?"left":"right";b.TranslatePagByTapArrow(c);b.EVENTS.DelayToTapNext()}a.preventDefault()})}},ToggleEvent:function(){l(this);var a=e.pag.isViewLarge;f.SWIPE&&k.swipe.isAutoOnPag&&(a&&f.swipePagCur||!a&&!f.swipePagCur)&&(a=a?"offPag":"onPag",n.Module("SWIPE").Events(a))},TypeSizeItem:function(){l(this);var a=k.pag,b=e.pag,g=e.ns+"wfit",c=e.ns+"hfit",t="hor"==b.dirs,r=f.pagItemSizeSelf;(function(){e.$pagInner.css({width:"",height:"","margin-right":"",
"margin-bottom":""}).removeClass(g+" "+c);e.$pagItem.each(function(){m(this).css({width:"",height:""})})})();h.GetSizeOfItems();(function(){var h=t?"max"==a.typeSizeItem?b.wMax:b.wMin:b.wMax,h={width:f.pagOutside&&!t?"":h,height:t?b.hMax:"max"==a.typeSizeItem?b.hMax:b.hMin};t?(h["margin-bottom"]=b.maBottom,r&&(h.width="1px")):(h["margin-right"]=b.maRight,r&&(h.height="1px"));e.$pagInner.css(h);f.pagList||(h=g+" "+c,r&&(h=t?c:g),e.$pagInner.addClass(h))})();(function(){function a(c){var b=0,d=0;for(i=
c.length-1;0<=i;i--)b+=n.PInt(e.$viewport.css(c[i])),d+=n.PInt(e.$pag.css(c[i]));return b-d}e.viewSpace={hor:a(["padding-left","padding-right","border-left-width","border-right-width"]),ver:a(["padding-top","padding-bottom","border-top-width","border-bottom-width"])}})()},GetSizeOfItems:function(){function b(a){var d="w"==a?"width":"height",f="w"==a?"Width":"Height",h=[a+"Self",a+"ToPadding",a+"ToBorder",a+"ToMargin"];for(i=0;i<h.length;i++)c[h[i]]=[];e.$pagItem.each(function(){var a=m(this),b=n.R(n[f](a)),
e=n.R(n["Inner"+f](a)-b),p=n.R(n["Outer"+f](a)-b),a=n.R(n["Outer"+f](a,!0)-b),k=g["min"+f],l=g["max"+f];m.isNumeric(g[d])&&(b=g[d]);m.isNumeric(k)&&b<k&&(b=k);m.isNumeric(l)&&b>l&&(b=l);c[h[0]].push(b);c[h[1]].push(b+e);c[h[2]].push(b+p);c[h[3]].push(b+a)});c[a+"Min"]=Math.min.apply(null,c[h[0]]);c[a+"Max"]=Math.max.apply(null,c[h[0]]);c[a+"Sum"]=n.Sum(c[h[3]])}function d(c,b){var d=0;for(i=0;i<a.num;i++){var e=c[i]-b[i];e>d&&(d=e)}return d}l(this);var g=k.pag,c=e.pag;(function(){var a=["padding",
"border","margin"],b=["Top","Right","Bottom","Left"],d=["","Width",""],g=a.length,f=b.length;for(i=0;i<g;i++)c[a[i]]=[[],[],[],[]];e.$pagItem.each(function(e){var h=document.defaultView?getComputedStyle(this):this.currentStyle;for(i=0;i<g;i++)for(j=0;j<f;j++)c[a[i]][j][e]=n.PInt(h[a[i]+b[j]+d[i]])})})();b("w");b("h");c.sSum="hor"==c.dirs?c.wSum:c.hSum;c.maRight=d(c.wToMargin,c.wSelf);c.maBottom=d(c.hToMargin,c.hSelf)},PropAndStyle:function(){l(this);var b=e.$pag,d=a.num,g=e.pag,c="hor"==g.dirs,h=
f.pagOutside&&!c?"self":k.pag.sizeAuto,r={width:"",height:""},m;null===h?m=c?n.Width(b):n.Height(b):"full"==h?m=c?r.width=e.wRuby+e.viewSpace.hor:r.height=e.hRuby+e.viewSpace.ver:"self"==h&&(m=c?r.width=g.wSum:r.height=g.hSum);g.sViewport=m;e.$pag.css(r);g.wViewport=n.Width(b);g.hViewport=n.Height(b);g.sTranslate=0;if(f.alignJustify&&"self"!==h&&c){c=b=Math.max.apply(null,g.wToMargin);if(g.wViewport>=b*d||k.pag.isJustifyWhenLarge)c=~~(g.wViewport/d);e.$pagInner.css({width:c-g.maRight,height:g.hSelf[0]})}this.GetSizeOfItems();
d=g.sViewport-g.sSum;b=g.isViewLarge=0<=d;g.align=k.pag.align;b&&"justify"==g.align&&(g.align="center");b||"begin"==g.align||(g.align="begin");"begin"==g.align?(g.xMin=g.xCanvas=0,g.xMax=b?0:d):"end"==g.align?(g.xMin=g.xCanvas=d,g.xMax=g.sViewport):"center"==g.align&&(g.xMin=g.xCanvas=n.R(d/2),g.xMax=g.xMin+g.sSum);this.ToggleEvent()},PosAndSizeOfItems:function(){l(this);var a=e.pag,b="hor"==a.dirs;h.GetSizeOfItems();var g=b?"wToMargin":"hToMargin";a.pBegin=[0];for(i=1;i<h.cs.num;i++)a.pBegin[i]=
a.pBegin[i-1]+a[g][i-1];var g=b?"Tlx":"Tly",c={};f.tf||(b?c.top="":c.left="");for(i=0;i<h.cs.num;i++)c[a.cssTf]=n[g](a.pBegin[i]),f.pagItemSizeSelf&&(b?c.width=a.wSelf[i]:c.height=a.hSelf[i]),e.$pagItem.eq(i).css(c)},PosCenterForThumbItem:function(a){l(this);var b=n.Data(a);a=b.$thumbWrap;var b=b.$thumbItem,g=n.Data(b);if(a&&b&&g.isLoaded){var c=e.ns,f=k.pag.width,h=k.pag.height,f=m.isNumeric(f)?f:n.Width(a),h=m.isNumeric(h)?h:n.Height(a),r=f/h,z=g.rate;void 0===z&&g.isImgback&&(z=g.rate=n.Data(g.$imgback).rate);
var g="",u={width:"",height:"",left:"",top:""};f&&h&&(z>r?(g=c+"hfit",u.left=-n.R((z*h-f)/2)):(g=c+"wfit",u.top=-n.R((f/z-h)/2)));b.css(u);b="{ns}hfit{ns}wfit".replace(/\{ns\}/g,c).replace(g,"");a.addClass(g).removeClass(b)}},UpdateThumbnail:function(){var a=this;l(a);f.pagThumb&&f.initEnd&&e.$s.each(function(){a.PosCenterForThumbItem(m(this))})},PosCenterForItemCur:function(b,d){function e(){l(c);if(f.isViewLarge)"ver"==f.dirs&&(d=!1),c.TranslateTo(f.xCanvas,b,d);else{var g="hor"==f.dirs?f.wToMargin:
f.hToMargin,h=n.Sum(g,a.idCur),g=-n.R(h-(f.sViewport-g[a.idCur])/2);0<g?g=0:g<f.xMax&&(g=f.xMax);c.TranslateTo(g)}}var c=this,f=c.va.pag;l(c);if("hor"==f.dirs)e();else{var h=10+k.speedHeight;clearTimeout(r.centerItemCur);r.centerItemCur=setTimeout(e,h)}},TranslateTo:function(a,b,g){l(this);var c=e.pag;if(a!=c.xCanvas||0==a||b){b=n.GetTween(e.$pagInner);var f="hor"===c.dirs?{x:n.R(a)}:{y:n.R(a)};g?b.css(e.$pagInner,f):b.animate(e.$pagInner,f,{isNew:!0,duration:k.pag.speed,easing:k.pag.easing});c.xCanvas=
a;k.pag.isArrow&&this.ArrowActived(a);k.pag.isMark&&this.SizePosOfMark()}},MarginOnViewport:function(){l(this);var a=n.OuterWidth(e.$pag,!0);"begin"==e.pagVer&&e.$viewport.css("margin-left",a);"end"==e.pagVer&&e.$viewport.css("margin-right",a)},VerToHor:function(){l(this);var b=k.pag,d=e.pag,g=null;if(f.pagTabs&&"ver"==b.direction){var c=n.MatchMedia(0,b.widthMinToHor,!0);c||(c=n.MatchMedia(0,b.rangeMinToHor));"ver"==d.dirs&&c?(g=d.dirs="hor",e.$pag&&e.$pag.stop(!0).css("height","")):"hor"!=d.dirs||
c||(g=d.dirs="ver")}g&&(e.$canvas.add(e.$pag).css("width",""),e.addInfo={pagDirs:g},a.update({},!1))},ArrowActived:function(a){l(this);var b=e.actived,g=e.$pagArrowLeft,c=e.$pagArrowRight;e.pag.isViewLarge?g.add(c).removeClass(b):(n.XClass(g,a<e.pag.xMin-30,b),n.XClass(c,a>e.pag.xMax+30,b))},TranslatePagByTapArrow:function(a){l(this);var b=e.pag;if(!b.isViewLarge){a="left"==a;var g=b.xCanvas+(b.sViewport-10)*(a?1:-1),b=a?b.xMin:b.xMax;if(a&&g>b||!a&&g<b)g=b;h.TranslateTo(g)}},SizePosOfMark:function(){function b(){var d=
"hor"==g.dirs,f=d?"w":"h",h=d?"3":"0",p=k.pag.sizeMarkTo,n=a.idCur,l={width:"",height:""},r=g.margin[h][n],m=r+g.border[h][n],h=m+g.padding[h][n];"margin"==p?(f=g[f+"ToMargin"][n],c=0):"border"==p?(f=g[f+"ToBorder"][n],c=r):"padding"==p?(f=g[f+"ToPadding"][n],c=m):(f=g[f+"Self"][n],c=h);f!=g.dMark&&(l[d?"width":"height"]=f,e.$pagMarkItem.css(l),g.dMark=f)}function d(){if(void 0!==g.pBegin){var b=g.xCanvas+g.pBegin[a.idCur]+c;b!=g.xMark&&(h.POSITION.TranslateX(e.$pagMarkItem,b,!0,null,"hor"==g.dirs),
g.xMark=b)}}l(this);var g=e.pag,c=0;void 0!==g.margin&&(b(),d())},XBufferOnMark:function(a){l(this);var b=e.pag;a+=b.xMark;h.POSITION.TranslateX(e.$pagMarkItem,n.C(a),!0,null,"hor"==b.dirs);b.xMark=a}}})(jQuery);
(function(m){function l(f){h=f;k=f.o;b=f.va;a=f.is;e=f.M}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e;rt01MODULE.CAPTION={Render:function(){l(this);if(k.isCap&&!a.$cap){var e=h.RENDER.SearchNode("."+b.ns+k.nameCap);a.capOutside=!!e.length;b.$cap=a.capOutside?e:m("<div/>",{"class":b.ns+k.nameCap});b.$capCur=m("<div/>",{"class":b.ns+"cap-cur"});b.$capLast=m("<div/>",{"class":b.ns+"cap-last"});b.$capInner=m("<div/>",{"class":b.ns+"capinner"});b.$capInner.append(b.$capCur,b.$capLast).appendTo(b.$cap);
!a.capOutside&&b.$ruby.append(b.$cap);a.$cap=!0}else!k.isCap&&a.$cap&&(b.$cap[a.capOutside?"empty":"remove"](),a.$cap=!1)},Toggle:function(f,r){l(this);var n=e.Data(f).htmlCap,p=r.length?e.Data(r).htmlCap:"";b.$capCur.html(n);a.mobile||a.ie7||(b.$capLast.html(p),n=e.OuterHeight(b.$capCur,!0),p=e.OuterHeight(b.$capLast,!0)||n,b.tweenCaption.css(b.$capCur,{opacity:0}).animate(b.$capCur,{opacity:1},{isNew:!0,duration:k.speedHeight,complete:function(){setTimeout(function(){l(h);b.$capLast.css("visibility",
"");b.$capInner.css("height","")},10)}}).css(b.$capLast,{opacity:1,visibility:"visible"}).animate(b.$capLast,{opacity:0},{duration:k.speedHeight}),p!==n&&b.tweenCaption.css(b.$capInner,{height:p}).animate(b.$capInner,{height:n},{duration:k.speedHeight}))}}})(jQuery);
(function(m){function l(l){h=l;k=l.o;b=l.va;a=l.is;e=l.M;f=e.Module("PAG")}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e,f;rt01MODULE.IMAGE={SetupAtLoadSlideBegin:function(f,n){l(this);var p=b.ns,d=e.Data(f);n=n||".{ns}{imgback}, .{ns}{imglazy}, img.{ns}{layer}".replace(/\{imgback\}/,k.nameImageBack).replace(/\{imglazy\}/,k.nameImageLazy).replace(/\{layer\}/,k.nameLayer).replace(/\{ns\}/g,p);var g=e.Find(f,n);if(d.$pagItem)var c=".{ns}thumbitem, .{ns}{imglazy}".replace(/\{imglazy\}/,k.nameImageLazy).replace(/\{ns\}/g,
p),c=e.Find(d.$pagItem,c),g=g.add(c);e.Data(f,{$images:m(),imageLen:g.length,nImage:0});g.each(function(){var c=m(this);/^img/i.test(this.tagName)||(c=h.ConvertToImage(c));var b=c.hasClass(p+k.nameImageBack),g=c.hasClass(p+"thumbitem"),n=b||c.hasClass(p+k.nameImageLazy),g=e.Data(c,{$slide:f,isImgOfRuby:n,isImgback:b,isThumbItem:g,isSrcOutside:!1,isLoaded:!1,src:[],styleInline:e.PStyleToJson(c),opts:b?m.extend({},d.opts.imageback,c.data("imageback")):m.extend({},d.opts.image,c.data("image"))});g.layer&&
void 0!==g.layer.opts.isResponsive&&(g.opts.isResponsive=g.layer.opts.isResponsive);b&&(h.Wrap(c),e.Data(f,{$imgbackWrap:f.find("."+p+"imgback-wrap"),$imgback:c,isImgback:!0}),g.opts.position=d.opts.imagePosition||g.opts.position);var b=g.src,g=c.attr("src"),n=/^data\:image\//g.test(g),l=c.attr("data-"+k.nameDataLazy);!n&&b.push(g);void 0===l||/^\s*$/.test(l)||b.push(l);c.removeAttr("data-"+k.nameDataLazy);a.FLICKR&&c.data("flickr")?e.Module("FLICKR").GetLinkByPhotoID(c):h.EventLoad(c)})},ConvertToImage:function(b){l(this);
var e={},f=k.isCap?"image link":b.text(),d=m("<img>",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:f});m.each(b[0].attributes,function(a,b){var g=b.name,f=b.value;d.attr(g,f);e[g]=f});var f="data-NAME".replace(/NAME/,k.nameDataLazy),g=b.attr(f)||e.href||"";d.attr(f,g).removeAttr("href");a.ie&&d.removeAttr("width height");b.after(d).remove();return d},Wrap:function(a){l(this);var f=b.ns+"imgback-wrap",h=a.closest("."+f);h.length||(h=m("<div/>",{"class":f}),
a.wrap(h),h=a.closest("."+f));e.Data(h,e.Data(a));e.Data(h,{$imgItem:a});for(var f=["data-video","data-video-link"],d=0,g=f.length;d<g;d++){var c=a.attr(f[d]);c&&(h.attr(f[d],c),a.removeAttr(f[d]))}},EventLoad:function(a){function f(){k.nImage+=1;k.nImage==k.imageLen&&(!k.isVideoback||k.isVideoback&&k.isVideobackLoaded)&&setTimeout(function(){l(d);"home"==k.id?e.Module("LAYER").LoadHomeEnd():d.LOAD.SlideEnd(c)},10)}function h(c){a.addClass(b.ns+"load-failed").attr("alt","image load failed");e.Message("image load failed",
c);f()}l(this);var d=this,g=e.Data(a),c=g.$slide,k=e.Data(c);if(!g.src.length)return h("image source not found");var m=new Image,v=g.src,z=v.pop();m.onload=function(){l(d);d.Properties(a,this);f()};m.onerror=function(){l(d);v.length?d.EventLoad(a):h(z)};a.attr("src",z);m.src=z},Properties:function(a,k){l(this);var p=e.Data(a),d=k.width,g=k.height;e.Data(a,{isLoaded:!0,width:d,height:g,rate:d/g});d=e.Data(p.$slide);d.$images=d.$images.add(a);p.isThumbItem&&(d.$thumbItem=a);p.isImgOfRuby&&h.SizeResponsive(a);
if(p.isImgback||p.isThumbItem)a.on(b.ev.drag,function(a){return!1}),f.PosCenterForThumbItem(p.$slide)},SizeResponsive:function(f){function h(){"auto"==d?t.width=d:m.isNumeric(d)?t.width=e.R(d*c):t.width=e.R(k.width*c);"auto"==g?t.height=g:m.isNumeric(g)?t.height=e.R(g*c):t.height=e.R(k.height*c);f.css(t)}l(this);var k=e.Data(f);if(f&&f.length&&k.opts.isResponsive&&"videoPoster"!==k.type){var k=e.Data(f),d=k.styleInline.width,g=k.styleInline.height,c=b.rate,t={width:"",height:"",left:"",top:""},y=
k.opts.position;k.isImgback?"center"==y||"tile"==y?h():a.heightFixed||(t.width=b.wSlide,t.height=e.R(t.width/k.rate),f.css(t)):1==b.rate?(void 0!==d&&(t.width=d),void 0!==g&&(t.height=g),f.css(t)):h()}},BackPosition:function(f){function h(){z=b.wSlide;u=e.R(z/y)}function k(){u=b.hRuby;z=e.R(u*y)}function d(){var a=e.PInt(f.css("left")),c=~~((b.wSlide-e.OuterWidth(f,!0))/2);a!==c&&f.css("left",c)}function g(){var a=e.R((b.hRuby-e.OuterHeight(f,!0))/2);0==a&&(a="");f.css("top",a)}l(this);var c=e.Data(f);
if(c.isImgback&&"videoPoster"!==c.type){var t=c.opts.position,y=c.rate,v=b.wRuby/b.hRuby,z,u;if("fill"==t)a.heightFixed&&(y>v?k():h(),f.css({width:z,height:u}),d(),g());else if("fit"==t)a.heightFixed&&(y>v?h():k(),f.css({width:z,height:u}),d(),g());else if("stretch"==t)a.heightFixed&&(z=b.wSlide,u=b.hRuby,f.css({width:z,height:u}));else if("tile"==t){var t=[],x=v=0,q=0,w=0,A=!1,B=!1;z=e.OuterWidth(f,!0);u=e.OuterHeight(f,!0);do{q=0;w=x;v=0;A=!1;do t.push([q,w]),q+=z,v+=z,v>=b.wSlide&&(A=!0);while(!A);
x+=u;a.heightFixed?x>=b.hRuby&&(B=!0):B=!0}while(!B);x=c.$itemClone;v=f.parent("."+b.ns+"imgback-wrap");x&&x.remove();c.$itemClone=m();x=1;for(q=t.length;x<q;x++)w=f.clone(),w.addClass(b.ns+"imgclone").css({left:t[x][0],top:t[x][1]}).appendTo(v),c.$itemClone=c.$itemClone.add(w)}else d(),a.heightFixed&&g()}},UpdateAllImageBy:function(a){var f=this;l(f);var h,d;switch(a){case "size":h="$images";d="SizeResponsive";break;case "position":h="$imgback";d="BackPosition";break;default:return}b.$s.add(b.$viewport).each(function(){var a=
e.Data(m(this))[h];a&&a.each(function(){f[d](m(this))})})}}})(jQuery);
(function(m){function l(l){h=l;k=l.o;b=l.va;a=l.is;e=l.M;f=e.Module("SLIDESHOW")}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e,f;rt01MODULE.VIDEOIFRAME={ConvertTag:function(a){function e(a){var g=m("<div/>",{"class":b.ns+"video"}),c={};m.each(a[0].attributes,function(a,b){var d=b.name,e=b.value;g.attr(d,e);c[d]=e});if(c.href&&!/^\s*$/g.test(c.href)){var f=m("<img/>",{src:c.href,alt:a.text()});f.addClass(b.ns+"video-preview");g.append(f).removeAttr("href");var h=b.ns+k.nameImageLazy;g.hasClass(h)&&
(g.removeClass(h),f.addClass(h))}a.after(g).remove();return g}l(this);var f=a.find("[data-video-link]");a=a.find(b.ns).find("[data-video-link]");f=f.not(a);if(!f.length)return!1;f.each(function(){var a=m(this),g=a[0].tagName.toLowerCase(),c=a.hasClass(b.ns+k.nameImageBack);"a"!=g||c||e(a)})},Init:function(a){l(this);var f=e.Data(a),p=a.find("[data-video-link]"),d=m(),g=!1;p.each(function(){var c=m(this),l=c.data("video-link"),l=h.GetID(l);if(l.type){var p={$video:c,$slide:a,isImgback:c.hasClass(b.ns+
k.nameImageBack),isShow:!1},v=c.find("img"),z=!1;v.length&&(l.$imgPreview=v,l.isImgPreview=z=!0);v=(v=f.$imgbackWrap)&&v.is(c)?"imgback":e.Data(c).layer?"layer":"free";l.position=v;v=e.StringToJson(e.Data(c).video,'options on "data-video" not valid');l=m.extend(!0,{},p,k.video,l,v);c.addClass(b.ns+"video "+b.ns+l.type).addClass(z?"":b.ns+"no-preview").removeAttr("data-video-link").removeAttr("data-video");l=e.Data(c,{video:l}).video;h.SetupIframe(l);z&&(h.AddElements(l),h.Events(l));g=!0;d=d.add(c)}});
g&&(f.isVideo=!0,f.$video=d)},GetID:function(a){function b(){var g=a.match(/^.*(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|ondemand\/(?:\w+\/)?|)(\d+)(?:$|\/|\?)/);g&&g[3]&&(d=g[3],e="vimeo")}var e=!1,d;(function(){var b=a.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);b&&11==b[2].length&&(d=b[2],e="youtube")})();e||b();return{type:e,id:d}},SetupIframe:function(a){l(this);var e=a.isImgPreview?1:0,f="?";"youtube"==
a.type?(f+="rel=0&autohide=3",f+="&autoplay="+e,f+="&showinfo=0",f+="&wmode=opaque",f+="&enablejsapi=1",a.src="https://www.youtube.com/embed/"+a.id+f):"vimeo"==a.type&&(f+="&autoplay="+e,f+="&api=1",a.src="https://player.vimeo.com/video/"+a.id+f);a.$iframe=m("<iframe></iframe>",{"class":b.ns+"video-item",frameborder:0,allowfullscreen:"",width:"100%",height:a.isImgPreview?"100%":a.height+"px"});a.isImgPreview||a.$video.append(a.$iframe)},AddElements:function(a){l(this);var e=a.$video,f=b.ns,d=f+"swipe-prevent",
g=f+"btn-close";a.$btnPlay=m("<div/>",{"class":f+"btn-play "+d});a.$btnClose=m("<div/>",{"class":g+" "+d});h.RENDER.LoaderAdd(e,e,"$loader");e.append(a.$btnPlay,a.$btnClose)},Events:function(e){l(this);var h=this,k=b.ev.click;e.$btnPlay.on(k,function(d){l(h);h.FnOpen(e);a.slideshow&&(b.nVideoOpen++,f.Go("videoOpen"))});e.$btnClose.on(k,function(d){l(h);h.FnClose(e);a.slideshow&&(b.nVideoOpen--,0>b.nVideoOpen&&(b.nVideoOpen=0),f.Go("videoClosed"))});if(a.ie){var d=b.ns+"hover";e.$iframe.hover(function(a){e.$btnClose.addClass(d)},
function(a){e.$btnClose.removeClass(d)})}},FnOpen:function(a){function e(){g.addClass(d+"video-init");a.isEmbbed=!0;a.$iframe.attr("src",a.src).prependTo(g).on("load",function(){g.addClass(d+"video-ready").removeClass(d+"video-init")})}function f(){g.addClass(d+"video-ready");var c=a.$iframe[0].contentWindow;"youtube"==a.type?c.postMessage('{ "event": "command", "func": "playVideo", "args": "" }',"*"):"vimeo"==a.type&&c.postMessage('{ "method": "play" }',"*")}l(this);var d=b.ns,g=a.$video;a.isShow=
!0;a.isImgback&&a.$slide.addClass(d+"videoback-show");a.isEmbbed?f():e()},FnClose:function(e){function f(){e.isShow=!1;e.isEmbbed=!1;g.removeClass(d+"video-ready");e.$iframe.attr("src","about:blank").remove()}function h(){var c=e.$iframe[0].contentWindow;"youtube"==e.type?c.postMessage('{ "event": "command", "func": "pauseVideo", "args": "" }',"*"):"vimeo"==e.type&&(a.online?c.postMessage('{ "method": "pause" }',"*"):f())}l(this);var d=b.ns,g=e.$video;e.isShow&&(g.removeClass(d+"video-init"),e.isImgback&&
e.$slide.removeClass(d+"videoback-show"),e.isPauseThenRemove?f():h())},SlideDeactived:function(f){var h=this;l(h);(f=e.Data(b.$s.eq(f)).$video)&&f.each(function(){h.FnClose(e.Data(m(this)).video)});a.slideshow&&(b.nVideoOpen=0)}}})(jQuery);
(function(m){window.rt01MODULE=window.rt01MODULE||{};var l,h;rt01MODULE.IFRAME={Init:function(k){l=this;h=this.M;var b=h.NS("a.{ns}iframe"),b=h.Find(k,b);b.length&&(h.Data(k,{isIframe:!0,$iframe:b}),l.ConvertTag(k),h.Data(k,{$iframe:h.Find(k,h.NS("iframe.{ns}iframe"))}))},ConvertTag:function(k){function b(a){var b=m("<iframe/>");m.each(a[0].attributes,function(a,h){b.attr(h.name,h.value)});a.after(b).remove()}l=this;h=this.M;k=h.Data(k);k.isIframe&&k.$iframe.each(function(){b(m(this))})},ToggleSource:function(k){l=
this;h=this.M;k=h.Data(k);k.isIframe&&(k.$iframe.each(function(){var b=m(this),a=b.attr("href");a&&!/^\s*$/g.test(a)&&b.attr("src",a).removeAttr("href")}),k.isFrame=!1)}}})(jQuery);
(function(m){function l(c){h=c;k=c.o;b=c.cs;a=c.va;e=c.is;f=c.M;r=f.Module("FXMATH");d=c.cs.idCur;g=a.speed}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e,f,r,n,p,d,g;rt01MODULE.FXMATH={rectMove:function(c,b){l(this);if(void 0===b){var e=768<a.wRuby?10:5,k=a.slot[d];b="auto"==k?f.R(f.Rm(2,e)):f.PInt(k)}c.slot=b;h.FirstSetup(c,{isMask:!0,isFxBackFading:!1,isPrevNavFrontOfSlidePrev:!1});e={x:-c.mark*c.wFront};k={x:0};for(n=0;n<c.slot;n++){h.PosBeginImgItem(c,n);var p=c.$front.clone();a.tweenMath.css(p.find(".{ns}imgback-wrap".replace(/\{ns\}/,
a.ns)),e);p.css({left:n*c.wFront,top:0}).appendTo(c.$frontWrap);f.Data(p,{tfEnd:k,speed:g[d],delay:0})}c.easeIn="easeOutCubic";c.easeOut="easeOutCubic";a.tweenMath.animate(c.$imgInBack,{x:c.mark*c.wFront},{duration:g[d],easing:c.isNext?c.easeIn:c.easeOut},!1);c.animateBy="imgwrap";h.TransformEnd(c)},rectRun:function(c){l(this);var b=a.slot[d];c.slot="auto"==b?f.R(f.Rm(3,6)):f.PInt(b);h.FirstSetup(c);var b=g[d]/4,e=g[d]-b,k=e/(c.slot-1),p,m;for(n=0;n<c.slot;n++){h.PosBeginImgItem(c,n);var r=e-n*k;
p=c.isNext?-f.R((n+1)*c.wFront):0;m=c.isNext?0:f.R((c.slot-n)*c.wFront);var q=c.$front.clone();p={x:p};a.tweenMath.css(q.find(".{ns}imgback-wrap".replace(/\{ns\}/,a.ns)),p);m={x:m};q.css({left:n*c.wFront,top:0}).appendTo(c.$frontWrap);f.Data(q,{tfEnd:m,speed:b,delay:r})}c.animateBy="imgwrap";h.TransformEnd(c)},rectSlice:function(c){l(this);var b=a.slot[d];c.slot="auto"==b?f.R(f.Rm(4,12)):f.PInt(b);h.FirstSetup(c);var b=g[d]/4,e=g[d]-b,k=e/c.slot,p=f.OuterHeight(c.$imgItemSlCur),m=f.OuterHeight(c.$imgItemSlNext),
p=p>m?p:m;for(n=0;n<c.slot;n++){h.PosBeginImgItem(c,n);var m=c.$front.clone(),r=f.R(n/2)>n/2?p+10:-p-10,q={y:c.isNext?r:0},r={y:c.isNext?0:r},w=c.isNext?e-n*k:n*k;a.tweenMath.css(m.find(".{ns}imgback-wrap".replace(/\{ns\}/,a.ns)),q);m.css({left:n*c.wFront,top:0}).appendTo(c.$frontWrap);f.Data(m,{tfEnd:r,speed:b,delay:w})}c.easeOut="easeOutCubic";c.animateBy="imgwrap";h.TransformEnd(c)},rubyFade:function(c){l(this);var b=a.slot[d];c.slot="auto"==b?f.R(f.Rm(2,5)):f.PInt(b);h.FirstSetup(c,{isSizeSquare:!0,
isFxBackFading:!1});for(n=0;n<c.slot.ver;n++)for(p=0;p<c.slot.hor;p++){h.PosBeginImgItem(c,p,n);var b=c.$front.clone(),e=~~f.Rm(100,g[d]),k=f.Ra()*(g[d]-e),m={opacity:c.opaReverse};a.tweenMath.css(b.find(".{ns}imgback-wrap".replace(/\{ns\}/,a.ns)),m);m={opacity:c.opacity};b.css({left:p*c.wFront,top:n*c.hFront}).appendTo(c.$frontWrap);f.Data(b,{tfEnd:m,speed:e,delay:k})}c.easeOut="easeOutCubic";c.animateBy="imgwrap";h.TransformEnd(c)},rubyMove:function(c){l(this);var b=a.slot[d];c.slot="auto"==b?f.R(f.Rm(2,
5)):f.PInt(b);h.FirstSetup(c,{isMask:!0,isSizeSquare:!0,isFxBackFading:!1});for(n=0;n<c.slot.ver;n++)for(p=0;p<c.slot.hor;p++){h.PosBeginImgItem(c,p,n);var b=c.$front.clone(),e;e={};switch(f.R(3*f.Ra())){case 0:e.x=0;e.y=-100;break;case 1:e.x=100;e.y=0;break;case 2:e.x=0;e.y=100;break;case 3:e.x=-100,e.y=0}var k={x:e.x+"%",y:e.y+"%"},m={x:0,y:0};e=c.isNext?k:m;k=c.isNext?m:k;speedCur=f.Rm(100,g[d]/2);delayCur=f.Ra()*(g[d]-speedCur);a.tweenMath.css(b.find(".{ns}imgback-wrap".replace(/\{ns\}/,a.ns)),
e);b.css({left:p*c.wFront,top:n*c.hFront}).appendTo(c.$frontWrap);f.Data(b,{tfEnd:k,speed:speedCur,delay:delayCur})}c.animateBy="imgwrap";h.TransformEnd(c)},rubyRun:function(c){l(this);var b=a.slot[d];c.slot="auto"==b?f.R(f.Rm(2,5)):f.PInt(b);h.FirstSetup(c,{isSizeSquare:!0});var e;for(n=0;n<c.slot.ver;n++)for(p=0;p<c.slot.hor;p++){h.PosBeginImgItem(c,p,n);var k,m;switch(f.R(3*f.Ra())){case 0:k=0;m=-2E3;break;case 1:k=2E3;m=0;break;case 2:k=0;m=2E3;break;case 3:k=-2E3,m=0}var r=c.$front.clone();e=
{x:k,y:m};var x={x:0,y:0},b=c.isNext?e:x;e=c.isNext?x:e;var x=f.Rm(100,300),q=f.Ra()*(g[d]-x);a.tweenMath.css(r.find(".{ns}imgback-wrap".replace(/\{ns\}/,a.ns)),b);r.css({left:p*c.wFront,top:n*c.hFront}).appendTo(c.$frontWrap);f.Data(r,{tfEnd:e,speed:x,delay:q})}c.animateBy="imgwrap";h.TransformEnd(c)},rubyScale:function(c){l(this);var b=a.slot[d];c.slot="auto"==b?f.R(f.Rm(2,5)):f.PInt(b);h.FirstSetup(c,{isSizeSquare:!0,isFxBackFading:!1});var e={perspectiveTF:800,z:-1E3,opacity:0},k={perspectiveTF:800,
z:0,opacity:1},b=c.isNext?e:k,e=c.isNext?k:e;for(n=0;n<c.slot.ver;n++)for(p=0;p<c.slot.hor;p++){h.PosBeginImgItem(c,p,n);var k=c.$front.clone(),m=~~f.Rm(100,g[d]),r=f.Ra()*(g[d]-m);a.tweenMath.css(k.find(".{ns}imgback-wrap".replace(/\{ns\}/,a.ns)),b);k.css({left:p*c.wFront,top:n*c.hFront}).appendTo(c.$frontWrap);f.Data(k,{tfEnd:e,speed:m,delay:r})}c.animateBy="imgwrap";h.TransformEnd(c)},zigzagRun:function(c){l(this);var b=a.slot[d];c.slot="auto"==b?f.R(f.Rm(2,5)):f.PInt(b);h.FirstSetup(c,{isSizeSquare:!0});
var e=0;for(n=0;n<c.slot.ver;n++)for(p=0;p<c.slot.hor;p++){h.PosBeginImgItem(c,p,n);var b=c.slot.hor-p,b=f.R(b/2)>b/2?n:c.slot.ver-n-1,e=b+c.slot.ver*(c.slot.hor-p-1),b=c.$front.clone(),k=c.isNext?{x:-2E3}:{x:0},m=c.isNext?{x:0}:{x:2E3},r=~~(g[d]/(c.slot.ver*c.slot.hor)-.5),e=r*e;a.tweenMath.css(b.find(".{ns}imgback-wrap".replace(/\{ns\}/,a.ns)),k);b.css({left:p*c.wFront,top:n*c.hFront}).appendTo(c.$frontWrap);f.Data(b,{tfEnd:m,speed:r,delay:e})}c.animateBy="imgwrap";h.TransformEnd(c)},FirstSetup:function(b,
h){function k(a,d,e,g){var h={};h[e]=b.slot;h.height=f.C(d/b.slot);h[g]=f.C(a/h.height);h.width=h.height+f.C((a-h.height*h[g])/h[g]);return h}l(this);var p=a.ns;a.tweenMath.reset(!0);a.$s.removeClass(p+"hide");b.$fxOverlay&&b.$fxOverlay.remove();h=m.extend({},{isMask:!1,isNoInvert:!1,isSizeSquare:!1,isFxBackFading:!0,isNextNavFrontOfSlideNext:!0,isPrevNavFrontOfSlidePrev:!0},h);h.isNoInvert&&(b.isNext=!0);b.isNext?(b.mark=-1,b.opacity=1,b.opaReverse=0):(b.mark=1,b.opacity=0,b.opaReverse=1);var n=
b.isNext,r=a.wSlide,x=b.$imgWrapSlCur,q=b.$imgWrapSlNext;b.$imgItemSlCur=x.find("img");b.$imgItemSlNext=q.find("img");b.hCur=f.OuterHeight(q,!0);b.$fxOverlay=m("<div/>",{"class":p+"fx-overlay"});b.$back=m("<div/>",{"class":p+"fx-back"});b.$frontWrap=m("<div/>",{"class":p+"fx-front-wrap"});b.$front=m("<div/>",{"class":p+"fx-front"});n?h.isNextNavFrontOfSlideNext?(b.$imgInBack=x.clone(),b.$imgInFront=q.clone()):(b.$imgInBack=q.clone(),b.$imgInFront=x.clone()):h.isPrevNavFrontOfSlidePrev?(b.$imgInBack=
q.clone(),b.$imgInFront=x.clone()):(b.$imgInBack=x.clone(),b.$imgInFront=q.clone());b.$imgInBack.add(b.$imgInFront).children(":not(img)").remove();b.$imgItemFront=b.$imgInFront.find("img");b.$back.append(b.$imgInBack).appendTo(b.$fxOverlay);b.$slCur.add(b.$slNext).addClass(p+"hide");b.$fxOverlay.append(b.$frontWrap);b.$frontWrap.css("height",e.heightFixed?a.hRuby:b.hCur);h.isMask&&b.$frontWrap.addClass(p+"math-mask");b.$imgInFront.appendTo(b.$front);b.$imgItemFront.each(function(){var a=m(this);f.Data(a,
{left:f.PInt(a.css("left")),top:f.PInt(a.css("top"))})});h.isFxBackFading&&(p=n?1:0,x=n?.25:1,q=b.$back.find("img"),a.tweenMath.css(q,{opacity:p}).animate(q,{opacity:x},{duration:g[d]},!1));h.isSizeSquare?(p=e.heightFixed?a.hRuby:b.hCur,r>p?(b.slot=k(r,p,"ver","hor"),b.wFront=b.slot.width,b.hFront=b.slot.height):(b.slot=k(p,r,"hor","ver"),b.wFront=b.slot.height,b.hFront=b.slot.width),b.$front.css({width:b.wFront,height:b.hFront}),b.$imgInFront.css({width:"100%",height:"100%"})):(b.wFront=f.C(r/b.slot),
b.$front.css({width:b.wFront,height:"100%"}),b.$imgInFront.css({width:b.wFront}));b.top=f.R((f.OuterHeight(b.$slNext,!0)-f.OuterHeight(b.$slCur,!0))/2);e.heightFixed||(h.isSizeSquare?n&&(b.$back.css("top",b.top),b.top=0):n?h.isNextNavFrontOfSlideNext?b.$back.css("top",b.top):b.$imgInFront.css("top",b.top):h.isPrevNavFrontOfSlidePrev?b.$imgInFront.css("top",b.top):b.$back.css("top",b.top));h.isSizeSquare&&e.heightFixed&&(b.tImg=b.$imgInFront.css("top"),""!==b.tImg&&"auto"!==b.tImg&&(b.top+=f.PInt(b.tImg),
b.$imgInFront.css("top","")))},PosBeginImgItem:function(a,b,d){l(this);a.$imgItemFront.each(function(){var e=m(this),g=f.Data(e);e.css("left",-(b*a.wFront)+g.left);void 0!==d&&e.css("top",-(d*a.hFront)+a.top+g.top)})},TransformEnd:function(b){var d=this;l(d);b.$frontWrap.on(a.ev.drag,function(a){return!1});a.fxTime0=+new Date;var e=b.easeIn||"easeOutCubic",g=b.easeOut||"easeInCubic";es=b.isNext?e:g;b.$front=b.$frontWrap.find("."+a.ns+"fx-front");b.$front.each(function(){var d=m(this),e=f.Data(d),
g=~~e.speed,h=e.tfEnd,k;"self"==b.animateBy&&(k=d);"imgwrap"==b.animateBy&&(k=d.find(".{ns}imgback-wrap".replace(/\{ns\}/,a.ns)));a.tweenMath.animate(k,h,{duration:g,delay:~~e.delay,easing:es},!1)});a.tweenMath.eventComplete(function(){l(d);a.fxMath.status=null;a.$s.removeClass(a.ns+"hide");b.$fxOverlay&&b.$fxOverlay.remove();d.TOSLIDE.End()});b.$fxOverlay.appendTo(a.$canvas)}};rt01MODULE.VIEWMATH={ResetTweenMath:function(b,d){l(this);var e=a.fxMath;e.idCur=b;e.idNext=d;e.fx=a.fx[e.idNext];e.$slCur=
a.$s.eq(b);e.$slNext=a.$s.eq(d);var g=e.fx;"randomMath"==g?g=f.RandomInArray2(k.fxMathName,a.fxMathRandom):m.isArray(g)&&(g=f.RandomInArray(g,a.fxLast));a.fxLast=g;e.$imgWrapSlCur=f.Data(e.$slCur).$imgbackWrap;e.$imgWrapSlNext=f.Data(e.$slNext).$imgbackWrap;if(e.$imgWrapSlCur&&e.$imgWrapSlNext&&1<e.$imgWrapSlNext.height()&&r[g])return r[g](e),!0;h.TOSLIDE.End();return!1},BufferMath:function(c){l(this);var d=a.fxMath,e=b.idCur,g=e+c;0>g?g=b.num-1:g>b.num-1&&(g=0);var k=d.idNext!=g;if(!d.status||k)d.isNext=
0<c,h.ResetTweenMath(e,g);d.status="buffer";c=f.A(a.xOffset)/a.wSlide*100;a.tweenMath.go(c)},RestoreMath:function(){l(this);a.fxMath.status="restore";a.tweenMath.reverse()},ToSlideMath:function(){l(this);var c=a.fxMath;if("buffer"==c.status)c.status="play",a.tweenMath.resume();else{var d=b.idLast,e=b.idCur;c.isNext=0<a.nMove;h.ResetTweenMath(d,e)&&(c.status="play",a.tweenMath.restart())}}}})(jQuery);
(function(m){function l(e){h=e;k=e.cs;b=e.va;a=e.M}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a;rt01MODULE.VIEWCSS={GetFxCss:function(e,f){function h(a){m.isArray(a)||(a=[a]);m.each(a,function(b){k[a[b]]||a.splice(b,1)});return a}l(this);var k=b.rubyAnimateKeyframes,p=b.rubyAnimateOne,d=[];switch(e){case "cssOne":var g=f.cssOne;m.isArray(g)||(g=[g]);m.each(g,function(a){p[g[a]]&&d.push(p[g[a]])});break;case "cssTwo":var c=h(f.cssTwoOut),t=h(f.cssTwoIn);c.length&&t.length&&(d=[{next:[c,t],prev:[c,
t]}]);break;case "cssThree":c=h(f.cssThreeNext);t=h(f.cssThreePrev);c.length&&t.length&&(d=[{next:[["slideShortLeftOut"],c],prev:[["slideShortRightOut"],t]}]);break;case "cssFour":var c=h(f.cssFourNextOut),t=h(f.cssFourNextIn),y=h(f.cssFourPrevOut),v=h(f.cssFourPrevIn);c.length&&t.length&&y.length&&v.length&&(d=[{next:[c,t],prev:[y,v]}])}d.length||(d=[p.fade],b.fxType="cssOne",a.Message("effect CSS need RubyAnimate object and keyframes"));return d},UpdateTweenFromCss:function(e,f){l(this);var h=b.fxCSS.idNext,
k=b.speed[h],h=a.Data(b.$s.eq(h)).opts.cssEasing;if(h=a.Module("RUBYANIMATE").Tween(f,k,void 0,h))for(var k=0,p=h.length;k<p;k++){var d=h[k];0==k?b.tweenSlide.css(e,d):b.tweenSlide.animate(e,d.prop,d.opts,!1)}else b.tweenSlide.animate(e,{},{duration:k},!1);b.fxCSS.isMask&&b.$viewport.addClass(b.ns+"css-mask")},ResetTFSlideCss:function(){l(this);var a=b.fxCSS,f=b.$s.eq(a.idCur),a=b.$s.eq(a.idNext),h=b.$s.eq(k.idLast),n=b.$s.eq(k.idCur),f=m("").add(f).add(a).add(h).add(n),a="{ns}css-prev {ns}css-next".replace(/\{ns\}/g,
b.ns);f.css("opacity","").css(b.cssTf,"").css(b.prefix+"transform-origin","").css("z-index","").removeClass(a);b.$viewport.removeClass(b.ns+"css-mask")},ResetTweenCss:function(e,f){l(this);var k=b.fxCSS,n=b.$s.eq(e),p=b.$s.eq(f),d=a.RandomInArray(b.fx[f],b.fxCssLast),g=!!d.isMask,c,d=d[k.isNext?"next":"prev"];c=b.fxCssOutLast=a.RandomInArray(d[0],b.fxCssOutLast);d=b.fxCssInLast=a.RandomInArray(d[1],b.fxCssInLast);h.ResetTFSlideCss();k.idCur=e;k.idNext=f;k.fxOut=c;k.fxIn=d;k.isMask=g;b.tweenSlide.reset(!0);
n.addClass(b.ns+"css-prev");p.addClass(b.ns+"css-next");h.UpdateTweenFromCss(n,c);h.UpdateTweenFromCss(p,d)},BufferCss:function(e){l(this);var f=b.fxCSS,m=k.idCur,n=m+e;0>n?n=k.num-1:n>k.num-1&&(n=0);var p=f.idNext!=n;if(!f.status||p)f.isNext=0<e,h.ResetTweenCss(m,n);f.status="buffer";e=a.A(b.xOffset)/b.wSlide*100;b.tweenSlide.go(e)},RestoreCss:function(){l(this);b.fxCSS.status="restore";h.ToSlideCss()},ToSlideCss:function(){function a(){n.eventComplete(function(){f.ResetTFSlideCss();f.TOSLIDE.End();
h.status=null})}l(this);var f=this,h=b.fxCSS,n=b.tweenSlide;if("buffer"==h.status)h.status="play",a(),n.resume();else if("restore"==h.status)a(),b.tweenSlide.reverse();else{var p=k.idLast,d=k.idCur;h.isNext=0<b.nMove;f.ResetTweenCss(p,d);a();h.status="play";n.restart()}}}})(jQuery);
(function(m){function l(a){h=a;k=a.o;b=a.va}window.rt01MODULE=window.rt01MODULE||{};var h,k,b;rt01MODULE.RUBYANIMATE={keyframeDefault:{duration:400,easing:"easeOutQuad",animEnd:{pos:100,x:0,y:0,z:0,scale:1,skew:0,rotate:0,rotateX:0,rotateY:0,rotateZ:0,opacity:1}},CopyData:function(a){var b={},f;for(f in a)"pos"!=f&&(b[f]=a[f]);return b},UpdateDataToKeyframe:function(a){l(this);var b=window.__rubyAnimateKeyframes__||{};if(!m.isArray(a)||!a.length)return!1;for(var f=[],k=0,n=a.length;k<n;k++){var p=
a[k];if(m.isArray(p.pos)){for(var d=0,g=p.pos.length;d<g;d++){var c=h.CopyData(p);c.pos=p.pos[d];a.push(c)}f.push(k)}}k=d=0;for(n=f.length;k<n;k++)a.splice(f[k]-d,1),d++;f=[];k=0;for(n=a.length;k<n;k++){p=Number.MAX_VALUE;d=c=0;for(g=a.length;d<g;d++)a[d].pos<p&&(p=a[d].pos,c=d);f.push(a[c]);a.splice(c,1)}b[name]=a=f;b=a[0];void 0===b.pos&&1==a.length&&(b.pos=100);0!==b.pos&&a.unshift({pos:0});100!=a[a.length-1].pos&&a.push(h.keyframeDefault.animEnd);return a},UpdateAllKeyframes:function(){l(this);
var a=m.extend(!0,{},k.rubyAnimateKeyframes,window.__rubyAnimateKeyframes__),e;for(e in a)a[e]=h.UpdateDataToKeyframe(a[e]);b.rubyAnimateKeyframes=a;b.rubyAnimateOne=m.extend(!0,{},k.rubyAnimateOne,window.__rubyAnimateOne__)},Tween:function(a,e,f,k,n){l(this);var p;n=n||b.rubyAnimateKeyframes;"string"===typeof a?p=n[a]:m.isArray(a)&&a.length&&(p=a.slice(),p=h.UpdateDataToKeyframe(p));if(p){a=[];a[0]=h.CopyData(p[0]);n=0;for(var d=1,g=p.length;d<g;d++){var c=p[d],t={prop:h.CopyData(c),opts:{}},y=t.opts,
c=c.pos;y.duration=(c-n)/100*e;n=c;void 0!==f&&null!==f&&1==d&&(y.delay=f);void 0!==k&&null!==k&&1==d&&(y.easing=k);a.push(t)}return a}},OneConvertFour:function(a){var b=this.va.rubyAnimateOne;return b[a]||b._default_}}})(jQuery);
(function(m){function l(d){h=d;k=d.o;b=d.oo;a=d.cs;e=d.va;f=d.is;r=d.ti;n=d.M;p=n.Module("TIMER")}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e,f,r,n,p;rt01MODULE.SLIDESHOW={RenderControl:function(){l(this);if(f.ssControl&&!f.$ssControl){var a="."+e.ns+"ss-control",b=h.RENDER.SearchNode(a);b.length?(e.$ssControl=b,f.ssControlOutside=!0):(b=m(n.NS(k.markup.ssControl)),e.$ssControl=b.hasClass(e.ns+"ss-control")?b:b.find(a),h.RENDER.Into(k.markup.ssControlInto,b));f.$ssControl=!0;e.optsUpdate&&
(h.Pause(!0),h.Init())}else!f.ssControl&&f.$ssControl&&(e.$ssControl[f.ssControlOutside?"empty":"remove"](),f.$ssControl=!1);f.playpause&&!f.$playpause?(a="."+e.ns+k.namePlay,a=h.RENDER.SearchNode(a),a.length?(e.$playpause=a,f.playpauseOutside=!0):(e.$playpause=m("<div/>",{"class":e.ns+k.namePlay,text:"play-pause"}),h.RENDER.Into(k.markup.playInto,e.$playpause)),f.$playpause=!0,f.autoRun||(f.ssPauseAbsolute=!0,e.$playpause.addClass(e.actived))):!f.playpause&&f.$playpause&&(!f.playpauseOutside&&e.$playpause.remove(),
f.$playpause=!1)},Init:function(){l(this);n.Scroll.Setup();h.Go("init")},Go:function(b){l(this);if(!f.stop){var g=n.Data(a.idCur);f.ssPauseAbsolute?f.ssPlaying&&h.Pause():f.ssRunInto&&!f.into||f.mouseHover||e.nVideoOpen||f.fxRun||!g.isLoaded?f.ssPlaying&&h.Pause():f.fxRun||(m.isNumeric(e.tDelay)?f.hoverAction?f.ssPlaying||h.ResetPropThenPlay():f.ssPlaying||h.Play():h.ResetPropThenPlay());"slideToBegin"==b&&f.TIMER&&p[n.ProperCase(e.timer)+"AnimationEnd"]()}},ResetPropThenPlay:function(){l(this);e.tDelay!=
e.delay[a.idCur]&&(e.tDelay=e.delay[a.idCur]);f.TIMER&&("line"==e.timer&&100!=e.xTimer?e.xTimer=100:"arc"==e.timer&&(e.arc.angCur=0));h.Play()},Play:function(){var b=this;l(b);e.tTimer0=+new Date;f.ssPlaying=!0;f.timer&&p[n.ProperCase(e.timer)+"Animation"]();clearTimeout(r.play);r.play=setTimeout(function(){l(b);var g=a.num,c=a.idCur,h=k.slideshow.isRandom&&1<=g,p=h?n.RandomInArray2(e.idMap,e.ssIDRandom,c):c>=g-1?0:c+1,m=e.$s.eq(p),m=n.Data(m),r=m.opts.load.isLazy;r||!r&&m.isLoaded?h?b.TOSLIDE.Run(p,
!0):f.loop||c!=g-1?b.EVENTS.Next(!0):b.TOSLIDE.Run(0,!0):a.stop()},e.tDelay)},Pause:function(b){l(this);var g=a.idCur;f.ssPlaying=f.hoverAction=!1;b?e.tDelay=e.delay[g]:(b=e.tDelay,e.tTimer1=+new Date,e.tDelay=e.delay[g]-(e.tTimer1-e.tTimer0),e.delay[g]!=b&&(e.tDelay-=e.delay[g]-b),0>e.tDelay&&(e.tDelay=0,f.hoverAction=!0));f.timer&&p.Stop();clearTimeout(r.play)},EventHover:function(){var a=this;l(a);e.$ruby.off(e.ev.mouseenter+" "+e.ev.mouseleave);k.slideshow.isHoverPause&&(f.mouseHover=!1,e.$ruby.on(e.ev.mouseenter,
function(){a.is.mouseHover=!0;a.Go("mouseenter")}).on(e.ev.mouseleave,function(){a.is.mouseHover=!1;a.Go("mouseleave")}))},EventTap:function(){l(this);var a=this,b=e.ev.click;if(e.$playpause&&(e.$playpause.off(b),f.playpause))e.$playpause.on(b,function(b){l(a);n.Scroll.Check(!0);e.$playpause.hasClass(e.actived)?a.Api("play"):a.Api("pause");return!1})},Api:function(b){l(this);"play"==b?(k.isSlideshow||(k.isSlideshow=!0,this.Init()),f.ssPauseAbsolute&&(e.$playpause&&e.$playpause.removeClass(e.actived),
f.stop=f.ssPauseAbsolute=!1,!f.fxRun&&this.Go("apiPlay"),a.ev.trigger("slideshowPlay"))):"pause"==b?f.ssPauseAbsolute||(e.$playpause&&e.$playpause.addClass(e.actived),f.ssPauseAbsolute=!0,this.Go("apiPause"),a.ev.trigger("slideshowPause")):"stop"!=b||f.stop||(e.$playpause&&e.$playpause.addClass(e.actived),f.stop=f.ssPauseAbsolute=!0,this.Pause(!0),a.ev.trigger("slideshowStop"))},UpdateAll:function(){l(this);void 0!==b.slideshow&&(f.timer&&("arc"==e.timer&&p.ArcSetupInit(),p[n.ProperCase(e.timer)+
"Animation"]()),b.isSlideshow!=k.isSlideshow&&(k.isSlideshow?h.Init():(h.Pause(!0),e.$w.off(e.ev.scroll),e.$ruby.off(e.ev.mouseenter+" "+e.ev.mouseleave))))}}})(jQuery);
(function(m){function l(l){h=l;k=l.o;b=l.cs;a=l.va;e=l.is;f=l.ti;r=l.M}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e,f,r;rt01MODULE.TIMER={Render:function(){function b(){a.$timer[e.timerOutside?"empty":"remove"]();e.$timer=!1}l(this);var f=h.oo;f.slideshow&&f.slideshow.timer!=k.slideshow.timer&&a.$timer&&b();if(e.timer&&!e.$timer){var f=a.ns+k.nameTimer,d=f+"-"+a.timer,g=h.RENDER.SearchNode("."+f);g.length?(a.$timer=g.addClass(d),e.timerOutside=!0):(a.$timer=m("<div/>",{"class":f+" "+d}),
h.RENDER.Into(k.markup.timerInto,a.$timer));e.$timer=!0;"line"==a.timer?(a.$timerItem=m("<div/>",{"class":f+"item"}),a.$timer.append(a.$timerItem),h.LineSetupInit()):"arc"==a.timer&&(a.$timerItem=m("<canvas></canvas>"),a.$timer.append(a.$timerItem),h.ArcSetupInit())}else!e.timer&&e.$timer&&b()},LineSetupInit:function(){l(this);r.GetTween(a.$timerItem).css(a.$timerItem,{x:"-100%"})},LineAnimation:function(){l(this);h.LineAnimationReset(a.xTimer);r.GetTween(a.$timerItem).animate(a.$timerItem,{x:0},
{isNew:!0,duration:a.tDelay,easing:"linear"})},LineAnimationReset:function(b){l(this);r.GetTween(a.$timerItem).css(a.$timerItem,{x:-b.toFixed(2)+"%"})},LineAnimationEnd:function(){var e=this;l(e);var f=b.idCur+1;f>b.num-1&&(f=0);r.GetTween(a.$timerItem).animate(a.$timerItem,{opacity:0},{isNew:!0,duration:a.speed[f]-100,complete:function(){l(e);a.$timerItem.css({opacity:""});e.LineAnimationReset(100)}})},ArcSetupInit:function(){l(this);var b=k.timerArc,b={angCur:a.arc&&a.arc.angCur?a.arc.angCur:0,
pi:Math.PI/180,width:null===b.width?r.Width(a.$timer):b.width,height:null===b.height?r.Height(a.$timer):b.height,speed:~~(1E3/b.fps)};a.arc=m.extend(!0,{},k.timerArc,b);a.$timerItem.attr({width:a.arc.width,height:a.arc.height});a.tContext=a.$timerItem[0].getContext("2d");b=a.tContext;b.setTransform(1,0,0,1,0,0);b.translate(a.arc.width/2,a.arc.height/2);b.rotate(-a.arc.pi*(90-a.arc.rotate));b.strokeStyle=a.arc.stroke;b.fillStyle=a.arc.fill;b.lineWidth=a.arc.weight},ArcAnimation:function(h){function k(b){g.clearRect(-c.width/
2,-c.height/2,c.width,c.height);g.globalAlpha=1;g.beginPath();g.lineCap="round";g.arc(0,0,c.radiusOuter,0,360*c.pi,!1);g.lineWidth=c.weightOuter;g.strokeStyle=c.strokeOuter;g.fillStyle=c.fillOuter;g.stroke();g.fill();g.beginPath();g.arc(0,0,m+1,0,c.pi*Math.ceil(10*c.angCur)/10,!1);g.lineWidth=2*m+2;g.strokeStyle=c.fill;g.stroke();g.beginPath();g.arc(0,0,c.radius,0,c.pi*c.angCur,!1);g.lineWidth=c.weight;g.strokeStyle=c.stroke;g.stroke();c.angCur+=b;370<a.arc.angCur&&clearInterval(f.timer)}l(this);
var d=this,g=a.tContext,c=a.arc,m=Math.ceil((c.radius-c.weight)/2);clearInterval(f.timer);e.enableTimerAnimEnd=!0;if(h)k(0);else{var r=+new Date;f.timer=setInterval(function(){l(d);var c=+new Date,e=360*(c-r)/a.delay[b.idCur];r=c;k(e)},c.speed)}},ArcAnimationEnd:function(){function h(){v.clearRect(-z.width/2,-z.height/2,z.width,z.height);v.globalAlpha=1;v.beginPath();v.arc(0,0,z.radiusOuter,0,360*z.pi,!1);v.lineWidth=z.weightOuter;v.strokeStyle=z.strokeOuter;v.fillStyle=z.fillOuter;v.stroke();v.fill();
v.globalAlpha=parseFloat(c.toFixed(3));v.beginPath();v.arc(0,0,u+1,0,z.pi*Math.ceil(10*z.angCur)/10,!1);v.lineWidth=2*u+2;v.strokeStyle=z.fill;v.stroke();v.beginPath();v.arc(0,0,z.radius,0,z.pi*z.angCur,!1);v.lineWidth=z.weight;v.strokeStyle=z.stroke;v.stroke();r+=k;y=m.GSGDEasing.easeOutQuad(null,r,0,1,d);c=1-y;g--;if(.01>=c||0>g)clearInterval(f.timer),e.enableTimerAnimEnd=!0,a.arc.angCur=0}l(this);var k=1E3/30,d=a.speed[b.idCur]-(600<=a.speed[b.idCur]?400:100),g=d/k-1,c=1,r=0,y,v=a.tContext,z=a.arc,
u=Math.ceil((z.radius-z.weight)/2);e.enableTimerAnimEnd&&(e.enableTimerAnimEnd=!1,clearInterval(f.timer),f.timer=setInterval(h,k))},Stop:function(){l(this);switch(a.timer){case "line":a.xTimer=a.tDelay/a.delay[b.idCur]*100;r.GetTween(a.$timerItem).css(a.$timerItem,{x:-a.xTimer.toFixed(2)+"%"});break;case "arc":a.arc.angCur=360-a.tDelay/a.delay[b.idCur]*360,h.ArcAnimation(!0),clearInterval(f.timer)}}}})(jQuery);
(function(m){window.rt01MODULE=window.rt01MODULE||{};rt01MODULE.FULLSCREEN={Variable:function(){var l=this.va,h=this.M;l.wContent=l.wRuby-2*l.pa.left;l.hContent=h.R(l.wContent/l.rRes);l.hContent<l.hRuby?l.pa.top=h.R((l.hRuby-l.hContent)/2):(l.pa.top=0,l.hContent=l.hRuby,l.wContent=h.R(l.hContent*l.rRes),l.rate=l.wContent/l.wRes,l.pa.left=h.R((l.wRuby-l.wContent)/2))}}})(jQuery);
(function(m){window.rt01MODULE=window.rt01MODULE||{};rt01MODULE.NESTED={Destroy:function(l){l=l.find("."+this.va.ns);l.length&&(l=l.data(rt01VA.rubyName))&&l.destroy&&l.destroy(!0)},RefreshInSlide:function(l){l.find("."+this.va.ns).each(function(){var h=m(this).data(rt01VA.rubyName);h&&(10>h.one.va.wRuby||10>h.one.va.hRuby)&&h.refresh()})}}})(jQuery);
(function(m){window.rt01MODULE=window.rt01MODULE||{};rt01MODULE.CLASSADD={Filter:function(l){var h="";void 0!==l.classAdd&&(h=l.classAdd.toString());return h},Toggle:function(){var l=this.va,h=this.cs,k=l.classAdd[h.idLast],h=l.classAdd[h.idCur];void 0!==k&&""!=k&&l.$ruby.removeClass(k);void 0!==h&&""!=h&&l.$ruby.addClass(h)}}})(jQuery);
(function(m){function l(e){h=e;k=e.o;b=e.va;a=e.is}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a;rt01MODULE.DISPLAY={SetupInit:function(){l(this);var e=!0;if(a.mobile&&"desktop"==k.showBy||!a.mobile&&"mobile"==k.showBy)e=!1;e?(h.SetupVars(),h.Check(),a.awake?h.INIT.Ready():h.ResizeON()):b.$ruby.remove()},SetupVars:function(){l(this);var e=h.M;if(k.showInRange){var f=b;var r=k.showInRange;m.isNumeric(r)?r=[[r,1E5]]:e.ElesIsNumber(r,2)&&(r=[r]);if(m.isArray(r)){var n={num:r.length};for(i=n.num-
1;0<=i;i--){var p=r[i];m.isNumeric(p)&&(p=[p,1E5]);n[i]={from:e.PInt(p[0]),to:e.PInt(p[1])}}e=n}else e=!1;f.showInRange=e}else a.showInRange=a.awake=!0},Check:function(){l(this);var e=b.showInRange;if(m.isPlainObject(b.showInRange))for(a.showInRange=!1,i=e.num-1;0<=i;i--)if(h.M.MatchMedia(e[i].from,e[i].to)){a.showInRange=!0;break}void 0===a.awake&&a.showInRange&&(a.awake=!0)},Toggle:function(){l(this);h.Check();b.$ruby[(a.showInRange?"remove":"add")+"Class"](b.ns+"none")},ResizeON:function(){var a=
this,b=a.va,h=a.is,k=a.ti;b.$ruby.addClass(b.ns+"none");b.$w.on("resize.rubyShow"+b.rubykey,function(){clearTimeout(k.showResize);k.showResize=setTimeout(function(){a.Check();h.awake&&a.ResizeOFF()},200)})},ResizeOFF:function(){l(this);b.$w.off("resize.rubyShow"+b.rubykey);b.$ruby.removeClass(b.ns+"none");h.INIT.Ready()}}})(jQuery);
(function(m){function l(f){h=f;k=f.o;b=f.cs;a=f.va;e=f.ti}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a,e;rt01MODULE.DEEPLINKING={HashReturn:function(e){function h(){if(n.isIDConvert)for(i=0;i<a.IDsOnNode.length;i++){var b=a.IDsOnNode[i];if(void 0!==b&&-1!==m.inArray(b,t))return i}return null}l(this);var n=k.deeplinking,p=n.prefixDefault[0]+a.rubyID+n.prefixDefault[1],p=null!==n.prefix?n.prefix:p,d=window.location.hash,g=d.match(new RegExp(p+"\\d+","g")),c,d=d.replace(/^#/,""),t=d.split("+");
if(e)return c=h(),null!==c||null!==g&&(c=this.M.PInt(g[0].substr(p.length)),c<b.num)?c:null;var y=e=null;c=h();null!==c&&(y=a.IDsOnNode[c]);null===y&&null!==g&&(y=g[0]);g=a.IDsOnNode[b.idCur];n.isIDConvert&&void 0!==g&&(e=g);null===e&&(e=n.isOnlyShowID?"":p+b.idCur);null===y?""!=e&&(d=""==d?"#"+e:"#"==d?d+e:/\+$/.test(d)?d+e:d+("+"+e)):d=d.replace(y,e);d=d.replace(/^#\+/g,"#").replace(/\+$/g,"").replace(/\++/g,"+");/^#/.test(d)||(d="#"+d);return d},Read:function(){l(this);var e=h.HashReturn(!0);null!==
e&&(b.idLast!==b.idCur&&(b.idLast=b.idCur),b.idCur=a.idBegin=e,h.PROP.Ruby())},Write:function(){function a(){rt01VA.isStopHashChange=!0;clearTimeout(e.hashReset);e.hashReset=setTimeout(function(){rt01VA.isStopHashChange=!1},200);if(window.history&&window.history.pushState)try{window.history.pushState(null,null,b)}catch(f){}}l(this);var b=this.HashReturn(!1);window.location.hash!==b&&a()},Events:function(){var b=this;l(b);a.$w.off(a.ev.hash);k.isDeeplinking&&a.$w.on(a.ev.hash,function(a){l(b);a.preventDefault();
rt01VA.isStopHashChange||(a=b.HashReturn(!0),null!==a&&b.TOSLIDE.Run(a,!0,!1,!0))})}}})(jQuery);
(function(m){window.rt01MODULE=window.rt01MODULE||{};rt01MODULE.COOKIE={Write:function(){var l=new Date,h=rt01VA.rubyName+this.va.rubyID+this.o.cookie.name;l.setTime(l.getTime()+864E5*this.o.cookie.days);l="; expires="+l.toGMTString();document.cookie=h+"="+this.cs.idCur+l+"; path=/"},Read:function(){var l=document.cookie.replace(/\s+/g,"").split(";"),h=rt01VA.rubyName+this.va.rubyID+this.o.cookie.name+"=",k=null;for(i=0;i<l.length;i++)0===l[i].indexOf(h)&&(k=this.M.PInt(l[i].substr(h.length)));null!==
k&&(this.cs.idCur=this.va.idBegin=k)}}})(jQuery);
(function(m){function l(h){b=h.one;a=h.one.o;k=h.one.cs;e=h.one.va;f=h.one.is;r=h.one.M;n=m.extend({},n,b)}function h(b){a=b.o;k=b.cs;e=b.va;f=b.is;r=b.M}window.rt01MODULE=window.rt01MODULE||{};var k,b,a,e,f,r,n={ParseIndex:function(a,b){h(this);var e=k.num;/^\-?\d+/g.test(a)&&(a=r.PInt(a));m.isNumeric(a)&&0<=a&&a<e||(a=b?e:e-1);return a},CoreAddSlide:function(b,d){h(this);var g=this,c=r.Module("PAG"),l=m();d=n.ParseIndex(d,!0);for(var y=0,v=b.length;y<v;y++)if("string"==typeof b[y]||b[y]instanceof
jQuery){var z=g.RENDER.Slide(m(b[y]));!1!==z&&(l=l.add(z))}var u=d===k.num;u?e.$canvas.append(l):e.$s.eq(d).before(l);e.$s=e.$canvas.children("."+e.ns+a.nameSlide);l.each(function(){var a=m(this);r.Data(a,{loadBy:"apiAdd"});if(f.pag){g.RENDER.CapPagHTML(a);var b=c.RenderPagItem(a);u?e.$pagInner.append(b):(e.$pagItem.eq(d).before(b),e.$pagItem=e.$pagInner.children("."+e.ns+"pagitem"));c.EventTap()}a=a.find("."+e.ns);rt01MODULE.AUTOINIT(a)});0===k.num&&0>k.idCur&&(k.idCur=0);d===k.idCur&&(k.idLast=
k.idCur+1);k.refresh();g.LOAD.Way();!a.load.isLazy&&g.LOAD.Next()},GetFromURL:function(a,b){var e=this,c=m.extend({},c,e);m.ajax(a,{type:"GET",cache:!1,crossDomain:!0,success:function(a){c.CoreAddSlide([a],b)},error:function(){e.M.Message("ajax load failed",a)}})}};rt01MODULE.APIMORE={addSlide:function(a,b){l(this);"string"===typeof a&&""!==a?n.CoreAddSlide([a],b):a instanceof jQuery?n.CoreAddSlide([a],b):m.isArray(a)&&a.length?n.CoreAddSlide(a,b):m.isPlainObject(a)&&(void 0!==a.ajax&&"string"==typeof a.ajax?
n.GetFromURL(a.ajax,b):void 0!==a.html&&"string"==typeof a.html&&n.CoreAddSlide([a.html],b))},removeSlide:function(b){l(this);f.apiRemove=!0;m.isArray(b)?(k.ev.trigger("beforeSwapIDCur"),k.idLast=k.idCur=0,k.ev.trigger("afterSwapIDCur"),r.ToggleSlide()):(b=[b],k.idCur==k.num-1&&(k.ev.trigger("beforeSwapIDCur"),k.idCur=k.num-2,k.ev.trigger("afterSwapIDCur")));for(var d=0,g=b.length;d<g;d++){var c=n.ParseIndex(b[d],!1),h=e.$s.eq(c);f.NESTED&&r.Module("NESTED").Destroy(h);h.remove();f.pag&&e.$pagItem.eq(c).remove()}e.$s=
e.$canvas.children("."+e.ns+a.nameSlide);f.pag&&(e.$pagItem=e.$pag.find("."+e.ns+"pagitem"));k.refresh();f.apiRemove=!1},orderSlide:function(b){l(this);var d=k.num,g=!0;if(1<d&&m.isPlainObject(b)){for(var c=function(a,b,c){var d=a[c];a[c]=a[b];a[b]=d},h=function(a){return/^\d+/g.test(a)&&0<=r.PInt(a)&&r.PInt(a)<d},n=[],v=0;v<d;v++)n.push(v);for(var z in b){var v=b[z],u;h(z)&&h(v)&&(u=m.inArray(r.PInt(z),n),c(n,u,r.PInt(v)))}b=n}else if(1<d&&m.isArray(b)&&b.length==d)for(n=m.extend([],b),v=0;v<d;v++){if(c=
n.pop(),!m.isNumeric(c)||-1!==m.inArray(c,n)||0>c||c>=d){g=!1;break}}else g=!1;if(g){e.$s.detach();f.pag&&e.$pagItem.detach();for(v=0;v<d;v++)g=b[v],e.$canvas.append(e.$s.eq(g)),f.pag&&e.$pagInner.append(e.$pagItem.eq(g));e.$s=e.$canvas.children("."+e.ns+a.nameSlide);f.pag&&(e.$pagItem=e.$pag.find("."+e.ns+"pagitem"));k.ev.trigger("beforeSwapIDCur");k.idCur=m.inArray(k.idCur,b);k.ev.trigger("afterSwapIDCur");k.update()}else r.Message("array or object order not right")},swipeEvent:function(a){"string"===
typeof a&&-1!=="onBody onPag offBody offPag".indexOf(a)&&this.is.SWIPE&&this.SWIPE.Events(a)}}})(jQuery);
(function(m){function l(e){h=e;k=e.cs;b=e.va;a=e.M}window.rt01MODULE=window.rt01MODULE||{};var h,k,b,a;rt01MODULE.APIREMOTE={Init:function(){l(this);b.$apiRemote&&b.$apiRemote.off(b.ev.click).removeClass(b.ns+"api");b.$apiRemote=m();var e=rt01VA.rubyName+"-api";m("[data-NAME]".replace(/NAME/,e)).each(function(){var f=m(this),k=f.data(e);if(k="string"===typeof k?k:a.StringToJson(k)){f=a.Data(f,{$api:f,apiRemote:[],isInRuby:!!a.Find(b.$ruby,f).length});if(m.isPlainObject(k)||"string"===typeof k)k=[k];
f.dataNode=k;h.ApiCheckValid(f);h.Events(f)}})},ApiCheckValid:function(a){l(this);for(var f=0,h=a.dataNode,k=h.length,p=[],d=a.isInRuby;f<k;f++){var g=h[f];if(m.isPlainObject(g)){if(g.name){var c=g.markup,t=!1;/^#/.test(c)&&c.substr(1)===b.$ruby.attr("id")?t=!0:void 0===c&&d?t=!0:c===b.name&&(t=!0);t&&(g.isSetup=t,p.push(g))}}else"string"===typeof g&&p.push({name:g,isSetup:d?!0:"checkRubyOne"})}a.apiRemote=p},Events:function(a){l(this);var f=this,h=a.$api,m=a.apiRemote.length;m&&(h.addClass(b.ns+
"api"),b.$apiRemote=b.$apiRemote.add(h),h.off(b.ev.click).on(b.ev.click,function(){l(f);for(var b=!0,d=0;d<m;d++){var g=a.apiRemote[d],c=g.name,h=g.isSetup;(!0===h||"checkRubyOne"===h&&1===rt01VA.$ruby.length)&&k[c]&&k[c](g.param1||g.param,g.param2);!1===g.isReturn&&(b=!1)}if(!b)return!1}))}}})(jQuery);
