<!--
//SCROLLNEWSITEM GLOBALS
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=6;			  // 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=12;			//the maximum value of intScrollTick before it's reset
var REBOUND = -2;						// the value of intScrollRate when we stop scrolling
var busy = 0;
var scrolllistwidth = 240;
//SCROLLREPEAT GLOBALS
var repeatdirection=0;
var repeattimer;

//SCROLLNEWSITEM
function ScrollBoxBoxInit()
{
    //Get Image URL's
   if (document.getElementById("scrolllistrightarrow") !== null) 
   {
      document.getElementById("scrolllistrightarrow").onclick = function() { ScrollBoxBoxScroll(0);clearInterval(repeattimer);}
   }
  
   if (document.getElementById("scrolllistleftarrow") !== null)
   { 
      document.getElementById("scrolllistleftarrow").onclick = function() { ScrollBoxBoxScroll(1);clearInterval(repeattimer);}
   }
	 repeattimer = setInterval('ScrollRepeat()', 10000);
}
function ScrollRepeat()
{
  if(busy == 0)
	{
	  if(repeatdirection==0)
		{//Scroll Right
  	  if(intCurrentLeft > (parseInt(document.getElementById("scrolllist").style.width) - scrolllistwidth)*-1)
  		{
  	    ScrollBoxBoxScroll(0);
  		}
			else
			{
			  repeatdirection=1;
				ScrollBoxBoxScroll(1);
			}
		}
		else
		{//Scroll Left
  	  if(intCurrentLeft < 0)
  		{
  	    ScrollBoxBoxScroll(1);
  		}
			else
			{
			  repeatdirection=0;
				ScrollBoxBoxScroll(0);
			}
		}
	}
}
function ScrollBoxBoxScroll(intDirection) 
{
  if (busy==0)
	{
  	 //SCROLL
     if (intZInterval) { return; } 
     if ((!intDirection && intCurrentLeft <= (document.getElementById("scrolllist").clientWidth - scrolllistwidth) * -1) || (intDirection && intCurrentLeft == 0)) { return; }
     busy=1;
  	 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 = 6;
			busy=0;
   }

   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 - scrolllistwidth) == document.getElementById("scrolllist").clientWidth * -1 || (intCurrentLeft - scrolllistwidth) < document.getElementById("scrolllist").clientWidth * -1) 
   { 
      document.getElementById("scrolllistrightarrow").style.visibility = 'hidden' ;
      document.getElementById("scrolllistleftarrow").style.visibility = 'visible' ;
   } 
   else
   {
      document.getElementById("scrolllistrightarrow").style.visibility = 'visible' ;
   }
}

//INIT
window.onload = ScrollBoxBoxInit;
//-->
