Form.Validator.Hint=new Class({Extends:Form.Validator.Inline,options:{scrollToErrorsOnSubmit:false,scrollFxOptions:{transition:"quad:out",offset:{y:-20}},title:"Validation Error"},makeAdvice:function(e,g,d,h){var f=(h)?this.warningPrefix:this.errorPrefix;f+=(this.options.useTitles)?g.title||d:d;var b=(h)?"warning-advice":"validation-advice";var c=this.getAdvice(e,g);var a=this.toElement().retrieve("tips");if(a==null){a=new Tips();this.toElement().store("tips",a)}if(c){a.detach(c)}else{var c=new Element("div",{id:"advice-"+e+"-"+this.getFieldId(g),"class":b+" icon",title:this.options.title,styles:{display:"none"},html:"&nbsp"})}g.store("advice-"+e,c);c.set("rel",f);a.attach(c);return c}});
