(function(a){a.fn.formtips=function(b){var c=jQuery.extend({tippedClass:"tipped"},b);return this.each(function(){var f=a(this);var d=a(f).attr("type");if(d!="file"&&d!="checkbox"&&d!="radio"){a(f).bind("focus",function(){var e=a(this).attr("title");if(a(this).val()==e){a(this).val("").removeClass(c.tippedClass)}return true});a(f).bind("blur",function(){var e=a(this).attr("title");if(a(this).val()==""){a(this).val(e).addClass(c.tippedClass)}return true});var g=a(f).attr("title");if(a(f).val()==""||a(f).val()==a(this).attr("title")){a(f).val(g).addClass(c.tippedClass)}else{a(f).removeClass(c.tippedClass)}a(f).parentsUntil("form").parent().submit(function(){var e=a(f).attr("title");if(a(f).val()==e){a(f).val("").removeClass(c.tippedClass)}})}})}})(jQuery);
