var speed = 50;
var timerID = null;
var texttype = false;
var ar = new Array();
ar[0] = "Dirty waste water from sinks and/or dishwashers flows into grease separator and clean water flows through.";
ar[1] = "Baffle slows waste water flow to aid separation. Grease, fats and oils build up on the surface of the water and food sediment accumulates in the bottom. If the grease separator is not biologically treated or is left too long between services then grease and food will pass through the unit causing blockages down stream.";
ar[2] = "Enzymes dosed into the grease separator break down the fats, oils and grease reducing the rate of grease build up within the unit.";
ar[3] = "All waste is removed and disposed of environmentally responsibly.";
var offset = 0;
function stopBanner() {
	if (texttype) {
		clearTimeout(timerID);
	}
	texttype = false
}

function startBanner(x) {
	stopBanner();
	showBanner(x);
}
function showBanner(msg) {
	var text = ar[msg];
	if (offset < text.length) {
		if (text.charAt(offset) == " ") {
			offset++;
		}
		var partialMessage = text.substring(0, offset + 1);
		window.document.forms.clever.copy.value = partialMessage;
		offset++;
		var toTxt = "showBanner(" + msg + ")";
		timerID = setTimeout(toTxt, speed);
		texttype = true;
	}
}