$(document).ready(function() {

  $("ul#topmenu a").each(function() {
    if (this.pathname.search(/^\//) < 0) {
      this_link_location = '/' + this.pathname;
    } else {
	  this_link_location = this.pathname;
	}
    
    if ( this_link_location != document.location.pathname ) { // Only tranforms if this is not the page
                                                 // These keeps the menu hilighted for the
                                                 // page it points to.
																								 // Ignores query string differences
      $(this).fadeTo("fast", 0.0);

      $(this).hover(function() {
        $(this).stop().fadeTo("slow", 1.0);
      },
      function() {
        $(this).stop().fadeTo("slow", 0.0);
      });
    }
  });

});
