/*
  The original source code is provided by Michael Maretzke. 
  The code does not contain any copyright constraints.
  Please use and distribute it whenever and for whatever 
  reasons you want to.
  If you want to contact me - please visit my website http://www.maretzke.com
  -- scroller.js -- version 1.1 -- 20090811
*/ 
var speed = 75; // the smaller the faster
var vertical = -2; // positive values == from top to bottom; negative values == from bottom to top
var size_y = 182;
var y = size_y;
var scroller = null;

function scroll() {
	if ((-y) > ((document.getElementById('ScrollerText').offsetHeight)))
		y = size_y;
	document.getElementById("ScrollerText").style.top = (y+=vertical);
	document.getElementById("ScrollerText").style.display = "block";
}

function initScroller() {
	scroller = setInterval("scroll()", speed);
}

function stopScroller() {
	if (scroller != null) {
		clearInterval(scroller);
		scroller = null;
	}		
}

function startScroller() {
	initScroller();
}

