/*************************************************************************
  This code is from Dynamic Web Coding at www.dyn-web.com
  Copyright 2001-5 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

/*
    pausing scroller - vertical or horizontal 
    version date: May 2005 (March 2005, revised GeckoTableFix)
*/

/*  Readable code available for licensed users */
function dateCalc1(){
var curDateTime = new Date()
  todayStr=curDateTime.toLocaleString()
  return todayStr
  }

function scrollDate(seed)
{
     var date =dateCalc1();
     var msg  = date +"  Welcome to Los Angeles Knanaya Mission.....";
     var out   = " "
     var i     = 1
     if (seed > 100) {
          seed--;
          var cmd  = "scrollDate(" + seed + ")";
          timerTwo = window.setTimeout(cmd,100);
     }
     else if (seed <= 100 && seed > 0) {
          for (i = 0 ; i < seed ; i++) {
               out += " ";
          }
          out += msg;
          seed--;
          var cmd = "scrollDate(" + seed + ")";
          window.status=out;
          timerTwo=window.setTimeout(cmd,100);
     }
     else if (seed <= 0) {
          if (-seed < msg.length) {
               out += msg.substring(-seed,msg.length);
               seed--;
               var cmd="scrollDate(" + seed + ")";
               window.status=out;
               timerTwo=window.setTimeout(cmd,100);
          }
          else {
               window.status=" ";
               timerTwo=window.setTimeout("scrollDate(100)",75);

          }

     }

 }