// JavaScript Document
/*
var messages = new Array();
messages[0] = "Maintain a high level of customer service and satisfaction.";
messages[1] = "Continually build strong relationships with our customers.";
messages[2] = "Developing strategic relationships with vendors to provide reliable and high quality services.";
messages[3] = "Protecting our good name by adhering to high ethical and professional standards at all times.";
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] = "Never being satisfied with anything less than being the number one shipping agent in Nigeria.";

messages[0] = "<a href='/bpp/?News&aid=38' class='mainLinkTahoma11'>Russia&#039;s Medvedev halts military action in Georgia</a>";
  messages[1] = "<a href='/bpp/?News&aid=33' class='mainLinkTahoma11'>Nigeria: Food Crisis Over Soon, Rep Assures</a>";
  messages[2] = "<a href='/bpp/?News&aid=37' class='mainLinkTahoma11'>Nigeria rebels to help free kidnapped Germans</a>";
  messages[3] = "<a href='/bpp/?News&aid=36' class='mainLinkTahoma11'>Nigerian health workers to join strike</a>";
  messages[4] = "<a href='/bpp/?News&aid=30' class='mainLinkTahoma11'>Human Resources Biodata of Federal Officers</a>";

*/

var textLength = 0;
var textContent = 'BPSR News';
var textIndex = 0;
var y=0;
var speed = 20
var delay = 3500;

function typewriter(layer){
	textContent = messages[y];
	textLength = textContent.length;
	setTimeout('doWrite()',speed);
}

function doWrite(){
	var twritelayer = document.getElementById('headlineNews');
	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);
	}
}

