jQuery.fn.placeholder=function(A,B){B=jQuery.extend({placeholderClass:"placeholder"},B);return this.each(function(){var C=this;var G=jQuery(C);G.wrap(document.createElement("SPAN"));var F=G.parent();F.addClass("placeholder-parent");F.css("position","relative");F.prepend('<span class="placeholder">'+A+"</span>");var E=$(F.children().get(0));E.css("font-size",G.css("font-size"));var D=G.height();E.height(D);E.css("line-height",G.css("line-height"));E.css("position","absolute");E.css("margin-top",G.css("margin-top"));E.css("margin-right",G.css("margin-right"));E.css("margin-bottom",G.css("margin-bottom"));E.css("margin-left",G.css("margin-left"));E.css("padding-top",G.css("padding-top"));E.css("padding-right",G.css("padding-right"));E.css("padding-bottom",G.css("padding-bottom"));E.css("padding-left",G.css("padding-left"));E.css("border-top-width",G.css("border-top-width"));E.css("border-right-width",G.css("border-right-width"));E.css("border-bottom-width",G.css("border-bottom-width"));E.css("border-left-width",G.css("border-left-width"));E.css("border-style","solid");E.css("border-color","transparent");E.mouseup(function(){G.focus()});C.syncPlaceholderState=function(){if(G.val()==""){E.show()}else{E.hide()}};G.focus(function(){C.focused=true;E.addClass("focused");C.syncPlaceholderState()});G.blur(function(){C.focused=false;E.removeClass("focused");C.syncPlaceholderState()});G.change(function(){if(C.focused){E.hide()}});G.keypress(function(){if(C.focused){E.hide()}});C.syncPlaceholderState()})};jQuery.fn.syncPlaceholderState=function(){return this.each(function(){this.syncPlaceholderState()})};