$define(["wgt_util","wgt_readyload","tmpl"],function(p,e,c){return p.fn.etreecrossapart=function(e){var l=this,r=p(this),h=(e.handler,e.conf),s=h.item,a=[],u=h.elements,c=(h.treedata,h.commonconfig),d=(c.isneedbox,[]),f=p(l).getscope(),m=function(e,n,i){var t=c.nodata||"p_promptnonedata";if(n&&n.length||1!=i){f.find("."+t).addclass("hide");var s=p("#"+h.treenode[b(i)],f).tmpl(n,{gettags:function(e){return this.data.tags.join(e)}});s.appendto(e),e.removeclass("hide"),s.each(function(e,t){p(t).data("item",n[e]),p(t).attr("level",i),n[e].children&&n[e].children.length&&m(p(t).find("."+v("childrenp",i)),n[e].children,i+1),n[e].children&&n[e].children.length&&1==n[e].open||"true"==n[e].open?p(t).find("."+v("childrenp",i)).removeclass("hide"):p(t).find("."+v("childrenp",i)).addclass("hide"),n[e].open?(p(t).find("."+v("button",i).btnopen).removeclass("hide"),p(t).find("."+v("button",i).btnclose).addclass("hide")):(p(t).find("."+v("button",i).btnopen).addclass("hide"),p(t).find("."+v("button",i).btnclose).removeclass("hide")),p(t).find("img").onerrorimg(v("thumb",i).errorimg)});var a=v("thumb",i),d=s.find("."+a.zstyle);d.width(a.width),d.height(a.height),d.putphotodiv(),1==a.show||"true"==a.show?s.find("."+u[a.key].zstyle).removeclass("item_hide"):s.find("."+u[a.key].zstyle).addclass("item_hide");var o=v("linktext",i);o.isshowlinenum&&s.find("."+v("linktext",i).linktext+" .font").fixlinen(v("linktext",i).showlinenum),1==o.show||"true"==o.show?s.find("."+u[o.key].link.zstyle).removeclass("item_hide"):s.find("."+u[o.key].link.zstyle).addclass("item_hide"),c.lazyimg({defobj:"#"+f.attr("id")})}else f.find("."+t).removeclass("hide"),r.addclass("hide");c.setcomppostion(p(l).closest("div[id^=c_]"))},o=function(e,t){p("."+v("nodep",t),e).on("mouseover",function(){var e=p(this).data("item"),t=parseint(p(this).attr("level")),n=p("."+v("childrenp",t),this).eq(0);if(n.html().trim()&&n.removeclass("hide"),!(n.html().trim()||c.deep&&t>=c.deep)&&e.isparent){var i=y(e);m(n,i,t+1),o(this,t+1)}p(this).find("."+v("button",t).btnopen).eq(0).removeclass("hide"),p(this).find("."+v("button",t).btnclose).eq(0).addclass("hide"),p(this).addclass("click")}),p("."+v("nodep",t),e).on("mouseleave",function(){p(this).find("."+v("button",t).btnclose).eq(0).removeclass("hide"),p(this).find("."+v("button",t).btnopen).eq(0).addclass("hide"),p("."+v("childrenp",t),this).addclass("hide"),p(this).removeclass("click")}),p("."+v("nodep",t),e).on("click",function(){var e=v("linktext",t).action.click;return e&&e(r,p(this),null,p(this).data("item")),!1})},y=function(e){var t,n={};if(!h.async&&h.treedata)return h.treedata;var i={},s=h.async.autoparam;if(e){for(var a=0;a