
var length = 0;

var start = 0; var offset = 0; var theoutput = 0;
var mytime = 0;
var position = -1;
donext();


function dolink() {

window.location = mylinks[position];
}

function donext() {
theoutput = 0;


position++;
if(position == myarray.length) { position = 0;}
length = myarray[position].length;

mytime = window.setInterval("show()",80);
}//close function donext


function show() {
theoutput++;

document.getElementById("showticker").innerHTML =  myarray[position].substring(0,theoutput);

if(theoutput == length) { clearInterval(mytime);

window.setTimeout("donext()",2000);

}//if output == length
}