//首页产品
function ShowProduct(Info_ID){
	$('#ShowProduct1').html("<div class='jiazai'>数据加载中....</div>");
	document.getElementById("sub_1").className='ipblack';
	document.getElementById("sub_2").className='ipblack';
	document.getElementById("sub_"+Info_ID).className='ipredtext';
	if (Info_ID==1){
		$('#ipblackmore').html('<a href=product.asp?ProCommend=1 > >>更多</a>');
		}
	if (Info_ID==2){
		$('#ipblackmore').html('<a href=product.asp?ProAuditing=1 > >>更多</a>');
		}
	$.ajax({
		type: "GET",
		url: "ShowProduct.asp",
		data: "id="+encodeURIComponent(Info_ID),
		success: function(response){
			$('#ShowProduct1').html(response);
		}
	}); 	
}
//首页产品+案例
function ShowCase(Info_ID){
	$('#Showcase1').html("<div class='jiazai'>数据加载中....</div>");
	document.getElementById("Case_1").className='caseback';
	document.getElementById("Case_2").className='caseback';
	document.getElementById("Case_"+Info_ID).className='caseredtext';
	if (Info_ID==1){
		$('#caseredtextmore').html('<a href=product.asp?sid=12 > >>更多</a>');
		}
	if (Info_ID==2){
		$('#caseredtextmore').html('<a href=case.asp > >>更多</a>');
		}
	$.ajax({
		type: "GET",
		url: "Showcase.asp",
		data: "id="+encodeURIComponent(Info_ID),
		success: function(response){
			$('#Showcase1').html(response);
		}
	}); 	
}



//产品
function productInfor(TargetID,Info_ID,Info_Title){
	
	var arr=document.getElementById("div_td").getElementsByTagName("span");
	for(j=0;j<arr.length;j++){ 
		if(arr[j].id!="a1"){
			arr[j].className="domain";
		}
	}
	for(j=0;j<arr.length+1;j++){
		if(j==TargetID){
			arr[j-1].className="redtext";
			//$(arr[j-1]).addClass("redtext");
			
		}
	}
	//$(ClassShow).attr('redtext').removeClass('domain');
	//$('#cname').html(Info_Title);
	$('#clasname').html(Info_Title);
	$.ajax({
		type: "GET",
		url: "productjs.asp",
		data: "sid="+encodeURIComponent(Info_ID),
		success: function(response){
			$('#a1').html(response);
		}
	}); 	
}
//中标
function CustomerZhongbiao(Info_ID){
	document.getElementById("sub_1").className='backtext';
	document.getElementById("sub_2").className='backtext';
	document.getElementById("sub_"+Info_ID).className='redzbtext';
	if (Info_ID==1){
		$('#duos').html('<a href=zbindex.asp class=lanse> >>更多</a>');
		}
	if (Info_ID==2){
		$('#duos').html('<a href=zbindex.asp?qid=1 class=lanse> >>更多</a>');
		}
	$.ajax({
		type: "GET",
		url: "zbjs.asp",
		data: "id="+encodeURIComponent(Info_ID),
		success: function(response){
			$('#Biao').html(response);
		}
	}); 	
}
//成功案例 
function CaceID(Info_ID,Info_Title){
	document.getElementById("Case_1").className='ctlist2';
	document.getElementById("Case_2").className='ctlist2';
	document.getElementById("Case_"+Info_ID).className='ctlist1';
	$('#cname').html(Info_Title);
	$('#CaseIDs').html("<div class='jiazai'>数据加载中....</div>");
	$.ajax({
		type: "GET",
		url: "casejs.asp",
		data: "id="+encodeURIComponent(Info_ID),
		success: function(response){
		//alert(response)
			$('#CaseIDs').html(response);
		}
	}); 	
}

//联系我们 
function ContactID(Info_ID,Info_Title){
	document.getElementById("contact_1").className='ctlist2';
	document.getElementById("contact_2").className='ctlist2';
	document.getElementById("contact_"+Info_ID).className='ctlist1';
	$('#cname').html(Info_Title);
	$('#contact').html("<div class='jiazai'>数据加载中....</div>");
	$.ajax({
		type: "GET",
		url: "jslxwm.asp",
		data: "id="+encodeURIComponent(Info_ID),
		success: function(response){
		//alert(response)
			$('#contact').html(response);
		}
	}); 	
}


function ChangeNumber(BasketID,Numbers){
	document.all.BasketID.value = BasketID;
	document.all.Change_Numbers.value = Numbers;
	document.Basket.submit();
}
