/**
 * Affiche le logo de chargement Ajax.
 */
function showDossierScreen()
{
  $('#ajax-dossier').fadeIn('normal').show();
}

function showTarifScreen()
{
  $('#ajax-tarif').fadeIn('normal').show();
}
 
function showLoadingScreen()
{
  $('#ajax-indicator').fadeIn('normal').show();
}

/**
 * Cache le log de chargement Ajax.
 */
function hideDossierScreen()
{
  $('#ajax-dossier').fadeOut('normal');
}

function hideTarifScreen()
{
  $('#ajax-tarif').fadeOut('normal');
}
 
function hideLoadingScreen()
{
  $('#ajax-indicator').fadeOut('normal');
}

/**
 * Met à jour un message flash.
 */
function updateFlashMessage(message, type)
{
  div = parent.$('.flash_' + type);
  div.hide();
  $('#flash_messages').show();
  div.html(message);
  div.fadeIn('normal').fadeOut('normal').fadeIn('normal').show();
}
