<!--
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=419;			// 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()
{
   setArrows();

   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 setArrows()
{
   if (intCurrentTop == 0 || intCurrentTop > 0) 
   {  
      document.getElementById("scrolllistuparrow").style.visibility = 'hidden' 
      document.getElementById("scrolllistdownarrow").style.visibility = 'visible' 
   } 
   else
   {
      document.getElementById("scrolllistuparrow").style.visibility = 'visible'
   }

   if ((intCurrentTop - document.getElementById("scrolllistholder").clientHeight) == document.getElementById("scrolllist").clientHeight * -1 || (intCurrentTop - document.getElementById("scrolllistholder").clientHeight) < document.getElementById("scrolllist").clientHeight * -1) 
   { 
      document.getElementById("scrolllistdownarrow").style.visibility = 'hidden' 
      document.getElementById("scrolllistuparrow").style.visibility = 'visible' 
   } 
   else
   {
      document.getElementById("scrolllistdownarrow").style.visibility = 'visible' 
   }
}

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 = 10
      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
   }
 
   setArrows();
}

window.onload = scrollBoxInit
//-->
