topical media & game development
mobile-application-11-DerbyApp.iPhone-www-js-xui-2.0.0.min.js / js
(function(){function J(a,b,c){c=a.slice((c||b)+1||a.length);a.length=b<0?a.length+b:b;return a.push.apply(a,c)}function K(a){return a.firstChild===null?{UL:"LI",DL:"DT",TR:"TD"}[a.tagName]||a.tagName:a.firstChild.tagName}function x(a,b){return typeof a==A?L(a,K(b)):a}function L(a,b){var c={},d=/^<([A-Z][A-Z0-9]*)([^>]*)>([\s\S]*)<\/\1>/i,e,f;f=0;var g;if(d.test(a)){d=d.exec(a);b=d[1];if(d[2]!=="")for(a=d[2].split(/([A-Z]*\s*=\s*['|"][A-Z0-9:;#\s]*['|"])/i);f<a.length;f++){g=a[f].replace(/^\s*|\s*/,Q=/^#/,R=/<([\w:]+)/,q=function(a){return[].slice.call(a,0)};try{q(n.documentElement.childNodes)}catch(U){q=function(a){for(var b=[],c=0;a[c];c++)b.push(a[c]);
return b}}k.x/g;h.extend({setStyle:function(a,b){a=a.replace(/\-[a-z]/g,function(c){return c[1].toUpperCase()});return this.each(function(c){c.style[a]=b})},getStyle:function(a,b){var c=function(e,f){return n.defaultView.getComputedStyle(e,"").getPropertyValue(f.replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()}))};if(b===u){var d=[];this.each(function(e){d.push(c(e,a))});return d}else this.each(function(e){b(c(e,a))})},addClass:function(a){return this.each(function(b){if(C(b,
a)===false)b.className=E(b.className+" "+a)})},hasClass:function(a,b){var c=this;return this.length&&function(){var d=false;c.each(function(e){if(C(e,a)){d=true;b&&b(e)}});return d}()},removeClass:function(a){if(a===u)this.each(function(c){c.className=""});else{var b=D(a);this.each(function(c){c.className=E(c.className.replace(b,"$1"))})}return this},css:function(a){for(var b in a)this.setStyle(b,a[b]);return this}});var F={},D=function(a){var b=F[a];if(!b){b=new RegExp("(^|\\s+)"+a+"(?:\\s+|/.test(a)){c=b;b=a;a="inner"}var e=c?c:{};if(typeof c=="function"){e={};e.callback=c}var f=this,g=new XMLHttpRequest;c=e.method||"get";var v=e.async||false,w=e.data||null,i=0;g.queryString=w;g.open(c,b,v);if(e.headers)for(;i<e.headers.length;i++)g.setRequestHeader(e.headers[i].name,
e.headers[i].value);g.handleResp=e.callback!=null?e.callback:function(){f.html(a,this.responseText)};g.handleError=e.error&&typeof e.error=="function"?e.error:function(){};if(v){g.onreadystatechange=d;this.xmlHttpRequest=g}g.send(w);v||d();return this}});(function(a,b){function c(i,o,l){return(i+(o-i)*l).toFixed(3)}function d(i,o,l){return i.substr(o,l||1)}function e(i,o,l){for(var p=2,m,j,r=[],y=[];m=3,j=arguments[p-1],p--;)if(d(j,0)=="r")for(j=j.match(/\d+/g);m--;)r.push(~~j[m]);else{if(j.length==
4)j="#"+d(j,1)+d(j,1)+d(j,2)+d(j,2)+d(j,3)+d(j,3);for(;m--;)r.push(parseInt(d(j,1+m*2,2),16))}for(;m--;){p=~~(r[m+3]+(r[m]-r[m+3])*l);y.push(p<0?0:p>255?255:p)}return"rgb("+y.join(",")+")"}function f(i){var o=parseFloat(i);i=i.replace(/^[\-\d\.]+/,"");return isNaN(o)?{v:i,f:e,u:""}:{v:o,f:c,u:i}}function g(i){var o={},l=w.length,p;v.innerHTML='<div style="'+i+'"></div>';for(i=v.childNodes[0].style;l--;)if(p=i[w[l]])o[w[l]]=f(p);return o}var v=n.createElement("div"),w="backgroundColor borderBottomColor borderBottomWidth borderLeftColor borderLeftWidth borderRightColor borderRightWidth borderSpacing borderTopColor borderTopWidth bottom color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex".split(" ");
b[a]=function(i,o,l,p){i=typeof i=="string"?n.getElementById(i):i;l=l||{};var m=g(o);o=i.currentStyle?i.currentStyle:getComputedStyle(i,null);var j,r={},y=+new Date,G=l.duration||200,H=y+G,I,S=l.easing||function(z){return-Math.cos(z*Math.PI)/2+0.5};for(j in m)r[j]=f(o[j]);I=setInterval(function(){var z=+new Date,T=z>H?1:(z-y)/G;for(j in m)i.style[j]=m[j].f(r[j].v,m[j].v,S(T))+m[j].u;if(z>H){clearInterval(I);l.after&&l.after();p&&setTimeout(p,1)}},10)}})("emile",this)})();
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.