// JavaScript Document


/**
* Written by Rob Schmitt, The Web Developer's Blog
* http://webdeveloper.beforeseven.com/
*/

/**
* The following variables may be adjusted
*/
var active_color = '#000'; // Colour of user provided text
var inactive_color = '#c7c6c6'; // Colour of default text

/**
* No need to modify anything below this line
*/

jQuery(document).ready(function() {
  //jQuery("div.quickcontact input.TextBoxField, input.inputbox").css("color", inactive_color);
  jQuery("div.quickcontact input.TextBoxField").css("color", inactive_color);
  var default_values = new Array();
  //jQuery("div.quickcontact input.TextBoxField, input.inputbox").focus(function() {
  jQuery("div.quickcontact input.TextBoxField").focus(function() {
    if (!default_values[this.id]) {
      default_values[this.id] = this.value;
    }
    if (this.value == default_values[this.id]) {
      this.value = '';
      this.style.color = active_color;
    }
    jQuery(this).blur(function() {
      if (this.value == '') {
        this.style.color = inactive_color;
        this.value = default_values[this.id];
      }
    });
  });
});

