$(function(){
	/*
	* 调用的方法
	* */
	PublicAction.AjaxSend(
	    {
	        CORID:'wa_submit',               /*操作ID*/
	    }
	);

	// 报名弹窗
	$('.beg-cls').on('click',function(){
		$('.beg-box').hide(function(){
			$('.beg').hide(function(){
				$('.beg-box input[name="hid"]').val('0');
			})
		})
	})
	$('.indebtn').on('click',function(){
		var oid  = $(this).attr('data-id');
		$('.beg-box input[name="hid"]').val(oid);
		$('.beg').show(function(){
			$('.beg-box').show(function(){})
		})
	})

})


new Swiper('.m_fxs', {
    loop : true,
    spaceBetween: 10,
    centeredSlides: true,
    slidesPerView: 'auto',
    touchRatio: 0.5,
    slideToClickedSlide: true,
    pagination: '.swiper-pagination',
});

new Swiper('.m_fxss', {
    loop : true,
    spaceBetween: 10,
    centeredSlides: true,
    slidesPerView: 'auto',
    touchRatio: 0.5,
    slideToClickedSlide: true,
    pagination: '.swiper-pagination',
});

jQuery(".phmarani_x3_bottom").slide({
	mainCell:".bd ul",
	autoPlay:true,
	effect:"topMarquee",
	vis:1,
	interTime:80,
	trigger:"click",

});

// $("#indexReport-list li").each(function(){
// 	var obj=$(this);
// 	var dw=obj.find(".list_m").eq(0).width();
// 	var cw=obj.find(".scrollText span").eq(0).width();
// 	var cx=0;
// 	//宽度超出当前content宽度才滚动
// 	if(cw>dw){
// 		var scrollval=null;//滚动事件变量
// 		obj.find(".scrollText span").eq(0).append('<i style="width:30px; display:inline-block"></i>'+obj.find(".scrollText span").eq(0).html());
// 		scrollval=setInterval(function(){
// 			obj.find(".scrollText span").eq(0).css({
// 				 "left":"-"+cx+"px"
// 			 })
// 			 if(cx>(cw-dw)+dw)
// 				cx=0;
// 			 cx++;			 
// 		 },25);
// 	}		
// });



$('.m_video_img').on('click',function(){   //处理视频播放图标
	var that = $(this);
	var oid = that.siblings('video.m_video_sp').attr('id');

    var _video = document.getElementById(oid);

    _video.play();   //点击图标视频播放
    that.siblings('video.m_video_sp').attr('controls','controls');    //点击 显示默认的控件
    that.hide();
})






$('.mzxbox_title span').on('click',function(){
	var _dataid =$(this).attr('dataid');
	$('.mzxbox .mzx').hide();
	$('.mzxbox .mzx[dataid="'+_dataid+'"]').show();
	$(this).attr('class','on').siblings().attr('class','');
})

$('.mzxbox_title span').eq(0).click();