function ticker(el) {
	this.element = $(el);
	this.headlines = [];
	this.start = function() {
		for(var i = 0; i < this.headlines.length; i++) {
			this.element.append($("<li><a href=\"" + this.headlines[i][1] + "\">" + this.headlines[i][0] + "</a></li>"));
		}
		this.change();
	};
	this.change = function() {
		if(this.element.children(".active").length == 0) {
			$(this.element.children()[0]).addClass("active").fadeIn(300);
		} else {
			if(this.element.children(".active").next().length != 0) {
				this.element.children(".active").fadeOut(300, function() {
					$(this).removeClass("active");
					$(this).next().addClass("active").fadeIn(300);
				});
			} else {
				this.element.children(".active").fadeOut(300, function() {
					$(this).removeClass("active");
					$(news.element.children()[0]).addClass("active").fadeIn(300);
				})
			}
		}
		setTimeout("news.change()", 5000);
	};
}