old_contents: /*global $ */
  /*jslint
   white: true,
   vars: true,
   indent: 2
  */
  (function($) {
    "use strict";
    $.fn.hideOtherLinks = function() {
      $(this).each(function(i, elm){
        var $el = $(elm),
            showHide = $('<span class="other-content" />'),
            shownElements = [],
            hiddenElements = [],
            currentlyAppending = shownElements;
  
        $($el.contents()).each(function(i, el) {
          if (el.nodeValue && el.nodeValue === ".") {
            return;
          }
          currentlyAppending.push(el);
          if ($(el).is('a')) {
            currentlyAppending = hiddenElements;
          }
        });
  
        if (hiddenElements.length) {
  
          $el.empty();
  
          $(shownElements).each(function(i, el) {
            $el[0].appendChild(el);
          });
  
          $(hiddenElements).each(function(i, el) {
            showHide[0].appendChild(el);
          });
  
          $el.append(showHide);
          $el.append(".");
  
          showHide.hide();
  
          var otherCount = showHide.find('a').length;
          var toggle = $('<a href="#" class="show-other-content" title="Show additional links"><span class="plus">+&nbsp;</span>'+ otherCount +' other'+ (otherCount > 1 ? 's' : '') +'</a>');
  
          toggle.on('click', function(e) {
            e.preventDefault();
            $(this).remove();
            showHide.show().focus();
          });
  
          showHide.before(toggle);
  
          $el.attr('aria-live', 'polite');
  
        }
  
      });
      return this;
    };
  })(jQuery);
  
new_contents: /*global $ */
  /*jslint
   white: true,
   vars: true,
   indent: 2
  */
  (function($) {
    "use strict";
    $.fn.hideOtherLinks = function() {
      $(this).each(function(i, elm){
        var $el = $(elm),
            showHide = $('<span class="other-content" />'),
            shownElements = [],
            hiddenElements = [],
            currentlyAppending = shownElements;
  
        $($el.contents()).each(function(i, el) {
          if (el.nodeValue && (el.nodeValue === "." || el.nodeValue === ' ')) {
            return;
          }
          currentlyAppending.push(el);
          if ($(el).is('a')) {
            currentlyAppending = hiddenElements;
          }
        });
  
        if (hiddenElements.length) {
  
          $el.empty();
  
          $(shownElements).each(function(i, el) {
            $el[0].appendChild(el);
          });
  
          $(hiddenElements).each(function(i, el) {
            showHide[0].appendChild(el);
          });
  
          $el.append(showHide);
          $el.append(".");
  
          showHide.hide();
  
          var otherCount = showHide.find('a').length;
          var toggle = $('<a href="#" class="show-other-content" title="Show additional links"><span class="plus">+&nbsp;</span>'+ otherCount +' other'+ (otherCount > 1 ? 's' : '') +'</a>');
  
          toggle.on('click', function(e) {
            e.preventDefault();
            $(this).remove();
            showHide.show().focus();
          });
  
          showHide.before(toggle);
  
          $el.attr('aria-live', 'polite');
  
        }
  
      });
      return this;
    };
  })(jQuery);
  
subject: Stop IE7 showing empty show more links.