var scroll = {
	active: true,
	timer: false,
	speed: 50, // Default Speed, Lower = Faster
	direction: '-', // Default Direction, - = Down
	height: 90,
	orig_height: 90,
	obj: false,
	cur_offset: 0,
	content: "",
	init: function() {
		window.onload = function() {
			scroll.begin();
		}
	},
	begin: function() {
		if(document.getElementById('polaris-news')) {
			this.obj = document.getElementById('polaris-news');
			this.height = (this.obj.offsetHeight / 2) - 15;
			this.orig_height = this.obj.offsetHeight;
			this.content = this.obj.innerHTML;
			this.obj.onmouseover = function() { scroll.stop(); }
			this.obj.onmouseout = function() { scroll.start(); }
			this.timer = setTimeout("scroll.scroll()", this.speed);
		}
	},
	scroll: function() {
		if(this.active) {
			this.obj.style.position = 'relative';
			if(this.cur_offset > 0)
				this.obj.style.top = "-"+ this.cur_offset + "px";
			if(this.direction == '-')
				this.cur_offset++;
			else if(this.cur_offset > 0)
				this.cur_offset--;
			if(this.cur_offset > this.height) {
				if(this.height > 2000)
					setTimeout("scroll.reset()", 333 * this.speed);
				else
					this.obj.innerHTML += "<br />" + this.content;
					this.height += this.orig_height;
			}
		}
		var itimer = setTimeout("scroll.scroll()", this.speed);
	},
	start: function() {
		this.active = true;
	},
	stop: function() {
		this.active = false;
	},
	control: function(increment, direction) {
		this.speed = increment;
		this.direction = direction;
	},
	auto: function() {
		this.speed = 50;
		this.direction = '-';
		scroll.start();
	},
	reset: function() {
		this.obj.innerHTML = this.content;
		this.height = this.orig_height;
		this.obj.style.top = "0px";
		this.cur_offset = 0;
	}
}

scroll.init();