/*!
 * fold-monthly_archives.js
 *
 * Copyright (c) 2009 Kyo Nagashima <kyo@hail2u.net>
 * This library licensed under MIT license:
 * http://opensource.org/licenses/mit-license.php
 */
$(function () {
  var num = 32;

  $("#monthly_archives > li").each(function (i, li) {
    if (i === num) {
      $(li).before($("<li/>").append($("<a/>").attr({
        href: "#archives-by-month"
      }).append("» more").click(function () {
        $(this).hide();
        $("#monthly_archives .folded").show();
      }))).addClass("folded").hide();
    } else if (i > num) {
      $(li).addClass("folded").hide();
    }
  });
});
