/*
 * jQuery loading plugin v1.0
 * By rongjunXue (http://rongjunxue.viminta.com)
 * Copyright 2007 rongjunXue
 * Released under the MIT and GPL licenses.
 */
 (function($) {
$.fn.loading = function() {
	$("#jqueryLoadfailJs").remove();
	$("body").append("<div id=\"jqueryLoadingJs\" style=\"padding: 2px; background: rgb(204, 68, 68); position: absolute; z-index: 3; color: white; top: 1px; right: 16px; display: block\"><image src='http://www.lai958.cn/images/loading.gif' style='margin:0;border:0;'/>正在加载...</div>");
	//$("#jqueryLoadingJs").css("display","block"); //bug fix(2007-10-29):when css disable,this effect will confuse user .
    return this;
}
$.fn.loadfail = function(message) {
	$("body").append("<div id=\"jqueryLoadfailJs\" style=\"padding: 2px; background: rgb(204, 68, 68); position: absolute; z-index: 3; color: white; top: 1px; right: 16px; display: block\">"+message+"</div>");
	$("#jqueryLoadingJs").remove();
    return this;
}
$.fn.loaded = function() {
//	$("#jqueryLoadingJs").css("display","none");    //bug fix(2007-10-29):when css disable,this effect will confuse user .
	$("#jqueryLoadingJs").remove();
    return this;
}

})(jQuery);