var t;
$(window).load( function(){
	$('.s>a').hover(function() {
		clearTimeout(t);
		$('.d:visible').hide();
		$(this).next('.d').show();
	},
	function(){
		var that = $(this).next('.d');
		t = setTimeout(function(){$(that).hide();},500);
	});
	$('.d a').mouseover ( function() {
		clearTimeout(t);
	}).mouseout( function() {
		var that = $(this).parents('.d');
		t = setTimeout(function(){$(that).hide();},500);	
	});
});