function $$$(id)
{
return document.getElementById(id);
}
var anndelay =4000;
var anncount = 0;
var annheight = 25;
var annst = 0;
function announcementScroll()
{
if( ! annst)
{
$$$('tapetext').innerHTML +=$$$('tapetext').innerHTML;
$$$('tapetext').scrollTop = 0;
if(200 > annheight * 3)
{
annst = setTimeout('announcementScroll()', anndelay);
}
else
{
$$$('ticker').onmouseover = $$$('ticker').onmouseout = null;
}
return;
}
if(anncount == annheight)
{
if($$$('tapetext').scrollHeight - annheight <= $$$('tapetext').scrollTop)
{
$$$('tapetext').scrollTop = $$$('tapetext').scrollHeight / 2 - annheight;
}
anncount = 0;
annst = setTimeout('announcementScroll()', anndelay);
}
else
{
$$$('tapetext').scrollTop ++ ;
anncount ++ ;
annst = setTimeout('announcementScroll()', 10);
}
}
announcementScroll();
