//change 1 to another integer to alter the scroll speed. Greater is faster
var speed=1.9, theInterval, going=0;
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}

function iecompattest(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}

function scrollwindow(){
if (document.all)
temp=iecompattest().scrollLeft
else
temp=window.pageXOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=iecompattest().scrollLeft+speed
else
currentpos=window.pageXOffset+speed
window.scroll(currentpos,0)
}
else{
currentpos=0
window.scroll(currentpos,0)
}
}
function startit(){
if(!going){
theInterval=setInterval("scrollwindow()",10)
going=1
}
}
function stopit(){
clearInterval(theInterval)
going=0
}

function scrollControl(e){
	switch(going){
		case 0:
		startit()
		break 
		case 1:
		stopit()
		break
		}
	return false
}

function StartCycle() {

		initialize();
}
