/*global $:false */
(function () {
"use strict";
var fullText = '(see full text)',
collText = '(collapse)';
$('#chat').on('click', 'a.more-data', function () {
var mid = '#message-' + this.href.substr(this.href.lastIndexOf('/') + 1, this.href.length),
partCont = $(mid + ' > div.content > .partial').html(),
state = 0,
fullCont,
target,
collapse;
function toggle(o) {
switch (state) {
case 0: