var List={id:"List",title:"List",image:"list16.gif",allowItems:true,allowFolders:true,allowDrag:true,allowComments:true,itemName:"List Item",AddDialog:"adddialog/60101225.js",UpdateDialog:"updatedialog/60101267.js",addItems:function(id,beforeId){if(!beforeId)beforeId=-1;Module.showDialog(List,"AddDialog",{parentId:id,beforeId:beforeId})},addItems2:function(sid,e){var text=e.value;e.value="";if(text){List.insertItem2(sid,-1,text)}},insertItem2:function(parentId,beforeId,text){C.beginExec("list/add",{parent:parentId,beforeId:beforeId,text:text})},updateItem:function(i){if(i){Module.showDialog(List,"UpdateDialog",{item:page.nodes[i]})}},deleteItem:function(id){ContentItem.deleteItem(id)},sendUpdateRequest:function(item,dlg){dlg.fields=[{name:"text",label:"Description",value:item.text,type:"TextArea"},{name:"comments.add",label:"Comments",type:"TextArea"}]},renderEmpty:function(w,s){Section.renderEmpty(w,s)},defaultLayout:"Bullets",detailLayout:"ItemDetail",layouts:{Plain:{itemTagName:"DIV",renderItemContent:function(w,item){List.layouts.Bullets.renderItemContent(w,item)}},ItemDetail:{kind:1,renderItemContent:function(w,item,index){var p=new ItemPanel(w,item);p.property("Details",item.text);p.created();p.modified();p.close()}},Bullets:{itemTagName:"LI",renderItemsHeader:function(w,s,items){w("<ul class='contentList bullet1'>")},renderItemsFooter:function(w,s,items){w("</ul>")},renderItemContent:function(w,item){var id=item.nodeId;w("<div id='"+Dom.getElementId(item)+"_"+"text'>");Html.renderNoMargin(w,item.text);w("</div>");ItemComment.renderCount(w,item)}},Numbering:{itemTagName:"LI",renderItemsHeader:function(w,s,items){w("<ol>")},renderItemsFooter:function(w,s,items){w("</ol>")},renderItemContent:function(w,item){List.layouts.Bullets.renderItemContent(w,item)}}}};Module.add(List);