anchor.diff:                  });
   
               });
  +
  +            function sticky_footer() {
  +                var mFoo = $("#divRodape");
  +                if ((($(document.body).height() + mFoo.outerHeight()) < $(window).height() && mFoo.css("position") === "fixed") || ($(document.body).height() < $(window).height() && mFoo.css("position") !== "fixed")) {
  +                    mFoo.css({position: "fixed", bottom: "0px"});
  +                } else {
  +                    mFoo.css({position: "static"});
  +                }
  +            }
   
               function finalizarItem(codigoItem) {
   
  
positive.code: 
          <script type="text/javascript">
              $(document).ready(function () {
                  $(".btn-pref .btn").click(function () {
                      $(".btn-pref .btn").removeClass("btn-primary").addClass("btn-default");
                      // $(".tab").addClass("active"); // instead of this do the below 
  
negative.code:                 </div>
              </div>
  
              <div id="divRodape" style="width: 100%">
              <jsp:include page="/rodape.jsp"></jsp:include>
          </div>
  
  