(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);fb&&k.innerWidtha&&k.innerHeightk.innerHeight;if(c||d){k.orientation=c?0:90;h("body").fire("orientationchange"); a=k.innerWidth;b=k.innerHeight}})}(k.innerWidth,k.innerHeight)});h.touch=function(){try{return!!n.createEvent("TouchEvent").initTouchEvent}catch(a){return false}}();t.id=1;h.extend({tween:function(a,b){a instanceof Array&&a.forEach(function(){});var c=function(){var e={};"duration after easing".split(" ").forEach(function(f){if(a[f]){e[f]=a[f];delete a[f]}});return e}(a),d=function(e){var f=[],g;if(typeof e!=A){for(g in e)f.push(g+":"+e[g]);f=f.join(";")}else f=e;return f}(a);return this.each(function(e){emile(e, d,c,b)})}});var O=/^(\s|\u00A0)+|(\s|\u00A0)+$/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+|$)"); F[a]=b}return b};h.extend({xhr:function(a,b,c){function d(){if(g.readyState==4){delete f.xmlHttpRequest;if(g.status===0||g.status==200)g.handleResp();/^[45]/.test(g.status)&&g.handleError()}}if(!/^(inner|outer|top|bottom|before|after)$/.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(;i255?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='
';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)})();