<!--
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Mike Hudson :: http://www.afrozeus.com */

function setupLinks() {
   arrLinks[0] = ""; 
  arrTitles[0] = "The third weekend in April of 2012 is when our 59th Year Class Reunion will be held. The exact dates are April 13th and 14th again this year of 2012. Also, it will continue to be at the Pin Oak Lodge in Natchez Trace State Park. Call 1-800-250-8616 for reservations. The HHS Class of '53 Group Code is #2557.";
   arrLinks[1] = ""; 
  arrTitles[1] = "Wednesday morning, February 8, 2012, at 10:30 AM, the guys meet at Joe's Cafe in Huntingdon. The monthly meetings for the guy's luncheon are ALL tentatively scheduled for each 2nd Wednesday to make it easier to keep track.";
   arrLinks[2] = ""; 
  arrTitles[2] = "<blink>NEXT QUARTERLY: Saturday, February 18, 2012</blink> - We will meet, greet and eat around 6:00 o'clock PM. The dinner will be at Joe's BBQ & Diner in Huntingdon.";
   arrLinks[3] = ""; 
  arrTitles[3] = "PLEASE NOTICE: Future quarterlies will be the 2nd month of each quarter and the 3rd Saturday in that month. Therefore, quarterlies will be in February, May, August and November.";
}

var m_iInterval;
var m_Height;
//window.onload = wl;
var iScroll=0;

 var arrLinks; 
var arrTitles;

var arrCursor = 0;

var arrMax;
window.onload=wl;

function wl() {
  m_iInterval = setInterval(ontimer, 10);
  var base = document.getElementById("jump_base");

  m_Height = base.offsetHeight;

  var divi = parseInt(m_Height/5);
  m_Height = divi*5;

  var td1 = document.getElementById("td1");
  var td2 = document.getElementById("td2");
  var td3 = document.getElementById("td3");
  var td4 = document.getElementById("td4");

  td1.height = m_Height-5;
  td2.height = m_Height-5;
  td3.height = m_Height-5;
  td4.height = m_Height-5;

  arrLinks = new Array();
  arrTitles = new Array();

  setupLinks();
  arrMax = arrLinks.length-1;
  setLink();
}
function setLink() {
  var ilink = document.getElementById("jump_link");
  ilink.innerHTML = arrTitles[arrCursor];
  ilink.href = arrLinks[arrCursor];
}
function ontimer() {
  var base = document.getElementById("jump_base");
  iScroll+=5;
  if (iScroll>(m_Height*2)) {
    iScroll=0;
    arrCursor++;
    if (arrCursor>arrMax)
      arrCursor=0;
    setLink();
  }
  if (iScroll==m_Height) {
    pause();
    m_iInterval = setTimeout(resume, 4000);
  }
  base.scrollTop=iScroll;
}
function pause() {
  clearInterval(m_iInterval);
}
function resume() {
  m_iInterval = setInterval(ontimer, 10);
}
//-->

