jQuery(document).ready(function() {

    jQuery(".show-all").click(function () {
        var id = this.id;

        id = id.replace("blocka_", "");

        jQuery("#block_" + id).toggle(200);

        return false;
    });

    jQuery("#expandAllBlocks").click(function () {

        var actualClass = jQuery("#expandAllBlocks").attr('class');

        if(actualClass == 'expand')
        {
            jQuery(".explodeList").show(200);
            jQuery("#expandAllBlocks").removeClass('expand');
            jQuery("#expandAllBlocks").addClass('collapse');
        }
        else
        {
            jQuery(".explodeList").hide(200);
            jQuery("#expandAllBlocks").removeClass('collapse');
            jQuery("#expandAllBlocks").addClass('expand');
        }

        return false;
    });
    
});





