var Class={create:function(){return function(){this.initialize.apply(this,arguments);};}};Object.extend=function(_1,_2){for(property in _2){_1[property]=_2[property];}return _1;};Function.prototype.bind=function(_3){var _4=this;return function(){return _4.apply(_3,arguments);};};Function.prototype.bindAsEventListener=function(_5){var _6=this;return function(_7){_6.call(_5,_7||window.event);};};function $(){if(arguments.length==1){return get$(arguments[0]);}var _8=[];$c(arguments).each(function(el){_8.push(get$(el));});return _8;function get$(el){if(typeof el=="string"){el=document.getElementById(el);}return el;}}if(!window.Element){var Element=new Object();}Object.extend(Element,{remove:function(_b){_b=$(_b);_b.parentNode.removeChild(_b);},hasClassName:function(_c,_d){_c=$(_c);if(!_c){return;}var _e=false;_c.className.split(" ").each(function(cn){if(cn==_d){_e=true;}});return _e;},addClassName:function(_10,_11){_10=$(_10);Element.removeClassName(_10,_11);_10.className+=" "+_11;},removeClassName:function(_12,_13){_12=$(_12);if(!_12){return;}var _14="";_12.className.split(" ").each(function(cn,i){if(cn!=_13){if(i>0){_14+=" ";}_14+=cn;}});_12.className=_14;},cleanWhitespace:function(_17){_17=$(_17);$c(_17.childNodes).each(function(_18){if(_18.nodeType==3&&!/\S/.test(_18.nodeValue)){Element.remove(_18);}});},find:function(_19,_1a){_19=$(_19)[_1a];while(_19.nodeType!=1){_19=_19[_1a];}return _19;}});var Position={cumulativeOffset:function(_1b){var _1c=0,valueL=0;do{_1c+=_1b.offsetTop||0;valueL+=_1b.offsetLeft||0;_1b=_1b.offsetParent;}while(_1b);return [valueL,_1c];}};document.getElementsByClassName=function(_1d){var _1e=document.getElementsByTagName("*")||document.all;var _1f=[];$c(_1e).each(function(_20){if(Element.hasClassName(_20,_1d)){_1f.push(_20);}});return _1f;};Array.prototype.iterate=function(_21){for(var i=0;i<this.length;i++){_21(this[i],i);}};if(!Array.prototype.each){Array.prototype.each=Array.prototype.iterate;}function $c(_23){var _24=[];for(var i=0;i<_23.length;i++){_24.push(_23[i]);}return _24;}
