Window.implement({$log:function(){if(typeof console!=="undefined"&&typeof console.log!=="undefined")console.log(arguments.length<=1?arguments[0]:arguments)}});Element.implement({has:function(a,b){return this.get(a).contains(b)},toDestroy:function(a){(function(){this.fade("out");(function(){this.destroy()}).delay(800,this)}).delay(a,this)}});
Array.implement({each_asynchronously:function(a,b,e){if(this.length==0)return this;b=b||10;var c=this.concat(),d=0;(function(){a.run([c.shift(),d,this],e);d+=1;c.length>0&&setTimeout(arguments.callee.bind(this),b)}).delay(b,this);return this}});$extend(Selectors.Pseudo,{external:function(a){try{a=$pick(a,window.location.host.toString());return!$(this).get("href").contains(a)&&!$(this).get("href").contains("#")}catch(b){}}});
