var index = 1;
var len = 7;
var duration = 3.5;
var stopIt = false;


/*function stoprotate()
{stopIt = true;}
function restart()
{stopIt = false; fadeIn();}*/

function setEle(obj)
{																																																																				
if (index > len)
{
index = 1;
}
document.getElementById("test").innerHTML = document.getElementById("test" + index).innerHTML;
index++;
}
function fadeOut(obj)
{
if(!stopIt)
{
new Effect.Opacity('test', {duration:duration, from:5.0, to:0.2, afterFinish:fadeIn});
}
}
function fadeIn()
{
new Effect.Opacity('test', {duration:duration, from:0.2, to:5.0, beforeStart:setEle, afterFinish:fadeOut});
}




