function chgMainNews() {

  var index = act_index;
  
  if (news_lead.length == (++index)) {
  	index = 0
  	next = news_lead[index];
  } else {
  	next = news_lead[index];
  }

  document.getElementById('Div_Main_News_'+news_lead[act_index]).style.display = 'none';
  document.getElementById('Div_Main_News_'+next).style.display = 'block';
  act_index = index;
  
  t = setTimeout("chgMainNews()", 10000);
}

function chgMainNewsMouse(a, b) {
  clearTimeout(t);
  act_index = getIndex(b);
  document.getElementById('Div_Main_News_'+a).style.display = 'none';
  document.getElementById('Div_Main_News_'+b).style.display = 'block';
}

function getIndex(d) {
  for (var i=0; i<news_lead.length; i++) {
	if (news_lead[i] == d) return i;	
  }
  return 0;
}
