// JavaScript Document
// This Script scrolls text at the bottom of the screen. First used
// on the old AfriCaso site by Don Phillibert, Beth Knowlton, Sam Desai, and Emily Nielsten.
<!--  Activate Cloaking Device
// T-Banner - copyright (c) 1996 by Tomer Shiran and Yehuda Shiran. 
//          Modifications and comments by Tim Wallace  
//                        timothy@essex1.com
   var i = 0;                                      
   var TextNumber = 0;                     
   var TextInput = new Object();        
   var HelpText="";                              
   var Text = "";                                    
   var Speed=60                              
   var WaitSpace="           "                 


TextInput[0] = "AfriCaso wishes you 'E Kaabo'!"; 
TextInput[1] = "This is AfriCaso's new webpage."
TextInput[2] = "Please stay a moment and explore."
TextInput[3] = "Webmaster: Micheal Olushoga '08"
TotalTextInput = 3; // (0, 1, 2, 3)

for (var addWait = 0; addWait <= TotalTextInput; addWait++) 
   { TextInput[addWait]+=WaitSpace; }
        
var TimerId
var TimerSet=false;


function startBanner (form)  
   {
   if (!TimerSet)
      {
      TimerSet=true;

      banner();
      }
   }


function banner() 
   {
   Text=rollMessage();

   TimerId = setTimeout("banner()", Speed);
   window.status=Text;

   }


function rollMessage () 
   {
   Wait_yn=false;

   i++;
   var CheckSpace = HelpText.substring(i-1, i);
   CheckSpace = "" + CheckSpace;
   if (CheckSpace == " ") 
      {i++;}
   if (i >= HelpText.length+1) 
      {
      i=0; 
      if (TextNumber < TotalTextInput) 
         {TextNumber++;} 
      else 
         {TextNumber = 0;} 
      initBanner();
      }
   Text = HelpText.substring(0, i);
   return (Text);
   }


function initBanner() 
   {
   startBanner()
   Text = TextInput[TextNumber];

   HelpText = Text;
   }
// Deactivate Cloaking -->