if(typeof lithe==="undefined")var lithe={};lithe.props={};
lithe.$=function(a){if(/#/.test(a))return document.getElementById(a.replace("#",""));if(/\./.test(a)){var c=[];if(document.querySelector){var b=document.querySelectorAll(a);for(a=0;a<b.length;a++)c.push(b.item(a))}else if(document.getElementsByClassName){b=document.getElementsByClassName(a.replace(".",""));for(a=0;a<b.length;a++)c.push(b[a])}else if(document.evaluate){b=document.evaluate(".//*[contains(concat(' ', @class, ' '), ' "+a.replace(".","")+" ')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);for(a=0;a<b.snapshotLength;a++)results.push(b.snapshotItem(a))}else{b=document.getElementsByTagName("*");var d=b.length,e=new RegExp("^|\\s)"+a.replace(".","")+"(\\s|$)");for(a=0;a<d;a++)e.test(b[a].className)&&c.push(b[a])}return c}};lithe.bind=function(a,c){return function(){return c.apply(a,arguments)}};
lithe.load={_install:function(a,c,b){var d=document.createElement("script");d.type="text/javascript";c&&d.setAttribute("async","true");d.src=a;if(typeof b==="function")if(d.readyState)d.onreadystatechange=function(){if(/loaded|complete/.test(d.readyState)){d.onreadystatechange=null;b()}};else d.addEventListener("load",b,false);else if(typeof b==="string")d.src=d.src+(/\?/.test(a)?"&":"?")+"callback="+b;document.documentElement.firstChild.appendChild(d)},script:function(a,c){if(typeof a==="string")lithe.load._install.apply(window,
[a,true,c]);else for(var b=0;b<a.length;b++)b===a.length-1&&typeof c==="function"?lithe.load._install(a[b],false,c):lithe.load._install(a[b],false)}};
lithe.Events={_patch:function(a,c,b,d){if(a==="add")return document.addEventListener?c.addEventListener(b,d,false):c.attachEvent("on"+b,d);else if(a==="remove")return document.removeEventListener?c.removeEventListener(b,d,false):c.removeEvent("on"+b,d)},add:function(a,c,b){if(typeof a==="string")a=document.getElementById(a);if(a)if(a instanceof Array)for(var d=0;d<a.length;d++)lithe.Events._patch("add",a[d],c,b);else lithe.Events._patch("add",a,c,b)},remove:function(a,c,b){if(typeof a==="string")a=
document.getElementById(a);if(a)if(a instanceof Array)for(var d=0;d<a.length;d++)lithe.Events._patch("remove",a[d],c,b);else lithe.Events._patch("remove",a,c,b)}};
lithe.DOM={loaded:false,watchSet:false,fnArray:[],onSuccessfulLoad:function(){if(!lithe.DOM.loaded){for(var a=lithe.DOM.fnArray,c=0;c<a.length;c++)a[c]();lithe.DOM.fnArray=null;lithe.DOM.loaded=true}},ready:function(a){lithe.DOM.loaded?a():lithe.DOM.fnArray.push(a);lithe.DOM.watch()},watch:function(){if(!lithe.DOM.watchSet){lithe.DOM.watchSet=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
lithe.DOM.onSuccessfulLoad()},false);else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);lithe.DOM.onSuccessfulLoad()}});document.documentElement.doScroll&&window==window.top&&function(){if(!lithe.DOM.loaded){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}lithe.DOM.onSuccessfulLoad()}}()}window.addEventListener?window.addEventListener("onload",
lithe.DOM.onSuccessfulLoad,false):window.attachEvent("onload",lithe.DOM.onSuccessfulLoad)}}}};
