(function(a){var b={css_class:"placeholder"};a.fn.placeholder=function(c){var d=a.extend(b,c);a("[placeholder]").focus(function(){var e=a(this);if(e.hasClass(d.css_class)){e.val("");e.removeClass(d.css_class)}}).blur(function(){var e=a(this);if(e.val()===""){e.addClass(d.css_class);e.val(e.attr("placeholder"))}}).blur().parents("form").submit(function(){a(this).find("[placeholder]").each(function(){var e=a(this);if(e.hasClass(d.css_class)){e.val("")}})})};a(function(){var c=document.createElement("input");a.support.placeholder=("placeholder" in c);if(!a.support.placeholder){a("[placeholder]").livequery(function(){a(this).placeholder()})}})})(jQuery);