function InitAjax()
{
　var ajax=false; 
　try { 
　　ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
　} catch (e) { 
　　try { 
　　　ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
　　} catch (E) { 
　　　ajax = false; 
　　} 
　}
　if (!ajax && typeof XMLHttpRequest!='undefined') { 
　　ajax = new XMLHttpRequest(); 
　} 
　return ajax;
} 
    //---------------------------------------------------------
	function pinpai(ID){
		
			
	 var div = "pinpai";
			
	 var show = document.getElementById(div);
	 var url = "http://www.auto18.com/awenjian/newsmore.php?ID="+ID;
　   var ajax = InitAjax();
　
　   ajax.open("POST", url, true); 
　   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
　   ajax.send();
　   ajax.onreadystatechange = function() { 
　　 if (ajax.readyState == 4) { 
     if(ajax.status == 200){
		 show.innerHTML = ajax.responseText;
		 }else{
		 show.innerHTML = "正在载入..."; 
			 }
　　 } 
　} 
	
	}
	//---------------------------------------------------------
	   
	   
	       //---------------------------------------------------------
	function place(ID){
		
			
	 var div = "place";
			
	 var show = document.getElementById(div);
	 var url = "http://www.auto18.com/awenjian/newsmore.php?ID="+ID;
　var ajax = InitAjax();
　
　ajax.open("POST", url, true); 
　ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
　ajax.send();
　ajax.onreadystatechange = function() { 
　　if (ajax.readyState == 4) { 
     if(ajax.status == 200){
		 show.innerHTML = ajax.responseText;
		 }else{
		 show.innerHTML = "正在载入..."; 
			 }
　　 } 
　} 
	
	}
	//---------------------------------------------------------
    	       //---------------------------------------------------------
	function bbs(ID){
		
			
			var div = "bbs_tiezi";
			
	 var show = document.getElementById(div);
	 var url = "http://www.auto18.com/awenjian/newsmore.php?ID="+ID;
　var ajax = InitAjax();
　
　ajax.open("POST", url, true); 
　ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
　ajax.send();
　ajax.onreadystatechange = function() { 
　　if (ajax.readyState == 4) { 
     if(ajax.status == 200){
		 show.innerHTML = ajax.responseText;
		 }else{
		 show.innerHTML = "正在载入..."; 
			 }
　　 } 
　} 
	
	}
	//---------------------------------------------------------
function movediv(ID){
  
  switch (ID){
  
   case 0:
   moveMenu(0);
   break;
  
   case 1:
   moveMenu(1);
   
   break;
   
   case 2:
   moveMenu(2);
   break;
   
   case 3:
   moveMenu(3);
   break;
   
   case 4:
   moveMenu(4);
   break;
   
   case 5:
   moveMenu(5);
   break;
   
   case 6:
   moveMenu(6);
   break;
   
   default:
  
  }
  }
  
  function lanmu(ID){
  
      switch (ID){
	  
	  case 1:
	  document.all("NEWSzixun").background="http://www.auto18.com/imagess/top-9.gif";
	  document.all("NEWSzixun").style.color="#FFFFFF";
	  document.searchfrom.stp.value = 2;
	  document.searchfrom.action="http://www.auto18.com/sc360/news_listnew.php?stp=2";
	  movelanmu(ID);
	  if(location.href.indexOf("news")>=0){
    var oHead = document.getElementsByTagName('body').item(0); 
    var oScript= document.createElement("script"); 
    oScript.type = "text/javascript"; 
    oScript.src="http://smjs.allyes.com/sm.js";
	
    oHead.appendChild(oScript); 
	var oHead1 = document.getElementsByTagName('body').item(0); 
	var oScript1 = document.createElement("script"); 
	oScript1.type = "text/javascript"; 
    oScript1.src="http://smjs.allyes.com/auto18++newspage++sm++show.js";
	oHead1.appendChild(oScript1); 
	//window.document.title = "新闻页面，广告播放中……";
}
	  break;
	  
	  case 2:
	  document.all("baojia").background="http://www.auto18.com/imagess/top-9.gif";
	  document.all("baojia").style.color="#FFFFFF";
	  document.searchfrom.stp.value = 3;
	  document.searchfrom.action="http://www.auto18.com/sc360/newcar_price_listnew.php?stp=3";
	  movelanmu(ID);
	  break;
	  
	  case 3:
	  document.all("userdcar").background="http://www.auto18.com/imagess/top-9.gif";
	  document.all("userdcar").style.color="#FFFFFF";
	  document.searchfrom.stp.value = 4;
	  document.searchfrom.action="http://www.auto18.com/sc360/secondcar_price_listnew.php?stp=4";
	  movelanmu(ID);
	  break;
	  
	  case 4:
	  document.all("yongpin").background="http://www.auto18.com/imagess/top-9.gif";
	  document.all("yongpin").style.color="#FFFFFF";
	  document.searchfrom.stp.value = 5;
	  //document.searchfrom.action="http://www.auto18.com/sc360/mall_listnew.php?stp=5";
	  document.searchfrom.action="http://www.auto18.com/sc360/picture.php?stp=5";
	  movelanmu(ID);
	  break;
	  
	  case 5:
	  document.all("shangji").background="http://www.auto18.com/imagess/top-9.gif";
	  document.all("shangji").style.color="#FFFFFF";
	  document.searchfrom.stp.value = 6;
	  //document.searchfrom.action="http://www.auto18.com/sc360/sj_listnew.php?stp=6";
	  document.searchfrom.action="http://www.auto18.com/sc360/dealer.php?stp=6";
	  movelanmu(ID);
	  break;
	  
	  case 6:
	  document.all("hangye").background="http://www.auto18.com/imagess/top-9.gif";
	  document.all("hangye").style.color="#FFFFFF";
	  document.searchfrom.stp.value = 1;
	  //document.searchfrom.action="http://www.auto18.com/sc360/sitenew.php?stp=1";
	  document.searchfrom.action="http://bbs.auto18.com/search.php";
	  movelanmu(ID);
	  break;
	  
	  case 7:
	  document.all("chexing").background="http://www.auto18.com/imagess/top-9.gif";
	  document.all("chexing").style.color="#FFFFFF";
	  document.searchfrom.stp.value = 7;
	  //document.searchfrom.action="http://www.auto18.com/sc360/sj_listnew.php?stp=6";
	  movelanmu(ID);
	  break;
	  
	  default:
	  }  
  
  }
  
      function movelanmu(ID){
	  
	  switch (ID){
	  
	  case 1:
	  //document.all("NEWSzixun").background="";
	  document.all("baojia").background="";
	  document.all("userdcar").background="";
	  document.all("yongpin").background="";
	  document.all("shangji").background="";
	  document.all("hangye").background="";
	  //document.all("NEWSzixun").style.color="#000000";
	  document.all("baojia").style.color="#000000";
	  document.all("userdcar").style.color="#000000";
	  document.all("yongpin").style.color="#000000";
	  document.all("shangji").style.color="#000000";
	  document.all("hangye").style.color="#000000";
	  document.all("chexing").background="";
	  document.all("chexing").style.color="#000000";
	  break;
	  
	  case 2:
	  document.all("NEWSzixun").background="";
	  //document.all("baojia").background="";
	  document.all("userdcar").background="";
	  document.all("yongpin").background="";
	  document.all("shangji").background="";
	  document.all("hangye").background="";
	  document.all("NEWSzixun").style.color="#000000";
	  //document.all("baojia").style.color="#000000";
	  document.all("userdcar").style.color="#000000";
	  document.all("yongpin").style.color="#000000";
	  document.all("shangji").style.color="#000000";
	  document.all("hangye").style.color="#000000";
	  document.all("chexing").background="";
	  document.all("chexing").style.color="#000000";
	  break;
	  
	  case 3:
	  document.all("NEWSzixun").background="";
	  document.all("baojia").background="";
	  //document.all("userdcar").background="";
	  document.all("yongpin").background="";
	  document.all("shangji").background="";
	  document.all("hangye").background="";
	  document.all("NEWSzixun").style.color="#000000";
	  document.all("baojia").style.color="#000000";
	  //document.all("userdcar").style.color="#000000";
	  document.all("yongpin").style.color="#000000";
	  document.all("shangji").style.color="#000000";
	  document.all("hangye").style.color="#000000";
	  document.all("chexing").background="";
	  document.all("chexing").style.color="#000000";
	  break;
	  
	  case 4:
	  document.all("NEWSzixun").background="";
	  document.all("baojia").background="";
	  document.all("userdcar").background="";
	  //document.all("yongpin").background="";
	  document.all("shangji").background="";
	  document.all("hangye").background="";
	  document.all("NEWSzixun").style.color="#000000";
	  document.all("baojia").style.color="#000000";
	  document.all("userdcar").style.color="#000000";
	  //document.all("yongpin").style.color="#000000";
	  document.all("shangji").style.color="#000000";
	  document.all("hangye").style.color="#000000";
	  document.all("chexing").background="";
	  document.all("chexing").style.color="#000000";
	  break;
	  
	  case 5:
	  document.all("NEWSzixun").background="";
	  document.all("baojia").background="";
	  document.all("userdcar").background="";
	  document.all("yongpin").background="";
	  //document.all("shangji").background="";
	  document.all("hangye").background="";
	  document.all("NEWSzixun").style.color="#000000";
	  document.all("baojia").style.color="#000000";
	  document.all("userdcar").style.color="#000000";
	  document.all("yongpin").style.color="#000000";
	  //document.all("shangji").style.color="#000000";
	  document.all("hangye").style.color="#000000";
	  document.all("chexing").background="";
	  document.all("chexing").style.color="#000000";
	  break;
	  
	  case 6:
	  document.all("NEWSzixun").background="";
	  document.all("baojia").background="";
	  document.all("userdcar").background="";
	  document.all("yongpin").background="";
	  document.all("shangji").background="";
	  //document.all("hangye").background="";
	  document.all("NEWSzixun").style.color="#000000";
	  document.all("baojia").style.color="#000000";
	  document.all("userdcar").style.color="#000000";
	  document.all("yongpin").style.color="#000000";
	  document.all("shangji").style.color="#000000";
	  //document.all("hangye").style.color="#000000";
	  document.all("chexing").background="";
	  document.all("chexing").style.color="#000000";
	  break;
	  
	  case 7:
	  document.all("NEWSzixun").background="";
	  document.all("baojia").background="";
	  document.all("userdcar").background="";
	  document.all("yongpin").background="";
	  document.all("shangji").background="";
	  document.all("hangye").background="";
	  document.all("NEWSzixun").style.color="#000000";
	  document.all("baojia").style.color="#000000";
	  document.all("userdcar").style.color="#000000";
	  document.all("yongpin").style.color="#000000";
	  document.all("shangji").style.color="#000000";
	  document.all("hangye").style.color="#000000";
	  break;
	  
	  default:
	  }  
	  }
  
      function tijiao(){
	  
	  searchfrom.submit();
	  
	  }    


function gdcsnews(ID){
		
	  switch (ID){	
	  
	  case 1:
	  var div = "gdcsleft";
	  break;	
	  
	  case 2:
	  var div = "gdcsleft";
	  break;
	  
	  case 3:
	  var div = "gdcsleft";
	  break;	
	  
	  case 4:
	  var div = "gdcsmiddle";
	  break;	
	  
	  case 5:
	  var div = "gdcsmiddle";
	  break;	
	  
	  case 6:
	  var div = "gdcsmiddle";
	  break;
	  
	  case 7:
	  var div = "gdcsright";
	  break;
	  
	  case 8:
	  var div = "gdcsright";
	  break;
		
	  case 9:
	  var div = "gdcsright";
	  break;
		
		default:
		
	  }
			
	 var show = document.getElementById(div);
	 var url = "http://www.auto18.com/awenjian/gdcsnews.php?ID="+ID;
　   var ajax = InitAjax();
　
　   ajax.open("POST", url, true); 
　   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
　   ajax.send();
　   ajax.onreadystatechange = function() { 
　　 if (ajax.readyState == 4) { 
     if(ajax.status == 200){
		 show.innerHTML = ajax.responseText;
		 
		 switch (ID){
				
			case 1:
			 document.all("gdcs1").background="http://www.auto18.com/imagess/al111.jpg";
			 document.all("gdcs2").background="http://www.auto18.com/imagess/al222.jpg";
			 document.all("gdcs3").background="http://www.auto18.com/imagess/al333.jpg";
			break;
			
			case 2:
			 document.all("gdcs1").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs2").background="http://www.auto18.com/imagess/gdcs_8.gif";
			 document.all("gdcs3").background="http://www.auto18.com/imagess/al333.jpg";
			break;
			
			case 3:
			 document.all("gdcs1").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs2").background="http://www.auto18.com/imagess/al222.jpg";
			 document.all("gdcs3").background="http://www.auto18.com/imagess/gdcs_7.gif";
			break;
			
			case 4:
			 document.all("gdcs4").background="http://www.auto18.com/imagess/gdcs_7.gif";
			 document.all("gdcs5").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs6").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			break;
			
			case 5:
			 document.all("gdcs4").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs5").background="http://www.auto18.com/imagess/gdcs_8.gif";
			 document.all("gdcs6").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			break;
			
			case 6:
			 document.all("gdcs4").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs5").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs6").background="http://www.auto18.com/imagess/gdcs_7.gif";
			break;
			
			case 7:
			 document.all("gdcs7").background="http://www.auto18.com/imagess/gdcs_7.gif";
			 document.all("gdcs8").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs9").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			break;
			
			case 8:
			 document.all("gdcs7").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs8").background="http://www.auto18.com/imagess/gdcs_8.gif";
			 document.all("gdcs9").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			break;
			
			case 9:
			 document.all("gdcs7").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs8").background="http://www.auto18.com/imagess/gdcs_al3.jpg";
			 document.all("gdcs9").background="http://www.auto18.com/imagess/gdcs_7.gif";
			break;
			
			default:
			
			 }
		 
		 
		 }else{
		 show.innerHTML = "正在载入..."; 
			 }
　　 } 
　} 
	
	}
	//---------------------------------------------------------
	   
     function gcxcnews(ID){
		
	  switch (ID){	
	  
	  case 1:
	  var div = "gcxcnews";
	  break;	
	  
	  case 2:
	  var div = "gcxcnews";
	  break;
	  
	  case 3:
	  var div = "jkxcnews";
	  break;	
	  
	  case 4:
	  var div = "jkxcnews";
	  break;	
	  
		
		default:
		
	  }
			
	 var show = document.getElementById(div);
	 var url = "http://www.auto18.com/awenjian/gcxcnews.php?ID="+ID;
　   var ajax = InitAjax();
　
　   ajax.open("POST", url, true); 
　   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
　   ajax.send();
　   ajax.onreadystatechange = function() { 
　　 if (ajax.readyState == 4) { 
     if(ajax.status == 200){
		 show.innerHTML = ajax.responseText;
		 switch (ID){
				
			case 1:
			 document.all("gcxc1").background="http://www.auto18.com/imagess/gdcs_2.gif";
			 document.all("gcxc2").background="http://www.auto18.com/imagess/gdcs_al1.jpg";
			break;
			
			case 2:
			 document.all("gcxc1").background="http://www.auto18.com/imagess/gdcs_al1.jpg";
			 document.all("gcxc2").background="http://www.auto18.com/imagess/gdcs_2.gif";
			break;
			
			case 3:
			 document.all("jkxc1").background="http://www.auto18.com/imagess/gdcs_5.gif";
			 document.all("jkxc2").background="http://www.auto18.com/imagess/gdcs_al1.jpg";
			break;
			
			case 4:
			 document.all("jkxc1").background="http://www.auto18.com/imagess/gdcs_al1.jpg";
			 document.all("jkxc2").background="http://www.auto18.com/imagess/gdcs_5.gif";
			break;
			
			default:
			
			 }
		 }else{
		 show.innerHTML = "正在载入..."; 
		 
			 }
　　 } 
　} 
	
	}
