var rollerText = new Array(
	"Improve Situational Awareness",
	"Enhance Operational Efficiency",
	"Capture Real-Time Systems Health",
	"Identify Problems Faster",
	"Use Advanced Visualizations",
	"Integrate Multiple Systems"
);

var rollerCount = 0;

var theRoller;

var rollerTimeout = 3000;

function initRoller(roller) {
	if (roller == null) {
		alert("No element with ID 'roller'?");
	} else {
		theRoller = roller;
		updateRoller();
	}
}

function updateRoller() {
	theRoller.style.color = "rgb(0, 0, 0)";
	theRoller.innerHTML = rollerText[rollerCount++];
	if (rollerCount == rollerText.length) {
		rollerCount = 0;
	}
	hex = 0;
	fadetext(theRoller);
	setTimeout("updateRoller()", rollerTimeout);
}

hex=0 // Initial color value.

function fadetext() { 
	if (hex <= 255) {
		hex += 11;
	}
	theRoller.style.color="rgb("+hex+","+hex+","+hex+")";
	if (hex <= 255) {
		setTimeout("fadetext()",60); 
	}
}
