/**
 * @requires js/libs/jQuery/plugins/jquery.center.js
 */

if (typeof(m) == "undefined" || !m) {
	var m = {};
}

(function($) {
	var htmlEl = null;

	m.loading = {
		show : function() {
			__setup();

			htmlEl.center();
			htmlEl.css('visibility', 'visible');
		},

		hide : function() {
			__setup();

			htmlEl.css('visibility', 'hidden');
		}
	}

	function __setup()
	{
		if (null !== htmlEl) {
			return;
		}

		htmlEl = $('#loading');
	}
}) (jQuery);

