var obj = null;
var obj2 = null;
var menufired = 0;

function checkHover()
{
	if(obj2)
	{
		obj2.fadeOut('fast');
		obj = null;
		obj2 = null;
	}
}

$(document).ready(function()
{
	$('#abouttop').hover( function()
	{
		if(obj2)
		{
			clearTimeout(menufired);
			obj2.fadeOut('fast');
			obj2 = null;
		}
		obj2 = $('#aboutmenu');
		obj2.fadeIn('fast');
	}, function()
	{
		obj = $(this);
		menufired = setTimeout("checkHover()",	400);
	});
	
	$('#perstop').hover( function()
	{
		if(obj2)
		{
			clearTimeout(menufired);
			obj2.fadeOut('fast');
			obj2 = null;
		}
		obj2 = $('#persmenu');
		obj2.fadeIn('fast');
	}, function()
	{
		obj = $(this);
		menufired = setTimeout("checkHover()",	400);
	});
	
	$('#eventtop').hover( function()
	{
		if(obj2)
		{
			clearTimeout(menufired);
			obj2.fadeOut('fast');
			obj2 = null;
		}
		obj2 = $('#eventmenu');
		obj2.fadeIn('fast');
	}, function()
	{
		obj = $(this);
		menufired = setTimeout("checkHover()",	400);
	});
	
	$('#archtop').hover( function()
	{
		if(obj2)
		{
			clearTimeout(menufired);
			obj2.fadeOut('fast');
			obj2 = null;
		}
		obj2 = $('#archmenu');
		obj2.fadeIn('fast');
	}, function()
	{
		obj = $(this);
		menufired = setTimeout("checkHover()",	400);
	});
	
	$('#rptop').hover( function()
	{
		if(obj2)
		{
			clearTimeout(menufired);
			obj2.fadeOut('fast');
			obj2 = null;
		}
		obj2 = $('#rpmenu');
		obj2.fadeIn('fast');
	}, function()
	{
		obj = $(this);
		menufired = setTimeout("checkHover()",	400);
	});
	
	$('#linkstop').hover( function()
	{
		if(obj2)
		{
			clearTimeout(menufired);
			obj2.fadeOut('fast');
			obj2 = null;
		}
		obj2 = $('#linksmenu');
		obj2.fadeIn('fast');
	}, function()
	{
		obj = $(this);
		menufired = setTimeout("checkHover()",	400);
	});
});