function init_comments(base_url) {
  // Add "show more" buttons
  //$(".children").css("display", "none");
  $("li.comment:has(.children)").children(".comment-body").children(".reply").append('&nbsp; <img class="more-less" src="' + base_url + '/images/icon_less.gif" width="25" height="25" alt="more-less" border="0" />');
  
  $(".more-less").click(function() {
    $(this).parent().parent().parent().children(".children").slideToggle();
    if ($(this).attr("src") == base_url + "/images/icon_more.gif") {
      $(this).attr("src", base_url + "/images/icon_less.gif");
    } else {
      $(this).attr("src", base_url + "/images/icon_more.gif");
    }
  });
  
  // Replace "Reply" and "Login to Reply" with a heart icon
  $(".comment-reply-link, .comment-reply-login").html('<img src="' + base_url + '/images/icon_love.gif" width="25" height="25" alt="Reply" border="0" />');
}

function init_loginform() {
  if ($('input#log').attr("value") == "") {
    $('input#log').attr("value", "username");
  }
  $('input#pwd').replaceWith('<input id="pwd" name="pwd" type="text" size="18" value="password" />');
}
