$(document).ready(function() {

  /* Clear form input field onfocus */
  $.fn.search = function() {
	  return this.focus(function() {
		  if( this.value == this.defaultValue ) {
			  this.value = "";
		  }
	  }).blur(function() {
		  if( !this.value.length ) {
			  this.value = this.defaultValue;
		  }
	  });
  };
  $("#site-search").search();

});