// function to close notification message // slideUp the message function closeNotification(duration){ var divHeight = $('div#info_message').height(); setTimeout(function(){ $('div#info_message').animate({ top: '-'+divHeight }); // removing the notification from body setTimeout(function(){ $('div#info_message').remove(); },1); }, parseInt(duration * 1000)); }...