     $(document).ready(function(){
         $("a[title='smazat'], a[title='delete'], a[title='Delete'], a[title='Smazat']").click(function(){
            confirmBox = confirm('Opravdu smazat?');
            
            if (!confirmBox) {
              return false;   
            }
         });  
        /* menu */        
        $(".submenu").hide(); $(".submenuShow").show();
        $(".expandLink, .expandLinkActive").click(function(){
            $(this).toggleClass("expandLink").toggleClass("expandLinkActive").nextAll("ul.submenu:first").slideToggle("slow");
        });
   
        /* carousel */   
        $('.carousel').jcarousel({
            //wrap : 'last'
        });
        
        /* colorbox */        
        $('.colorbox').colorbox();        
        $('.colorboxDetail').colorbox();

        /* image swap */        
        $(".thumbs a").click(function() {        
            var mainImage = $(this).attr("href");
            var biggestImage = $(this).attr("rel");  
            $(".mainImage img").attr({ src: mainImage });
            $(".mainImage a").attr({ href: biggestImage}); 
            return false;        
        });
        
        /* show description detail */
        var descriptionFoldedHeight = 55;
        var decriptionHeight = $('.description').height();
        if (decriptionHeight > descriptionFoldedHeight) {
            $('.showDescription').show();
            $('.description').css('height', descriptionFoldedHeight);  
        }
        
        $('.showDescription').click(function() {
            $('.description').css('height', 'auto');
            $('.showDescription').hide();  
            return false;
        });   
       
        /* tipsy */
        
        $('.filterIconIn').tipsy();
        
        /* ajax links */
        $("a.ajax").live("click", function (event) {
            event.preventDefault();
            
            $.get(this.href);    
        });        
    
    });

