// JavaScript Document
var navFastMouseoverLink = new Boolean(false);
var navFastMouseover = new Boolean(false);

function navFastToggle() {
	if (navFastMouseoverLink || navFastMouseover) {
		//Effect.toggle('nav_fast', 'appear', { duration: 0.3 });
		$('nav_fast').show();
	}
	// nur, wenn Maus ueber keinem der beiden Elemente
	if ((!navFastMouseoverLink) && (!navFastMouseover)) {
		//Effect.toggle('nav_fast', 'hide', { duration: 0.3 });
		$('nav_fast').hide();
	}
}

function diabatesDeInit() {
	Event.observe('nav_fast_link', 'click', function(event) {
		//alert('nav_fast');
	});
	Event.observe('nav_fast_link', 'mouseover', function(event) {
		navFastMouseoverLink = true;
		window.setTimeout("navFastToggle();", 50);
	});
	Event.observe('nav_fast_link', 'mouseout', function(event) {
		//window.setTimeout("navFastMouseoverLink = false;", 10);
		navFastMouseoverLink = false;
		window.setTimeout("navFastToggle();", 50);
	});
	Event.observe('nav_fast', 'mouseover', function(event) {
		navFastMouseover = true;
		window.setTimeout("navFastToggle();", 50);
	});
	Event.observe('nav_fast', 'mouseout', function(event) {
		navFastMouseover = false;
		window.setTimeout("navFastToggle();", 50);
	});
}
Event.observe(window, 'load', diabatesDeInit);
