var Manager=Klass.create();Manager.extend(JqManager),Manager.extend({init:function(){this.timer=null,this.perf_no=1,this.app_no=1,this.anim=!1,_cmn.ua.sp&&$("body").addClass("sp")},set:function(){this.setParam(),this.setObject()},start:function(){var n=this.getAsyncCommand(arguments),i=new Command;i.call(this,this.setState,[],""),i.call(this,this.setEvent,[],""),n&&n.publish&&i.callback(n,n.publish,[]),i.execute()},after:function(){var n=this.getAsyncCommand(arguments),i=new Command;i.call(this,function(){$("#wrapper").addClass("start")},[],""),i.sleep(200),i.call(this,function(){_manager.fv.find(".prod").stop().css({scale:1.1}).animate({scale:1},2*_cmn.anim_time,_cmn.anim_ease)},[],""),_cmn.pcFlg?i.sleep(1500):i.sleep(1200),i.call(this,function(){$("#anim_space").addClass("hide")},[],""),n&&n.publish&&i.callback(n,n.publish,[]),i.execute()},setParam:function(){"ie"===_cmn.ua&&8===~~_cmn.ver&&(this.ie8=!0),("ie"!==_cmn.ua||"ie"===_cmn.ua&&~~_cmn.ver>=10)&&(this.modern=!0)},setObject:function(){this.fv=$("#fv"),this.fv_tsubaki=this.fv.find(".tsubaki").find(".img"),this.fv_fino=this.fv.find(".fino").find(".img"),this.footer=$("#wrapper").find("footer"),this.buy_panel1=BuyPanel.create($("#buy_float"),$("#buy_bg")),this.buy_panel1.set(),this.buy_panel1_btn=$(".btn_pnl"),this.tsubaki=$("#tsubaki"),this.fino=$("#fino")},setSlide:function(){this.slide_kv=Slide.create(_manager.kv)},setState:function(){_manager.ie8||_manager.modern,(navigator.userAgent.match(/MSIE 10/i)||navigator.userAgent.match(/Trident\/7\./)||navigator.userAgent.match(/Edge\/12\./))&&$("body").on("mousewheel keydown",function(){event.preventDefault();var n=event.wheelDelta,i=window.pageYOffset;window.scrollTo(0,i-n)}),$("body").removeClass("hide"),this.resize(null,!1),$("#fv").find(".prod").css({scale:1.1})},setEvent:function(){this.setWayPoint(),this.setResize();this.buy_panel1_btn.on("click",function(){_manager.buy_panel1.show(_manager.buy_panel1)})},setWayPoint:function(){var n=(_cmn.tsuijyu.height(),window.innerHeight);if(_cmn.pcFlg)var i=.8*n;else var i=.8*n;$(".mask").waypoint(function(n){"down"===n&&($(this).hasClass("open")||$(this).addClass("open"))},{offset:i}),$(".fade").waypoint(function(n){"down"===n&&($(this).hasClass("open")||$(this).addClass("open"))},{offset:i}),$(".bar_ttl").waypoint(function(n){"down"===n&&($(this).hasClass("open")||$(this).addClass("open"))},{offset:i}),$(".bar").waypoint(function(n){"down"===n&&($(this).hasClass("open")||$(this).addClass("open"))},{offset:i}),$("#intro").waypoint(function(n){if("down"===n&&!_manager.is_anim_intro){_manager.is_anim_intro=!0;var i=new Command;i.call(this,function(){$("#intro").find(".copy").addClass("open")},[],""),i.sleep(600),i.call(this,function(){$("#intro").find(".bar_m").addClass("open")},[],""),i.execute()}},{offset:i}),$("#reason").waypoint(function(n){if("down"===n&&!_manager.is_anim_reason){_manager.is_anim_reason=!0;var i=new Command;i.call(this,function(){$("#reason").find(".intro").addClass("open")},[],""),i.sleep(600),i.call(this,function(){$("#reason").find(".bar_m").addClass("open")},[],""),i.sleep(600),i.call(this,function(){$("#reason").find(".detail").addClass("open")},[],""),i.execute()}},{offset:i}),$("#detail").find("h3").waypoint(function(n){"down"===n&&($(this).hasClass("open")||$(this).addClass("open"))},{offset:i}),$("#detail").find(".item").waypoint(function(n){if("down"===n&&!$(this).hasClass("open")){$(this).addClass("open");var i=new Command;i.call(this,function(){$(this).find(".ttl").addClass("open")},[],""),i.sleep(400);for(var a=0;a<$(this).find("li").length;a++)i.call(this,function(n){$($(this).find("li")[n]).addClass("open"),$(this).find("ul").addClass("step"+(n+1))},[a],""),i.sleep(300),i.call(this,function(n){$(this).find("ul").addClass("step"+(n+1))},[a],""),i.sleep(300);i.execute()}},{offset:i}),$("#reason").find(".img_area").find(".img").waypoint(function(n){"down"===n&&($(this).hasClass("open")||$(this).addClass("open"))},{offset:i}),$("#howto").find("h3").waypoint(function(n){"down"===n&&($(this).hasClass("open")||$(this).addClass("open"))},{offset:i}),$("#howto").find(".item").waypoint(function(n){if("down"===n&&!$(this).hasClass("open")){$(this).addClass("open");var i=new Command;i.call(this,function(){$(this).find(".ttl").addClass("open")},[],""),i.sleep(400);for(var a=0;a<$(this).find("li").length;a++)i.call(this,function(n){$($(this).find("li")[n]).addClass("open"),$(this).find("ul").addClass("step"+(n+1))},[a],""),i.sleep(300),i.call(this,function(n){$(this).find("ul").addClass("step"+(n+1))},[a],""),i.sleep(300);i.execute()}},{offset:i})},pnlAnim:function(n){var i=new Command;n.hasClass("pe1")&&(i.call(n,function(){n.find("h2").stop().css({opacity:0,x:-20}).animate({opacity:1,x:0},2*_cmn.anim_time,_cmn.anim_ease)},[n],""),i.sleep(200)),i.call(n,function(){n.find("figure").find(".img").stop().css({opacity:0}).animate({opacity:1},2*_cmn.anim_time,_cmn.anim_ease)},[n],""),i.sleep(100),i.call(n,function(){n.find("figure").find(".img").addClass("moved")},[n],""),i.sleep(100),i.call(n,function(){n.find("figcaption").stop().css({opacity:0,y:20}).animate({opacity:1,y:0},2*_cmn.anim_time,_cmn.anim_ease)},[n],""),i.execute()},stopBar:function(){if(!_manager.t_anim){_manager.t_anim=!0;var n=_manager.footer.innerHeight()-_cmn.tsuijyu.innerHeight();_cmn.tsuijyu.css({position:"absolute",bottom:n}),_cmn.tsuijyu.addClass("stop"),_manager.t_anim=!1}},moveBar:function(){if(!_manager.t_anim){_manager.t_anim=!0;var n=0;_cmn.tsuijyu.css({position:"fixed",bottom:n}),_cmn.tsuijyu.removeClass("stop"),_manager.t_anim=!1}},setResize:function(){$(window).bind("resize",function(n){_manager.resize(n,!0)})},resize:function(n,i){$(window),window.innerWidth,window.innerHeight}}); $(function(){}),window.onload=function(){_cmn||(_cmn=CmnManager.create(),_cmn.set(),_cmn.start())};