(function(d){functiono(a,b,c){varf,j;if(typeofa.hasAttribute!=="undefined"){a.hasAttribute(b)&&(f=a.getAttribute(b));j=true}elseif(typeofa[b]!=="undefined"){f=a[b];j=false}elseif(b==="class"&&typeofa.className!=="undefined"){b="className";f=a.className;j=false}if(typeoff==="undefined"&&(typeofc==="undefined"||c===null)){console.log(c);console.log(a);console.log("Element does not have the selected attribute");returnnull}if(typeofc==="undefined")returnf;typeofc!=="undefined"&&c!==null?
c;returnnull}if(a.style[f[b]]){a.style[f[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,"")},f=Array.prototype.indexOf||function(a){for(varb=0,c=this.length;b<c;b++)if(binthis&&this[b]===a)returnb;return-1},j=function(a,b){this.name=a;this.code=DOMException[a];
this.message=b},d=function(a,b){if(b==="")thrownewj("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(b))thrownewj("INVALID_CHARACTER_ERR","String contains an invalid character");returnf.call(a,b)},h=function(a){for(varb=c.call(a.className),b=b?b.split(/\s+/):[],f=0,j=b.length;f<j;f++)this.push(b[f]);this._updateClassName=function(){a.className=this.toString()}},e=h.prototype=[],g=function(){returnnewh(this)};j.prototype=Error.prototype;e.item=function(a){returnthis[a]||
b.defineProperty(a,"classList",e)}}}elseb.prototype.__defineGetter__&&a.__defineGetter__("classList",g)}(self);d.ext("dom",{addClass:function(a){d.each(function(b){b.classList.add(a)})},removeClass:function(a){d.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>
if(typeofa.attachEvent!=="undefined"){l(b,c);a.attachEvent("on"+b,f);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:f})}elseconsole.log("Failed to _attach event:"+b+" on "+a)};l=function(a,b,c){if(typeofa.detachEvent!=="undefined"){varf=a.KIS_0_6_0;if(f&&f.listeners&&f.listeners[b])for(vard=f.listeners[b],e=d.length,h=0;h<e;h++)if(d[h].callback===c){a.detachEvent("on"+b,d[h]._listener);d.splice(h,1);d.length===
c;for(cina)b.push(a[c]);returnb},array_combine:function(a,b){varc={},f,e=0;d.type(a)!=="array"&&(a=this.object_values(a));d.type(b)!=="array"&&(b=this.object_values(b));f=a.length;if(f!==b.length){console.log("Object combine requires two arrays of the same size");returnfalse}for(e=0;e<f;e++)c[a[e]]=b[e];returnc},object_merge:function(){vara=Array.prototype.slice.call(arguments),b=a.length,c={},f,e=0,g,h,i;f=true;for(g=0;g<b;g++)if(d.type(a[g])!=="array"){f=false;break}if(f){c=[];for(g=0;g<