function newsList (element, type, speed, startingDelay, stopOnMouseHover) {
	this.content = $(element);
	this.type = type;
	this.startingDelay = startingDelay * 1000;
	this.speed = (parseInt(speed) * 2) % 21;
	this.actualSpeed = this.speed;
	
	this.content.parent().height(this.content.parent().parent().prev().height());
	
	if (this.content.height() > this.content.parent().height()) {
		if (this.type == 'continuous') {
			this.content_cloned = this.content.clone().insertAfter(this.content);
			this.content_cloned.show();
		}
		
		var list = this;
		if (stopOnMouseHover) {list.content.parent().hover(function(){list.actualSpeed = 0;}, function(){list.actualSpeed = list.speed;});}
		
		this.content.fadeIn(this.startingDelay, function() {list.scroll();});
	} else {
		this.content.fadeIn(this.startingDelay);
	}
}

newsList.prototype.scroll = function() {
	var list = this;
	var height = parseInt(this.content.height());
	var content_top = Math.abs(parseInt(this.content.css('top')));
	
	if (this.type == 'continuous') {
		if (content_top >= height) {
			this.content.css('top', height + 'px');
			this.content_cloned.css('top', (height * (-1)) + 'px');
		}
		
		var content_cloned_top = Math.abs(parseInt(this.content_cloned.css('top'))) - height;
		if (content_cloned_top >= height) {
			this.content_cloned.css('top', '0px');
			this.content.css('top', '0px');
		}
		
		this.content_cloned.animate({top: '-=' + list.actualSpeed}, 200, 'linear');
	} else {
		if (content_top >= height) {
			this.content.css('top', '0px');
			this.content.css('display', 'none');
			this.content.fadeIn(this.startingDelay);
		}
	}
	
	this.content.animate({top: '-=' + list.actualSpeed}, 200, 'linear', function(){list.scroll();});
}