Content fadeOut .. Browser backward button

Content fadeOut .. Browser backward button

Hi guys,

When clicking the menu links on my site I want the page main content to fade out just right before the linked page is loaded, this way..

  1. $(document).ready(function () {
  2.     $('#topmenu a').click(function() {
  3.         $('div#main').fadeOut();
  4.     });
  5. });

But when I click the browser backward button and it goes back to the page I was, its content remains faded out, which is kind of awkward..

I just want the page content fading in again if the browser backward button is clicked.

Is there a way I can adjust this?

Thanks!