(function(a){M=a.M||{};M.tid=100;M.UA=navigator.userAgent;M.DOC=document;M.newElement=function(b){return document.createElement(b)};M.genId=function(b){b=b||"MID-";return b+""+this.tid++};M.isOldIE=function(){if(!!document.attachEvent&&!!!document.addEventListener){var b=document.createElement('
');return b.style.position=="absolute"}return false}();M.isIE9=function(){return !!document.addEventListener&&!!document.attachEvent}();M.isIE=function(){return !!document.attachEvent}();M.isOpera=function(){return !!window.opera}();M.isChrome=function(){return !!window.chrome}();M.isMozilla=function(){return !!window.netscape}();M.isIpad=function(){return M.UA.indexOf("iPad")>-1}(),M.isAndroid=function(){return M.UA.toLowerCase().indexOf("android")>-1}(),M.isIphone=function(){return M.UA.toLowerCase().indexOf("iphone")>-1}(),M.isUC=function(){return M.UA.toLowerCase().indexOf("ucweb")>-1}(),M.getById=function(b){return document.getElementById(b)};M.getByClass=function(e,d){d=d||M.DOC;if(document.getElementsByClassName){return M.Util.toArray(d.getElementsByClassName(e))}else{var b=[];var c=M.get("*",d);c.each(function(g,f){if(!!e&&f.nodeType==1&&new M.Element(f).hasClass(e)){b.push(f)}});return b}};M.get=function(c,j){if(typeof j=="string"){j=M.get(j)}else{if(j instanceof M.Element){j=j.dom}}j=j||M.DOC;if(c.charAt(0)==="#"){c=c.split("#")[1];return M.getById(c)}else{if(j instanceof Array){var g=j.length;var k=[];for(var f=0;f0){k=k.concat(b)}}return k}else{if(j.nodeType==1||j.nodeType==9){if(c.charAt(0)==="."){c=c.split(".")[1];return M.getByClass(c,j)}else{if(j.nodeType==1&&j.tagName.toLowerCase()==="form"){var d=j.children,k=[];for(var f=0,e;e=d[f++];){if(e.tagName.toLowerCase()===c.toLowerCase()){k.push(e)}var h=M.get(c,e);if(h.length>0){k=k.concat(M.get(c,e))}}return k}else{var k=j.getElementsByTagName(c);return M.Util.toArray(k)}}}}}};M.ability={placeholder:function(){return"placeholder" in M.newElement("input")}(),flash:function(){var b=navigator.plugins;return b.length>0&&function(){for(var c=0,d;d=b[c++];){if(d.name.toLowerCase().indexOf("shockwave flash")>-1){return true}}return false}()}(),audioMp3Supported:function(){if(typeof HTMLAudioElement==="function"||typeof HTMLAudioElement==="object"){var b=new Audio();return b.canPlayType("audio/mpeg")}return false}(),localStorage:function(){return !!window.localStorage}()};M.isMaxthon3=function(){return !!window.MxActiveXObject&&window.navigator.appVersion.toLowerCase().indexOf("maxthon")>-1}();M.isEmptyObject=function(b){return(typeof b==="object")&&function(){for(var c in b){}return c===undefined}()};M.params=function(c){c=c||location.search;if(!c){return false}var f=c.split("?");var g={};f=f.length==2?f[1]:f[0];var e=f.split("&");for(var d=0;d-1){var g=f.split(",");for(var c=0;c9?"":"0")+d+":"+(c>9?"":"0")+c};String.prototype.encodeHTML=function(){return this.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")};String.prototype.decodeHTML=function(){return this.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};if(!("trim" in String.prototype)){String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}}if(M.isIE){window.onerror=function(d,c,b){M.log("错误内容:"+d,"err");M.log("行号:"+b,"err");M.log("URL:"+c,"err");return true}}M.applyIf=M.applyIf||function(e,d){if(arguments[2]){for(var b=2;b-1},addClass:function(a){var b=this.dom.className;if(b.indexOf(a)==-1){this.dom.className=(b+" "+a).trim()}return this},removeClass:function(b){var f=this,e=f.dom.className;e=" "+e+" ";var a=b.split(/\s+/);for(var d=0,g;g=a[d++];){if(g.length>0){e=" "+e.replace(" "+g+" "," ")+" "}}e=e.trim().split(/\s+/);f.dom.className=e.join(" ");return f},hide:function(){this.dom.style.display="none";return this},show:function(){this.dom.style.display="";return this},css:function(a,b){if(typeof a=="object"){for(var c in a){this.css(c,a[c])}return this}else{if(!!vaue){this.dom.style[a]=b;return this}else{return this.dom.style[a]}}},parent:function(){var a=this.dom.parentNode;if(this.isDom(a)){return new M.Element(a)}else{if(a.parentNode&&(a=parentNode)&&this.isDom(a)){return new M.Element(a)}else{return null}}},appendTo:function(a){M.getEl(a).append(this);return this},append:function(c){if(c instanceof M.ElementsCollection||c instanceof Array){for(var b=0;b