function FadeInNews(newelement,top_news_id)
{
	Effect.Appear(newelement);
	Element.remove(top_news_id);
}

function startTicker()
{
  
	if (id_current < (text.length-1))
  {
    id_current++;
  }
  else
  {
    id_current = 1;
  } 
  
  //oberste news ermitteln 
  var container = $('newscontainer');
  
    
  var top_news_id = container.childNodes[0].getAttribute('id');
  var topElement = $(top_news_id);
    	
  
    	
	//ausblenden	  
  //Effect.BlindUp(topElement);
  Effect.Fade(topElement);
  
  //Neues Element erstellen	
	newElement = Builder.node('div',{className:'newsbox'},[
		Builder.node('a',{href:'http://blabla'},'dummy')
		]
	);
	
	//Text einpflegen.
	newElement.innerHTML = '<a href="'+hlink[id_current]+'" class="newsteaser">'+text[id_current]+'</a>';
	
	newElement.style.display='none';
	newElement.id='element_' + id_current;
	
	container.appendChild(newElement);
	
	window.setTimeout("FadeInNews('element_"+id_current+"','"+top_news_id+"')",1100);
	window.setTimeout("startTicker()",scroll_time);
		
}
