<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin -->
<!-- These are ScrollIn() messages  -->

var Main_Msg       = "Welcome to the Rhode Island State Council Home Page! ";

var Activity_Msg   = "An Active Council is a Successful One...";

var Officers_Msg   = "These are the men we trust...";

var RI_State_Msg   = "The Location of the State Council...   ";

var Councils_Msg   = "These are Our Councils...   ";


<!-- These are scrollit_r2l() messages  >

var strMessages = new Array ( "Our Mission Statement...  ",
                              "Fraternal Benefits...  ",
                              "Visibile Arm of the K of C! The Worthy Sir Knights of the Bishop Healey Province...  ",
                              "We really want to hear from you...  ",
                              "The history of the Knights of Columbus...  ",
                              "We owe so much to our Worthy Past State Deputies who sacrificed so much for the Order!...  ",
                              "Recruitment Plea!...  ",
                              "Pray the Rosary Regularly!...  ",
                              "A Link to Supreme...  ",
                              "The need for Vocations is growing more and more each day...  ",
                              "Interesting Religious Websites...  ",
                              "Who's Eligible to Become a Knight?...  ",
                              "RI Assemblies of the 4th Degree...  " );

var Message       = "";
var place         = 1;

function showOnce( Type )
{
   if ( Type == 0 )
      Message = Main_Msg;

   if ( Type == 1 )
      Message = Activity_Msg;

   if ( Type == 3 )
      Message = Officers_Msg;

   if ( Type == 4 )
      Message = RI_State_Msg;

   if ( Type == 5 )
      Message = Councils_Msg;

   window.status = Message;
}

function scrollIn( Type )
{
   if ( Type == 0 )
      Message = Main_Msg;

   if ( Type == 1 )
      Message = Activity_Msg;

   if ( Type == 3 )
      Message = Officers_Msg;

   if ( Type == 4 )
      Message = RI_State_Msg;

   if ( Type == 5 )
      Message = Councils_Msg;

   window.status = Message.substring (0, place);
   if (place >= Message.length)
      {
      place=1;
      window.setTimeout("scrollOut( )",300);
      }
   else
      {
      place++;
      window.setTimeout("scrollIn ( -1 )",50);
      }
}

function scrollOut()
{
   window.status=Message.substring(place, Message.length);
   if (place >= Message.length)
      {
      place=1;
      window.setTimeout("scrollIn ( -1 )", 100);
      }
   else
      {
      place++;
      window.setTimeout("scrollOut()", 50);
      }
}


function scrollit_r2l( Type, seed )
{
   var out = " ";
   var c   = 1;

   if ( Type != -1  )
      {
      Message = strMessages[ Type ] + strMessages[ Type ] + strMessages[ Type ];
      }

   if ( seed > 100 )
      {
      seed--;
      var cmd  = "scrollit_r2l( -1, " + seed + ")";
      timerTwo = window.setTimeout( cmd, 50 );
      }
   else
      {
      if ( seed <= 100 && seed > 0 )
         {
         for ( c = 0; c < seed; c++ )
             {
             out += " ";
             }

         out += Message;
         seed--;
         var cmd       = "scrollit_r2l( -1, " + seed + ")";
         window.status = out;
         timerTwo      = window.setTimeout(cmd,50);
         }
      else
         {
         if ( seed <= 0 )
            {
            if ( -seed < Message.length )
               {
               out          += Message.substring(-seed,Message.length);
               seed--;

               var cmd       = "scrollit_r2l( -1, " + seed + ")";
               window.status = out;
               timerTwo      = window.setTimeout(cmd,50);
               }
            else
               {
               window.status=" ";
               timerTwo=window.setTimeout("scrollit_r2l( -1, 100)",45);
               }
            }
         }
      }
}

// End -->

