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

$(document).ready(function() {	
  setTimeout(hideFlashMessages, 2000);

  function hideFlashMessages() {
  $('#admin_flash_notice').animate({
	height: 0,
	opacity: 'hide'}, 'slow')
  };


});



function check_integer(el)
{
 if(String(parseInt(el.value))=="NaN")
   el.value = '';
 else
   el.value = parseInt(el.value);
}
