function setupLinks() {
  arrLinks[0] = "http://www.autohypnoseenligne.com/";
  arrTitles[0] = "Apprenez à utiliser votre esprit";
  arrLinks[1] = "http://www.autohypnoseenligne.com/";
  arrTitles[1] = "Apprenez à vous comprendre vous-même";
  arrLinks[2] = "http://www.autohypnoseenligne.com/list_mod.php?l=fr#2";
  arrTitles[2] = "Augmentez votre confiance en vous";
  arrLinks[3] = "http://www.autohypnoseenligne.com/list_mod.php?l=fr#6";
  arrTitles[3] = "Soulagez vos douleurs";
  arrLinks[4] = "http://www.autohypnoseenligne.com/";
  arrTitles[4] = "Développez vos capacités";
  arrLinks[5] = "http://www.autohypnoseenligne.com/";
  arrTitles[5] = "Augmentez vos performances";
  arrLinks[6] = "http://www.autohypnoseenligne.com/";
  arrTitles[6] = "Libérez-vous de votre passé";
  arrLinks[7] = "http://www.autohypnoseenligne.com/";
  arrTitles[7] = "Améliorez votre bien-être physique et émotionnel";
  arrLinks[8] = "http://www.autohypnoseenligne.com/";
  arrTitles[8] = "Apprenez à gérer votre stress, votre fatigue, votre sommeil";
  arrLinks[9] = "http://www.autohypnoseenligne.com/";
  arrTitles[9] = "Devenez votre propre thérapeute";
  arrLinks[10] = "http://www.autohypnoseenligne.com/";
  arrTitles[10] = "L'autohypnose: un puissant outil d'évolution";
  arrLinks[11] = "http://www.autohypnoseenligne.com/list_mod.php?l=fr#7";
  arrTitles[11] = "Réussissez vote régime";
  arrLinks[12] = "http://www.autohypnoseenligne.com/list_mod.php?l=fr#5";
  arrTitles[12] = "Libérez-vous du tabac";
}

var m_iInterval;
var m_Height;
var iScroll=0;
var arrLinks;
var arrTitles;
var arrCursor = 0;
var arrMax;
window.onload=wl;

function wl() {
  m_iInterval = setInterval(ontimer, 20);
  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, 6000);
  }
  base.scrollTop=iScroll;
}
function pause() {
  clearInterval(m_iInterval);
}
function resume() {
  m_iInterval = setInterval(ontimer, 20);
}

