function createScroller(name, div, table, direction, delayTime, pixelAmount, rowIndex, autoPause)
{
	if(!name) return;
	if(!table) return;
	if(!window.scrollers)
	{
		window.scrollers = new Array();
	}
	window.scrollers[name] = new ScrollerClass(name, div, table, direction, delayTime, pixelAmount, rowIndex, autoPause);

	if(window.scrollers[name].direction == 1)
		window.scrollers[name].timerID = window.setInterval("scrollHScroller(\"" + name + "\")", window.scrollers[name].delayTime);
	else
		window.scrollers[name].timerID = window.setInterval("scrollVScroller(\"" + name + "\")", window.scrollers[name].delayTime);
}

function ScrollerClass(name, div, table, direction, delayTime, pixelAmount, rowIndex, autoPause)
{
	this.name = name;
	this.table = document.getElementById(table);
	this.div = document.getElementById(div);
	this.direction = direction;
	this.delayTime = delayTime;
	this.pixelAmount = pixelAmount;
	this.rowIndex = rowIndex;
	this.div.scroller = this;
	this.play = 1;
	if(autoPause)
	{
		this.div.onmouseover = function()
		{
			this.scroller.play = 0;
		}
		this.div.onmouseout = function()
		{
			this.scroller.play = 1;
		}
	}
	this.table.style.position = "relative";
	this.table.style.left = 0;
	this.table.style.top = 0;
	return this;
}

function scrollVScroller(name)
{
	var firstRow;
	var newRow;
	var scroller;
	var itemHeight;
	
	if(!name) return;
	scroller = window.scrollers[name];
	if(!scroller) return;
	if(!scroller.play)