var displaytime = 12; // Display each text n seconds
var infotext = new Array();
var infolink = new Array();
// Infotexts
var infotextidx = 0;
if (infotextidx > infotext.length > 0) infotextidx = 0;
if (displaytime == '') displaytime = 10;
if (displaytime < 2) displaytime = 2;
if (infotext.length > 0) {
new PeriodicalExecuter(function(pe) {
Effect.Fade('infotext', {
duration: 1.0,
afterFinish: function(){
// alert(infotextidx);
if(infolink[infotextidx] == undefined || infolink[infotextidx] == "" ) {
$('infotext').innerHTML = infotext[infotextidx];
} else {
$('infotext').innerHTML = '' + infotext[infotextidx] + '';
}
Effect.Appear('infotext', { duration: 1.0, queue: 'end' });
}
});
infotextidx++;
if (infotextidx > (infotext.length - 1)) infotextidx = 0;
}, displaytime);
}
function setInfotext() {
if (infotext[infotextidx] != undefined) {
if(infolink[infotextidx] == undefined || infolink[infotextidx] == "" ) {
$('infotext').innerHTML = infotext[infotextidx];
} else {
$('infotext').innerHTML = '' + infotext[infotextidx] + '';
}
}
}