function initPage()
{
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++)
	{
		if (inputs[i].type == "text" && inputs[i].name == "query")
		{
			inputs[i].onfocus = function ()
			{
					if (this.value == "enter search term")
						this.value = "";
			}
			inputs[i].onblur = function ()
			{
					if (this.value == "" && this.name == "search") this.value = "enter search term";
			}
		}
	}
}

if (window.addEventListener)
{
	window.addEventListener("load", initPage, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initPage);
}
function initMenu()
{

	var nodes = document.getElementById("menu").getElementsByTagName("li");
	var nodes_2 = document.getElementById("menu-2").getElementsByTagName("li");
	for (var i=0; i<nodes.length; i++)
	{
		nodes[i].onmouseover = nodes_2[i].onmouseover = function()
		{
			this.className += " hover";
		}
		nodes[i].onmouseout = nodes_2[i].onmouseout = function()
		{
			this.className = this.className.replace(" hover", "");
		}
	}
}
if (document.all && !window.opera ) window.attachEvent("onload", initMenu);

