//新闻报道 
var isPollTwo = true;
var pollVarTwo = Math.floor(Math.random()*100)%14 + 1;    //产生随机默认标签序号

function switch_tab_two(d,num,menu,obj) 
{ 
	var index=parseInt(d); 
	if(index < 0 && index > num-1) 
	{ 
		index = 0; 
	} 
	for(var ti=0;ti<num;ti++)
    	{
        	if(index==ti)
	{
              document.getElementById(obj+ti).style.display = "block";
              document.getElementById(menu+ti).background = "/Templets/images/tab_curr.gif";    
        	}
	else
	{
              document.getElementById(obj+ti).style.display = "none";
              document.getElementById(menu+ti).background = "";    //这里让其它标签显示为“非当前样式”
        	}
    	}
}


function setPollTwo(v)        //用true和false控制自动轮换
{
  isPollTwo=v;
}

function pollPlayTwo()
{
  if (isPollTwo)
  {
    pollVarTwo=pollVarTwo%2; 
    switch_tab_two(pollVarTwo,2,'areanumlabel','numpanel');
    pollVarTwo++;
  }
  
  setTimeout("pollPlayTwo()", 5000);   //自动轮换的间隔时间
}


//办事指南
var isPollFive = true;
var pollVarFive = Math.floor(Math.random()*100)%14 + 2;    //产生随机默认标签序号

function setPollFive(v)        //用true和false控制自动轮换
{
  isPollFive =v;
}

function pollPlayFive()
{
  if (isPollFive)
  {
    pollVarFive=pollVarFive%3; 
    switch_tab_two(pollVarFive,3,'work','dispanel');
    pollVarTwo++;
  }
  
  setTimeout("pollPlayFive()", 5000);   //自动轮换的间隔时间
}


function Marquee() 
{ 
  if(demo.scrollLeft>=marquePic1.scrollWidth) 
  { 
    demo.scrollLeft=0 
  } 
  else 
  { 
    demo.scrollLeft++ 
  } 
} 
demo.onmouseover=function() 
{ 
  clearInterval(MyMar); 
} 
demo.onmouseout=function() 
{ 
  MyMar=setInterval(Marquee,speed); 
}




