var lsBlockLoaderClass=new Class({Implements:Options,options:{classes_nav:{nav:"block-nav",content:"block-content",active:"active"}},type:{comment_stream:{url:DIR_WEB_ROOT+"/include/ajax/stream_comment.php"},topic_stream:{url:DIR_WEB_ROOT+"/include/ajax/stream_topic.php"},blogs_top:{url:DIR_WEB_ROOT+"/include/ajax/blogs_top.php"},blogs_join:{url:DIR_WEB_ROOT+"/include/ajax/blogs_join.php"},blogs_self:{url:DIR_WEB_ROOT+"/include/ajax/blogs_self.php"}},initialize:function(a){this.setOptions(a)},toggle:function(f,d,g){if(!this.type[d]){return false}thisObj=this;this.obj=$(f);var c=thisObj.obj.getParent("li");var e=c.getParent("ul."+thisObj.options.classes_nav.nav);var a=e.getChildren("li");a.each(function(h,i){h.removeClass(thisObj.options.classes_nav.active)});c.addClass(this.options.classes_nav.active);var b=e.getParent("div").getChildren("div."+this.options.classes_nav.content)[0].set("html","");this.showStatus(b);JsHttpRequest.query(this.type[d].url,g,function(h,i){thisObj.onLoad(h,i,b)},true)},onLoad:function(a,c,b){b.set("html","");if(!a){msgErrorBox.alert("Error","Please try again later")}if(a.bStateError){}else{b.set("html",a.sText)}},showStatus:function(b){var a=new Element("div");a.setStyle("text-align","center");a.set("html",'<img src="'+DIR_STATIC_SKIN+'/images/loader.gif" >');a.inject(b)}});