$(function () {
	$("#artist_13v2 .secect_2 .sellbox .ul_flex .flex .hover_s").hover(function(){
		$(this).find("img").css("transform","scale(1.05)");
	},function(){
		$(this).find("img").css("transform","scale(1)");
	});
	
	$('#part_img_1').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_1_link').offset().top - 0}, 1000);
	});
	$('#part_img_2').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_2_link').offset().top - 200}, 1000);
	});
	$('#part_img_3').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_3_link').offset().top - 0}, 1000);
	});
	$('#part_img_4').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_4_link').offset().top - 200}, 1000);
	});
	$('#part_img_5').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_5_link').offset().top - 150}, 1000);
	});
	$('#part_img_6').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_5_link').offset().top - 150}, 1000);
	});
	$('#part_img_7').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_7_link').offset().top -200}, 1000);
	});
	$('#part_img_8').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_8_link').offset().top -150}, 1000);
	});
	$('#part_img_9').click(function(){
		$('html,body').animate({scrollTop:$('#part_img_5_link').offset().top -150}, 1000);
	});
	
 	var client_width = $(window).width() + 17;
	var client_height = ($(window).height())/3;
	if(client_width >900){
		$(window).scroll(function() {
			var p = $(this).scrollTop();
			var pro_8_bigbox = $("#artist_13v2 .secect_8 .box_1").offset().top;
				if(p > (pro_8_bigbox - client_height)){
			 		$("#artist_13v2 .secect_8 .box_1 .flex_ul .num_1 .pro").addClass("animation");
			 		$("#artist_13v2 .secect_8 .box_1 .flex_ul .num_2 .pro").addClass("animation");
			 		setTimeout(function(){
			 			$("#artist_13v2 .secect_8 .box_1 .flex_ul .p_3").css("visibility","visible")
			 			$("#artist_13v2 .secect_8 .box_1 .flex_ul .p_4").css("visibility","visible")
			 		}, 1200);
			 	}
	   	})
	}
	
	setTimeout(function(){
		artist_13v2();
	}, 500);				
			
	function artist_13v2(){
		var i = $(window).width(), 
		n = window.innerHeight, 
		r = i <= 1100;
		var isS = $(window).width() <1367 && $(window).width() > 1342;
			//ut2_11 壁纸图缩小 动画
		var secect_7_act = $("#artist_13v2 .secect_7");
		var secect_7_act_img = $("#artist_13v2 .secect_7 .bigbox .div_right .div_img_act");
		
		if (!r) {
			
			
			var s_7 = gsap.timeline();
		    	s_7.to(secect_7_act_img , 0, {
		            left: "47vw",
		            top: "37.5vw"
		        }).to(secect_7_act_img, 1, {
		        	left: "0vw",
		            top: "0vw"
	            });
	            
				ScrollTrigger.create({
					animation: s_7,
					trigger: secect_7_act,
					scrub: !0,
					start: "top 102%",
					end: "bottom 125%",
					onUpdate: function(e) {}
				});
		}
	}
	
	var mySwiper_1 = new Swiper ('#swiper_1', {
	    loop: true,
	    autoplay: {
	      delay: 5000,
	    },
	    speed:1000,
	    grabCursor: true,
	    slidesPerView: '1',
	    pagination: {
            el: '.pagination_9',
            clickable: true,
        },
	})
	
	var mySwiper_2 = new Swiper ('#swiper_2', {
	    loop: true,
	    autoplay: {
	      delay: 7000,
	    },
	    speed:1000,
	    slidesPerView: '1',
	    grabCursor : false,
	    navigation: {
	    	nextEl: ".swiper_right_11",
	    	prevEl: ".swiper_left_11"
	    }
	})
	
	$("#artist_13v2 .secect_11 .swiper .swiper_div .swiper_left_11").hover(function(){
		$("#artist_13v2 .secect_11 .swiper .zuo_hover_img").css("display","block");
		$("#artist_13v2 .secect_11 .swiper .zuo_img").css("display","none");
	},function(){
		$("#artist_13v2 .secect_11 .swiper .zuo_hover_img").css("display","none");
		$("#artist_13v2 .secect_11 .swiper .zuo_img").css("display","block");
	});
	
	$("#artist_13v2 .secect_11 .swiper .swiper_div .swiper_right_11").hover(function(){
		$("#artist_13v2 .secect_11 .swiper .you_hover_img").css("display","block");
		$("#artist_13v2 .secect_11 .swiper .you_img").css("display","none");
	},function(){
		$("#artist_13v2 .secect_11 .swiper .you_hover_img").css("display","none");
		$("#artist_13v2 .secect_11 .swiper .you_img").css("display","block");
	});
 
})