text: var FakePlaceholder=new Class({initialize:function(a){var b="moo_fakeplaceholder";a&&!a.hasClass(b)&&(a.addClass(b),this.el=a,"placeholder"in document.createElement("input")||this.el.hasClass("disable-placeholder")||(this.setElements(),this.showPlaceholder(),this.setEvents()))},setElements:function(){this.el.set("data-inputtype",this.el.get("type")),this.el.set("data-fakeplaceholder",this.el.get("placeholder")),this.el.set("placeholder","")},setEvents:function(){var a=this;this.el.addEvent("focus",function(){a.hidePlaceholder(this)}),this.el.addEvent("blur",function(){a.showPlaceholder(this)}),this.el.getParent("form")&&this.el.getParent("form").addEvent("submit",function(){a.el.get("value")==a.el.get("data-fakeplaceholder")&&a.hidePlaceholder()})},showPlaceholder:function(){""===this.el.get("value")&&(this.el.addClass("with-placeholder"),this.el.set("value",this.el.get("data-fakeplaceholder")))},hidePlaceholder:function(){this.el.get("value")==this.el.get("data-fakeplaceholder")&&(this.el.set("value",""),this.el.removeClass("with-placeholder"))}});