// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

document.observe("dom:loaded", function() {
  // setTimeout(hideFlashMessages, 8000);
});

function hideFlashMessages() {
  $$('p#alert, p#notice, p#warning, p#error').each(function(e) { 
    if (e) Effect.Fade(e, { duration: 2.0 });
  });
}

function clearAllTipsyTips() {
	jQuery('.tipsy').remove();
}