//ÈÝ´í´úÂë
function killErrors() {
return true;
}
window.onerror = killErrors;
function topsearch () {
var keyword=document.getElementsByName("keyword")[0].value;
var website="www.njxhw.com";
var link="http://www.baidu.com/s?si=" + website + "&ct=2097152&tn=baidulocal&word="+keyword;
window.open(link);
}
function getTitle(newszy,titlelen){
var NewsTitle=newszy.substring(0,titlelen)
document.write(NewsTitle)
}

function switch_tab(d)
{
	var index=parseInt(d);
	if(index < 0 && index > 4)
	{
      index = 0;
	}
	
	for(var ti=0;ti<=4;ti++)
	{
		if(index==ti){
	    document.getElementById("p"+ti).style.display = "block";
			document.getElementById("lbl_p"+ti).className = "td17";	
		}else{
			document.getElementById("p"+ti).style.display = "none";
			document.getElementById("lbl_p"+ti).className = "td1";	
		}
	}
}

var isPollOne = true;
var pollVarOne = Math.floor(Math.random()*10)%5+1;
function setPollOne(v)
{
  isPollOne=v;
}

function pollPlayOne()
{
  if (isPollOne)
  {
	pollVarOne=pollVarOne%5;
	switch_tab(pollVarOne);
	pollVarOne++;
  }
  if ((pollVarOne%5) == 1)
  {
   setTimeout("pollPlayOne()",5000);
  }else{
   setTimeout("pollPlayOne()",4000);
  }
}

// ------- photo Roll(Roll 2) --------
var isPollTwo = true;
var pollVarTwo = Math.floor(Math.random()*10)%4 + 1;