//产品推荐

function producttj(){
	$.ajax({
		type: "GET",
		url: "producttj.asp",
		//data: "id="+encodeURIComponent(),
		success: function(response){
		//	alert(response)
			$('#a1').html(response);
		}
	}); 	
}

function productleft(classid){
	$.ajax({
		type: "GET",
		url: "productleft.asp",
		data: "sid="+encodeURIComponent(classid),
		success: function(response){
			$('#proleft').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 IndexSousuo(Info_ID){
	document.getElementById("Index_1").className='redback';
	document.getElementById("Index_2").className='redback';
	document.getElementById("Index_3").className='redback';
	document.getElementById("Index_"+Info_ID).className='redtext';
	$.ajax({
		type: "GET",
		url: "indexsousuo.asp",
		data: "id="+Info_ID,
		success: function(response){
			$('#IndexSS').html(response);
		}
	}); 	
}

function showTabContent(type){
	$("#tab1").attr("class","title_wrap");
	$("#tab2").attr("class","title_wrap");
	$("#tab"+type).attr("class","title_wrap_hover");
	if (type==1) {
		$("#tabMoreBtn").attr("href","news.asp");
	} else {
		$("#tabMoreBtn").attr("href","knowledge.asp");
	}
	$.ajax({
		type: "GET",
		url: "index_tab.asp?type="+encodeURIComponent(type)+"&a="+Math.random(),
		success: function(response){
		//	alert(response)
			$('#tabContent').html(response);
		}
	}); 	
}
