function ml(str) {
	alert(str);
}

var openMenu = null;

var funcKeepOpen = function() {
	// this is een HTMLIElement
	if (this.parentNode.aSubMenuIsExpanded) {
		this.parentNode.aSubMenuIsExpanded.className = '';
	}

	Element.addClassName(this,'over');	
	
	// Zorg dat 'ie niet dichtklapt als we er over hooveren
	window.clearTimeout(this.fuse);	
	
	// 
	this.parentNode.aSubMenuIsExpanded = this;
};
		
startList = function() {

	$$('li.mainmenuitem').each(function(li) {
	
		Event.observe(li, 'mouseover', funcKeepOpen.bind(li), 		false);

		li.onmouseout = function() { 
			this.fuse = window.setTimeout(function() {
				this.className = '';
			}.bind(this),300)
		};
		
		//Event.observe(li, 'mouseout',  funcScheduleClose.bind(li), 	false);
	});
}

Event.observe(window,'load',startList);