//-------рисунки-кнопочки при наведении--------
$(document).ready(function(){
    $('div.newsItem div.print').css({'display':'none'});
    $('.aiButton').mouseover(function(){
        $(this).animate({
            'opacity':'0.6'
        },200);
    });
    $('.aiButton').mouseout(function(){
        $(this).animate({
            'opacity':'1'
        },200);
    });
    //-------------scroll photo comments
      $("div.scrollable").scrollable({
        vertical:true,
        clickable:false,
        size: 2
    }).mousewheel();  
    //-------сворачивание-разворачивание новостей---------
             $('.news .newsItem').click(function(){
               if($(this).find('.body').is(':hidden')==false){
                  $(this).attr('title','');
                 $(this).find('.print').css({'display':'none'});
                 $(this).find('.desc').animate({'opacity':'1'});
                 $(this).find('.body').slideUp();
               }
               else
               {
                    $(this).attr('title','закрыть');
                  $(this).find('.print').css({'display':'block'});
                  $(this).find('.desc').animate({'opacity':'0'});                  
                  $(this).find('.body').slideDown();
               }
           });
           $('.news .newsItem').mouseover(function(){
             $(this).css({'background':'#f1f1f1'});

           });
            $('.news .newsItem').mouseout(function(){
             $(this).css({'background':'#fff'});
           });
       
         //-------Наведение на div стран---------
           $('.countries div.inactive').mouseover(function(){
             $(this).css({'background':'#f1f1f1'});

           });
            $('.countries div.inactive').mouseout(function(){
             $(this).css({'background':'#fff'});
           });

           $('.newsItem .print').mouseover(function(){
             $(this).css({'border-color':'#000'});             
             $(this).find('a').css({'color':'#000'});
           });
           $('.newsItem .print').mouseout(function(){
             $(this).css({'border-color':'#677795'});
             $(this).find('a').css({'color':'#677795'});
           });
            $('.newsItem .print').click(function(){                       
                        wnd = window.open($(this).find('a').attr('href'),'print','height=600,width=600,scrollbars=1');
                        wnd.focus();
                        return false;
           });

        });



