Ext.onReady(function(){if(typeof doneLoadingModules!="undefined"){return}doneLoadingModules=true;var c=function(d,g){if(typeof d.isLoaded=="undefined"){d.isLoaded={}}var f=d.first("#content"+g);f.radioClass("tab-content-show");var e=d.id.split("-")[2];if(!d.isLoaded[g]){f.radioClass("tab-content-loading");Ext.Ajax.request({url:"/mod_tabs/get/"+g+"?moduleid="+e,success:function(h){d.first("#content"+g).removeClass("tab-content-loading");d.isLoaded[g]=true;var i=d.first("#content"+g).first("div").insertHtml("afterBegin","<div></div>",true);i.update(h.responseText,true)}})}};var b=Ext.query(".tab-buttons-panel");for(var a=0;a<b.length;a++){Ext.fly(b[a]).on("click",function(g,f){Ext.get(f).radioClass("tab-show");var h=f.id.split("tab")[1];var d=Ext.fly(f).parent().parent().parent();c(d,h)},null,{delegate:"li"});c(Ext.fly(b[a]).parent(),0)}});
