jQuery.noConflict()(function($){
  // Show only the first three links in the blogroll
  $('.widget_links li:gt(2)').hide();
  $('<li class="showmore"><a href="javascript:;">More...</a><li>').appendTo('.widget_links ul').children('a').click(function(){
    $('.widget_links li').show().filter('.showmore').hide();
    eqcol($('#leftcol, #sidebar'));
  });

  // Create 'Equalize columns' function
  var eqcol = function(cols) {
    cols.each(function(i){
      if ($(cols).filter('.max').length == 0 || $(cols).filter('.max').outerHeight() < $(this).outerHeight()) {
        $(cols).removeClass('max').filter(':eq('+i+')').addClass('max');
      }
    }).filter(':not(.max)').each(function(){
      var borders = [parseInt($(this).css('border-bottom-width')),parseInt($(this).css('border-top-width'))];
      var padding = [parseInt($(this).css('padding-bottom')),parseInt($(this).css('padding-top'))];
      var thiscol = parseInt($(cols).filter('.max').outerHeight())-borders[0]-borders[1]-padding[0]-padding[1];
      $(this).css(
        ($.browser.msie && $.browser.version<'7.0'?
          {height:thiscol+'px'}:
          {minHeight:thiscol+'px'}
        )
      );
    });
  }

  // Equalize columns throughout
  eqcol($('#subfooter .widget'));
  eqcol($('#leftcol, #sidebar'));
});