﻿var interval;
startPosition=0;
topPosition=200; //change this value to alter the scrolling height
endPosition=500;
speed=100;

function scrollit()
{
    if (startPosition!=200)
	{
	    startPosition=startPosition+1;
	    topPosition=topPosition-1;
	    document.getElementById('sale').style.clip="rect(" + (startPosition + 1) + " 530 " + (startPosition + endPosition) + " 0)";
	    document.getElementById('sale').style.top=topPosition;
	    document.getElementById('sale').style.position="absolute"; 
	    interval=setTimeout("scrollit()",speed);
	}
    else
	{
	    startPosition=0;
	    topPosition=200; //change this value to alter the scrolling height
	    endPosition=500;
	    interval=setTimeout("scrollit()",speed);
	}
}

function stopinterval()
{
    clearTimeout(interval);
}

