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 _8(arguments[0]);}var _9=[];$c(arguments).each(function(el){_9.push(_8(el));});return _9;function _8(el){if(typeof el=="string"){el=document.getElementById(el);}return el;};};if(!window.Element){var Element=new Object();}Object.extend(Element,{remove:function(_a){_a=$(_a);_a.parentNode.removeChild(_a);},hasClassName:function(_b,_c){_b=$(_b);if(!_b){return;}var _d=false;_b.className.split(" ").each(function(cn){if(cn==_c){_d=true;}});return _d;},addClassName:function(_e,_f){_e=$(_e);Element.removeClassName(_e,_f);_e.className+=" "+_f;},removeClassName:function(_10,_11){_10=$(_10);if(!_10){return;}var _12="";_10.className.split(" ").each(function(cn,i){if(cn!=_11){if(i>0){_12+=" ";}_12+=cn;}});_10.className=_12;},cleanWhitespace:function(_13){_13=$(_13);$c(_13.childNodes).each(function(_14){if(_14.nodeType==3&&!/\S/.test(_14.nodeValue)){Element.remove(_14);}});},find:function(_15,_16){_15=$(_15)[_16];while(_15.nodeType!=1){_15=_15[_16];}return _15;}});var Position={cumulativeOffset:function(_17){var _18=0,_19=0;do{_18+=_17.offsetTop||0;_19+=_17.offsetLeft||0;_17=_17.offsetParent;}while(_17);return [_19,_18];}};document.getElementsByClassName=function(_1a){var _1b=document.getElementsByTagName("*")||document.all;var _1c=[];$c(_1b).each(function(_1d){if(Element.hasClassName(_1d,_1a)){_1c.push(_1d);}});return _1c;};Array.prototype.iterate=function(_1e){for(var i=0;i<this.length;i++){_1e(this[i],i);}};if(!Array.prototype.each){Array.prototype.each=Array.prototype.iterate;}function $c(_1f){var _20=[];for(var i=0;i<_1f.length;i++){_20.push(_1f[i]);}return _20;};
