<!-- Beginning of JavaScript Applet
var id, pause=0,  revol=9, calendar;
var position=0;
var position2=0;

function MakeArray(n)
{
   this.length = n;
   return this;
}

monthNames = new MakeArray(12);
monthNames[1] = "January";   monthNames[2] = "February";     monthNames[3] = "March";
monthNames[4] = "April";     monthNames[5] = "May";          monthNames[6] = "June";
monthNames[7] = "July";      monthNames[8] = "August";       monthNames[9] = "September";   
monthNames[10] = "October";  monthNames[11] = "November";    monthNames[12] = "December";

dayNames = new MakeArray(7)
dayNames[1] = "Sunday" ;     dayNames[2] = "Monday";         dayNames[3] = "Tuesday";
dayNames[4] = "Wednesday";   dayNames[5] = "Thursday";       dayNames[6] = "Friday";
dayNames[7] = "Saturday";

function signbar()
{

   var now = new Date(),
       theDOM = now.getDate(),
       theDay = dayNames[now.getDay() + 1],
       theMonth = monthNames[now.getMonth() + 1],
       theYear = now.getYear() + 1900;

   if (theYear > 3000) theYear = theYear - 1900;

// banner message
    
var msg = "  Welcome to MY Home Page. ";
    msg += " Thanks for stopping by. ";
    msg += " Please visit again. ";
    msg += " Links are being added as I find and test them. ";
    msg += " Today is ";

    msg += theDay;
//       msg += ". ";
//      msg += " The Month is ";
       msg += " ";
       msg += theMonth;
       msg += " ";
       msg += theDOM;
       msg += ", ";
//      msg += ". ";
//       msg += " The Year is ";
       msg += theYear;
       msg += ". ";
if (theDay == "Sunday")
   {
   msg += " Hope you are having a great weekend."; 
   msg += " Today is the day of rest before the work week starts again.";
   }
if (theDay == "Monday")
   {
   msg += " It is the first day of the start of a new work week.";
   msg += " Hope you are having a great day."; 
   }
if (theDay == "Tuesday")
   {
   msg += " It is the second day of the beginning of the work week.";
   msg += " Hope the week is going well."; 
   }
if (theDay == "Wednesday")
   {
   msg += " It is the middle of the work week today."; 
   msg += " At least for many people.";
   }
if (theDay == "Thursday")
   {
   msg += " It is the second to last day of the work week today."; 
   }
if (theDay == "Friday")
   {
   msg += " It is the last day of the work week unless you have to work the weekend."; 
   }
if (theDay == "Saturday")
   {
   msg += " Hope you are having a great weekend, this is only the first day."; 
   }
//       msg += ". ";

if (theMonth == "January" ||
    theMonth == "February" ||
    theMonth == "March" ||
    theMonth == "April" ||
    theMonth == "May" )
{
annivyears = theYear - 1989 - 1;
}

if (theMonth == "June" ||
    theMonth == "July" ||
    theMonth == "August" ||
    theMonth == "September" ||
    theMonth == "October" ||
    theMonth == "November" ||
    theMonth == "December" )
{
annivyears = theYear - 1989;
}

danny = theYear - 1993;
chris = theYear - 1995;
tommy = theYear - 1996;
markp = theYear - 1981;
peggyp = theYear - 1970;
rosinap = theYear - 1968;
stevenp = theYear - 1965;
mike = theYear - 1962;
jackie = theYear - 1959;
herta = theYear - 1940;
everett = theYear - 1937;
USA = theYear - 1776;

if (theMonth == "January" && theDOM == "29")
{
msg += " Happy Birthday to Steve. ";
msg += " You are now " + stevenp + " years old. ";
}

if (theMonth == "March" && theDOM == "1")
{
msg += " Happy Birthday to Everett. ";
msg += " You are now " + everett + " years old. ";
}

if (theMonth == "April" && theDOM == "12")
{
msg += " Happy Birthday to Danny. ";
msg += " You are now " + danny + " years old. ";
}

if (theMonth == "April" && theDOM == "13")
{
msg += " Happy Birthday to Rosina. ";
msg += " You are now " + rosinap + " years old. ";
}

if (theMonth == "April" && theDOM == "25")
{
msg += " Happy Birthday to Mark. ";
msg += " You are now " + markp + " years old. ";
}

if (theMonth == "June" && theDOM == "14")
{
msg += " Happy Birthday to Mike. ";
msg += " You are now " + mike + " years old. ";
}

if (theMonth == "June" && theDOM == "17")
{
msg += " Happy Wedding Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years. ";
}

if (theMonth == "June" && theDOM == "19")
{
msg += " Happy Birthday to Chris. ";
msg += " You are now " + chris + " years old. ";
}

if (theMonth == "July" && theDOM == "4")
{
msg += " Happy Birthday to the USA. ";
msg += " You are now " + USA + " years old. ";
}

if (theMonth == "August" && theDOM == "27")
{
msg += " Happy Birthday to Tommy. ";
msg += " You are now " + tommy + " years old. ";
}

if (theMonth == "November" && theDOM == "6")
{
msg += " Happy Birthday to Peggy. ";
msg += " You are now " + peggyp + " years old. ";
}

if (theMonth == "November" && theDOM == "14")
{
msg += " Happy Birthday to Jackie. ";
msg += " You are now " + jackie + " years old. ";
}

if (theMonth == "December" && theDOM == "22")
{
msg += " Happy Birthday to Herta. ";
msg += " You are now " + herta + " years old. ";
}


if (theDOM == "17")
{

if (theMonth == "July")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 1;
msg += "and " + months + " month. ";
}

if (theMonth == "August")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 2;
msg += "and " + months + " months. ";
}

if (theMonth == "September")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 3;
msg += "and " + months + " months. ";
}

if (theMonth == "October")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 4;
msg += "and " + months + " months. ";
}

if (theMonth == "November")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 5;
msg += "and " + months + " months. ";
}

if (theMonth == "December")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 6;
msg += "and " + months + " months. ";
}

if (theMonth == "January")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 7;
msg += "and " + months + " months. ";
}

if (theMonth == "February")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 8;
msg += "and " + months + " months. ";
}

if (theMonth == "March")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 9;
msg += "and " + months + " months. ";
}

if (theMonth == "April")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 10;
msg += "and " + months + " months. ";
}

if (theMonth == "May")
{
msg += " Happy Monthly Anniversary to my wife. ";
msg += " We have been together for " + annivyears + " years ";
months = 11;
msg += "and " + months + " months. ";
}

}

 // send message to div area

// $("position").innerHTML =  position;
// $("position").innerHTML +=  " " + position2;

if (position <= 5)
{
   $("banner").innerHTML = "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML +=  msg.substring(position2,position + 15);
   position++;
}

if (position > 5 && position <= 10)
{
   $("banner").innerHTML = "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML +=  msg.substring(position2,position + 15);
   position++;
}

if (position > 10 && position <= 15)
{
   $("banner").innerHTML = "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML +=  msg.substring(position2,position + 15);
   position++;
}

if (position > 15 && position <= 25)
{
   $("banner").innerHTML = "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML +=  msg.substring(position2,position + 15);
   position++;
}

if (position > 25 && position < 40)
{
   $("banner").innerHTML = "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML +=  msg.substring(position2,position + 15);
   position++;
}

// if (position == 40)
// {
// position2 = 30;
// }


if (position >= 40)
{

   $("banner").innerHTML = "&#160&#160&#160&#160&#160" ;
   $("banner").innerHTML += msg.substring(position2,position + 25);
   position++;
   position2++;

if (position == msg.length)
   {
    position = 0;
    position2 = 0;
   }

 }

 // recursively call this function every one hundredth of a second to keep sign scrolling
//   id=setTimeout("signbar()",100);

}

function updateTime()
{
   var now = new Date(),
       theHour = now.getHours(),
       theMin = now.getMinutes(),
       theSec = now.getSeconds(),  
       theDay = dayNames[now.getDay() + 1],
       theMonth = monthNames[now.getMonth() + 1],
       theYear = now.getYear() + 1900,
       theDate = now.getDate(), 
       theTime ;

   if (theHour == 0)
      {
      theTime = " " + 12;
      }
   if (theHour > 0)
      {
      theTime =  " " + ((theHour > 12) ? theHour - 12 : theHour);
      }
   theTime+= ((theMin < 10) ? ":0" : ":") + theMin;
   theTime+= (theHour >= 12) ? " PM" : " AM";

   if (theYear > 3000) theYear = theYear - 1900;

   calendar =   " " + theDay;
   calendar +=  ", " + theMonth + " " + theDate + ", " + theYear;

 // put information into the form fields
//   document.form0.date.value=calendar;
//   document.form0.time.value=theTime;
   $("time").innerHTML = theTime;

 // recursively call this function every 30 seconds to keep timer going
//   timerID = setTimeout("updateTime()",30000);
}

function mysleep (m) {
var then = new Date(new Date().getTime() + m); 
while (new Date() < then) {}
}

function Loaded()
{
   $("loader").innerHTML = "Page Loaded";
}
function onPageLoad()
{
window.location = "#top";
}

function mainproc()
{
Loaded();
   $("loader").innerHTML = "Enjoy the Information";
}
//End of JavaScript code -->
