// JavaScript Document
var myTimeout = 300;
var theCurrentLength = 0;
var theStorySummary = "O PORTAL EM MOVIMENTO";
var theWidgetOne = "_";
var theWidgetTwo = "-"; 
var theWidgetNone = "";
function runTheTicker() {
	var textTitle = theStorySummary.substring(0,theCurrentLength) + whatWidget();
	document.getElementById("theTicker").innerHTML = textTitle;
	if(theCurrentLength != theStorySummary.length) {
		theCurrentLength++;
	} else {
		theCurrentLength = 0;
	}
	setTimeout("runTheTicker()", myTimeout);
}

function whatWidget() {
	if(theCurrentLength == theStorySummary.length) {
		return theWidgetNone;
	}
	if((theCurrentLength % 2) == 1) {
		return theWidgetOne;
	}
	else {
		return theWidgetTwo;
	}
}