var extras_current;
var extras_timeout;		
$(document).ready(function(){			
	$(".expand").hover(
		function() {
			var targ = $(this).parent();
			var position = $(this).position();
			$(targ).children(".extras").css("top", position.top + $(this).height());
			$(targ).children(".extras").css("left", position.left);
			$(targ).children(".extras").show();
			extras_current = $(targ).children(".extras").attr("id");
			clearTimeout(extras_timeout);	
			hide_extras_other();
		},
		function() {
			extras_timeout = setTimeout(hide_extras, 500);					
		}				
	);
	$(".extras").hover(
		function() {
			clearTimeout(extras_timeout);
		},
		function() {
			extras_timeout = setTimeout(hide_extras, 500);
		}
	);			
});
function hide_extras() {
	$(".extras").hide();
}
function hide_extras_other() {
	$.each($(".extras"), function() {
		if ($(this).attr("id") != extras_current) {
			$(this).hide();
		}
	});
}

