function OnSearchEnter(e, condition)
{
	var keynum;

//	if (window.event) // IE
//	{
//		keynum = e.keyCode;
//	}
//	else if (e.which) // Netscape/Firefox/Opera
//	{
//		keynum = e.which;
//	}
	e = e || window.event;
	var keynum = e.keyCode || e.which;

	if (keynum == 13) // cr
	{	
		event.cancelBubble = true;
		Search(condition);
		return false;
	}	
}

function Search(condition)
{
	window.location.href = "search.aspx?condition=" + condition;
}

function RemoveInput() {
	if (document.getElementById("searchbox").value == 'zoek')
		document.getElementById("searchbox").value = "";
}

function sfHover() {
	try {
		var sfEls = document.getElementById('nav').getElementsByTagName("li");
		for (var i = 0; i < sfEls.length; i++) {
			sfEls[i].onmouseover = function() {
				this._className = this.className;
				this.className += " sfhover";
			}
			sfEls[i].onmouseout = function() {
				this.className = this._className;
			}
		}
	}
	catch (e) {
		alert(e);
	}
}
