/* author: tradenet@seznam.cz */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 5.2.2007 */


/*
To change the values in the setupLinks function below.
You will notice there are two arrays for each of Titles and
Links. Currently there are 3 items in each array, but you can easily
expand on that by adding to the array. For example, to add a 4th record,
you would simply include the following 2 lines at the end of setupLinks
function:

arrLinks[3] = "someURL.htm";
arrTitles[3] = "Some title";
*/
function setupLinks() {
  arrLinks[0] = "http://www.seniorclub.cz/kontakt.asp";
  arrTitles[0] = "Sdělte nám prosím, co Vám na stránkách Seniorclub chybí";
  arrLinks[1] = "http://www.seniorclub.cz/duchodbude.htm";
  arrTitles[1] = "Poznejte důležité informace pro důchod více...";
  arrLinks[2] = "http://www.seniorclub.cz/kontakt.asp";
  arrTitles[2] = "Příspěvky do rubriky RADY zasílejte redakci. Klikněte";
  arrLinks[3] = "http://www.seniorclub.cz/zmenyduch.htm";
  arrTitles[3] = "Změna termínů výplaty důchodů v roce 2009. Více...";
  arrLinks[4] = "http://www.seniorclub.cz/videa.htm";
  arrTitles[4] = "zajímavé videoreportáže, které byste měli vidět! Klikněte zde ";
  arrLinks[5] = "http://www.cestovize.cz";
  arrTitles[5] = "Cestovize.cz - cestujte po světě z pohodlí Vašeho domova. Klikněte zde";
  arrLinks[6] = "http://www.seniorclub.cz/bezpecnost.htm";
  arrTitles[6] = "Osobní bezpečnost POZOR NA NEZVANÉ ŘEMESLNÍKY! Více...";
  arrLinks[7] = "http://www.seniorclub.cz/kontakt.asp";
  arrTitles[7] = "Posílejte nám vaše návrhy a připomínky, klikněte zde";
  arrLinks[8] = "http://www.dpp.cz/jizdne-na-uzemi-prahy/";
  arrTitles[8] = "Jízdné na území Prahy - slevy seniorům, klikněte zde";
}

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-7;
  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);
}