/*
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] = "";
arrTitles[0] = "12.31.2003 - Ariana Gordon Stecker featured on &quot;Good Day New York&quot; as New York's premier New Year's Eve expert.";
arrLinks[1] = "";
arrTitles[1] = "11.02.2005 - Usher, Jay-Z, Russell Simmons &amp; Ciara attend the JoonBug Halloween event at Capitale.";
arrLinks[2] = "";
arrTitles[2] = "11.21.2005 - JoonBug Hosts Halloween Event at Capitale with the Gastineau Girls.";
arrLinks[3] = "";
arrTitles[3] = "12.27.2005 - Ariana Gordon Stecker was featured commenting on &quot;hot spots&quot; to see- and be seen at - to ring in the New Year.";
arrLinks[4] = "";
arrTitles[4] = "12.27.2005 - Ariana Gordon Stecker  and JoonBug host Mariah Carey at Cipiani for New Year's Eve.";
arrLinks[5] = "";
arrTitles[5] = "01.23.2006 - Christina Aguilera and hubby Jordan Bratman are spotted at JoonBug's NYE Bash.";   
arrLinks[6] = "";
arrTitles[6] = "01.26.2006 - Miss USA attends the launch party for Donald Trump's new website at Marquee produced by Ariana Gordon Stecker and JoonBug.";
arrLinks[7] = "http://GoTrump.com";
arrTitles[7] = "01.26.2006 - Ariana Gordon Stecker produces the launch party for Donald Trump's new venture GoTrump.com.";
arrLinks[8] = "";
arrTitles[8] = "10.2006 - Ariana Gordon Stecker as co-founder of JoonBug.com was featured in Market Watch magazine which labeled them as &quot;the on-line hub connecting hipsters with hotspots.";
arrLinks[9] = "";
arrTitles[9] = "01.01.2007 - Nick Lachey and Vanessa Minnillo dancing the night away at Marquee event hosted by JoonBug.";
arrLinks[10] = "";
arrTitles[10] = "01.03.2007 - Vanessa Minnillo and Nick Lachey ring in the New Year at  Joonbug's New Year's Eve event at Marquee.";
arrLinks[11] = "";
arrTitles[11] = "04.09.2008 - Ariana Gordon Stecker  featured on MTV's Total Request Live as celebrity event planner with tips on how to make parties a red carpet event.";
arrLinks[12] = "";
arrTitles[12] = "03.05.2010 - Event featured on TLC's &quot;Four Weddings.";
arrLinks[13] = "";
arrTitles[13] = "03.10.2010 - Featured on CRAVEnyc&rsquo;s blog entry: Best in Bridal Blogs. The Iris Fields Guide to Wedding and Event Planning blog was highlighted for bringing the newest and hottest in green trends to our readers.";
arrLinks[14] = "";
arrTitles[14] = "04.22.2010 - Ariana Stecker, co-founder of Iris Fields, was featured on OneWed’s Bridal Blog, “Savvy Scoop” as a wedding expert weighing in on green wedding tips in honor of Earth Day.";
}

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, 30);
  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, 5000);
  }
  base.scrollTop=iScroll;
}
function pause() {
  clearInterval(m_iInterval);
}
function resume() {
  m_iInterval = setInterval(ontimer, 30);
}



