/*
Site-wide JS
*/

var flash_duration = 6000;

$(function(){
  setTimeout('hideMessages()', flash_duration);
});

function hideMessages() {
	$("div.message").filter(function(){
		return $(this).css("display") != "none"; // don't do the fade action if it's already hidden!
	})
	.animate({
		top: '-=200px'
	}, 'normal', 'swing', function(){
		$(this).remove();
	});
}
