anchor.diff:  %><%@ page import="org.archive.wayback.core.UrlSearchResults"
   %><%@ page import="org.archive.wayback.core.WaybackRequest"
   %><%@ page import="org.archive.wayback.util.StringFormatter"
  -%><%
  +%>
  +<jsp:include page="/WEB-INF/global-template/UI-header.jsp" flush="true" />
  +<%
   UIResults results = UIResults.extractUrlQuery(request);
   WaybackRequest wbRequest = results.getWbRequest();
   UrlSearchResults uResults = results.getUrlResults();
  
positive.code:     <span class="mainSearchText">
        <%= fmt.format("PathPrefixQuery.singleCaptureDate",firstDate) %>
      </span>
      <%
      
    } else {
      String anchor = results.makeCaptureQueryUrl(originalUrl);
      %>
      <a href="<%= anchor %>">
        <%= urlKey %>
      </a>
  
negative.code: long totalCaptures = uResults.getMatchingCount();
  
  %>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" type="text/javascript"></script>
  <script type="text/javascript" src="<%= staticPrefix %>js/jquery.dataTables.min.js" charset="utf-8"></script>
  <script type="text/javascript">
  $().ready(function(){
      $(".dataTables_processing").show();
      $('#resultsUrl th.url span').html('&nbsp;&uarr;');
      $('#resultsUrl th').mouseup(function(){
                  \$('#resultsUrl th span').html('');
                  \$(this).find('span').html('&nbsp;&uarr;');            
                  if (\$(this).hasClass('sorting_asc')) {
                      \$(this).find('span').html('&nbsp;&darr;');
                  } else if (\$(this).hasClass('sorting_desc')) {
                      \$(this).find('span').html('&nbsp;&uarr;');
                  };
              });
             var rowCount = \$('#resultsUrl tbody tr').length;
              if (rowCount < 50) {
                  \$('#resultsUrl').dataTable({
                      "bProcessing": true,
                      "aoColumns": [{"sType":"html"},{"sType":"date"},{"sType":"date"},null,null,null],
                      "aaSorting": [ [0,'asc'] ],
                      "bPaginate": false,
                      "bInfo": false,
                      "bFilter": true,
                      "bStateSave": true,
                      "bAutoWidth": false,
                      "oLanguage": {
                          "sSearch": "Filter results (i.e. '.txt'):"
                      }
                  });
              } else {
                  \$('#resultsUrl').dataTable({
                      "bProcessing": true,
                      "aoColumns": [{"sType":"html"},{"sType":"date"},{"sType":"date"},null,null,null],
                      "aaSorting": [ [0,'asc'] ],
                      "bPaginate": true,
                      "bInfo": true,
                      "sPaginationType": "full_numbers",
                      "bFilter": true,
                      "bStateSave": true,
                      "bAutoWidth": false,
                      "oLanguage": {
                          "sSearch": "Filter results (i.e. '.txt'):"
                      },
                      "iDisplayLength": 50
                  });
              }
          });
  $(window).load(function(){
  
  });
  </script>
          <div id="positionHome">
              <section>
              <div id="logoHome">
                  <h1><span>Internet Archive's Wayback Machine</span></h1>
              </div>
              </section>
              <section>
              <div id="searchHome">
                  <form name="form1" method="get" action="<%= queryPrefix %>query">
  					<input type="hidden" name="<%= WaybackRequest.REQUEST_TYPE %>" value="<%= WaybackRequest.REQUEST_CAPTURE_QUERY %>">
  					<input type="text" name="<%= WaybackRequest.REQUEST_URL %>" value="http://" size="40">
                      <button type="submit" name="Submit">Go Wayback!</button>
                  </form>
                  <div id="searchAdvHome">
                      <a href="[ADVANCED SEARCH]">Advanced Search</a>
                  </div>
              </div>
              </section>
          </div>
          <div id="positionTable">
  
          <h2 class="green"><%= fmt.format("PathPrefixQuery.showingResults",totalCaptures) %></h2>
  
      <table id="resultsUrl">
          <thead>
              <tr>
                  <th class="url">URL<span></span></th>
                  <th>From<span></span></th>
                  <th>To<span></span></th>
                  <th>Captures<span></span></th>
                  <th>Duplicates<span></span></th>
                  <th>Uniques<span></span></th>
              </tr>
          </thead>
          <tbody>
  <%
  Iterator<UrlSearchResult> itr = uResults.iterator();
  while(itr.hasNext()) {
  