YUI.add("moodle-mod_assign-history",function(o,s){var d="mod-assign-history-link",a="mod-assign-history-link-open",l="mod-assign-history-link-closed",h="mod-assign-history-panel",n=0,r=function(){var s=this.get("for"),i=o.one("#"+s);this.hasClass(a)?(this.removeClass(a),this.addClass(l),this.setStyle("overflow","hidden"),i.hide()):(this.removeClass(l),this.addClass(a),i.show())};o.Node.addMethod("history",function(){var s=null,i=null,e=null,t=this;this.get("children").each(function(){s=s?(n++,e=o.Node.create("<a/>"),i=this,t.insertBefore(e,s),s.remove(!1),e.appendChild(s),i.get("id")||i.set("id",h+n),e.set("for",i.get("id")),i.set("aria-live","polite"),e.addClass(d),1==n?e.addClass(a):e.addClass(l),i.addClass(h),1==n?i.show():i.hide(),null):this}),this.delegate("click",r,"."+d)}),o.NodeList.importMethod(o.Node.prototype,"history")},"@VERSION@",{requires:["node","transition"]});