anchor.diff:      <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
   
       <tags:stylesheetLink name="main"/>
  -    <tags:javascriptLink name="scheduled-activity"/>
  -    <tags:javascriptLink name="scheduled-activity-batch-modes"/>
       <tags:javascriptLink name="resig-templates" />
  -
  +    <c:choose>
  +        <c:when test="${schedulePreview}">
  +            <tags:javascriptLink name="schedule-preview/schedule-preview"/>
  +            <tags:escapedUrl var="previewResource" value="api~v1~studies~${study.assignedIdentifier}~template~${amendmentIdentifier}~schedulePreview.json" />
  +        </c:when>
  +        <c:otherwise>
  +            <tags:javascriptLink name="scheduled-activity"/>
  +            <tags:javascriptLink name="scheduled-activity-batch-modes"/>
  +            <jsp:useBean id="subject" type="edu.northwestern.bioinformatics.studycalendar.domain.Subject" scope="request"/>
  +            <jsp:useBean id="schedule" type="edu.northwestern.bioinformatics.studycalendar.web.subject.SubjectCentricSchedule" scope="request"/>
  +        </c:otherwise>
  +    </c:choose>
        <style type="text/css">
           .myaccordion {
               position: absolute;
  
positive.code:             var paramsInXML = '<next-scheduled-study-segment study-segment-id="'+studySegmentId+ '" start-date="'+date+ '" mode="'+ immediateOrPerProtocol.toLowerCase() +'" start-day="5"/>'
              return paramsInXML;
          }
  
      </script>
  
  </head>
  
negative.code:             padding:0;
          }
  
          div.previewRow{
              float:left;
              vertical-align:middle;
              width:100%;
              padding: 2px;
              margin: 1px 0;
          }
  
      </style>
  
      <script type="text/javascript">
  