<!--
var intCurrentLeft = 0;			// the current Y position of the UL
var intZInterval = null;		// animation thread interval
var intStartLeft=0;			// the starting top of the UL
var intScrollRate=12;			// ScrollBoxBoxInitial rate of scrolling
var intScrollTick=0;			// keeps track of long we've scrolled so we can slow it objDownArrow accordingly
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 ScrollBoxBoxInit()
{
   if (document.getElementById("scrolllistrightarrow") !== null) 
   {
      document.getElementById("scrolllistrightarrow").onclick = function() { ScrollBoxBoxScroll(0) } 
   }
  
   if (document.getElementById("scrolllistleftarrow") !== null)
   { 
      document.getElementById("scrolllistleftarrow").onclick = function() { ScrollBoxBoxScroll(1) }
   }
}

function ScrollBoxBoxScroll(intDirection) 
{
   if (intZInterval) { return } 
   if ((!intDirection && intCurrentLeft <= (document.getElementById("scrolllist").clientWidth - document.getElementById("scrolllistholder").clientWidth) * -1) || (intDirection && intCurrentLeft == 0)) { return }
   intZInterval = setInterval('ScrollBoxBoxAnimate(' + intDirection + ')', 10)
}

function ScrollBoxBoxAnimate(intDirection) 
{ 
   if (!intDirection) 
   {
      intCurrentLeft -= intScrollRate
   } 
   else
   {
      intCurrentLeft += intScrollRate
   }
   
   intScrollTick++

   if (intScrollTick >= MAX_SCROLL_TICK) 
   {
      intScrollRate--
      intScrollTick = 0
   }

   document.getElementById("scrolllist").style.left = intCurrentLeft + "px"

   if (intScrollRate <= REBOUND) 
   {
      clearInterval(intZInterval)
      intZInterval = null
      intStartLeft = intCurrentLeft
      intScrollTick = 0
      intScrollRate = 12
   }

   if (intCurrentLeft == 0 || intCurrentLeft > 0) 
   {  
      document.getElementById("scrolllistleftarrow").style.visibility = 'hidden' 
      document.getElementById("scrolllistrightarrow").style.visibility = 'visible' 
   } 
   else
   {
      document.getElementById("scrolllistleftarrow").style.visibility = 'visible'
   }

   if ((intCurrentLeft - document.getElementById("scrolllistholder").clientWidth) == document.getElementById("scrolllist").clientWidth * -1 || (intCurrentLeft - document.getElementById("scrolllistholder").clientWidth) < document.getElementById("scrolllist").clientWidth * -1) 
   { 
      document.getElementById("scrolllistrightarrow").style.visibility = 'hidden' 
      document.getElementById("scrolllistleftarrow").style.visibility = 'visible' 
   } 
   else
   {
      document.getElementById("scrolllistrightarrow").style.visibility = 'visible' 
   }
}

window.onload = ScrollBoxBoxInit
//-->
