$(document).ready(function(){
  $("a#show_pic").fancybox();
  
  $(".smile").click(function(){
      $(".smiles").slideToggle("fast");
    });
    
  $("#click").click(function(){
      $("#fixed_form").fadeIn(700);
      document.body.style.overflow="hidden";
    });
    
  $("#fixed_form_close").click(function(){
      $("#fixed_form").fadeOut(400);
      document.body.style.overflow="auto";
    });
    
  $("#jump_to_page").click(function(){
      $("#jump_to_page_content").slideToggle("fast");
    });
    
  $("#jump_to_pages").click(function(){
      $("#jump_to_page_contents").slideToggle("fast");
    });
    
  $("#add_comment").click(function(){
      $(".add_content_comment").slideToggle("fast");
    });
    
  $("#add_comments").click(function(){
      $(".add_content_comments").slideToggle("fast");
    });
});

function showContent() {
  $('#loading').hide();
  $('.loading').fadeIn(700);
};

function showUpdate() {
$('#update').show();
$('#not_update_1').hide();
$('#not_update_2').hide();
}

function hideUpdate() {
$('#update').hide();
$('#not_update_1').show();
$('#not_update_2').show();
}

function ShowSubMenu() { 
  $('.submenu').show();
}

function HideSubMenu() {
  $('.submenu').hide();
}

$(function(){
  $('.backtotop').click(function(e){
    e.preventDefault();
    $('html, body').animate({scrollTop: '0px'}, 2000);
  });
});

