/**
 * Shoutbox changes
 *
 * @author		Tim Düsterhus
 * @copyright	2010 - 2011 Tim Düsterhus
 * @pacakge		timwolla.wcf.chat.shoutbox
 * @license		Creative Commons BY-NC-ND <http://creativecommons.org/licenses/by-nc-nd/3.0/de/>
 */
Chat.prototype.getMessages = function () {
		if (this.loading == false) {
			$(this.prefix + 'Loading').style.display = 'inline';
			this.loading = true;
			new Ajax.Request('index.php?page=ChatShoutboxMessage&id='+this.id+SID_ARG_2ND, {
				method: 'get',
				onSuccess: this.update.bind(this),
				onFailure: this.failure.bind(this)
			});
		}
	};
Chat.prototype.animate = function () { };
Chat.prototype.update =  function (transport) {
		this.loading = false;
		$(this.prefix + 'Loading').style.display = 'none';
		var json = transport.responseJSON;
		this.handleUserUpdate(json.users, json.permissions);
		this.handleMessageUpdate(json.messages);
		
	};
Chat.prototype.openList = function () { };
Chat.prototype.refreshHandler = function () { };

