/**
* The following variables may be adjusted
*/
var active_color = '#6c6c6c'; // Colour of user provided text
var inactive_color = '#6c6c6c'; // Colour of default text

/**
* No need to modify anything below this line
*/

$(document).ready(function() {
  var default_values = new Array();
  
  $(".default-value")
    .each(function() {
      if (!default_values[this.id]) {
        default_values[this.id] = this.value;
      }
    })
    .css("color", inactive_color)
    .focus(function() {
      if (this.value == default_values[this.id]) {
        this.value = '';
        this.style.color = active_color;
      }
      $(this).blur(function() {
        if (this.value == '') {
          this.style.color = inactive_color;
          this.value = default_values[this.id];
        }
      });
    })
    .parents("form").submit(function() {
      var current_values = new Array();
      $(this).find(".default-value").each(function() {
        for (key in default_values) {
          if (default_values[key] === this.value) {
            this.value = '';
          }
        }
      });
    });
});
