var MSL={By:{id:function(a){return document.getElementById(a)},tag:function(a,b){return(b||document).getElementsByTagName(a)},"class":function(a,b){return(b||document).getElementsByClassName(a)},name:function(a){return document.getElementsByName(a)},qsa:function(a,b){return(b||document).querySelectorAll(a)},qs:function(a,b){return(b||document).querySelector(a)}},xhr:{xmlhttp:function(){var a;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){a=!1}}}return a}(),urlstringify:function(){var a={number:!0,string:!0,"boolean":!0},b=function(b){return typeof b in a?encodeURIComponent(b.toString()):""},c=function(a,c){return c=b(c),a.map(function(a){return c+"="+b(a)})};return function(a){return Object.keys(a).map(function(d){var e=a[d];return Array.isArray(e)?c(e,d):b(d)+"="+b(e)}).join("&")}}(),post:function(a){this.request.apply(this,["POST",a])},get:function(a){this.request.apply(this,["GET",a])},request:function(a,b){if(this.xmlhttp&&b&&"url"in b){var c=this.xmlhttp,d="enctype"in b?b.enctype:"application/x-www-form-urlencoded";c.open(a,b.url,!0),c.setRequestHeader("Content-Type",d),c.onreadystatechange=function(){c.readyState===4&&(c.status===200?"success"in b&&b.success.apply&&b.success.apply(this,[c]):c.status&&c.status!==200&&"failure"in b&&b.failure.apply&&b.failure.apply(this,[c]))};var e=null;"data"in b&&(e=this.urlstringify.apply(this,[b.data])),c.send(e)}}},Cookie:{create:function(a,b,c,d){var e,f;c?(f=new Date,f.setTime(f.getTime()+c*24*60*60*1e3),e="; expires="+f.toGMTString()):e="",d?d="; domain="+d:d="",document.cookie=a+"="+b+e+d+"; path=/"},read:function(a){var b=a+"=",c=document.cookie.split(";"),d,e;for(d=0,l=c.length;d