             expandCollapseButtons.click(function(){
                    var elementToToggle = $(this).siblings("table");
                    elementToToggle.slideToggle("fast");
                    $(this).text($(this).text() == ' Expand' ? ' Collapse' : ' Expand');
                });
            }
        });

    </script>
</body>
</html>
