// JavaScript Document
//js切换
var time;
var j=0;
var y=1;
var bannercount=0;
function jd(y)
{
	for(i=1;i<=bannercount;i++)
	{
	   document.getElementById('td0'+i).style.display="none";	
	   document.getElementById('td'+i).className="";
	}
	   document.getElementById('td0'+y).style.display="block";	
	   document.getElementById('td'+y).className="current";
}
function jd2()
{
   time=setTimeout('jd2()',1000000000)
   j++;
   if(j==100)
   {
	  jd(y)
	   y++
	  if(y>bannercount)
	   {
		 y=1
	   }
		jd3()
   }
}
function jd3()
{
		clearTimeout(time)
		j=0
		jd2()
}

//评分
function pingf(n)
{
   if(n==2)
   { 
	  document.getElementById('xx2').src="images/xx.gif";   
	  document.getElementById('pf_con').innerHTML="2分，差";
   }
   if(n==3)
   { 
	  document.getElementById('xx2').src="images/xx.gif";   
	  document.getElementById('xx3').src="images/xx.gif"; 
	  document.getElementById('pf_con').innerHTML="3分，一般";
   }
   if(n==4)
   { 
	  document.getElementById('xx2').src="images/xx.gif";   
	  document.getElementById('xx3').src="images/xx.gif"; 
	  document.getElementById('xx4').src="images/xx.gif"; 
	  document.getElementById('pf_con').innerHTML="4分，好";
   }
   if(n==5)
   { 
	  document.getElementById('xx2').src="images/xx.gif";   
	  document.getElementById('xx3').src="images/xx.gif"; 
	  document.getElementById('xx4').src="images/xx.gif";
	  document.getElementById('xx5').src="images/xx.gif";
	  document.getElementById('pf_con').innerHTML="5分，很好";
   }
}



function pingend( )
{
	document.getElementById('xx2').src="images/hxx.gif";   
    document.getElementById('xx3').src="images/hxx.gif"; 
	document.getElementById('xx4').src="images/hxx.gif";
	document.getElementById('xx5').src="images/hxx.gif";
	document.getElementById('pf_con').innerHTML="1分，很差";
}
