/*
@version 1.0: ThreeGepard
Author: Branimir
Copyright 2009
*/

function showtext(id) {
	document.getElementById(id).style.display = "block";
	opacity(id, 0, 100, s5_newsticker_tween);
	window.setTimeout('text_done()',s5_newsticker_display );
}

function text_done() {
	text_doneload(ra[ra_ndx]);
}

function text_doneload(id) {

	opacity(id, 100, 0, s5_newsticker_tween);
	window.setTimeout('text_next()', s5_newsticker_tween);
}

function text_next() {
    ra_ndx++;
	if ( ra_ndx == ra.length ) ra_ndx = 0;
	var text = ra[ra_ndx];
	document.getElementById(text).style.display = "none";
	showtext(text);
}

if ( ra.length > 0 ) {
	showtext(ra[ra_ndx]);
}

