$(function () {



	var sWidth = document.documentElement.scrollWidth;



	var sHieght = document.documentElement.scrollHeight;



	var in_height = document.body.offsetHeight;



	$("#banner,#banner .bd a").width(sWidth);

window.onresize=function(){  
         var sWidth = document.documentElement.scrollWidth;
		$("#banner,#banner .bd a").width(sWidth);
		    
        };  

	$("#banner ").slide({



		titCell: ".hd li",



		mainCell: ".bd ul",



		effect: "fold",



		autoPlay: true,



		delayTime: 800,



		interTime: 6000,



		mouseOverStop: false



	});



	$("#nav").slide({

		titCell: ".title",

		targetCell: ".list",

		type: "menu",

		effect: "slideDown",

		delayTime: 200,

		triggerTime: 110,

		returnDefault: false,

		titOnClassName: "li_on"

	});	$("#nav .list").hover(function () {



		$(this).prev(".a").addClass("hover");



	}, function () {



		$(this).prev(".a").removeClass("hover");



	});





	$("#nav li:last").css("background", "none");





	$("#nav li.title,.list_box").hover(function () {		$(".list_box").css("height", "50px");		$(" #nav li:nth-child(7) .list,#nav li:nth-child(8) .list").addClass("text_left");		$("#nav .list").css("z-index", "999");	}, function () {		$(".list_box").css("height", "0px");	});

	//搜索



	$("#bnt_search").click(function () {



		$("#j_seach_box").fadeIn();

		$("#j_seach_box .bg_box").fadeIn();



	});

	$("#j_seach_box .bg_box").click(function () {



		$("#j_seach_box").fadeOut(200);

		$("#j_seach_box .bg_box").fadeOut(200);



	});	//网站地图



	$("#bnt_site_map").click(function () {

		$("#site_map_box").fadeIn(100);

		$("#site_map_box .bg_box").fadeIn(100);

		$("#site_map_box .box").animate({

			right: "0"

		});

		$('.j_div_scoll').perfectScrollbar();

	});



	$("#bnt_close_nav,#bnt_close").click(function () {

		$("#site_map_box").fadeOut();

		$("#site_map_box .bg_box").fadeOut();



		$("#site_map_box .box").animate({

			right: "-360px"

		});



	});



	$("#slide_yewu").slide({

		titCell: ".hd a",

		mainCell: ".bd ul",

		effect: "fold"

	});

	$("#bnt_ewm").click(function () {

		$("#fix_ewm_box").fadeIn();
		$("#fix_ewm_box .ewm img").css("margin-top","-140px");

	});





	$("#gotop").click(function () {



		$("html,body").animate({

			scrollTop: 0

		}, 700);



	});	//首页



	$(".s_fast_link").slide({

		mainCell: ".bd ul",

		autoPlay: true,

		effect: "topLoop",

		vis: 1,

		scroll: 1,

		trigger: "click"

	});



	//首页图片新闻推荐

	$("#s_slide_news").slide({

		titCell: ".hd ul",

		mainCell: ".bd ul",

		effect: "leftLoop",

		delayTime: 800,

		titOnClassName: "current",

		autoPage: true,

		autoPage: '<li><a href="javascript:void(0)"> </a></li>'

	});



	//首页tab切图新闻

	$("#s_tab_news").slide({

		titCell: ".hd a",

		mainCell: ".bd",

		effect: "fold",

		delayTime: 300,

		interTime: 6000,

	});



	//内页右侧切换



	$("#left_slide").slide({

		mainCell: ".bd ul",

		effect: "leftLoop"

	});	//音频控件



	$("#n_about .speak_box").click(function () {



		var bg_music = $(this).children("audio");



		if ($(bg_music).hasClass("auto_play")) {



			bg_music.trigger('pause');



			$("#n_about .speak_box").addClass("m_stop");

			$(bg_music).removeClass("auto_play");





		} else {



			$(bg_music).trigger('play');



			$("#n_about .speak_box").removeClass("m_stop");

			$(bg_music).addClass("auto_play");





		}



	});	//音频控件end



	//发展历程

	$("#n_dsj").slide({

		mainCell: ".bd ul",

		effect: "leftLoop",

		delayTime: 800,

		trigger: "click",

		vis: 3

	});


	//二维码
 $("#bnt_ewm1").click(function() {
		 $("#fix_ewm_box1").fadeIn();
	 	$("#fix_ewm_box1 .ewm img").css("margin-top","-100px");
	  });

 $("#bnt_ewm2").click(function() {
		 $("#fix_ewm_box2").fadeIn();
	 	$("#fix_ewm_box2 .ewm img").css("margin-top","-100px");
	  });

	//下属单位



	$("#n_underling").slide({

		mainCell: ".bd ul",

		effect: "leftLoop",

		delayTime: 800,

		vis: 3

	});	//产业发展



	$("#slide_cy").slide({

		mainCell: ".bd .box",

		effect: "leftLoop",

		delayTime: 800,

		vis: 3

	});





	//重点项目

	$("#cy_project").slide({

		mainCell: ".bd ",

		effect: "fold",

		delayTime: 800

	});



	//鸟瞰图

	$("#bnt_nk1").click(function () {

		$("#fix_nk_box1").fadeIn();

	});

	$("#bnt_nk2").click(function () {

		$("#fix_nk_box2").fadeIn();

	});

	$(".nkt_close").click(function () {

		$("#fix_nk_box1,#fix_nk_box2").fadeOut();

		$("#page_show_box .bg_box").fadeOut(0);



		$("#page_show_box").fadeOut(300);

	});

	//产业详情



	$("#xg_project").slide({

		mainCell: ".bd ul",

		effect: "leftLoop",

		delayTime: 800,

		vis: 4

	});

	$("#slide_business_photo").slide({

		mainCell: ".bd ul",

		effect: "leftLoop",

		delayTime: 800

	});	//推荐新闻



	$("#n_news .up").slide({

		titCell: ".hd ul",

		mainCell: ".bd ul",

		effect: "fold",

		delayTime: 800,

		titOnClassName: "on",

		autoPage: true,

		autoPage: '<li><a href="javascript:void(0)"></a></li>'

	});



	//视频中心

	$("#n_video").slide({

		titCell: ".hd ul",

		mainCell: ".bd .box",

		effect: "fold",

		delayTime: 800,

		titOnClassName: "on",

		autoPage: true,

		autoPage: '<li><a href="javascript:void(0)"></a></li>'

	});


 
 $("#n_party .un_box li").hover(function(){
    $(this).prev().css("border-bottom","1px solid #fff");
	 $(this).css("border-bottom","1px solid #fff");
	},function(){
		$(this).prev().css("border-bottom","1px solid #eaebef");
	 	$(this).css("border-bottom","1px solid #eaebef");
	}); 

	//招聘岗位



	$("#hr_slide_gw").slide({

		mainCell: ".bd ul",

		effect: "topMarquee",

		autoPlay: true,

		interTime: 120,

		pnLoop: false,

		trigger: "click",

		vis: 7

	});	//招聘公告



	$("#hr_slide").slide({

		mainCell: ".bd ul",

		effect: "leftLoop",

		vis: 2

	});





	//联系我们

	$("#slide_contact").slide({

		mainCell: ".bd .box",

		effect: "fold",

		delayTime: 800

	});





	function an_map_mark() {

		$(".an_map_mark").animate({

			bottom: "70px"

		}, 500);



		$(".an_map_mark").animate({

			bottom: "50px"

		}, 500);

		$(".an_map_mark").animate({

			bottom: "70px"

		}, 500);



		$(".an_map_mark").animate({

			bottom: "50px"

		}, 500);

		setTimeout(an_map_mark, 10);

	}

	an_map_mark();





	$(".ar_article p:last").addClass("no_padding");
	$("#n_team .text_box p:last").addClass("no_padding");



	$("#list_slide dt").click(function () {



		if ($(this).hasClass('on')) {



			$(this).next().slideUp();



			$(this).removeClass("on");



		} else {



			$("#list_slide dt").removeClass("on");



			$("#list_slide dd").slideUp();



			$(this).addClass("on");



			$(this).next().slideDown();



		}



	});



	//专题

	$("#banner_zt ").slide({



		titCell: ".hd li",



		mainCell: ".bd ul",



		effect: "fold",



		autoPlay: true,



		delayTime: 800,



		interTime: 3000,



		mouseOverStop: false



	});

	$("#gotop").click(function () {

		$("html,body").animate({

			scrollTop: 0

		}, 600);

	});

	//相关链接



	$("#bnt_link1").click(function () {

		$(this).toggleClass("icon_un");

		$("#content_link1").slideDown(0);



	});

	$("#bnt_link2").click(function () {

		$(this).toggleClass("icon_un");

		$("#content_link2").slideDown(0);



	});

	$(".ar_article p:last").addClass("no_padding");

	$("#font_lg").click(function () {
		$(".font_box a").removeClass("on");
		$(this).addClass("on");
		$(".n_article .ar_article").removeClass("font_size_md");

		$(".n_article .ar_article").removeClass("font_size_sm");

		$(".n_article .ar_article").addClass("font_size_lg");

	});

	$("#font_md").click(function () {
		$(".font_box a").removeClass("on");
		$(this).addClass("on");
		$(".n_article .ar_article").removeClass("font_size_lg");

		$(".n_article .ar_article").removeClass("font_size_sm");

		$(".n_article .ar_article").addClass("font_size_md");

	});

	$("#font_sm").click(function () {
		$(".font_box a").removeClass("on");
		$(this).addClass("on");
		$(".n_article .ar_article").removeClass("font_size_md");

		$(".n_article .ar_article").removeClass("font_size_sm");

		$(".n_article .ar_article").addClass("font_size_sm");

	});

	$("#bnt_close_pop").click(function(){$("#j_pop").fadeOut();});	 
	$("#bnt_close_pop1").click(function(){$("#j_pop1").fadeOut();});	 

});

 
window.onscroll = function () {



	if ($(window).scrollTop() > 600) {

		$("#gotop").slideDown();} else if ($(window).scrollTop() < 600) {


		$("#gotop").slideUp();

	}



};
 




$(document).mouseup(function (e) {



	var _con = $('#bnt_site_map,#nav_right,#j_seach_box,.bnt_link,#bnt_nk1,#bnt_nk2,#j_seach_box form,#bnt_search'); // 设置目标区域



	if (!_con.is(e.target) && _con.has(e.target).length === 0) { // Mark 1



		$("#nav_right").animate({

			right: "-180px"

		});

		$("#fix_ewm_box").fadeOut();
		$("#fix_ewm_box .ewm img").css("margin-top","-160px");
		$("#fix_ewm_box1").fadeOut();
		$("#fix_ewm_box1 .ewm img").css("margin-top","-120px");
		$("#fix_ewm_box2").fadeOut();
		$("#fix_ewm_box2 .ewm img").css("margin-top","-120px");


		$("#content_link1,#content_link2").slideUp();

		$("#site_map_box").fadeOut();

		$("#site_map_box .bg_box").fadeOut();



		$("#site_map_box .box").animate({

			right: "-360px"

		});

	}



});
