(function(e){functionn(a,b,c){vard,h;if(typeofa.hasAttribute!=="undefined"){a.hasAttribute(b)&&(d=a.getAttribute(b));h=true}elseif(typeofa[b]!=="undefined"){d=a[b];h=false}elseif(b==="class"&&typeofa.className!=="undefined"){b="className";d=a.className;h=false}if(typeofd==="undefined"&&(typeofc==="undefined"||c===null)){console.log(c);console.log(a);console.log("Element does not have the selected attribute");returnnull}if(typeofc==="undefined")returnd;typeofc!=="undefined"&&c!==null?
c;returnnull}if(a.style[d[b]]){a.style[d[b]]=c;returnnull}console.log("Property "+b+" nor an equivalent seems to exist")}typeofdocument!=="undefined"&&!("classList"indocument.createElement("a"))&&function(a){vara=(a.HTMLElement||a.Element).prototype,b=Object,c=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},d=Array.prototype.indexOf||function(a){for(varb=0,c=this.length;b<c;b++)if(binthis&&this[b]===a)returnb;return-1},h=function(a,b){this.name=a;this.code=DOMException[a];
this.message=b},e=function(a,b){if(b==="")thrownewh("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(b))thrownewh("INVALID_CHARACTER_ERR","String contains an invalid character");returnd.call(a,b)},o=function(a){for(varb=c.call(a.className),b=b?b.split(/\s+/):[],d=0,h=b.length;d<h;d++)this.push(b[d]);this._updateClassName=function(){a.className=this.toString()}},f=o.prototype=[],g=function(){returnnewo(this)};h.prototype=Error.prototype;f.item=function(a){returnthis[a]||
b.defineProperty(a,"classList",f)}}}elseb.prototype.__defineGetter__&&a.__defineGetter__("classList",g)}(self);e.ext("dom",{addClass:function(a){e.each(function(b){b.classList.add(a)})},removeClass:function(a){e.each(function(b){b.classList.remove(a)})},hide:function(){this.css("display","none")},show:function(a){typeofa==="undefined"&&(a="block");this.css("display",a)},attr:function(a,b){varc=this.el;if(c.length>1&&typeofb==="undefined"){console.log(c);console.log("Must be a singular element")}elseif(c.length>
function(a,b,c){functiond(a){c.apply(a)}if(typeofa.attachEvent!=="undefined"){k(b,c);a.attachEvent("on"+b,d);a=a.KIS_0_6_0=a.KIS_0_6_0||{};a.listeners=a.listeners||{};a.listeners[b]=a.listeners[b]||[];a.listeners[b].push({callback:c,_listener:d})}elseconsole.log("Failed to _attach event:"+b+" on "+a)};k=function(a,b,c){if(typeofa.detachEvent!=="undefined"){vard=a.KIS_0_6_0;if(d&&d.listeners&&d.listeners[b])for(varh=d.listeners[b],e=h.length,f=0;f<e;f++)if(h[f].callback===c){a.detachEvent("on"+
[],c;for(cina)a.hasOwnProperty(c)&&b.push(c);returnb},object_values:function(a){varb=[],c;for(cina)b.push(a[c]);returnb},array_combine:function(a,b){varc={},d,h=0;e.type(a)!=="array"&&(a=this.object_values(a));e.type(b)!=="array"&&(b=this.object_values(b));d=a.length;if(d!==b.length){console.log("Object combine requires two arrays of the same size");returnfalse}for(h=0;h<d;h++)c[a[h]]=b[h];returnc},object_merge:function(){vara=Array.prototype.slice.call(arguments),b=a.length,c={},d,h=0,