function addLoadEvent(func){
var oldonload = window.onload;
if (typeof window.onload != 'function'){
window.onload = func;
}else{
window.onload = function(){
oldonload();
func();
}
}
}

addLoadEvent(hideText);

var theText = new Array();
var pos = 0;
// CLEARS ALL THE TEXT FROM THE BOXES
	function hideText() {
	var moveMe = document.getElementById("moveMe");
	var movEach = moveMe.getElementsByTagName("div");
	movEach[0].style.display = "block";
	var browserName=navigator.appName; 
	if (browserName=="Netscape")
	{
		for (var i = 0; i < movEach.length; i++) {
		theText[i] = movEach[i].textContent;
		movEach[i].textContent = "";
		}
	begin();				
	}

	else
	{
	for (var i = 0; i < movEach.length; i++) {
		theText[i] = movEach[i].innerText;
		movEach[i].innerText = "";
		}
	begin();
	}
	}
// PUTS THE TEXT BACK IN TO THE VISIBLE DIV
	function begin() {
	var moveMe = document.getElementById("moveMe");
	var movEach = moveMe.getElementsByTagName("div");
	var browserName=navigator.appName; 
	if (browserName=="Netscape")
	{
		movEach[0].textContent = theText[pos];
		if (pos >= movEach.length - 1) 
		{
		pos = 0;
		}
		else 
		{
		pos = pos + 1;
		}
	setTimeout("wait()", 10000);
	}
	else
	{
		movEach[0].innerText = theText[pos];
		if (pos >= movEach.length - 1) 
		{
		pos = 0;
		}
		else 
		{
		pos = pos + 1;
		}
	setTimeout("wait()", 10000);
	}
	}
// AFTER A WAIT START THE PROCESS AGAIN
	function wait() {
	begin();
	}
