$(document).ready(function () {
  // Remove extra label in comment form
  $(".commentNotify_li label:eq(1)").remove();
  
  $.beautyOfCode.init({
          theme: 'Default',
        brushes: ['Xml', 'JScript', 'CSharp', 'Plain', 'Python'],
        ready: function() {
          $.beautyOfCode.beautifyAll();
        }
      }); 
  
    $(".view-changelog").click(function () {
        $(this).parent().addClass("no-border-bottom");
      if ($(this).parent().next(".prev-changelog").css('display') == 'none') {
        $(this).parent().next(".prev-changelog").slideDown('slow');
      }
      else {
        $(this).parent().next(".prev-changelog").slideUp('slow');
      }
    });
  
  /* Twitter lister
  $('#load-twit').ajaxStart(function () {
        $(this).show();
    }).ajaxStop(function () {
        $(this).hide();
    });
    if ($("#twitter-lister").length > 0) {
        $.ajax({
            url: "/ws/TwitterConsumer.asmx/GetTweets",
            type: "POST",
            contentType: "application/json;charset=utf-8",
            dataType: "json",
            //data: { userName: "elspiko", numberOfTweets: 5 },
            success: function (html) {
                $("#twitter-lister").append(html);
            }
        });
    }
  
  
  $('p').click(function() {
    $.ajax({
            url: "/ws/TwitterConsumer.asmx/test",
            type: "POST",
          contentType: "application/json;charset=utf-8",
          dataType: "json",
            success: function (msg) {
                alert(msg);
            }
        });
  }); */

});