$(document).ready(function() {
    $("#viceInfoAkce").hide();
});
function ShowInfoAkce() {
    $("#viceInfoAkce").animate({ opacity: "show" }, "slow");
}

 FB.Event.subscribe('edge.create',
    function(response) {
        $.ajax({
            type: "POST",
            url: "WebAJAXService.asmx/LikeStatus",
            data: "{url:'" + response + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(mes) {
            }
        });
    }
);
    FB.Event.subscribe('comment.create',
        function(response) {
        $.ajax({
            type: "POST",
            url: "WebAJAXService.asmx/Comments",
            data: "{cislo_sablony:'" + $("#cislo_sablony").text() + "',type:'prid'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(mes) {
            }
            });
        });
    FB.Event.subscribe('comment.remove',
        function(response) {
        $.ajax({
            type: "POST",
            url: "WebAJAXService.asmx/Comments",
            data: "{cislo_sablony:'" + $("#cislo_sablony").text() + "',type:'odstranit'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(mes) {
            }
        });
    });
function ScrollToPosition(kam) {
    $('html,body').animate({ scrollTop: kam }, 1100);
}

