try{$("#notectrl").hide()}catch(e){}$(document).ready(function(){$("#notectrl").hide();if($("#players td").size()>1){$("#players th a").each(function(){jthis=$(this);jthis.before(jthis.html());jthis.remove()});$("#players th").wrapInner("<span></span>");$("#players").tablesorter({sortList:[[3,1]],widgets:["zebra"]})}$("#notes").change(function(){$.ajax({type:"POST",url:pageUri+"+data",data:{ajax:1,action:"save",notes:$("#notes").val()},success:handleMessages,error:ajaxError})});var a=$("#content fieldset");if(a.size()>1){var b=$('<ul id="infotabs"></ul>');$("#content").prepend(b);a.each(function(){var c=$("legend",this);b.append('<li><a href="#'+this.id+'"><span>'+c.text()+"</span></a></li>");c.remove()});b.tabs()}});function ajaxError(a,c,b){if(a.status==403){document.location=pageUri}}function handleMessages(d,f){if(d.length==0){alert("Network error during updating.")}var b=$(d);var a=$("#messages .oldMessage");var c=$(b.find("request messages").text());c.hide();$("#messages").prepend(c);c.fadeIn();a.remove();
$("#messages *").addClass("oldMessage")};