Window.implement({$log:function(){if(typeof console!=="undefined"&&typeof console.log!=="undefined"){console.log(arguments.length<=1?arguments[0]:arguments)}},$hash:function(theHash){return(window.location.hash.split("#").getLast()==theHash)}});Element.implement({has:function(key,value){return this.get(key).contains(value)},fadeDestroy:function(options){new Fx.Tween(this,$merge({onComplete:function(){this.destroy()}.bind(this)},options)).start("opacity",0);return this},toggleText:function(altText){if(this.get("text")===altText){this.set("text",this.retrieve("default:text"))}else{this.set("text",altText)}}});Array.implement({each_asynchronously:function(d,c,e){if(this.length==0){return this}var c=c||10;var a=this.concat();var b=0;(function(){d.run([a.shift(),b,this],e);b+=1;if(a.length>0){setTimeout(arguments.callee.bind(this),c)}}).delay(c,this);return this}});$extend(Selectors.Pseudo,{external:function(){var domain=window.location.host.toString();var href=$(this).get("href");if($chk(href)){return(href.indexOf(domain)<=-1)}}});
