<!--
/* 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 2011 is when our 58th Year Class Reunion will be held. The exact dates are April 15th and 16th, 2011. Again this year, it will 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 #2213 ...";
  arrLinks[1] = "";
  arrTitles[1] = "Wednesday morning, August 11, 2010, at 10:30 AM, the guys meet at the All-Star Cafe in Huntingdon. <br>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] = "NEXT QUARTERLY: Friday, August 20, 2010 - We will meet, greet and eat around 6:00 o'clock PM. PLEASE NOTICE: The dinner will be at Mallards Restaurant in Huntingdon.<br>REMINDER: Future quarterlies will be the 2nd month of each quarter and the 3rd Friday 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");
  td1.height = m_Height-5;
  td2.height = m_Height-5;
  td3.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);
}
//-->
