var ModuleUtils=new Class({Implements:Options,options:{elementsSelector:"div.module",elementsClickSelector:"div.module .title",loadingImage:"http://static.unikity.fr/images/loading.gif"},loadingDivEl:null,initialize:function(b){this.setOptions(b);var d=new Element("div",{"class":"loading"});var e=new Element("img",{src:this.options.loadingImage,id:"loadingImg",styles:{width:16,height:16}});d.adopt(e);this.loadingDivEl=d;var a=0;if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){a=new Number(RegExp.$1)}var c="close"},reload:function(c){var b=c.getElement(".content");var a=c.getElement(".header a");if(a!=null&&a.href!=""&&!a.hasClass("edit")&&!b.hasClass("close")){this.ajaxRequest(a.href,b,this.loadingDivEl)}},ajaxRequest:function(a,b,c){new Request.HTML({url:a,method:"get",update:b,onRequest:function(){b.removeClass("close");b.adopt(c)},onSuccess:function(){c.dispose();b.getChildren().setStyle("display","block")}.bind(this)}).send()}});ModuleUtils.getInstance=(function(){var a=undefined;return function(){if(!$defined(a)){a=new this()}return a}})();
