$(document).ready(function() {
        $('#cycle').cycle({ 
          fx:    'fade', 
          speed:  4000
        });
  
        // odstranění řámečků u všech odkazů
        $("a").live("focus", function (event) {
          $(this).blur();
        });
        
       $('a[href=#top]').click(function(){
            $('html, body').animate({scrollTop:0}, 'slow');
            return false;
        });

        $('a[href*=#]').click(function(){
            var href = ($(this).attr("href")).substring(1);
            //href = href.substring(1);
            $('html, body').animate({
              scrollTop: $("a[name="+href+"]").parent().offset().top
              }, 2000);
            return false;
        });


        $(".album").live('mouseover mouseout', function (event) {
            if (event.type == 'mouseover') {
              $(this).addClass('hover');
            } else {
              $(this).removeClass('hover');
            }

          
          });  

        // odlišení relativních odkazů, odkazů na jiné články a odkazů ke stažení
      
        $("#obsah ul li a").each(function(){  
          var odkaz = $(this).attr('href');
          if(odkaz.match("#"))
            $(this).parent().parent().addClass('relativni');          
          }); 
});


