// attach event listener for hijack[A
if(window.addEventListener) { window.addEventListener('load', lwp_hijack_search, false); }
else { window.attachEvent('onload', lwp_hijack_search); }
// Prep WP search form for Lijit functionality
function lwp_hijack_search() {
	if(document.getElementById('searchform')) {
		var inputText = document.getElementById('s');
		if (!inputText){var inputText = document.getElementById('search');};
		inputText.value = 'Powered by Lijit';
		inputText.style.color = '#728ea9'; 
		inputText.onfocus = function(){if (inputText.value = 'Powered by Lijit'){inputText.value = ''; inputText.style.color = '#000';}};
		document.getElementById('searchform').onsubmit = lwp_hijack_submit;
	}
}
// do the search
function lwp_hijack_submit(e) {
  if (self.lwp_dosearch)
  {
    lwp_dosearch(document.getElementById('s').value);
    return false;
    }

  {
    lwpnet_dosearch(document.getElementById('s').value);
    return false;
  }
}
				