<!--
var intCurrentTop = 0;			// the current Y position of the UL
var intZInterval = null;		// animation thread interval
var intStartTop=0;			// the starting top of the UL
var intScrollRate=10;			// ScrollBoxInitial rate of scrolling
var intScrollTick=0;			// keeps track of long we've scrolled so we can slow it objDownArrow accordingly
var intListHeight=60;			// the current height of the UL
var MAX_SCROLL_TICK=4;			// the maximum value of intScrollTick before it's reset
var REBOUND = -3;			// the value of intScrollRate when we stop scrolling

function ScrollBoxInit()
{
   if (document.getElementById("scrolllistdownarrow") !== null)
   {   
      document.getElementById("scrolllistdownarrow").onmouseover = function() { ScrollBoxScroll(0) }
      document.getElementById("scrolllistdownarrow").onclick = function() { ScrollBoxScroll(0) }
   }

   if (document.getElementById("scrolllistuparrow") !== null)
   {   
      document.getElementById("scrolllistuparrow").onmouseover = function() { ScrollBoxScroll(1) }
      document.getElementById("scrolllistuparrow").onclick = function() { ScrollBoxScroll(1) }
   }
}

function ScrollBoxScroll(intDirection) 
{
   if(intZInterval) { return } 
   if ((!intDirection && intCurrentTop <= (document.getElementById("scrolllist").clientHeight - document.getElementById("scrolllistholder").clientHeight) * -1) || (intDirection && intCurrentTop > 0)) { return }
   intZInterval = setInterval('ScrollBoxAnimate(' + intDirection + ')', 10)
}

function ScrollBoxAnimate(intDirection) 
{ 
   if ((!intDirection && intCurrentTop <= (document.getElementById("scrolllist").clientHeight - document.getElementById("scrolllistholder").clientHeight) * -1) || (intDirection && intCurrentTop > 0)) 
   { 
      clearInterval(intZInterval)
      intZInterval = null
      intStartTop = intCurrentTop
      intScrollTick = 0
      intScrollRate = 6
      return
   }

   if (!intDirection) 
   {
      intCurrentTop -= intScrollRate
   } 
   else
   {
      intCurrentTop += intScrollRate
   }
   
   intScrollTick++

   if (intScrollTick >= MAX_SCROLL_TICK) 
   {
      intScrollRate--
      intScrollTick = 0
   }

   document.getElementById("scrolllist").style.top = intCurrentTop + "px"

   if (intScrollRate <= REBOUND) 
   {
      clearInterval(intZInterval)
      intZInterval = null
      intStartTop = intCurrentTop
      intScrollTick = 0
      intScrollRate = 10
   }
}

window.onload = ScrollBoxInit
//-->
