<!-- Paste this code into an external JavaScript file named: vertical.js -->

/* 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 */

/*
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://1800realitycheck.com/filefox.php?ebay=top=sellers";
arrTitles[0] = "What's selling on ebay ... ";
arrLinks[1] = "http://1800realitycheck.com/filefox.php?ebay=best=sellers";
arrTitles[1] = "Gucci Diaper Baby Messenger Bag Pink & Blue New US $405.00 (31 Bids)" ;
arrLinks[2] = "http://1800realitycheck.com/filefox.php?ebay=pulse=best=sellers";
arrTitles[2] = "Sterling Silver Winnie The Pooh Charm Bracelet US $120.00 (25 Bids)";
arrLinks[3] = "http://1800realitycheck.com/filefox.php?ebay=pulse=most=popular";
arrTitles[3] = "Baby Boy PREEMIE NEWBORN Clothing Lot 27 piece EUC US $18.50 (19 Bids)";
arrLinks[4] = "http://1800realitycheck.com/filefox.php?ebay=highest=bids";
arrTitles[4] = "BRAND NEW FACTORY SEALED BABY EINSTEIN DVD COLLECTION US $34.00 (18 Bids)";
arrLinks[5] = "http://1800realitycheck.com/filefox.php?what=sells=on=ebay";
arrTitles[5] = "Pink 3 Wheels Pet Dog Cat Stroller w/RainCover US $31.95 (18 Bids)";
arrLinks[6] = "http://1800realitycheck.com/filefox.php?top=sellers";
arrTitles[6] = "VINTAGE WICKER DOLL STROLLER US $22.62 (17 Bids)";
arrLinks[7] = "http://1800realitycheck.com/filefox.php?discover=what=sells";
arrTitles[7] = "Bugaboo Frog Complete Navy Standard Stroller US $251.00 (16 Bids)";
arrLinks[8] = "http://1800realitycheck.com/filefox.php?selling=on=ebay";
arrTitles[8] = "New Baby Einstein 26 DVD Collection Free Shipping! US $29.05 (16 Bids) ";
arrLinks[9] = "http://1800realitycheck.com/filefox.php?look=what=sells";
arrTitles[9] = "Coach Signature Purse, Diaper Bag, Laptop,Handbag Tote US $65.00 (14 Bids)";
arrLinks[10] = "http://1800realitycheck.com/filefox.php?hot=sellers=ebay";
arrTitles[10] = "Skip Hop Duo Double *Flora* RARE Twin Diaper Bag New US $44.00 (13 Bids) ";
arrLinks[11] = "http://1800realitycheck.com/filefox.php?hottest=selling";
arrTitles[11] = "newborn to 3 month infant girl clothing lot US $16.50 (13 Bids) ";
arrLinks[12] = "http://1800realitycheck.com/filefox.php?ebay=top=sellers";
arrTitles[12] = "Sneakers, NIKE WOMEN SHOES sz.8,baby blue and silver!!! US $58.50 (11 Bids)";
arrLinks[13] = "http://1800realitycheck.com/filefox.php?ebay=pulse=hot=sellers";
arrTitles[13] = "Genuine baby born dolls satin coat with trousers US $7.89 (11 Bids) ";
arrLinks[14] = "http://1800realitycheck.com/filefox.php?ebay=research=sellers";
arrTitles[14] = "New Baby Einstein 26 DVD Collection Disney Gift Box Set US $15.50 (9 Bids) ";

}

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);
}