var scrollerwidth = 138;
var scrollerheight = 153;
var speed = 2;
var scrollertext = '';

scrollertext += '<table width="138" cellpadding="0" cellspacing="0" border="0"><tr><td colspan="2"><a href="topdollar.php"><img src="images/topdollar.gif" width="135" height="75" border="1" hspace="1"></a></td></tr></table><p>';
scrollertext += '<table width="138" cellpadding="0" cellspacing="0" border="0"><tr><td colspan="2"><a href="home_eval.php"><br><span class="tv-scroll-headline"><b>FREE</b> Quick Over-The-Net <b>Home Evaluation</b></span></a></td></tr><tr><td>&nbsp;&nbsp;</td><td><span class="tv-scroll-text">Find out what your home is worth by answering a few easy questions.&nbsp;<a href="home_eval.php"><span class="tv-scroll-more">more</span></a>...</span></td></tr></table><p>';
scrollertext += '<table width="138" cellpadding="0" cellspacing="0" border="0"><tr><td colspan="2"><a href="vip_buyer.php"><img src="images/vip.gif" width="135" height="75" border="1" hspace="1"></a></td></tr></table><p>';
scrollertext += '<table width="138" cellpadding="0" cellspacing="0" border="0"><tr><td colspan="2"><a href="vip_buyer.php"><span class="tv-scroll-headline">How to Beat Out Other Buyers to <b>Hot New Listings</b></span></a></td></tr><tr><td>&nbsp;&nbsp;</td><td><span class="tv-scroll-text">Get a sneak preview of new listings on the market before other buyers with \"Preferred Access\".  Preferred Access gives you regular VIP bulletins with details on homes you want.&nbsp;<a href="vip_buyer.php"><span class="tv-scroll-more">more</span></a>...</span></td></tr></table><p>';

if (document.all) {
    document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+scrollerwidth+';height:'+scrollerheight+'">'+scrollertext+'</marquee>');
}

function regenerate() {
    window.location.reload();
}

function regenerate2() {
    if (document.layers) { 
        setTimeout("window.onresize=regenerate",450);
        intializemarquee();
    }
}

function intializemarquee() {
    document.scroller01.document.scroller02.document.write(scrollertext);
    document.scroller01.document.scroller02.document.close();
    thelength=document.scroller01.document.scroller02.document.height;
    scrollit();
}

function scrollit() {
    if (document.scroller01.document.scroller02.top>=thelength*(-1)) { 
        document.scroller01.document.scroller02.top-=speed;
        setTimeout("scrollit()",100);
    } else { 
        document.scroller01.document.scroller02.top=scrollerheight;
        scrollit();
    }
}
