var curN =0, curMax; var playMovie = false; var playStop = false; jQuery(window).ready(function(){ movie0(); var vDuration=8000; function setTimer(){ i = setInterval(function(){ jQuery(".mainCon1 .rollBtnA .btR").trigger("click"); }, vDuration); return i; playMovie = false; } var IntID = setTimer(); //¸ÞÀÎ ºñÁê¾ó ¸ð¼Ç (Á¿ì¹öÆ° ) jQuery(".mBlockD").eq(0).css("z-index","100"); jQuery(".mainV .movie1").fadeOut(0); jQuery(".mainV .movie2").fadeOut(0); jQuery(".mainV .movie3").fadeOut(0); jQuery(".mBlockD .moreBt").hide(); jQuery(".mBlockD .moreBt").eq(0).show(); jQuery(".mainCon1 .rollBtnA a").each(function(w){ jQuery(this).click(function(){ if(!playMovie){ playMovie = true; if(w == 0){ eval("movie"+curN+"remove()"); jQuery(".mainV .movieA").eq(curN).fadeOut(500); mConMoveP2(); // ±âÁ¸¿¡ ÀÖ´ø ¿µ¿ªÀ» ¿ÞÂÊÀ¸·Î À̵¿ jQuery(".mainV .mVisBt").removeClass("on"); jQuery(".mBlockD .moreBt").eq(curN).fadeOut(500); curN--; if(curN < 0) curN = curMax; jQuery(".mainV .movieA").eq(curN).fadeIn(500); jQuery(".mBlockD .moreBt").eq(curN).fadeIn(500); eval("movie"+curN+"()"); jQuery(".mainV .mVisBt").eq(curN).addClass("on"); mConMoveN2(); // º¸¿©Áú ¿µ¿ªÀ» ¿À¸¥ÂÊ¿¡¼­ ¿ÞÂÊÀ¸·Î À̵¿ }else if(w == 1){ eval("movie"+curN+"remove()"); jQuery(".mainV .movieA").eq(curN).fadeOut(500); jQuery(".mBlockD .moreBt").eq(curN).fadeOut(500); mConMoveP1(); // ±âÁ¸¿¡ ÀÖ´ø ¿µ¿ªÀ» ¿À¸¥ÂÊÀ¸·Î À̵¿ jQuery(".mainV .mVisBt").removeClass("on"); curN ++; if(curN > curMax) curN = 0; jQuery(".mainV .movieA").eq(curN).fadeIn(500); jQuery(".mBlockD .moreBt").eq(curN).fadeIn(500); eval("movie"+curN+"()"); jQuery(".mainV .mVisBt").eq(curN).addClass("on"); mConMoveN1();// º¸¿©Áú ¿µ¿ªÀ» ¿ÞÂÊ¿¡¼­ ¿À¸¥ÂÊÀ¸·Î À̵¿ } } }).hover(function(){ clearInterval(IntID); }, function(){ clearInterval(IntID); if(!playStop) IntID = setTimer(); }) }) //¸ÞÀÎ ºñÁê¾ó ¸ð¼Ç (µ¿±×¶ó¹Ì ¹öÆ°) curMax = jQuery(".mainV .mVisBt").size()-1; jQuery(".mainV .mVisBt").each(function(q){ jQuery(this).click(function(){ if(q!==curN){ if(q==0){ //Å«¼ö¿¡¼­ 0·Î (Àüü ¸®¼Â/ 1,2,3 ¿¡¼­) playMovie = true; jQuery(".mainV .movie0").fadeIn(500); if(curN==1){ jQuery(".mainV .movie1").fadeOut(500, function(){movie1remove()}); }else if(curN==2){ jQuery(".mainV .movie2").fadeOut(500, function(){movie2remove()}); }else{ jQuery(".mainV .movie3").fadeOut(500, function(){movie3remove()}); } mConMoveP2(); jQuery(".mainV .mVisBt").removeClass("on"); jQuery(".mBlockD .moreBt").fadeOut(500); jQuery(".mBlockD .moreBt").eq(0).fadeIn(500); curN = q; movie0(); jQuery(this).addClass("on"); mConMoveN2(); }else if(q==1){ if(q > curN){ //ÀÛÀº¼ö¿¡¼­ 1·Î (movie1 º¸¿©Á®¾ßÇÔ/0¿¡¼­) playMovie = true; jQuery(".mainV .movie1").fadeIn(500); movie0remove(); mConMoveP1(); jQuery(".mainV .mVisBt").removeClass("on"); jQuery(".mainV .movie0").fadeOut(500, function(){movie0remove();}); jQuery(".mBlockD .moreBt").fadeOut(500); jQuery(".mBlockD .moreBt").eq(1).fadeIn(500); curN = q; movie1(); jQuery(this).addClass("on") mConMoveN1(); }else { //Å«¼ö¿¡¼­ 1·Î (movie1 º¸¿©Á®¾ßÇÔ/ 2,3¿¡¼­) playMovie = true; jQuery(".mainV .movie1").fadeIn(500); if(curN==2){ jQuery(".mainV .movie2").fadeOut(500, function(){movie2remove()}); }else{ jQuery(".mainV .movie3").fadeOut(500, function(){movie3remove()}); } mConMoveP2(); jQuery(".mainV .mVisBt").removeClass("on"); jQuery(".mBlockD .moreBt").fadeOut(500); jQuery(".mBlockD .moreBt").eq(1).fadeIn(500); curN = q; movie1(); jQuery(this).addClass("on"); mConMoveN2(); } }else if(q==2){ if(q > curN){ //ÀÛÀº¼ö¿¡¼­ 2·Î (movie2 º¸¿©Á®¾ßÇÔ/ 0,1 ¿¡¼­) playMovie = true; jQuery(".mainV .movie2").fadeIn(500); mConMoveP1(); jQuery(".mainV .mVisBt").removeClass("on"); if(curN==0){ jQuery(".mainV .movie0").fadeOut(500, function(){movie0remove()}); }else{ jQuery(".mainV .movie1").fadeOut(500, function(){movie1remove()}); } jQuery(".mBlockD .moreBt").fadeOut(500); jQuery(".mBlockD .moreBt").eq(2).fadeIn(500); curN = q; movie2(); jQuery(this).addClass("on") mConMoveN1(); }else { //Å«¼ö¿¡¼­ 2·Î (movie2 º¸¿©Á®¾ßÇÔ/ 3¿¡¼­) playMovie = true; jQuery(".mainV .movie2").fadeIn(500); jQuery(".mainV .movie3").fadeOut(500, function(){movie3remove()}); mConMoveP2(); jQuery(".mainV .mVisBt").removeClass("on"); jQuery(".mBlockD .moreBt").fadeOut(500); jQuery(".mBlockD .moreBt").eq(2).fadeIn(500); curN = q; movie2(); jQuery(this).addClass("on"); mConMoveN2(); } }else{ //ÀÛÀº ¼ö¿¡¼­ 3À¸·Î (Àüü ¸®¼Â/ 0,1,2 ¿¡¼­) playMovie = true; jQuery(".mainV .movie3").fadeIn(500); if(curN==0){ jQuery(".mainV .movie0").fadeOut(500, function(){movie0remove()}); }else if(curN==1){ jQuery(".mainV .movie1").fadeOut(500, function(){movie1remove()}); }else{ jQuery(".mainV .movie2").fadeOut(500, function(){movie2remove()}); } mConMoveP1(); jQuery(".mainV .mVisBt").removeClass("on"); jQuery(".mBlockD .moreBt").fadeOut(500); jQuery(".mBlockD .moreBt").eq(3).fadeIn(500); curN = q; movie3(); jQuery(this).addClass("on"); mConMoveN1(); } } }).hover(function(){ clearInterval(IntID); }, function(){ clearInterval(IntID); if(!playStop) IntID = setTimer(); }) }) //ºñÁê¾ó ¸ð¼Ç µ¿ÀÛ¹öÆ° (Àç»ý / ¸ØÃã ) jQuery(".mVisBtnD .mPlayBt").click(function(){ if(!playMovie) { playMovie = true; if(!playStop) { // ¸ØÃã ¹öÆ° playStop = true; playMovie = false; clearInterval(IntID) jQuery(this).addClass("on"); } else { // Àç»ý ¹öÆ° playStop = false; playMovie = false; clearInterval(IntID); IntID = setTimer(); jQuery(this).removeClass("on"); } } }) //Âü¿©Èı⠹è³Ê (0¹ø° ¿µ¿ª) var banMove0 = false; var banNum0 =0; $(".mBlockD0 .btnA a").each(function(w){ $(this).click(function(){ if(!banMove0){ banMove0 = true; if(banNum0 != w) { if(banNum0 < w){ $(".mBlockD0 .btnA a").removeClass("on"); $(".mBlockD0 .mBanC").stop().animate({left : '-100%'}, 450, "easeOutCubic"); banNum0 = w; $(".mBlockD0 .btnA a").eq(banNum0).addClass("on"); $(".mBlockD0 .mBanC").eq(banNum0).stop().animate({left : '100%'}, 0, "easeOutCubic"); $(".mBlockD0 .mBanC").eq(banNum0).stop().animate({left : 0}, 450, "easeOutCubic",function(){ banMove0 = false; }); }else if(banNum0 > w){ $(".mBlockD0 .btnA a").removeClass("on"); $(".mBlockD0 .mBanC").stop().animate({left : '100%'}, 450, "easeOutCubic"); banNum0 = w; $(".mBlockD0 .btnA a").eq(banNum0).addClass("on"); $(".mBlockD0 .mBanC").eq(banNum0).stop().animate({left : '-100%'}, 0, "easeOutCubic"); $(".mBlockD0 .mBanC").eq(banNum0).stop().animate({left : 0}, 450, "easeOutCubic",function(){ banMove0 = false; }); } } } }) }) //Âü¿©Èı⠹è³Ê (1¹ø° ¿µ¿ª) var banMove1 = false; var banNum1 =0; $(".mBlockD1 .btnA a").each(function(w){ $(this).click(function(){ if(!banMove1){ banMove1 = true; if(banNum1 != w) { if(banNum1 < w){ $(".mBlockD1 .btnA a").removeClass("on"); $(".mBlockD1 .mBanC").stop().animate({left : '-100%'}, 450, "easeOutCubic"); banNum1 = w; $(".mBlockD1 .btnA a").eq(banNum1).addClass("on"); $(".mBlockD1 .mBanC").eq(banNum1).stop().animate({left : '100%'}, 0, "easeOutCubic"); $(".mBlockD1 .mBanC").eq(banNum1).stop().animate({left : 0}, 450, "easeOutCubic",function(){ banMove1 = false; }); }else if(banNum1 > w){ $(".mBlockD1 .btnA a").removeClass("on"); $(".mBlockD1 .mBanC").stop().animate({left : '100%'}, 450, "easeOutCubic"); banNum1 = w; $(".mBlockD1 .btnA a").eq(banNum1).addClass("on"); $(".mBlockD1 .mBanC").eq(banNum1).stop().animate({left : '-100%'}, 0, "easeOutCubic"); $(".mBlockD1 .mBanC").eq(banNum1).stop().animate({left : 0}, 450, "easeOutCubic",function(){ banMove1 = false; }); } } } }) }) //Âü¿©Èı⠹è³Ê (2¹ø° ¿µ¿ª) var banMove2 = false; var banNum2 =0; $(".mBlockD2 .btnA a").each(function(w){ $(this).click(function(){ if(!banMove2){ banMove2 = true; if(banNum2 != w) { if(banNum2 < w){ $(".mBlockD2 .btnA a").removeClass("on"); $(".mBlockD2 .mBanC").stop().animate({left : '-100%'}, 450, "easeOutCubic"); banNum2 = w; $(".mBlockD2 .btnA a").eq(banNum2).addClass("on"); $(".mBlockD2 .mBanC").eq(banNum2).stop().animate({left : '100%'}, 0, "easeOutCubic"); $(".mBlockD2 .mBanC").eq(banNum2).stop().animate({left : 0}, 450, "easeOutCubic",function(){ banMove2 = false; }); }else if(banNum2 > w){ $(".mBlockD2 .btnA a").removeClass("on"); $(".mBlockD2 .mBanC").stop().animate({left : '100%'}, 450, "easeOutCubic"); banNum2 = w; $(".mBlockD2 .btnA a").eq(banNum2).addClass("on"); $(".mBlockD2 .mBanC").eq(banNum2).stop().animate({left : '-100%'}, 0, "easeOutCubic"); $(".mBlockD2 .mBanC").eq(banNum2).stop().animate({left : 0}, 450, "easeOutCubic",function(){ banMove2 = false; }); } } } }) }) //Âü¿©Èı⠹è³Ê (3¹ø° ¿µ¿ª) var banMove3 = false; var banNum3 =0; $(".mBlockD3 .btnA a").each(function(w){ $(this).click(function(){ if(!banMove3){ banMove3 = true; if(banNum3 != w) { if(banNum3 < w){ $(".mBlockD3 .btnA a").removeClass("on"); $(".mBlockD3 .mBanC").stop().animate({left : '-100%'}, 450, "easeOutCubic"); banNum3 = w; $(".mBlockD3 .btnA a").eq(banNum3).addClass("on"); $(".mBlockD3 .mBanC").eq(banNum3).stop().animate({left : '100%'}, 0, "easeOutCubic"); $(".mBlockD3 .mBanC").eq(banNum3).stop().animate({left : 0}, 450, "easeOutCubic",function(){ banMove3 = false; }); }else if(banNum3 > w){ $(".mBlockD3 .btnA a").removeClass("on"); $(".mBlockD3 .mBanC").stop().animate({left : '100%'}, 450, "easeOutCubic"); banNum3 = w; $(".mBlockD3 .btnA a").eq(banNum3).addClass("on"); $(".mBlockD3 .mBanC").eq(banNum3).stop().animate({left : '-100%'}, 0, "easeOutCubic"); $(".mBlockD3 .mBanC").eq(banNum3).stop().animate({left : 0}, 450, "easeOutCubic",function(){ banMove3 = false; }); } } } }) }) //¸ÞÀÎ Á¤·Ä jQuery(".mBlockD .mTit p").each(function(q){ jQuery(this).css("top", q*20); }) jQuery(".mBlockD .mBanW").each(function(q){ jQuery(this).css("left", q*310); }) jQuery(".mBlockD .mPs1 .mPhoP").each(function(q){ jQuery(this).css("left", q*222); }) jQuery(".mBlockD .mPs2 .mPhoP").each(function(q){ jQuery(this).css("left", q*222); }) jQuery(".mBlockD .mVideoD a").each(function(q){ jQuery(this).css("left", q*222); }) jQuery(".mBlockD .mNewsS ul").each(function(q){ jQuery(this).css("top", q*162); }) jQuery(".mBlockD .mTogetherD").css("opacity","0"); jQuery(".mBlockD .mTogetherD").eq(0).css("opacity","1"); //±¹³» »çȸ°øÇå È°µ¿ var mCsrN=0; var mCsrMax, mCsrMove = false; mCsrMax = jQuery(".mCsrD ul").size()-1; jQuery(".mainCon2 .rollBtnA a").each(function(b){ jQuery(this).click(function(){ if(!mCsrMove){ mCsrMove = true; if(b==0){ jQuery(".mCsrD ul").eq(mCsrN).stop().animate({left:"100%"}, 600,"easeInOutQuad"); mCsrN --; if(mCsrN < 0) mCsrN = mCsrMax; jQuery(".mCsrD ul").eq(mCsrN).stop().animate({left:"-100%"}, 0); jQuery(".mCsrD ul").eq(mCsrN).stop().animate({left:0}, 600,"easeInOutQuad", function(){mCsrMove = false;}); }else { jQuery(".mCsrD ul").eq(mCsrN).stop().animate({left:"-100%"}, 600,"easeInOutQuad"); mCsrN ++; if(mCsrMax < mCsrN)mCsrN = 0; jQuery(".mCsrD ul").eq(mCsrN).stop().animate({left:"100%"}, 0); jQuery(".mCsrD ul").eq(mCsrN).stop().animate({left:0}, 600,"easeInOutQuad", function(){mCsrMove = false;}); } } }) }) //°øÁö»çÇ× ·Ñ¸µ var mNotiN=0; var mNotiMax, mNotiMove = false; mNotiMax = jQuery(".mNotiD ul").size()-1; jQuery(".mNotiD ul").each(function(q){ jQuery(this).css("left",q*100+"%"); }) jQuery(".mNotiD .rollBtnA button").each(function(b){ jQuery(this).click(function(){ if(!mNotiMove){ mNotiMove = true; if(b==0){ jQuery(".mNotiD ul").eq(mNotiN).stop().animate({left:"100%"}, 600,"easeInOutQuad"); mNotiN --; if(mNotiN < 0) mNotiN = mNotiMax; jQuery(".mNotiD ul").eq(mNotiN).stop().animate({left:"-100%"}, 0); jQuery(".mNotiD ul").eq(mNotiN).stop().animate({left:0}, 600,"easeInOutQuad", function(){mNotiMove = false;}); }else { jQuery(".mNotiD ul").eq(mNotiN).stop().animate({left:"-100%"}, 600,"easeInOutQuad"); mNotiN ++; if(mNotiMax < mNotiN)mNotiN = 0; jQuery(".mNotiD ul").eq(mNotiN).stop().animate({left:"100%"}, 0); jQuery(".mNotiD ul").eq(mNotiN).stop().animate({left:0}, 600,"easeInOutQuad", function(){mNotiMove = false;}); } } }) }) }); var m0_twn1, m0_twn2, m0_twn3, m0_twn4, m0_twn5, m0_twn6; var m1_twn1, m1_twn2, m1_twn3, m1_twn4, m1_twn5, m1_twn6; var m2_twn1, m2_twn2, m2_twn3, m2_twn4, m2_twn5, m2_twn6; var m3_twn1, m3_twn2, m3_twn3, m3_twn4, m3_twn5, m3_twn6; var mConP_twn1,mConP_twn2,mConP_twn3,mConP_twn4,mConP_twn5,mConP_twn6,mConP_twn7; var mConN_twn1,mConN_twn2,mConN_twn3,mConN_twn4,mConN_twn5,mConN_twn6,mConN_twn7; var mConP2_twn1,mConP2_twn2,mConP2_twn3,mConP2_twn4,mConP2_twn5,mConP2_twn6,mConP2_twn7; var mConN2_twn1,mConN2_twn2,mConN2_twn3,mConN2_twn4,mConN2_twn5,mConN2_twn6,mConN2_twn7; function movie0remove(){ //console.log("movie0remove"); m0_twn1.kill(); m0_twn1_1.kill(); m0_twn2.kill(); m0_twn2_1.kill(); m0_twn3.kill(); m0_twn4.kill(); m0_twn5.kill(); jQuery(".mainV .movie0 .txt1").stop(true, true).animate({left:362, width:300, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie0 .img img").stop(true, true).animate({top:-351, width:2296, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie0 .box").stop(true, true).animate({top:145, opacity:0}, 0, "easeOutQuart"); jQuery(".mainV .movie0 .txt1").stop(true, true).animate({top:182}, 0, "easeOutQuart"); jQuery(".mainV .movie0 .txt2").stop(true, true).animate({top:210, opacity:0}, 0, "easeOutQuart"); } function movie0(){ //console.log("movie0"); m0_twn1 = new TweenMax.to(jQuery(".mainV .movie0 .txt1"), 0.2, {opacity:1, onComplete:function(){ m0_twn1_1 = new TweenMax.to(jQuery(".mainV .movie0 .txt1"), 1.5, {left:322, width:411, ease:Power3.easeOut}); }}); m0_twn2 = new TweenMax.to(jQuery(".mainV .movie0 .img img"), 0.2 ,{opacity:1, onComplete:function(){ m0_twn2_1 = new TweenMax.to(jQuery(".mainV .movie0 .img img"), 7, {top:-110,width:1060,delay:1, ease:Power2.easeInOut}); }}); m0_twn3 = new TweenMax.to(jQuery(".mainV .movie0 .box"), 1.5,{top:105, opacity:1, delay:3.7}); m0_twn4 = new TweenMax.to(jQuery(".mainV .movie0 .txt1"), 1, {top:155, delay:4.4, ease:Power3.easeOut}); m0_twn5 = new TweenMax.to(jQuery(".mainV .movie0 .txt2"), 0.7, {top:230, opacity:1, delay:4.4}); } function movie1remove(){ //console.log("movie1remove"); m1_twn1.kill(); m1_twn1_1.kill(); m1_twn2.kill(); m1_twn2_1.kill(); m1_twn3.kill(); m1_twn4.kill(); m1_twn5.kill(); m1_twn6.kill(); jQuery(".mainV .movie1 .txt1").stop(true, true).animate({left:312, width:371, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie1 .img .scean1").stop(true, true).animate({top:-150,opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie1 .img .scean2").stop(true, true).animate({top:-100, left:-200, width:1460, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie1 .box").stop(true, true).animate({top:145, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie1 .txt1").stop(true, true).animate({top:182}, 0); jQuery(".mainV .movie1 .txt2").stop(true, true).animate({top:210, opacity:0}, 300, "easeOutQuart"); } function movie1(){ //console.log("movie1"); m1_twn1 = new TweenMax.to(jQuery(".mainV .movie1 .txt1"), 0.2, {opacity:1, onComplete:function(){ m1_twn1_1 = new TweenMax.to(jQuery(".mainV .movie1 .txt1"), 2, {left:292, width:471, ease:Power3.easeOut}); }}); m1_twn2 = new TweenMax.to(jQuery(".mainV .movie1 .img .scean1"), 0.2, {opacity:1, onComplete:function(){ m1_twn2_1 = new TweenMax.to(jQuery("mainV .movie1 .img .scean1"), 3, {top:0, opacity:1, delay:0.5, ease:Power3.easeOut}); }}); m1_twn3 = new TweenMax.to(jQuery(".mainV .movie1 .img .scean2"), 3, {top:-20, left:-100, width:1260, opacity:1, delay:1.3}); m1_twn4 = new TweenMax.to(jQuery(".mainV .movie1 .box"), 1.5, {top:105, opacity:1, delay:3, ease:Power3.easeOut}); m1_twn5 = new TweenMax.to(jQuery(".mainV .movie1 .txt1"), 1, {top:155, delay:3.7, ease:Power3.easeOut}); m1_twn6 = new TweenMax.to(jQuery(".mainV .movie1 .txt2"), 0.7, {top:230, opacity:1, delay:3.7, ease:Power3.easeOut}); } function movie2remove(){ m2_twn1.kill(); m2_twn2.kill(); m2_twn2_1.kill(); m2_twn3.kill(); m2_twn4.kill(); m2_twn5.kill(); m2_twn6.kill(); jQuery(".mainV .movie2 .txt1").stop(true, true).animate({left:312, width:371, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie2 .img .scean1").stop(true, true).animate({top:-120, width:1250, left:-150,opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie2 .img .scean2").stop(true, true).animate({top:-290, width:1250, left:-188, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie2 .box").stop(true, true).animate({top:145, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie2 .txt1").stop(true, true).animate({top:182}, 0); jQuery(".mainV .movie2 .txt2").stop(true, true).animate({top:210, opacity:0}, 300, "easeOutQuart"); } function movie2(){ //console.log("movie2"); m2_twn1 = new TweenMax.to(jQuery(".mainV .movie2 .txt1"), 3, {left:292, width: 471, opacity:1, ease:Power3.easeOut}); m2_twn2 = new TweenMax.to(jQuery(".mainV .movie2 .img .scean1"), 0.2, {opacity:1, onComplete:function(){ m2_twn2_1 = new TweenMax.to(jQuery(".mainV .movie2 .img .scean1"), 2, {top:-250,width:1060, left:0, delay:0.5,onComplete:function(){ m2_twn2_2 = new TweenMax.to(jQuery(".mainV .movie2 .img .scean1"), 2, {opacity:0}); }}); }}); m2_twn3 = new TweenMax.to(jQuery(".mainV .movie2 .img .scean2"), 2.8, {top:-182,width:1060, left:0, opacity:1.3, delay:3}); m2_twn4 = new TweenMax.to(jQuery(".mainV .movie2 .box"), 1.5, {top:105, opacity:1, delay:3.8, ease:Power3.easeOut}); m2_twn5 = new TweenMax.to(jQuery(".mainV .movie2 .txt1"), 1, {top:155, delay:4.5, ease:Power3.easeOut}); m2_twn6 = new TweenMax.to(jQuery(".mainV .movie2 .txt2"), 0.7, {top:230, opacity:1, delay:4.5, ease:Power3.easeOut}); } function movie3remove(){ m3_twn1.kill(); m3_twn2.kill(); m3_twn3.kill(); m3_twn4.kill(); m3_twn5.kill(); m3_twn6.kill(); jQuery(".mainV .movie3 .txt1").stop(true, true).animate({left:312, width:371, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie3 .img .scean1").stop(true, true).animate({top:-80, width:1250, left:-150,opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie3 .img .scean2").stop(true, true).animate({top:-150, width:1200, left:-120, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie3 .box").stop(true, true).animate({top:145, opacity:0}, 300, "easeOutQuart"); jQuery(".mainV .movie3 .txt1").stop(true, true).animate({top:182}, 0); jQuery(".mainV .movie3 .txt2").stop(true, true).animate({top:210, opacity:0}, 300, "easeOutQuart"); } function movie3(){ //console.log("movie3"); m3_twn1 = new TweenMax.to(jQuery(".mainV .movie3 .txt1"), 0.2, {opacity:1, onComplete:function(){ m3_twn1_1 = new TweenMax.to(jQuery(".mainV .movie3 .txt1"), 3, {left:292, width: 471, ease:Power3.easeOut}); }}); m3_twn2 = new TweenMax.to(jQuery(".mainV .movie3 .img .scean1"), 0.2, {opacity:1, onComplete:function(){ m3_twn2_1 = new TweenMax.to(jQuery(".mainV .movie3 .img .scean1"), 3, {top:-178,width:1060, left:0, opacity:1, delay:0.5, onComplete:function(){ m3_twn2_1 = new TweenMax.to(jQuery(".mainV .movie3 .img .scean1"), 3, {opacity:0}); }}); }}); m3_twn3 = new TweenMax.to(jQuery(".mainV .movie3 .img .scean2"), 3, {top:0,width:1060, left:0, opacity:1, delay:3.2, onComplete:function(){ m3_twn3_1 = new TweenMax.to(jQuery(".mainV .movie3 .img .scean2"), 0.5, {top:-15}); }}); m3_twn4 = new TweenMax.to(jQuery(".mainV .movie3 .box"), 1.5, {top:105, opacity:1, delay:4, ease:Power3.easeOut}); m3_twn5 = new TweenMax.to(jQuery(".mainV .movie3 .txt1"), 1, {top:155, delay:4.7, ease:Power3.easeOut}); m3_twn6 = new TweenMax.to(jQuery(".mainV .movie3 .txt2"), 0.7, {top:230, opacity:1, delay:4.7, ease:Power3.easeOut}); } function mConMoveP1(){ mConP_twn1 = new TweenMax.to(jQuery(".mBlockD .mTit p").eq(curN), 0.4, {top:-20, ease:Power3.easeOut}); mConP_twn2 = new TweenMax.to(jQuery(".mBlockD .mBanW").eq(curN), 0.5, {left:-310, delay:0.2,ease:Power3.easeOut}); mConP_twn3 = new TweenMax.to(jQuery(".mBlockD .mPs1 .mPhoP").eq(curN), 0.5, {left:-222, delay:0.4, ease:Power3.easeOut}); mConP_twn4 = new TweenMax.to(jQuery(".mBlockD .mPs2 .mPhoP").eq(curN),0.5, {left:-222,delay:0.6, ease:Power3.easeOut}); mConP_twn5 = new TweenMax.to(jQuery(".mBlockD .mVideoD a").eq(curN),0.4, {left:-222, delay:0.8, ease:Power3.easeOut}); mConP_twn6 = new TweenMax.to(jQuery(".mBlockD .mNewsS ul").eq(curN), 0.3, {top:-162, delay:0.9, ease:Power3.easeOut}); mConP_twn7 = new TweenMax.to(jQuery(".mBlockD .mTogetherD").eq(curN),1.5, {opacity:0, delay:0.5,ease:Power3.easeOut}); jQuery(".mBlockD").eq(curN).css("z-index","0"); } function mConMoveN1(){ jQuery(".mBlockD").eq(curN).css("z-index","100") jQuery(".mBlockD .mTit p").eq(curN).stop().animate({top:20}, 0); jQuery(".mBlockD .mBanW").eq(curN).stop().animate({left:310}, 0); jQuery(".mBlockD .mPs1 .mPhoP").eq(curN).stop().animate({left:222}, 0); jQuery(".mBlockD .mPs2 .mPhoP").eq(curN).stop().animate({left:222}, 0); jQuery(".mBlockD .mVideoD a").eq(curN).stop().animate({left:222}, 0); jQuery(".mBlockD .mNewsS ul").eq(curN).stop().animate({top:162}, 0); mConN_twn1 = new TweenMax.to(jQuery(".mBlockD .mTit p").eq(curN), 0.5, {top:0, ease:Power3.easeOut}); mConN_twn2 = new TweenMax.to(jQuery(".mBlockD .mBanW").eq(curN),0.5, {left:0, delay:0.2, ease:Power3.easeOut}); mConN_twn3 = new TweenMax.to(jQuery(".mBlockD .mPs1 .mPhoP").eq(curN), 0.5, {left:0, delay:0.4, ease:Power3.easeOut}); mConN_twn4 = new TweenMax.to(jQuery(".mBlockD .mPs2 .mPhoP").eq(curN), 0.5, {left:0,delay:0.6, ease:Power3.easeOut}); mConN_twn5 = new TweenMax.to(jQuery(".mBlockD .mVideoD a").eq(curN), 0.4, {left:0, delay:0.8, ease:Power3.easeOut}); mConN_twn6 = new TweenMax.to(jQuery(".mBlockD .mNewsS ul").eq(curN), 0.3, {top:0, delay:0.9, ease:Power3.easeOut}); mConN_twn7 = new TweenMax.to(jQuery(".mBlockD .mTogetherD").eq(curN),1.5, {opacity:1, delay:0.5, ease:Power3.easeOut, onComplete:function(){ playMovie = false; }}); } function mConMoveP2(){ mConP2_twn1 = new TweenMax.to(jQuery(".mBlockD .mTit p").eq(curN), 0.5, {top:20, ease:Power3.easeOut}); mConP2_twn2 = new TweenMax.to(jQuery(".mBlockD .mBanW").eq(curN), 0.5, {left:310, delay:0.2,ease:Power3.easeOut}); mConP2_twn3 = new TweenMax.to(jQuery(".mBlockD .mPs1 .mPhoP").eq(curN), 0.5, {left:222, delay:0.4, ease:Power3.easeOut}); mConP2_twn4 = new TweenMax.to(jQuery(".mBlockD .mPs2 .mPhoP").eq(curN),0.5, {left:222,delay:0.6, ease:Power3.easeOut}); mConP2_twn5 = new TweenMax.to(jQuery(".mBlockD .mVideoD a").eq(curN),0.4, {left:222, delay:0.8, ease:Power3.easeOut}); mConP2_twn6 = new TweenMax.to(jQuery(".mBlockD .mNewsS ul").eq(curN), 0.3, {top:162, delay:0.9, ease:Power3.easeOut}); mConP2_twn7 = new TweenMax.to(jQuery(".mBlockD .mTogetherD").eq(curN),1.5, {opacity:0, delay:0.5,ease:Power3.easeOut}); jQuery(".mBlockD").eq(curN).css("z-index","0") } function mConMoveN2(){ jQuery(".mBlockD").eq(curN).css("z-index","100") jQuery(".mBlockD .mTit p").eq(curN).stop().animate({top:-20}, 0); jQuery(".mBlockD .mBanW").eq(curN).stop().animate({left:-310}, 0); jQuery(".mBlockD .mPs1 .mPhoP").eq(curN).stop().animate({left:-222}, 0); jQuery(".mBlockD .mPs2 .mPhoP").eq(curN).stop().animate({left:-222}, 0); jQuery(".mBlockD .mVideoD a").eq(curN).stop().animate({left:-222}, 0); jQuery(".mBlockD .mNewsS ul").eq(curN).stop().animate({top:-162}, 0); mConN2_twn1 = new TweenMax.to(jQuery(".mBlockD .mTit p").eq(curN), 0.5, {top:0, ease:Power3.easeOut}); mConN2_twn2 = new TweenMax.to(jQuery(".mBlockD .mBanW").eq(curN),0.5, {left:0, delay:0.2, ease:Power3.easeOut}); mConN2_twn3 = new TweenMax.to(jQuery(".mBlockD .mPs1 .mPhoP").eq(curN), 0.5, {left:0, delay:0.4, ease:Power3.easeOut}); mConN2_twn4 = new TweenMax.to(jQuery(".mBlockD .mPs2 .mPhoP").eq(curN), 0.5, {left:0,delay:0.6, ease:Power3.easeOut}); mConN2_twn5 = new TweenMax.to(jQuery(".mBlockD .mVideoD a").eq(curN), 0.4, {left:0, delay:0.8, ease:Power3.easeOut}); mConN2_twn6 = new TweenMax.to(jQuery(".mBlockD .mNewsS ul").eq(curN), 0.3, {top:0, delay:0.9, ease:Power3.easeOut}); mConN2_twn7 = new TweenMax.to(jQuery(".mBlockD .mTogetherD").eq(curN),1.5, {opacity:1, delay:0.5, ease:Power3.easeOut, onComplete:function(){ playMovie = false; }}); }