anchor.diff:  
       <div class="clear"></div>
   
  -	<%-- show expanded table immediately? --%>
  -	<c:choose>
  -		<c:when test="${not empty param.gotoHighlighted || not empty param.page || not empty param.table}">
  -			<script type="text/javascript">var showTable = true;</script>
  -		</c:when>
  -		<c:otherwise>
  -			<script type="text/javascript">
  -				if (window.location.hash == '#hasHighlighted') var showTable = true;
  -			</script>
  -		</c:otherwise>
  -	</c:choose>
  -
  -	<div id="ListArea">
  -	<script type="text/javascript">if (!showTable) jQuery("#ListArea").hide();</script>
  +  <%-- show expanded table immediately? --%>
  +  <c:choose>
  +    <c:when test="${not empty param.gotoHighlighted || not empty param.page || not empty param.table}">
  +      <script type="text/javascript">var showTable = true;</script>
  +    </c:when>
  +    <c:otherwise>
  +      <script type="text/javascript">
  +        if (window.location.hash == '#hasHighlighted') var showTable = true;
  +      </script>
  +    </c:otherwise>
  +  </c:choose>
  +
  +  <div id="ListArea">
  +  <script type="text/javascript">if (!showTable) jQuery("#ListArea").hide();</script>
   
       <%-- list table --%>
       <div id="results" class="box grid_12">
  
positive.code:     <tiles:insert name="bagDetailsMenu.jsp" />
    </div>
    <script type="text/javascript">
    	(function() {
  	    jQuery('#fixed-menu').hide(); // hide for IE7
  	    jQuery(window).scroll(function() {
  	      // transition fix
  	      if (jQuery('#menu-target').isInView('partial')) {
  	        jQuery('#fixed-menu').hide();
  	      } else {
  	        jQuery('#fixed-menu').show();
  	      }
  	    });
    	})();
    </script>
  
    <%-- main content --%>
  
negative.code:     <script type="text/javascript">
        <%-- show form --%>
        (function() {
          jQuery('div.title a').click(function() {
            jQuery('div.title div.form').show();
            jQuery('div.title h1').hide();
          });
  
          <%-- current name --%>
          var currentName = '${bag.name}';
  
          <%-- save name --%>
          function saveName() {
            var newName = jQuery('div.title input.text').attr('value').replace(/^\s*|\s*$/g,"");
            AjaxServices.rename(currentName, 'bag', newName, function(result) {
                if (result.indexOf("Invalid name") == 0) {
                    // invalid name
                    jQuery('#error_msg.errors').prepend(result).show();
                    jQuery('div.title div.form').hide();
                    jQuery('div.title h1').show();
                } else  if (result.indexOf("already exists") > -1 && result.indexOf("<i>") == 0) {
                    // name already exists
                    jQuery('#error_msg.errors').prepend(result.replace(/<\/?[^>]+>/gi, "")).show();
                    jQuery('div.title div.form').hide();
                    jQuery('div.title h1').show();
                } else {
                    // OK
                    if (currentName != result) { // we will need to redirect
                      var urlObj = jQuery(location);
                      var url = jQuery(location).attr('href');
                      // replace the list name in "bagName/name=" before next "&"
                      var a = url.indexOf("name=");
                      if (a > -1) {
                        var z = url.substring(a, url.length).indexOf("&");
                        // redirect
                        urlObj.attr('href', url.substring(0, a + 5) + result.replace(/ /g,"+") + url.substring(a + z, url.length));
                      } else {
                        a = url.indexOf("bagName=");
                        // redirect
                        urlObj.attr('href', url.substring(0, a + 8) + result.replace(/ /g,"+"));
                      }
                    } else { // no name change
                      jQuery('div.title div.form').hide();
                      jQuery('div.title h1').show();
                    }
                }
            });
          }
          jQuery('div.title input.save').click(function() {
            saveName();
          });
          jQuery('div.title input.text').bind('keyup', function(e) {
            if((e.keyCode ? e.keyCode : e.which) == 13) {
              saveName();
            }
          });
        })();
      </script>
  
  