// Constants - const keyword causes syntax error in IE
var SEARCH_INPUT_PLACEHOLDER_TEXT = 'keyword search';

window.onload = add_behavior;

// sets up behaviours that have been separated from content/styling
function add_behavior() 
{
  // add seach input placeholder and handler to remove placeholder
  if (document.getElementById) {
    search_input = document.getElementById('search-input')
	search_input.value = SEARCH_INPUT_PLACEHOLDER_TEXT;
    search_input.onfocus = clear_node_value;
  }
}

function clear_node_value() 
{
  this.value = '';
}