next=false;
prev=false;
scrollZoneWidth=690;
scrollSpeed=2;
function initiateNext()
{
	next=true;
	setTimeout("scrollNext()",0);
}

function initiatePrev()
{
	prev=true;
	setTimeout("scrollPrev()",0);
}

function scrollNext()
{
	if (next)
	{
		//only applies if the width of the strip is longer than the actual scroll sone
		if (parseInt(document.getElementById("sc").style.width)>scrollZoneWidth)
		{
			//we check if we've reached the end of the scroll strip
			if (parseInt(document.getElementById("sc").style.width)+(parseInt(document.getElementById("sc").style.left))<=scrollZoneWidth)
			{//we stop the scroll motion and position the strip against the right "wall"
				document.getElementById("sc").style.left=scrollZoneWidth-parseInt(document.getElementById("sc").style.width)+"px";
			}
			else
			{
				document.getElementById("sc").style.left=parseInt(document.getElementById("sc").style.left)-scrollSpeed+"px";
				setTimeout("scrollNext()",0);
			}
		}
	}
}


function scrollPrev()
{
	if (prev)
	{
		//only applies if the width of the strip is longer than the actual scroll sone
		if (parseInt(document.getElementById("sc").style.width)>scrollZoneWidth)
		{
			//we check if we've reached the begining of the scroll strip
			if (parseInt(document.getElementById("sc").style.left)>=0)
			{//we stop the scroll motion and position the strip against the right "wall"
				document.getElementById("sc").style.left="0px";
			}
			else
			{
				document.getElementById("sc").style.left=parseInt(document.getElementById("sc").style.left)+scrollSpeed+"px";
				setTimeout("scrollPrev()",0);
			}
		}
	}
}

