$.utils||($.utils={});$.utils.versionCode="V1.0.20150306";$.utils.showLoading=function(i){var e=$("#loading");e.length||(e=$("<div id = 'loading'><div class = 'loading-icon'></div><div class = 'loading-label'>"+i18n("loading_label")+"</div></div>").appendTo("body"));i&&i.length||(i=$("body"));e.appendTo(i).show()};$.utils.hideLoading=function(){$("#loading").hide()};$.utils.firstLetterUpperCase=function(i){return i[0].toUpperCase()+i.slice(1)};$.utils.getSelectMenu=function(i,e,n,t){function o(i){var n,t;if("object"==typeof i){n=i.value;t=i.label}else{n=i;t=i18n(i)}return $("<li value = '"+n+"'><a>"+t+"</a></li>").click(function(i){var n=$(this).attr("value");e&&e.call(this,n,$(this),t)&&$("body").click();i.stopPropagation()}).mouseup(function(i){i.stopPropagation()})}var l=$(".menu-layer");t||(t="select-menu");var a=$("."+t);if(!a.length){a=$("<ul class = '"+t+"'></ul>").appendTo(l).css({position:"absolute","z-index":102}).menu();$("body").click(function(){a.hide();a.prop("host",null)})}a.empty();i instanceof Array&&i.forEach(function(i){o(i).appendTo(a)});a.menu("refresh");if(!n||a.prop("host")!==n){n&&a.prop("host",n);return a}$("body").click()};$.utils.alert=function(i,e){var n=$("#alert");n.length||(n=$("<div id = 'alert'></div>").hide().appendTo($("body")));n.show().text(i);n.css("left",(window.innerWidth-n.css("width").replace("px",""))/2+"px");setTimeout(function(){n.hide("clip",300)},e||3e3);return n};