//
//  forms.js
//

Event.observe(window, "load", function () {
  $$("input[type=text]").each(function (input) {
    Event.observe(input, "focus", function () {
      if (this.value == this.getAttribute("value")) {
        this.value = "";
        this.removeClassName("placeholder");
      }
    });
    Event.observe(input, "blur", function () {
      if (this.value.strip() == "") {
        this.value = this.getAttribute("value");
        this.addClassName("placeholder");
      }
    });
  });
});
