var FormOverlabel=Class.create({initialize:function(){$$("label.overlabel[for]").each(function(D){var C=D.htmlFor||D.getAttribute("for");var E=$(C);if(!E){return }D.className="overlabel-apply";if($F(E)!==""){this.hideLabel(E.id,true)}E.observe("focus",function(F){this.hideLabel(F.element().id,true)}.bind(this));E.observe("blur",function(F){if($F(E)===""){this.hideLabel(F.element().id,false)}}.bind(this));if(Prototype.Browser.WebKit){D.observe("click",function(G){var F=G.element().htmlFor||G.element().getAttribute("for");var H=$(F);if(H){H.focus()}}.bind(this))}}.bind(this));var B=$$("#login form").first();if(B){var A=B.style.marginBottom;B.style.marginBottom=0;(function(){B.style.marginBottom=A}).defer()}},hideLabel:function(B,A){$$("label[for="+B+"]").each(function(C){C.style.textIndent=(A)?"-4000px":"0px"})}});document.observe("dom:loaded",function(){new FormOverlabel()});
