timeouts = new Array();
nexttimeout = 0;

function showFlyout(FlyoutID){
	ClearTimeouts();
	$('.flyOutMenu:not(#' + FlyoutID + ')').slideUp(100);
	$('#' + FlyoutID).slideDown("normal");
	timeouts[nexttimeout] = setTimeout(function(){hideFlyout(FlyoutID);},4000);
	nexttimeout += 1;
}
function hideFlyout(FlyoutID){
	$('#' + FlyoutID).slideUp("normal");
}
$(document).ready(function(){
	$('.flyOutMenu').bind('mouseenter',function(){
		$('.flyOutMenu:not(#' + this.id + ')').slideUp(100);
		ClearTimeouts();
	});
	$('.flyOutMenu').bind('mouseleave',function(){
		flyoutid = this.id;
		timeouts[nexttimeout] = setTimeout(function(){hideFlyout(flyoutid);},1000);
		nexttimeout += 1;
	});
}
);
function ClearTimeouts(){
	for(timeout in timeouts){
		clearTimeout(timeouts[timeout]);
	}
}