
// indice di partenza
var index = 0;
// intervallo di tempo tra i vari messaggi
var delay = 5000;

//function makeslideshow() {

//	if ( fcontent.length <= 0 )
//		return;
//		
//	if ( index >= fcontent.length )
//		index = 0;
//	
//	var elementAnchor = document.getElementById("slide");
//	elementAnchor.innerHTML = fcontent[index];
//	elementAnchor.href = fanchor[index];
//	if (ftarget[index] == 1)
//		elementAnchor.target = '_blank';

//	index++;

////	alert(fcontent[index]);
//	setTimeout("makeslideshow()", delay);
//}

function makeslideshow2() {

	if ( fcontent.length <= 0 )
		return;
		
	if ( index >= fcontent.length )
		index = 0;
	
	var elementAnchor = document.getElementById("slide");
	elementAnchor.innerHTML = fcontent[index];
	elementAnchor.href = m_anchor;
	
	index++;

//	alert(fcontent[index]);
	setTimeout("makeslideshow2()", delay);
}