function formatMainMenu(k,h){var j="";return(j)}function formatInPageMenu(j,r){var s="";return(s)}function insertMainMenu(h,e,f){var g=new Ext.data.Connection();g.request({url:"/echo/modules/categories/menulist.jsp?catid="+e,method:"get",success:function(c){var b=Ext.util.JSON.decode(c.responseText);var a=formatMainMenu(b,f);$(h).innerHTML=a}})}function insertPageMenu(j,k,g){var f="/echo/modules/categories/menulist.jsp?catid="+j+"&mid="+k;if(k=="0"){f="/echo/modules/categories/menulist.jsp?catid="+j}var h=new Ext.data.Connection();h.request({url:f,method:"get",success:function(c){var b=Ext.util.JSON.decode(c.responseText);var d=g;var a=formatInPageMenu(b,d);$("inpagemenu").innerHTML=a}})}function insertCommunityMenu(f,e){var d=new Ext.data.Connection();d.request({url:"/echo/modules/communitycategories/menulist.jsp",method:"post",params:{cid:f,pid:e,p:"false"},success:function(c){var b=Ext.util.JSON.decode(c.responseText);var h=e;var a=formatInPageMenu(b,h);$("inpagemenu").innerHTML=a}})}function openAWindow(d,c){window.open(d,c,"")}Ext.form.TriggerField.override({afterRender:function(){Ext.form.TriggerField.superclass.afterRender.call(this);var b;if(Ext.isIE&&!this.hideTrigger&&this.el.getY()!=(b=this.trigger.getY())){this.el.position();this.el.setY(b)}}});Ext.onReady(function(){var f=new Ext.XTemplate('
','

{date:date("M j, Y")}
{title}

',"{summary}","
");var d=new Ext.data.Store({proxy:new Ext.data.HttpProxy({url:"/echo/modules/pages/search.jsp"}),reader:new Ext.data.JsonReader({root:"data",totalProperty:"totalCount",id:"pageid"},[{name:"title"},{name:"pageid"},{name:"templateid"},{name:"date",type:"date",dateFormat:"Y-m-d H:i:s"},{name:"summary"}])});if($("search")){var e=new Ext.form.ComboBox({store:d,displayField:"title",typeAhead:false,loadingText:"Searching...",width:360,pageSize:10,style:"margin-top:5px;",hideTrigger:true,tpl:f,applyTo:"search",itemSelector:"div.search-item",onSelect:function(a){window.location=String.format("/content/{0}?q={1}",a.id,e.getValue())}})}});function highlightWord(n,k,o,l,h,m){if(m==null){m="searchword"}if(n.hasChildNodes){var j;for(j=0;j1){highlightWord(document.getElementsByTagName("body")[0],words[w],e,g,f,h)}}}}};