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}};$("#tbKey").poshytip({content:"输入关键字快捷搜索"}).mouseover(function(){$("#tbKey").data("acinited")||$("#tbKey").autocomplete(n).data("acinited",!0)})}function setTitleAc(){$("#s_rblField_0").prop("checked")?$("#s_tbKeyword").attr("acfid","Info"):$("#s_tbKeyword").removeAttr("acfid")}function ListUpdated(){setTags("#listArea .f-tag a");$(".footer a[rel]").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(n){$("#s_rbLimit").prop("checked",!0);WdatePicker({el:n,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 doFilter("Category:"+n||"")}function toPublish(n){var t="infoEdit.aspx?cat="+$.url.encode(cat);n&&(t+="&privacy=1");location=t}LoadDatePicker();var cat="";$(function(){var n=$("#ulCategory"),t;n.length>0&&(t=n.attr("treedata"),$.fn.zTree.init(n.removeAttr("treedata"),{view:{showTitle:!1}},$.parseJSON(t)));setTags("#divTags a");AC();setTitleAc();$("#s_rblField").click(setTitleAc);AutoComplete("#s_tbAuthor[acfid],#s_tbKeyword");$("#s_tbTime1，#s_tbTime2").on("focus click",function(){$("#s_rbLimit").prop("checked",!0)});$("#s_ddlCats").click(function(){$("#s_rblType_1").prop("checked",!0)})})