var timeout;
$('#trigger').hover(
function() {
timeout = setTimeout(function(){
$('#hiddenDiv').show();
}, 5000); //5 seconds
},
function(){
clearTimeout(timeout);
$('#hiddenDiv').hide();
}
);