if(typeof Array.prototype.indexOf!="function"){Array.prototype.indexOf=function(b){for(var a=0,c=this.length;a<c;a++){if(this[a]==b){return a}}return -1}}if(typeof String.prototype.trim!="function"){String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")}}if(typeof Date.now!="function"){Date.now=function(){return new Date().valueOf()}}var _loadList=[];if(window.addEventListener){window.addEventListener("DOMContentLoaded",$ol,false);window.addEventListener("load",$ol,false)}else{document.onreadystatechange=$ol;window.attachEvent("onload",$ol)}function $ol(){if(window.removeEventListener){window.removeEventListener("DOMContentLoaded",$ol,false);window.removeEventListener("load",$ol,false)}else{if(document.readyState!="complete"){return}document.onreadystatechange=null;window.detachEvent("onload",$ol)}for(var a=0;a<_loadList.length;a++){_loadList[a]()}}function $(a){return document.getElementById(a)}function $c(a){while(a.lastChild){a.removeChild(a.lastChild)}}function $e(f,g,d,c){if(!g){f.appendChild(document.createTextNode(d));return f}var e=document.createElement(g);if(typeof d=="string"){e.appendChild(document.createTextNode(d))}for(var b in c){switch(b){case"class":case"for":break;default:e.setAttribute(b,c[b]);break}}if(f!=null){f.appendChild(e)}if(typeof c!="undefined"){if(typeof c["class"]!="undefined"){e.className=c["class"]}if(typeof c["for"]!="undefined"){e.htmlFor=c["for"]}}return e}function $ea(c,a){for(var b=0,d=a.length;b<d;b++){$e(c,a[b][0],a[b][1],a[b][2])}return c}function $ah(a,b,c){if(typeof a=="string"){a=$(a)}if(a){a["on"+b]=c}}function $cna(c,a){var b=c.className.split(/\s+/);if(b.length&&b[0]==""){b.shift()}if(b.length&&b[b.length-1]==""){b.pop()}if(b.indexOf(a)<0){b.push(a)}c.className=b.join(" ")}function $cnr(d,a){var c=d.className.split(/\s+/);if(c.length&&c[0]==""){c.shift()}if(c.length&&c[c.length-1]==""){c.pop()}var b=c.indexOf(a);if(b>=0){c.splice(b,1)}d.className=c.join(" ")}function $cnc(c,a){var b=c.className.split(/\s+/);return b.indexOf(a)>=0}function $up(b,c){c=c.toUpperCase();var a=b.parentNode;while(a&&a.nodeName.toUpperCase()!=c){a=a.parentNode}return a}if(typeof JSON!="object"||typeof JSON.stringify!="function"){var JSON={$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(c){var a=JSON.$specialChars[c];if(a){return a}var b=c.charCodeAt().toString(16);while(b.length<4){b="0"+b}return"\\u"+b},stringify:function(g){switch(typeof g){case"number":case"boolean":return g.toString();case"string":return'"'+g.replace(/[\x00-\x1f\u0080-\uffff\\"]/g,JSON.$replaceChars)+'"';case"object":if(g===null){return"null"}var e=[];var a=true;var b=0;for(var d in g){if(typeof g[d]!="function"){if(d!=b){a=false}b++}}for(var d in g){var f=g[d];var c=JSON.stringify(f);if(c){e.push(a?c:JSON.stringify(d)+":"+c)}}if(a){return"["+e.join(",")+"]"}else{return"{"+e.join(",")+"}"}}return null},$cx:/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,parse:function(text){var j;text=String(text);JSON.$cx.lastIndex=0;if(JSON.$cx.test(text)){text=text.replace(JSON.$cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return j}throw new SyntaxError("JSON.parse")}}};
