var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Object.extend=function(A,B){for(property in B){A[property]=B[property]}return A};Function.prototype.bind=function(B){var A=this;return function(){return A.apply(B,arguments)}};Function.prototype.bindAsEventListener=function(B){var A=this;return function(C){A.call(B,C||window.event)}};function $(){if(arguments.length==1){return B(arguments[0])}var A=[];$c(arguments).each(function(C){A.push(B(C))});return A;function B(C){if(typeof C=="string"){C=document.getElementById(C)}return C}}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 A=false;B.className.split(" ").each(function(D){if(D==C){A=true}});return A},addClassName:function(A,B){A=$(A);Element.removeClassName(A,B);A.className+=" "+B},removeClassName:function(B,C){B=$(B);if(!B){return }var A="";B.className.split(" ").each(function(E,D){if(E!=C){if(D>0){A+=" "}A+=E}});B.className=A},cleanWhitespace:function(A){A=$(A);$c(A.childNodes).each(function(B){if(B.nodeType==3&&!/\S/.test(B.nodeValue)){Element.remove(B)}})},find:function(A,B){A=$(A)[B];while(A.nodeType!=1){A=A[B]}return A}});var Position={cumulativeOffset:function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;B=B.offsetParent}while(B);return[C,A]}};document.getElementsByClassName=function(B){var A=document.getElementsByTagName("*")||document.all;var C=[];$c(A).each(function(D){if(Element.hasClassName(D,B)){C.push(D)}});return C};Array.prototype.iterate=function(B){for(var A=0;A<this.length;A++){B(this[A],A)}};if(!Array.prototype.each){Array.prototype.each=Array.prototype.iterate}function $c(C){var B=[];for(var A=0;A<C.length;A++){B.push(C[A])}return B};
