$(['info', 'warning', 'error']).each(function(idx, category) {
$('#flash_' + category).hide();
$('#flash_detail_' + category).hide();
$(['info', 'warning', 'error']).each(function(idx, category) {
$('#flash_' + category).hide();
$('#flash_detail_' + category).hide();