new dk_slideplayer("#pub_slideplay",1,{width:"100%",height:"360px",fontsize:"14px",time:"5000"});// 滚动图带数字123
new dk_slideplayer("#pub_slideplay2",0,{width:"100%",height:"185px",fontsize:"12px",bottom:"25px",time:"5000"});
$(function(){ 

            $("#menu_zrxm h2 a").hover(function(){

               

                    $(this).addClass("cur").siblings().removeClass("cur");

                    $("#menu_zrxm .table_item table").hide().eq($(this).index()).show();

              },function(){
				
				});

            $("#menu_cbxm h2 a").hover(function(){

             

                    $(this).addClass("cur").siblings().removeClass("cur");

                    $("#menu_cbxm .table_item table").hide().eq($(this).index()).show();

                },function(){
				
				});
			
			
			
			 $("#menu_zrxm2 h2 a").hover(function(){

               

                    $(this).addClass("cur").siblings().removeClass("cur");

                    $("#menu_zrxm2 .table_item table").hide().eq($(this).index()).show();

              },function(){
				
				});

            $("#menu_cbxm2 h2 a").hover(function(){

             

                    $(this).addClass("cur").siblings().removeClass("cur");

                    $("#menu_cbxm2 .table_item table").hide().eq($(this).index()).show();

                },function(){
				
				});
			
			
			 $("#menu_zrxm3 h2 a").hover(function(){

               

                    $(this).addClass("cur").siblings().removeClass("cur");

                    $("#menu_zrxm2 .table_item table").hide().eq($(this).index()).show();

              },function(){
				
				});

            $("#menu_cbxm3 h2 a").hover(function(){

             

                    $(this).addClass("cur").siblings().removeClass("cur");

                    $("#menu_cbxm3 .table_item table").hide().eq($(this).index()).show();

                },function(){
				
				});
           
		   $(".focus_news_tit ul li").hover(function(){

                    $(this).addClass("curr").siblings().removeClass("curr");
                    $(".tabGwyxxf").hide().eq($(this).index()).show();
                    $(".focus_news_tit span a").hide().eq($(this).index()).show();
                },function(){
				
				});


        })		


$(function(){ 

			$('#index').addClass('active');

			//轮播

			var swiper = new Swiper('.swiper-main', {

				loop: true,

				speed: 2000,

				autoplay: {

					delay: 3000,

					disableOnInteraction: false,

				},

				pagination: {

					el: '.swiper-pagination',

					clickable: true,

					bulletClass : 'main-bullet',

					bulletActiveClass: 'main-bullet-active',

				},

			});

			//典型案例轮播




//用户登录
$("#submitAddforydl").click(function(){  

    
		  var targetUrl = $("#addFormdl").attr("action");    
		  var data = $("#addFormdl").serialize();   
		
		   $.ajax({ 
			type:'post',  
			url:targetUrl, 
			cache: false,
			data:data,  
			dataType:'json', 
			success:function(data){
				
				//alert();
				var info=data.split("_");
				
			//	
				if(info[0]=="success"){
					//alert("登录成功");
					 var geurl = $(".content").attr("geurl");    
					window.location.href=geurl+"/cn/hyzx";
					
					}else{
						alert(info[1]);
						
						}
				},
			error:function(){ 
			 alert("请求失败")
			}
		   })
			
		
			
           
        })
//会员注册
$("#submitAddforzc").click(function(){ 

    	
		  var targetUrl = $("#addFormzc").attr("action");    
		  var data = $("#addFormzc").serialize();
		  
	  
		
		   $.ajax({ 
			type:'post',  
			url:targetUrl, 
			cache: false,
			data:data,  
			dataType:'html', 
			success:function(data){
				
				
				var info=data.split("_");
				
				alert(info[1]);
				if(info[0]=="success"){
					document.getElementById("addFormzc").reset();
					
					}
				
				},
			error:function(){ 
			 alert("请求失败")
			}
		   })
			
		
			
           
        })


//意向登记
$("#submitAdd").click(function(){ 

    
		  var targetUrl = $("#addForm").attr("action");    
		  var data = $("#addForm").serialize();   
		 
		   $.ajax({ 
			type:'post',  
			url:targetUrl, 
			cache: false,
			data:data,  
			dataType:'json', 
			success:function(data){
				
				
				var info=data.split("_");
				
				alert(info[1]);
				if(info[0]=="success"){
					document.getElementById("addFormzc").reset();
					
					}
				},
			error:function(){ 
			 alert("请求失败")
			}
		   })
			
		
			
           
        })
//表单修改
 
	$("#submitinfomend").click(function(){ 
				for ( instance in CKEDITOR.instances )CKEDITOR.instances[instance].updateElement();
				 $("#Form3_67").ajaxSubmit({  
                        type: 'post',  
                        success: function(data){  
						
						var info=data.split("_");
				
						alert(info[1]);
						if(info[0]=="success"){
							 var geurl = $(".formfor").attr("geurl");    
							window.location.href=geurl+"/cn/shgg";
						//	document.getElementById("Form3_67").reset();
							}
                          
						
						   
						  
                        },  
                        error: function(XmlHttpRequest, textStatus, errorThrown){  
                            alert( "请求失败");  
                        }  
                    }); 
			
			return false;
				
	 })
	//表单提交
 
	$("#submitinfotj").click(function(){  
				for ( instance in CKEDITOR.instances )CKEDITOR.instances[instance].updateElement();
				 $("#Form3_66").ajaxSubmit({  
                        type: 'post',  
                        success: function(data){  
						
						var info=data.split("_");
						
						alert(info[1]);
						if(info[0]=="success"){ 
							document.getElementById("Form3_66").reset();
							 var geurl = $(".formfor").attr("geurl");    
							window.location.href=geurl+"/cn/shgg";
							}
                          
						
						   
						  
                        },  
                        error: function(XmlHttpRequest, textStatus, errorThrown){  
                            alert( "请求失败");  
                        }  
                    }); 
			
			return false;
				
	 })
});





		
		
		

	 
	 
	 
var Speed = 10; //速度(毫秒)

var Space = 10; //每次移动(px)

var PageWidth = 128; //翻页宽度

var fill = 0; //整体移位

var MoveLock = false;

var MoveTimeObj;

var Comp = 0;

var AutoPlayObj = null;

GetObj("List2").innerHTML = GetObj("List1").innerHTML;

GetObj('ISL_Cont').scrollLeft = fill;

GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);}

GetObj("ISL_Cont").onmouseout = function(){AutoPlay();}

AutoPlay();

function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval



('document.all.'+objName)}}

function AutoPlay(){ //自动滚动

clearInterval(AutoPlayObj);

AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',5000); //间隔时间

}

function ISL_GoUp(){ //上翻开始

if(MoveLock) return;

clearInterval(AutoPlayObj);

MoveLock = true;

MoveTimeObj = setInterval('ISL_ScrUp();',Speed);

}

function ISL_StopUp(){ //上翻停止

clearInterval(MoveTimeObj);

if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){

Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth);

CompScr();

}else{

MoveLock = false;

}

AutoPlay();

}

function ISL_ScrUp(){ //上翻动作

if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj



('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth}

GetObj('ISL_Cont').scrollLeft -= Space ;

}

function ISL_GoDown(){ //下翻

clearInterval(MoveTimeObj);

if(MoveLock) return;

clearInterval(AutoPlayObj);

MoveLock = true;

ISL_ScrDown();

MoveTimeObj = setInterval('ISL_ScrDown()',Speed);

}

function ISL_StopDown(){ //下翻停止

clearInterval(MoveTimeObj);

if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){

Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill;

CompScr();

}else{

MoveLock = false;

}

AutoPlay();

}

function ISL_ScrDown(){ //下翻动作

if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft =



GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;}

GetObj('ISL_Cont').scrollLeft += Space ;

}

function CompScr(){

var num;

if(Comp == 0){MoveLock = false;return;}

if(Comp < 0){ //上翻

if(Comp < -Space){

   Comp += Space;

   num = Space;



}else{

   num = -Comp;

   Comp = 0;

}

GetObj('ISL_Cont').scrollLeft -= num;

setTimeout('CompScr()',Speed);

}else{ //下翻

if(Comp > Space){

   Comp -= Space;

   num = Space;

}else{

   num = Comp;

   Comp = 0;

}

GetObj('ISL_Cont').scrollLeft += num;

setTimeout('CompScr()',Speed);

}

}


$(function () {
                        $(".loginRegist li").each(function (i) {
                            $(this).mouseover(function () {
                                
                                $(".loginbox").css("display", "none")
                                $(".loginbox").eq(i).css("display", "block")
                                $(".loginRegist li").removeClass("activeLi")
                                $(".loginRegist li").eq(i).addClass("activeLi")

                            })
                        })
                    })





var tt = new ss.slider();

tt.init({

gallery: 'gal-wrap',

control: 'gal-panel',

dir: false,

index: 0,

speed: 20,

interval: 4000,

type: 'mouseover',

type2: "mouseout"

  });

function setImg(v)

 {

if(v==1)

 {

 Clear() ;

 }

else

{

mAuto() ;

}

}



function nnnd(id){
	
	
	var url=id;
	
	if(url!='undefined'){
	  		
		   $.ajax({ 
			type:'post',  
			url:url, 
			cache: false,
			dataType:'json', 
			success:function(data){
				
				
				document.getElementById("from_titlegetdele").style.display="none";
				
					alert('删除成功');
				
				},
			error:function(){ 
			 alert("请求失败")
			}
		   })
			
			
			
           
       }
	
	}