function AC(){var n={source:function(n,t){$.getJSON("ajax.aspx?action=ac&acfid=Info&count=20",{term:n.term},t)},minLength:0,position:{at:"left bottom",my:"left top+1"},create:function(){$(this).bind("click",function(){$(this).autocomplete("search",$(this).val())})},select:function(n,t){return this.value=t.item.value,doFilter("FastSearch"),!1}},t=$("#tbKey").poshytip({content:"输入关键字快捷搜索"});$.browser.oldie&&!pageLoaded?setTimeout(function(){t.autocomplete(n)},0):t.autocomplete(n)}function ListUpdated(){$("div.item").mouseover(function(){$(".footer input[type='image']",this).removeClass("hide")}).mouseout(function(){$(".footer input[type='image']",this).addClass("hide")});setTags("#listArea .tag a");$(".author a").click(function(){$("#filter").val("Own:"+$(this).attr("rel"));__doPostBack("btnFilter","")});tryFitParent()}function setTags(n){$(n).click(showTag)}function showTag(){$("#filter").val("Tag:"+$(this).text());__doPostBack("btnFilter","")}function tagsDdlChanged(n){var t=$(n).val();t!=""&&($("#filter").val("Tag:"+t),n.selectedIndex=0,__doPostBack("btnFilter",""))}function timeChanged(){$("#s_rbLimit").prop("checked",!0);WdatePicker({dateFmt:"yyyy-MM-dd",onpicked:toNext})}function toNext(){var n="s_tbTime2";this.id!=n&&$f(n).focus()}function toPage(n){$("#curPageIndex").val(n);__doPostBack("btnFilter","Page")}function doFilter(n){return $("#filter").val(n),__doPostBack("btnFilter",""),!1}function PreDel(){return confirm("确定删除吗？")}function doSearch(){return $("#tbKey").val()==""?($("#tbKey").focus(),showAndExit("请输入搜索关键字！")):doFilter("FastSearch")}function showCategory(n){return IsVoid(n)&&(n=""),doFilter("Category:"+n)}function toPublish(){location="infoEdit.aspx?cat="+$.url.encode(cat)}LoadDatePicker();var cat="";$(function(){var n=$("#ulCategory"),i,t;n.length>0&&(i=n.attr("treedata"),$.fn.zTree.init(n.removeAttr("treedata"),{view:{showTitle:!1}},$.parseJSON(i)));setTags("#divTags a");AC();AutoComplete("#s_tbAuthor[acfid]");$("#s_tbTime1，#s_tbTime2").on("focus click",function(){$("#s_rbLimit").prop("checked",!0)});$("#s_ddlCats").click(function(){$("#s_rblType_1").prop("checked",!0)});t=Sys.WebForms.PageRequestManager.getInstance();t.add_initializeRequest(showLoading);t.add_endRequest(hideLoading)})