    $(function() {
        $('#gallery a').lightBox();
    });

    $(function() {
        $('.gallery a').lightBox();
    });
    
    // show, or hide categories
     $(document).ready(function() { 
     
        // almanach search categories support
        $("#almanach_categories_content").hide();
        $("#show_almanach_categories").click(
          function(){ 
            $("#almanach_categories_content").toggle();
          });

      // right_part
        // preparint
        $("#show_news").show();
        $("#show_clients").show();
        $(".news").hide();
        
        $("#show_news").css("color","black");
        $("#show_news").css("background","url('/images/h3_bg_dark.jpg')");

        $("#show_news").click(function(){
          $(".news").show();
          $(".client_logos").hide();
          
          $("#show_clients").css("color","black");
          $("#show_clients").css("background","url('/images/h3_bg_dark.jpg')");
          
          $("#show_news").css("color","white");
          $("#show_clients").css("background","url('/images/h3_bg.jpg')");
          
        });
        $("#show_clients").click(function(){
          $(".news").hide();
          $(".client_logos").show();
          
          $("#show_news").css("color","black");          
          $("#show_news").css("background","url('/images/h3_bg.jpg')");
          
          $("#show_clients").css("color","white");
          $("#show_clients").css("background","url('/images/h3_bg_dark.jpg')");
        });      
        
        
        // move logos
         $("#top").mousedown(
          function(){
            var idTextHeight = $("#clients").height();
            var idContentHeight = $("#logo_images").height();
            var moveDownPx = idTextHeight-idContentHeight;
            var textCurrentMarginTop = $("#clients").css("margin-top");

            $("#clients").animate({ 
              marginTop: -moveDownPx
            }, 3000 );

          });

        $("#top").mouseup(
          function(){
            $("#clients").stop();
        });
          
        $("#down").mousedown(
          function(){
            var moveTopPx = "0";

            $("#clients").animate({ 
              marginTop: moveTopPx
            }, 3000 );
          });    

        $("#down").mouseup(
          function(){
            $("#clients").stop();
        });   
     // 


     });