var search_deftext = 'Search here';

function window_onload()
{
  document.getElementById('search_query').value = search_deftext;
  document.getElementById('search_query').onfocus = new Function("if(this.value == search_deftext) this.value = '';");
  document.getElementById('search_query').onblur = new Function("if(this.value == '') this.value = search_deftext;");
  
  var links = document.getElementsByTagName('a');
  
  for(var i = 0; i < links.length; i++)
  {
    links[i].onfocus = new Function('this.blur();');
  }
}

window.onload = window_onload;


/** ANTISPAM **/

function unobfem(eml, shft) {
  var neml = '';
  eml = unescape(eml);
  for(var p = 0; p < eml.length; p++) neml += String.fromCharCode(eml.charCodeAt(p) - shft);
  return neml;
}
function unobfem_ngo(eml, shft) {
  location.href = 'mailto:' + unobfem(eml, shft);
}

/** ANTISPAM END **/