jQuery.loadPageTo=function(a,b){a.fadeOut(1e3,function(){a.load(b,function(){a.data("url",b);a.makeAjax(a);$(document).trigger("moduleLoad");$(document).trigger("adminLoad")})})};jQuery.fn.reloadPage=function(){var a=this;jQuery.loadPageTo(a,a.data("url"))};jQuery.fn.makeAjax=function(a){this.find("a").not(".nohi").each(function(){var b=jQuery(this);b.click(function(){jQuery.loadPageTo(a,b.attr("href"));return false})})};jQuery.PageAll=function(a){return a?$("#CenterContainer").find("*").andSelf():$("#CenterContainer")};jQuery.PageContent=function(a){return a?$("#TextContentSSContainer").find("*").andSelf():$("#TextContentSSContainer")};jQuery.fn.setupMode=function(a){if(a)this.css("visibility","hidden").show();else this.hide().css("visibility","visible")};jQuery.fn.fixedLoad=function(a){this.one("load",a).each(function(){this.complete&&$(this).trigger("load")})};jQuery.RenderHack=function(c){var b=$.PageAll(false).is(":visible"),a=$.PageContent(false).is(":visible");!b&&$.PageAll(false).setupMode(true);!a&&$.PageContent(false).setupMode(true);c();!b&&$.PageAll(false).setupMode(false);!a&&$.PageContent(false).setupMode(false)}
