var Message_Rotator = {
	quote_array : new Array(1),

	init : function(id, quotes) {
		this.quote_array[id] = quotes;
		Message_Rotator.rotate(id);
	},
	
	rotate : function(id) {
		var anchor = document.getElementById(id);

		var thequote = this.quote_array[id].shift(); //Pull the top one
		this.quote_array[id].push(thequote); //And add it back to the end
		var theUrl	= this.quote_array[id].shift();
		this.quote_array[id].push(theUrl);
		var html;

		if (theUrl != "")
			html = '<a href="' + theUrl + '" target="_blank">' + thequote + '</a>';
		else
			html = thequote;
		anchor.innerHTML = html;
		setTimeout("Message_Rotator.rotate('" + id + "')", 7000);
	}
}
