/*
window.addEvent('domready', function() {
	alert(hoi);
	$$('li').each( function(el) {
		var submenu = el.getElement('ul');
		submenu = submenu[0];
		if( submenu ) {
			var anchor = el.getElement('a');
			anchor = anchor[0]
			submenu.addEvent('mouseover',function(){
				anchor.addClass("active");
			});

			submenu.addEvent('mouseout',function(){
				anchor.removeClass("active");
			});
		}

		el.addEvent('mouseover',function(){
			this.addClass("over");
		});
		el.addEvent('mouseout',function(){
			this.removeClass("over");
		});
	});

	$$('a.externe-link').each( function(el) {
		el.target = '_blank';
	});
});
*/
Event.observe( window, 'load', function(event) {
	$$('ul#hoofdmenu li.level1').each( function(el) {
		var anchor = el.firstDescendant() ;
		var submenu = anchor.next();
		
		el.observe('mouseover', function() {
			this.addClassName('over');
			anchor.addClassName('active');
		});
		
		el.observe('mouseout', function() {
			this.removeClassName('over');
			anchor.removeClassName('active');
		});
	});
	
	$$('a.externe-link').each( function(el) {
		el.target = '_blank';
	});
});

function print( url ) {
  popup = window.open( url, "help", "width=720, height=700, top=100, left=100, toolbar=0, resizable=1, scrollbars=1, status=0.menubar=0, location=0, directories=0");
  popup.focus();
}
