function dynScroller(myName, outerDivID, innerDivID) {
	if (document.all) {
		document.getElementById = document.all;
	}
	this.myName       = myName;
	this.pixels       = 1;
	this.delay        = 40;
	this.loop         = true;
	this.direction    = 1;
	this.outerDivID   = outerDivID;
	this.innerDivID   = innerDivID;
	this.outerDivObj  = document.getElementById(outerDivID);
	this.innerDivObj  = document.getElementById(innerDivID);
	this.intervalID   = null;
	this.start        = dynScroller_start;
	this.stop         = dynScroller_stop;
	this.move         = dynScroller_move;
	this.manualMove   = dynScroller_manualMove;
	this.setContent   = dynScroller_setContent;
	this.setSpeed     = dynScroller_setSpeed;
	this.setLooping   = dynScroller_setLooping;
	this.setDirection = dynScroller_setDirection;
	document.getElementById(this.outerDivID).style.overflow = 'hidden';
	document.getElementById(this.innerDivID).style.position = 'relative';
	document.getElementById(this.innerDivID).style.top = document.getElementById(this.outerDivID).style.height;
}
function dynScroller_setContent(content) {
	this.innerDivObj.innerHTML = content;
}
function dynScroller_setSpeed(pixels, ms)
{
	this.pixels = pixels;
	this.delay  = ms;
}
function dynScroller_setLooping(looping) {
	this.loop = looping;
}
function dynScroller_setDirection(direction) {
	var oldDirection = this.direction;
	this.direction = direction;
	return oldDirection;
}
function dynScroller_start()
{
	this.intervalID = setInterval(this.myName + '.move()', this.delay);
}
function dynScroller_stop() {
	clearInterval(this.intervalID);
}
function dynScroller_move() {
	var currentTop = parseInt(this.innerDivObj.style.top);
	this.innerDivObj.style.top = currentTop - (this.pixels * this.direction);
	if (this.loop ) {
		if (this.direction == 1 && currentTop < (0 - (this.innerDivObj.offsetHeight + 10)) ) {
			this.innerDivObj.style.top = this.outerDivObj.style.height;
		} else if (this.direction == -1 && currentTop > (0 + this.outerDivObj.offsetHeight)) {
			this.innerDivObj.style.top = 0 - (this.innerDivObj.offsetHeight + 10);
		}
	}
}
function dynScroller_manualMove(direction) {
	var oldDirection = this.setDirection(-1 * (Math.abs(direction) / direction));
	this.move(); this.move();
	this.move(); this.move();
	this.move(); this.move();
	this.move(); this.move();
	this.setDirection(oldDirection);
}