anchor.diff:       </th>
        <th colspan="7">by chromosome</th>
        <c:forEach items="${tracks[exp.name]}" var="etrack"  varStatus="status">
  -     
  -<%-- build the url for getting all the labels in this experiment --%> 
  +     <%-- build the url for getting all the labels in this experiment --%> 
  +     <c:set var="organism" value="${etrack.organism}"/>
  +
   <c:choose>
  -<c:when test="${status.first}">
  -     <c:set var="organism" value="${etrack.organism}"/>
  -     <c:set var="urlabels" value="${etrack.track}" /> 
  +<c:when test="${fn:startsWith(organism,'worm')}">
  +<c:set var="wormTracksCounter" value="${wormTracksCounter +1 }" />
  +  <c:choose>
  +  <c:when test="${empty wormlabels}">
  +     <c:set var="wormlabels" value="${etrack.track}" /> 
  +  </c:when>
  +  <c:otherwise>
  +     <c:set var="wormlabels" value="${wormlabels}-${etrack.track}" /> 
  +  </c:otherwise>
  +  </c:choose>
   </c:when>
  -<c:otherwise>
  -     <c:set var="urlabels" value="${urlabels}-${etrack.track}" /> 
  -</c:otherwise>
  +<c:when test="${fn:startsWith(organism,'fly')}">
  +<c:set var="flyTracksCounter" value="${flyTracksCounter +1}" />
  +  <c:choose>
  +  <c:when test="${empty flylabels}">
  +     <c:set var="flylabels" value="${etrack.track}" /> 
  +  </c:when>
  +  <c:otherwise>
  +     <c:set var="flylabels" value="${flylabels}-${etrack.track}" /> 
  +  </c:otherwise>
  +  </c:choose>
  +</c:when>
   </c:choose>
   
   </c:forEach>
   
   <tr>
   <td >
  -<c:if test="${fn:length(tracks[exp.name]) > 1 }">
  +
  +<c:if test="${flyTracksCounter > 1 }">
   <b><html:link 
  -     href="${WEB_PROPERTIES['gbrowse.prefix']}/${organism}/?label=${urlabels}" target="_blank" title="View all the tracks for this experiment">
  -     All ${fn:length(tracks[exp.name])} tracks
  +     href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?label=${flylabels}" target="_blank" title="View all the tracks for this experiment">
  +     All ${flyTracksCounter} tracks
   </html:link></b>     
  -</c:if>
  -
  -<c:if test="${fn:length(tracks[exp.name]) == 1}">
  +        <img border="0" class="arrow" src="model/images/f_vvs.png" title="fly"/>
  +</c:if>
  +
  +<c:if test="${ flyTracksCounter== 1}">
   <b><html:link 
  -     href="${WEB_PROPERTIES['gbrowse.prefix']}/${organism}/?label=${urlabels}" target="_blank" title="View the track generated for this experiment">
  -     ${urlabels}
  +     href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?label=${flylabels}" target="_blank" title="View the track generated for this experiment">
  +     ${flylabels}
   </html:link></b>
  -</c:if>
  -     
  -</td>
  -<td>
  -<c:choose>
  - <c:when test="${!empty fly}">
  -
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=X;label=${urlabels}" target="_blank">X</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=2L;label=${urlabels}" target="_blank">2L</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=2R;label=${urlabels}" target="_blank">2R</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=3L;label=${urlabels}" target="_blank">3L</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=3R;label=${urlabels}" target="_blank">3R</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=4;label=${urlabels}" target="_blank">4</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=U;label=${urlabels}" target="_blank">U</html:link>
  +        <img border="0" class="arrow" src="model/images/f_vvs.png" title="fly"/>
  +</c:if>
  +<br></br>
  +
  +<c:if test="${wormTracksCounter > 1 }">
  +<b><html:link 
  +     href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?label=${wormlabels}" target="_blank" title="View all the tracks for this experiment">
  +     All ${wormTracksCounter} tracks
  +</html:link></b>
  +        <img border="0" class="arrow" src="model/images/w_vvs.png" title="worm"/>
  +</c:if>
  +
  +<c:if test="${ wormTracksCounter== 1}">
  +<b><html:link 
  +     href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?label=${wormlabels}" target="_blank" title="View the track generated for this experiment">
  +     ${wormlabels}
  +</html:link></b>
  +        <img border="0" class="arrow" src="model/images/w_vvs.png" title="worm"/>
  +</c:if>
  +
  +
  +
  +</td>
  +<td>
  +<c:if test="${!empty fly}">
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=X;label=${flylabels}" target="_blank">X</html:link>
  +<br>
  +</c:if>
  +<c:if test="${wormTracksCounter > 0}">
  +<br>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=I;label=${wormlabels}" target="_blank">I</html:link>
  +</c:if>
  +</td>
  +
  +<td>
  +<c:if test="${!empty fly}">
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=2L;label=${flylabels}" target="_blank">2L</html:link>
  +</c:if>
  +<c:if test="${wormTracksCounter > 0}">
  +<br>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=II;label=${wormlabels}" target="_blank">II</html:link>
  +</c:if>
  +</td>
  +<td>
  +<c:if test="${!empty fly}">
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=2R;label=${flylabels}" target="_blank">2R</html:link>
  +</c:if>
  +<c:if test="${wormTracksCounter > 0}">
  +<br>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=III;label=${wormlabels}" target="_blank">III</html:link>
  +</c:if>
  +</td>
  +<td>
  +<c:if test="${!empty fly}">
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=3L;label=${flylabels}" target="_blank">3L</html:link>
  +</c:if>
  +<c:if test="${wormTracksCounter > 0}">
  +<br>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=IV;label=${wormlabels}" target="_blank">IV</html:link>
  +</c:if>
  +</td>
  +<td>
  +<c:if test="${!empty fly}">
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=3R;label=${flylabels}" target="_blank">3R</html:link>
  +</c:if>
  +<c:if test="${wormTracksCounter > 0}">
  +<br>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=V;label=${wormlabels}" target="_blank">V</html:link>
  +</c:if>
  +</td>
  +<td>
  +<c:if test="${!empty fly}">
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=4;label=${flylabels}" target="_blank">4</html:link>
  +</c:if>
  +<c:if test="${wormTracksCounter > 0}">
  +<br>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=X;label=${wormlabels}" target="_blank">X</html:link>
  +</c:if>
  +</td>
  +<td>
  +<c:if test="${!empty fly}">
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=U;label=${flylabels}" target="_blank">U</html:link>
  +<c:if test="${wormTracksCounter > 0}">
  +<br>-</br>
  +</c:if>
  +</c:if>
  +
  +
  +<%--
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=2L;label=${flylabels}" target="_blank">2L</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=2R;label=${flylabels}" target="_blank">2R</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=3L;label=${flylabels}" target="_blank">3L</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=3R;label=${flylabels}" target="_blank">3R</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=4;label=${flylabels}" target="_blank">4</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/fly/?ref=U;label=${flylabels}" target="_blank">U</html:link>
  +</td>
  +<br>
  +</c:when>
  +
  + <c:when test="${!empty worm}">
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=I;label=${wormlabels}" target="_blank">I</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=II;label=${wormlabels}" target="_blank">II</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=III;label=${wormlabels}" target="_blank">III</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=IV;label=${wormlabels}" target="_blank">IV</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=V;label=${wormlabels}" target="_blank">V</html:link>
  +<td>
  +<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=X;label=${wormlabels}" target="_blank">X</html:link>
   </td>
   </tr>
  +
   </c:when>
  -
  -<c:otherwise>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=I;label=${urlabels}" target="_blank">I</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=II;label=${urlabels}" target="_blank">II</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=III;label=${urlabels}" target="_blank">III</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=IV;label=${urlabels}" target="_blank">IV</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=V;label=${urlabels}" target="_blank">V</html:link>
  -<td>
  -<html:link href="${WEB_PROPERTIES['gbrowse.prefix']}/worm/?ref=X;label=${urlabels}" target="_blank">X</html:link>
  -</td>
  -</tr>
  -</c:otherwise>
  -
   </c:choose>
  +--%>
   </table>    
        </c:when>
        <c:otherwise>
  
positive.code: <c:set var="worm" value=""/>
  <c:set var="ncbiftp" value="ftp://ftp.ncbi.nlm.nih.gov"/>
  <c:set var="isPrimer" value="primer"/>
  
    <im:boxarea title="${exp.name}" stylename="gradientbox">
  
  <%--NB: We assume that an experiment deals either with one or the other organism.
  TODO: check if true also with future Henikoff experiments. 
  TODO: associate organism with experiment (or read tracks) 
  NBB: for fly freeze, Henikoff has only fly submissions -> the choice
  --%>
  
    <table cellpadding="0" cellspacing="0" border="0" class="dbsources">
    <tr>
  
negative.code:   <td>
      <c:forEach items="${exp.organisms}" var="organism" varStatus="orgStatus">
        <c:if test="${organism eq 'D. melanogaster'}"> 
          <img border="0" class="arrow" src="model/images/f_vvs.png" title="fly"/>
  						<c:set var="fly" value="1" />
  					</c:if>
        <c:if test="${organism eq 'C. elegans'}">  
          <img border="0" class="arrow" src="model/images/w_vvs.png" title="worm"/>
  						<c:set var="worm" value="1" />
  					</c:if>
      </c:forEach> 
  