// JavaScript Document
var messages = new Array();
messages[0] = "Continuously applying the Best Available Techniques and Best Environmental Practices to safely collect all vessel related waste.";
messages[1] = "Providing world class MARPOL compliant infrastructure backed up by a well developed network of facilities.";
messages[2] = "Developing strategic relationships with vendors to provide reliable and high quality services.";
messages[3] = "Our foreign technical partners enhance our technology and professional ethics in the waste management sector.";
messages[4] = "Providing a safe and respectful work environment and reward our employees who are enthused to service our customers.";
messages[5] = "Investing in technology to support and add value to our service offerings.";
messages[6] = "Rising up to the challenges of protecting our marine environment.";

var textLength = 0;
var textContent = 'African Circle';
var textIndex = 0;
var y=0;
var speed = 50
var delay = 3500;

function typewriter(layer){
	textContent = messages[y];
	textLength = textContent.length;
	setTimeout('doWrite()',speed);
}

function doWrite(){
	var twritelayer = document.getElementById('strategy');
	var dText = textContent.substr(0,textIndex);
	twritelayer.innerHTML = dText;
	//alert(dText);
	textIndex++;
	if(textIndex < (textLength+1)){
		setTimeout('doWrite()',speed);
	} else {
		 textIndex = 0;
		if(y < (messages.length-1)){
			y++;
		} else {
			y = 0;
		}
		setTimeout('typewriter()',delay);
	}
}

