(function(){var f=window,e=document,d=f.MooTools.version.substring(0,3),a=d==="1.2"||d==="1.1",b=a||d==="1.3",c=f.$extend||function(){return Object.append.apply(Object,arguments)};f.AuroraAdapter={init:function(j){var g=Fx.prototype,k=g.start,i=Fx.Morph.prototype,h=i.compute;g.start=function(o,n){var m=this,l=m.element;if(o.d){m.paths=j.init(l,l.d,m.toD)}k.apply(m,arguments);return this};i.compute=function(p,o,n){var l=this,m=l.paths;if(m){l.element.attr("d",j.step(m[0],m[1],n,l.toD))}else{return h.apply(l,arguments)}}},adapterRun:function(g,h){if(h==="width"||h==="height"){return parseInt($_(g).getStyle(h),10)}},getScript:function(i,j){var h=e.getElementsByTagName("head")[0];var g=e.createElement("script");g.type="text/javascript";g.src=i;g.onload=j;h.appendChild(g)},animate:function(j,l,h){var k=j.attr,i,g=h&&h.complete;if(k&&!j.setStyle){j.getStyle=j.attr;j.setStyle=function(){var m=arguments;j.attr.call(j,m[0],m[1][0])};j.$family=function(){return true}}f.AuroraAdapter.stop(j);i=new Fx.Morph(k?j:$_(j),c({transition:Fx.Transitions.Quad.easeInOut},h));if(k){i.element=j}if(l.d){i.toD=l.d}if(g){i.addEvent("complete",g)}i.start(l);j.fx=i},each:function(g,h){return a?$each(g,h):Array.each(g,h)},map:function(g,h){return g.map(h)},grep:function(g,h){return g.filter(h)},inArray:function(h,g,i){return g.indexOf(h,i)},merge:function(){var h=arguments,k=[{}],j=h.length,g;if(a){g=$merge.apply(null,h)}else{while(j--){if(typeof h[j]!=="boolean"){k[j+1]=h[j]}}g=Object.merge.apply(Object,k)}return g},offset:function(g){var h=$_(g).getOffsets();return{left:h.x,top:h.y}},extendWithEvents:function(g){if(!g.addEvent){if(g.nodeName){g=$_(g)}else{c(g,new Events())}}},addEvent:function(i,h,g){if(typeof h==="string"){if(h==="unload"){h="beforeunload"}f.AuroraAdapter.extendWithEvents(i);i.addEvent(h,g)}},removeEvent:function(i,h,g){if(typeof i==="string"){return}f.AuroraAdapter.extendWithEvents(i);if(h){if(h==="unload"){h="beforeunload"}if(g){i.removeEvent(h,g)}else{if(i.removeEvents){i.removeEvents(h)}}}else{i.removeEvents()}},fireEvent:function(j,k,h,g){var i={type:k,target:j};k=b?new Event(i):new DOMEvent(i);k=c(k,h);k.preventDefault=function(){g=null};if(j.fireEvent){j.fireEvent(k.type,k)}if(g){g(k)}},washMouseEvent:function(g){g.pageX=g.page.x;g.pageY=g.page.y;return g},stop:function(g){if(g.fx){g.fx.cancel()}}}}());