//banner
function switch_tab_two(d,num,menu,obj)
{

   var index=parseInt(d);
   if(index < 0 && index > num)
   {
      index = 0;
   }
   
   for(var ti=0;ti<=num;ti++)
   {
       if( document.getElementById(menu+ti) ){
		   if(index==ti){
			   document.getElementById(obj+ti).style.display = "block";
			   document.getElementById(menu+ti).className = "hover";   //让标签显示为“当前样式”
			   
		   }else{
			   document.getElementById(obj+ti).style.display = "none";
			   document.getElementById(menu+ti).className = "";   //这里让其它标签显示为“非当前样式”
		   }
	   }
   }
   
}
var isPollTwo = true;
var pollVarTwo = Math.floor(Math.random()*100)%5 + 1;   //产生随机默认标签序号


function setPollTwo(v)   //用true和false控制自动轮换
{
isPollTwo=v;
}

function pollPlayTwo()
{
	if (isPollTwo)
	{
	   pollVarTwo=pollVarTwo%5; 
	   switch_tab_two(pollVarTwo,4,'areanumlabel','numpanel');
	   pollVarTwo++;
	}

	setTimeout("pollPlayTwo()", 4500);  //自动轮换的间隔时间
}
