		// Set the initDelay and initDIrection to be the same as the values defined in the params
		var initDelay = 0; 
		var initDirection = -1;
		var speed = 5; //Set scroll speed here
		var curDelay = initDelay;
		var curDirection = initDirection;
	
		function changeScroll(dir) {
			// Calling changeScroll with the same dir makes the ticker go faster
			if (dir == 0) {
				curDelay = 0;
				curDirection = 0;
			}
			else if (dir == curDirection)
				curDelay -= 10;
			else {
				curDirection = dir;
				curDelay = initDelay;
			}

			// You can't have a negative delay. And some rational limit must be set
			if (curDelay < 3)
				curDelay = 3;

			var a = document.getElementById('TickerX');
			if (a) {
				a.setScroll(1, curDirection, curDelay);
			}
		}

