
Element.Events.login={base:'keydown',condition:function(evt){var keys=window.retrieve(':loginEventKeys',[]);keys.push(evt.key);if(keys.join('').test(/login/))
return window.store(':loginEventKeys',[]);window.store(':loginEventKeys',keys);return false;}};Editor.Auth=new Class({Extends:Editor,options:{linkEvent:'login',element:window,link:null},initialize:function(options){this.setOptions(options);this.parent(this.options.element);},loaded:function(){this.parent();(function(){this.content.getElement('input[type=text]').focus();}.delay(200,this));},catchResponse:function(response){if(response.success)
return window.location.href=BASE_URL+'?editArea=1';this.parent(response);this.content.getElement('input[type=text]').focus();}});