function compare(n,t){return n.localeCompare(t)}$(function(){var t,n,i;if(inIframe()&&$("#header").hide(),$(".infolder").each(function(){$("div.item[folderid='"+$(this).attr("folder")+"']").appendTo(this)}),$("#main").removeClass("hide"),t=$(".item").hover(function(){$(this).toggleClass("hover")}).click(function(){toLoad(baseUrl+$(this).attr("rid"))}).attr("title",function(){return $(this).text()}),n=$("#ac"),n.length>0)if($.browser.oldie)n.hide();else{i={source:function(n,i){var r=n.term.toLowerCase(),u=t.map(function(){var n=$(this).text();return n.toLowerCase().indexOf(r)>-1||new RegExp("^[a-zA-Z]$").test(r)&&getPinyinFirstChar(n)==r?n:null}).toArray();i(u.sort(compare))},position:{at:"left bottom",my:"left top+1"},minLength:0,select:function(n,i){var r=i.item.value;return t.filter(function(){return $(this).text()==r}).click(),!0},create:function(){n.bind("focus",function(){n.autocomplete("search",n.val())})}};n.mouseover(function(){n.data("acinited")||n.autocomplete(i).data("acinited",!0)});$(window).on("scroll",function(){n.data("acinited")&&n.autocomplete("close")})}$(".zoneTitle").addClass("pointer").click(function(){$(this).next("div.infolder").slideToggle(240);var n=$("img",this);n.attr("src",n.is("[src$='on.gif']")?"images/off.gif":"images/on.gif")})})