<%  if @session_expired
  theLink = link_to(t('login.log_in_again'), :controller => "login", :action => "login")
  message = I18n.t('login.session_time_out', :link => theLink)
  theHtml = escape_javascript(content_tag(:div, message, :"class" => "warning"))
  -%>
  $('div#navcontainer').hide();
  $('div#content').html('<%=theHtml%>');
  refresh_page(); // refresh the page. if it fails, the message above remains
<%  end -%>