	
	function findValue(li) {
	if( li == null ) return alert("No match!");

	// if coming from an AJAX call, let's use the CityId as the value
	if( !!li.extra ) var sValue = li.extra[0];

	// otherwise, let's just display the value in the text box
	else var sValue = li.selectValue;

	alert("The value you selected was: " + sValue);
}

function selectItem(li) {
	findValue(li);
}

function formatItem(row) {
	return row[0];
}

function lookupAjax(){
	var oSuggest = jQuery("#algemeneZoek")[0].autocompleter;

	oSuggest.findValue();

	return false;
}

function lookupLocal(){
	var oSuggest = jQuery("#algemeneZoek")[0].autocompleter;

	oSuggest.findValue();

	return false;
}

function openMenu() {
	jQuery(".first ul").animate({marginTop: "10px"}, 300);
	//jQuery("#nav").css("width","83.25em");

	//jQuery("#nav").css("cssText", "border-bottom: 9px solid #666666 !important;");
	//jQuery("#nav").css({'border-bottom': '9px solid #666666'});
	jQuery("#nav").addClass("navActive");
	jQuery(".first ul").css("display","block");
	
	jQuery(".first", this).hover(function() { 
		jQuery('li.first').removeClass("current");
		jQuery(this).addClass("current");
		jQuery('.trigger', this).addClass("bgswitch");
	}, function() {
		jQuery('.trigger', this).removeClass("bgswitch");
		jQuery('li.first').removeClass("current");
	});
}
function closeMenu() {
	jQuery(".first ul").css("margin-top", "0");
	jQuery(".first ul").css("display","none");
	//jQuery("#nav").css("border-bottom", "0px");
	jQuery("#nav").removeClass("navActive");
	//jQuery("#nav").css("width","60em");
}
var config = {    
     sensitivity: 1,    
     interval: 1,     
     over: openMenu,    
     timeout: 300,     
     out: closeMenu   
};


